pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/squirm Imported squirm.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/732b057d65ff
branches:  trunk
changeset: 519386:732b057d65ff
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Mon Oct 02 17:12:19 2006 +0000

description:
Imported squirm.

Squirm is a fast and configurable redirector for the Squid Internet
Object Cache.

diffstat:

 www/squirm/DESCR            |   2 ++
 www/squirm/Makefile         |  36 ++++++++++++++++++++++++++++++++++++
 www/squirm/PLIST            |   5 +++++
 www/squirm/distinfo         |   7 +++++++
 www/squirm/patches/patch-aa |  24 ++++++++++++++++++++++++
 www/squirm/patches/patch-ab |  34 ++++++++++++++++++++++++++++++++++
 6 files changed, 108 insertions(+), 0 deletions(-)

diffs (132 lines):

diff -r 971b348bdd90 -r 732b057d65ff www/squirm/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/squirm/DESCR  Mon Oct 02 17:12:19 2006 +0000
@@ -0,0 +1,2 @@
+Squirm is a fast and configurable redirector for the Squid Internet
+Object Cache.
diff -r 971b348bdd90 -r 732b057d65ff www/squirm/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/squirm/Makefile       Mon Oct 02 17:12:19 2006 +0000
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/10/02 17:12:19 rillig Exp $
+#
+
+DISTNAME=              squirm-1.0betaB
+CATEGORIES=            www
+MASTER_SITES=          http://squirm.foote.com.au/
+
+MAINTAINER=            rillig%NetBSD.org@localhost
+HOMEPAGE=              http://squirm.foote.com.au/
+COMMENT=               Redirector for the Squid Internet Object Cache
+
+USE_TOOLS+=            gmake
+GNU_CONFIGURE=         yes
+CONFIGURE_DIRS=                regex-0.12
+BUILD_DIRS=            regex-0.12 .
+
+.include "../../mk/bsd.prefs.mk"
+
+SQUID_USER?=           squid
+SQUID_GROUP?=          squid
+PKG_USERS+=            ${SQUID_USER}:${SQUID_GROUP}
+PKG_GROUPS+=           ${SQUID_GROUP}
+BUILD_DEFS+=           SQUID_USER SQUID_GROUP VARBASE
+
+PKG_SYSCONFSUBDIR=     squirm
+EGDIR=                 ${PREFIX}/share/examples/squirm
+INSTALLATION_DIRS=     bin ${EGDIR}
+OWN_DIRS_PERMS=                ${VARBASE}/log/squirm ${SQUID_USER} ${SQUID_GROUP} ${PKGDIRMODE}
+CONF_FILES=            ${EGDIR}/squirm.local.dist ${PKG_SYSCONFDIR}/squirm.local.dist
+CONF_FILES+=           ${EGDIR}/squirm.patterns.dist ${PKG_SYSCONFDIR}/squirm.patterns.dist
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/squirm ${PREFIX}/bin/
+       cd ${WRKSRC} && ${INSTALL_DATA} squirm.local.dist squirm.patterns.dist ${EGDIR}/
+
+.include "../../mk/bsd.pkg.mk"
diff -r 971b348bdd90 -r 732b057d65ff www/squirm/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/squirm/PLIST  Mon Oct 02 17:12:19 2006 +0000
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/10/02 17:12:19 rillig Exp $
+bin/squirm
+share/examples/squirm/squirm.local.dist
+share/examples/squirm/squirm.patterns.dist
+@dirrm share/examples/squirm
diff -r 971b348bdd90 -r 732b057d65ff www/squirm/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/squirm/distinfo       Mon Oct 02 17:12:19 2006 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/10/02 17:12:19 rillig Exp $
+
+SHA1 (squirm-1.0betaB.tar.gz) = 3f4a989c60efc693264b0c59d5fd3d7d7a0140b8
+RMD160 (squirm-1.0betaB.tar.gz) = 821ee338c0c1b5c17fbc4d41a7ccfcec5009f816
+Size (squirm-1.0betaB.tar.gz) = 318142 bytes
+SHA1 (patch-aa) = 164ddea2e0253de018924ec8ef5dadfee5bf1ffa
+SHA1 (patch-ab) = 7ba93bcc97261bd47271b472fa085f54558b7cc5
diff -r 971b348bdd90 -r 732b057d65ff www/squirm/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/squirm/patches/patch-aa       Mon Oct 02 17:12:19 2006 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/10/02 17:12:19 rillig Exp $
+
+--- Makefile.real.orig 1998-03-11 09:23:51.000000000 +0100
++++ Makefile.real      2006-09-27 12:01:51.000000000 +0200
+@@ -1,9 +1,9 @@
+ # Makefile for Squirm
+ #
+ 
+-OFILES = squirm.o main.o config.o log.o lists.o regex.o
++OFILES = squirm.o main.o config.o log.o lists.o regex-0.12/regex.o
+ 
+-HFILES = squirm.h paths.h lists.h log.h regex.h
++HFILES = squirm.h paths.h lists.h log.h regex-0.12/regex.h
+ 
+ CC=gcc
+ #CC=checkergcc
+@@ -13,7 +13,6 @@ CC=gcc
+ 
+ BINARIES = squirm
+ 
+-CFLAGS = -O3 -Wall -funroll-loops
+ #CFLAGS = -Wall -g
+ 
+ all:  $(BINARIES)
diff -r 971b348bdd90 -r 732b057d65ff www/squirm/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/squirm/patches/patch-ab       Mon Oct 02 17:12:19 2006 +0000
@@ -0,0 +1,34 @@
+$NetBSD: patch-ab,v 1.1.1.1 2006/10/02 17:12:19 rillig Exp $
+
+--- paths.h.orig       1998-03-09 04:56:22.000000000 +0100
++++ paths.h    2006-09-27 12:27:24.000000000 +0200
+@@ -14,15 +14,21 @@
+ 
+ /*************  Log File Locations (must be writable by **********/
+ /*************  the user given in the squid.conf file   **********/
+-#define LOG_MATCH "/usr/local/squirm/logs/squirm.match"
+-#define LOG_FAIL  "/usr/local/squirm/logs/squirm.fail"
+-#define LOG_ERROR "/usr/local/squirm/logs/squirm.error"
+-#define LOG_WHERE "/usr/local/squirm/logs/squirm.where"
+-#define LOG_DEBUG "/usr/local/squirm/logs/squirm.debug"
+-#define LOG_INFO  "/usr/local/squirm/logs/squirm.info"
++#if !defined(LOGDIR)
++#define LOGDIR                "/usr/local/squirm/logs"
++#endif
++#define LOG_MATCH     LOGDIR"/squirm.match"
++#define LOG_FAIL      LOGDIR"/squirm.fail"
++#define LOG_ERROR     LOGDIR"/squirm.error"
++#define LOG_WHERE     LOGDIR"/squirm.where"
++#define LOG_DEBUG     LOGDIR"/squirm.debug"
++#define LOG_INFO      LOGDIR"/squirm.info"
+ 
+ /*************  Configuration file locations  ***********/
+-#define LOCAL_ADDRESSES   "/usr/local/squirm/etc/squirm.local"
+-#define REDIRECT_PATTERNS "/usr/local/squirm/etc/squirm.patterns"
++#if !defined(CONFDIR)
++#define CONFDIR               "/usr/local/squirm/etc"
++#endif
++#define LOCAL_ADDRESSES               CONFDIR"/squirm.local"
++#define REDIRECT_PATTERNS     CONFDIR"/squirm.patterns"
+ 
+ #endif



Home | Main Index | Thread Index | Old Index