diff options
author | taca <taca> | 2008-09-12 16:03:05 +0000 |
---|---|---|
committer | taca <taca> | 2008-09-12 16:03:05 +0000 |
commit | be655a2febfa7a7bcc1b11becd17c766d0403e64 (patch) | |
tree | 07d54d38367c638b1f73881d0fb8430b4c96f0b6 /www/squid | |
parent | 86c5d3afc2a55503b23333fda96dd35e8874c088 (diff) | |
download | pkgsrc-be655a2febfa7a7bcc1b11becd17c766d0403e64.tar.gz |
Adding missing files to be added. (Oops!)
Noted by Klaus Klein via private mail.
Diffstat (limited to 'www/squid')
-rw-r--r-- | www/squid/MESSAGE | 12 | ||||
-rw-r--r-- | www/squid/Makefile.squid | 77 | ||||
-rw-r--r-- | www/squid/files/README.FreeBSD | 13 | ||||
-rw-r--r-- | www/squid/files/README.NetBSD | 16 | ||||
-rw-r--r-- | www/squid/files/README.OpenBSD | 13 | ||||
-rw-r--r-- | www/squid/files/README.Solaris | 8 |
6 files changed, 139 insertions, 0 deletions
diff --git a/www/squid/MESSAGE b/www/squid/MESSAGE new file mode 100644 index 00000000000..aa6a2ffc886 --- /dev/null +++ b/www/squid/MESSAGE @@ -0,0 +1,12 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.6 2008/09/12 16:03:05 taca Exp $ + +You DO need running nameservice to start and run ${PKGNAME}. + +Please note that to use the diskd storage method, you'll likely have to +change SYSV-IPC parameters in the kernel config file (see +http://wiki.squid-cache.org/SquidFaq/DiskDaemon for details) + +And please read some documents at ${PREFIX}/share/doc/squid. + +=========================================================================== diff --git a/www/squid/Makefile.squid b/www/squid/Makefile.squid new file mode 100644 index 00000000000..5dad986aeeb --- /dev/null +++ b/www/squid/Makefile.squid @@ -0,0 +1,77 @@ +# $NetBSD: Makefile.squid,v 1.1 2008/09/12 16:03:05 taca Exp $ + +.include "Makefile.common" + +PKG_SYSCONFSUBDIR?= squid + +SQUID_USER?= squid +SQUID_GROUP?= squid + +PKG_GROUPS_VARS+= SQUID_GROUP +PKG_USERS_VARS+= SQUID_USER + +PKG_GROUPS= ${SQUID_GROUP} +PKG_USERS= ${SQUID_USER}:${SQUID_GROUP} +PKG_GECOS.${SQUID_USER}= Squid Web-Cache pseudo-user + +# +PLIST_SRC= ${WRKDIR}/PLIST + +MESSAGE_SRC= ../squid/MESSAGE +RCD_SCRIPTS= squid +RCD_SCRIPT_SRC.squid?= ../squid/files/squid.sh + +CONFS= cachemgr.conf mime.conf squid.conf msntauth.conf +.for f in ${CONFS} +CONF_FILES+= ${PREFIX}/${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} +.endfor +OWN_DIRS= ${SQUID_DATADIR} +OWN_DIRS_PERMS+= \ + ${SQUID_DATADIR}/cache ${SQUID_USER} ${SQUID_GROUP} 0750 \ + ${SQUID_DATADIR}/logs ${SQUID_USER} ${SQUID_GROUP} 0750 + +DOCFILES= ChangeLog RELEASENOTES.html doc/debug-sections.txt +READMES= README.FreeBSD README.NetBSD README.OpenBSD README.Solaris +EGFILES= src/mime.conf.default src/squid.conf.default \ + helpers/basic_auth/MSNT/msntauth.conf.default \ + tools/cachemgr.conf + +SUBST_CLASSES+= confs +SUBST_STAGE.confs= pre-configure +SUBST_FILES.confs= src/cf.data.pre +SUBST_SED.confs= -e "s/@USER@/${SQUID_USER}/" +SUBST_MESSAGE.confs= Fixing configuration files. + +CHECK_PORTABILITY_SKIP+= icons/icons.shar + +INSTALL_TARGET= install install-pinger +INSTALLATION_DIRS= bin libexec ${PKGMANDIR}/man8 sbin ${DOCDIR} \ + ${EGDIR} share/squid/errors share/squid/icons + +post-install: +.for f in ${EGFILES} + ${INSTALL_DATA} ${WRKSRC}/${f} \ + ${DESTDIR}${PREFIX}/${EGDIR}/`basename ${f} .default` +.endfor +.for f in ${DOCFILES} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${DOCDIR} +.endfor +.for f in ${READMES} + ${INSTALL_DATA} ${PKGDIR}/../squid/files/${f} \ + ${DESTDIR}${PREFIX}/${DOCDIR} +.endfor + ${CP} ${PKGDIR}/PLIST ${PLIST_SRC} + ( \ + cd ${WRKSRC}/errors; \ + for i in *; do \ + ${TEST} -d $$i && \ + (${LS} $$i/ERR_* | \ + ${SED} -e 's@^@share/squid/errors/@'; \ + ${ECHO} "@dirrm share/squid/errors/$$i"); \ + done; \ + ${ECHO} "@dirrm share/squid/errors"; \ + cd ${WRKSRC}/icons; \ + ${LS} anthony-*.gif | \ + ${SED} -e 's@^@share/squid/icons/@'; \ + ) >>${PLIST_SRC} + ${CAT} ${PKGDIR}/PLIST.common_end >>${PLIST_SRC} diff --git a/www/squid/files/README.FreeBSD b/www/squid/files/README.FreeBSD new file mode 100644 index 00000000000..8c2f5d54933 --- /dev/null +++ b/www/squid/files/README.FreeBSD @@ -0,0 +1,13 @@ + +$NetBSD: README.FreeBSD,v 1.1 2008/09/12 16:03:05 taca Exp $ + +The following parameters should work for FreeBSD: + +options SYSVMSG # System V-like message queues +options SYSVSEM # System V-like semaphores +options SYSVSHM # System V-like memory sharing + +options SHMMAXPGS=8192 +options MSGMNB=8192 +options MSGSSZ=64 +options MSGTQL=2048 diff --git a/www/squid/files/README.NetBSD b/www/squid/files/README.NetBSD new file mode 100644 index 00000000000..b3306c6aa57 --- /dev/null +++ b/www/squid/files/README.NetBSD @@ -0,0 +1,16 @@ + +$NetBSD: README.NetBSD,v 1.1 2008/09/12 16:03:05 taca Exp $ + +The following parameters should work for NetBSD: + +options SYSVMSG # System V-like message queues +options SYSVSEM # System V-like semaphores +options SYSVSHM # System V-like memory sharing + +options SHMMAXPGS=8192 +options MSGMNB=16384 +options MSGSSZ=64 +options MSGTQL=512 + +After 4.99.35, you might set these parameter kern.ipc.* variables +via sysctl(8). diff --git a/www/squid/files/README.OpenBSD b/www/squid/files/README.OpenBSD new file mode 100644 index 00000000000..e3509da6140 --- /dev/null +++ b/www/squid/files/README.OpenBSD @@ -0,0 +1,13 @@ + +$NetBSD: README.OpenBSD,v 1.1 2008/09/12 16:03:05 taca Exp $ + +The following parameters should work for OpenBSD: + +options SYSVMSG # System V-like message queues +options SYSVSEM # System V-like semaphores +options SYSVSHM # System V-like memory sharing + +options SHMMAXPGS=8192 +options MSGMNB=16384 +options MSGSSZ=64 +options MSGTQL=1024 diff --git a/www/squid/files/README.Solaris b/www/squid/files/README.Solaris new file mode 100644 index 00000000000..0cdd43013df --- /dev/null +++ b/www/squid/files/README.Solaris @@ -0,0 +1,8 @@ + +$NetBSD: README.Solaris,v 1.1 2008/09/12 16:03:05 taca Exp $ + +The following parameters in /etc/system should work for Solaris: + +set shmsys:shminfo_shmmax=2097152 +set shmsys:shminfo_shmmni=32 +set shmsys:shminfo_shmseg=16 |