diff options
-rw-r--r-- | www/squirm/DESCR | 2 | ||||
-rw-r--r-- | www/squirm/Makefile | 36 | ||||
-rw-r--r-- | www/squirm/PLIST | 5 | ||||
-rw-r--r-- | www/squirm/distinfo | 7 | ||||
-rw-r--r-- | www/squirm/patches/patch-aa | 24 | ||||
-rw-r--r-- | www/squirm/patches/patch-ab | 34 |
6 files changed, 108 insertions, 0 deletions
diff --git a/www/squirm/DESCR b/www/squirm/DESCR new file mode 100644 index 00000000000..7bf9763b463 --- /dev/null +++ b/www/squirm/DESCR @@ -0,0 +1,2 @@ +Squirm is a fast and configurable redirector for the Squid Internet +Object Cache. diff --git a/www/squirm/Makefile b/www/squirm/Makefile new file mode 100644 index 00000000000..e30968342f3 --- /dev/null +++ b/www/squirm/Makefile @@ -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 +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 --git a/www/squirm/PLIST b/www/squirm/PLIST new file mode 100644 index 00000000000..f550ae50420 --- /dev/null +++ b/www/squirm/PLIST @@ -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 --git a/www/squirm/distinfo b/www/squirm/distinfo new file mode 100644 index 00000000000..fded705d7c2 --- /dev/null +++ b/www/squirm/distinfo @@ -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 --git a/www/squirm/patches/patch-aa b/www/squirm/patches/patch-aa new file mode 100644 index 00000000000..4d08870700a --- /dev/null +++ b/www/squirm/patches/patch-aa @@ -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 --git a/www/squirm/patches/patch-ab b/www/squirm/patches/patch-ab new file mode 100644 index 00000000000..8b19892ad72 --- /dev/null +++ b/www/squirm/patches/patch-ab @@ -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 |