| @@ -1,123 +1,122 @@ | | | @@ -1,123 +1,122 @@ |
1 | # $NetBSD: Makefile,v 1.204 2008/03/22 04:30:53 taca Exp $ | | 1 | # $NetBSD: Makefile,v 1.205 2008/04/02 01:30:37 taca Exp $ |
2 | | | 2 | |
3 | DISTNAME= squid-2.6.STABLE18 | | 3 | DISTNAME= squid-2.6.STABLE19 |
4 | PKGNAME= ${DISTNAME:S/STABLE//} | | 4 | PKGNAME= ${DISTNAME:S/STABLE//} |
5 | PKGREVISION= 2 | | | |
6 | CATEGORIES= www | | 5 | CATEGORIES= www |
7 | MASTER_SITES= http://www.squid-cache.org/Versions/v2/2.6/ | | 6 | MASTER_SITES= http://www.squid-cache.org/Versions/v2/2.6/ |
8 | EXTRACT_SUFX= .tar.bz2 | | 7 | EXTRACT_SUFX= .tar.bz2 |
9 | | | 8 | |
10 | MAINTAINER= taca@NetBSD.org | | 9 | MAINTAINER= taca@NetBSD.org |
11 | HOMEPAGE= http://www.squid-cache.org/ | | 10 | HOMEPAGE= http://www.squid-cache.org/ |
12 | COMMENT= Post-Harvest_cached WWW proxy cache and accelerator | | 11 | COMMENT= Post-Harvest_cached WWW proxy cache and accelerator |
13 | | | 12 | |
14 | WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//} | | 13 | WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//} |
15 | | | 14 | |
16 | DOCDIR= ${PREFIX}/share/doc/squid | | 15 | DOCDIR= ${PREFIX}/share/doc/squid |
17 | EXAMPLESDIR= ${PREFIX}/share/examples/squid | | 16 | EXAMPLESDIR= ${PREFIX}/share/examples/squid |
18 | | | 17 | |
19 | DOCFILES= ChangeLog RELEASENOTES.html doc/debug-sections.txt | | 18 | DOCFILES= ChangeLog RELEASENOTES.html doc/debug-sections.txt |
20 | | | 19 | |
21 | USE_TOOLS+= perl | | 20 | USE_TOOLS+= perl |
22 | GNU_CONFIGURE= yes | | 21 | GNU_CONFIGURE= yes |
23 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} \ | | 22 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} \ |
24 | --localstatedir=${SQUID_DATADIR:Q} | | 23 | --localstatedir=${SQUID_DATADIR:Q} |
25 | | | 24 | |
26 | MAKE_ENV+= INSTALL_SCRIPT=${INSTALL_SCRIPT:Q} | | 25 | MAKE_ENV+= INSTALL_SCRIPT=${INSTALL_SCRIPT:Q} |
27 | MAKE_ENV+= PKG_PREFIX=${PREFIX:Q} VARBASE=${VARBASE:Q} | | 26 | MAKE_ENV+= PKG_PREFIX=${PREFIX:Q} VARBASE=${VARBASE:Q} |
28 | PLIST_SRC= ${WRKDIR}/PLIST | | 27 | PLIST_SRC= ${WRKDIR}/PLIST |
29 | RCD_SCRIPTS= squid | | 28 | RCD_SCRIPTS= squid |
30 | | | 29 | |
31 | CONF_FILES+= ${EXAMPLESDIR}/cachemgr.conf ${PKG_SYSCONFDIR}/cachemgr.conf | | 30 | CONF_FILES+= ${EXAMPLESDIR}/cachemgr.conf ${PKG_SYSCONFDIR}/cachemgr.conf |
32 | CONF_FILES+= ${EXAMPLESDIR}/mime.conf ${PKG_SYSCONFDIR}/mime.conf | | 31 | CONF_FILES+= ${EXAMPLESDIR}/mime.conf ${PKG_SYSCONFDIR}/mime.conf |
33 | CONF_FILES+= ${EXAMPLESDIR}/squid.conf ${PKG_SYSCONFDIR}/squid.conf | | 32 | CONF_FILES+= ${EXAMPLESDIR}/squid.conf ${PKG_SYSCONFDIR}/squid.conf |
34 | CONF_FILES+= ${EXAMPLESDIR}/msntauth.conf ${PKG_SYSCONFDIR}/msntauth.conf | | 33 | CONF_FILES+= ${EXAMPLESDIR}/msntauth.conf ${PKG_SYSCONFDIR}/msntauth.conf |
35 | OWN_DIRS= ${SQUID_DATADIR} | | 34 | OWN_DIRS= ${SQUID_DATADIR} |
36 | OWN_DIRS_PERMS+= ${SQUID_DATADIR}/cache ${SQUID_USER} ${SQUID_GROUP} 0750 \ | | 35 | OWN_DIRS_PERMS+= ${SQUID_DATADIR}/cache ${SQUID_USER} ${SQUID_GROUP} 0750 \ |
37 | ${SQUID_DATADIR}/logs ${SQUID_USER} ${SQUID_GROUP} 0750 | | 36 | ${SQUID_DATADIR}/logs ${SQUID_USER} ${SQUID_GROUP} 0750 |
38 | EXAMPLES_FILES= src/mime.conf.default src/squid.conf.default \ | | 37 | EXAMPLES_FILES= src/mime.conf.default src/squid.conf.default \ |
39 | helpers/basic_auth/MSNT/msntauth.conf.default \ | | 38 | helpers/basic_auth/MSNT/msntauth.conf.default \ |
40 | tools/cachemgr.conf | | 39 | tools/cachemgr.conf |
41 | | | 40 | |
42 | .include "../../mk/bsd.prefs.mk" | | 41 | .include "../../mk/bsd.prefs.mk" |
43 | .include "Makefile.common" | | 42 | .include "Makefile.common" |
44 | | | 43 | |
45 | BUILD_DEFS+= LOGDIR VARBASE | | 44 | BUILD_DEFS+= LOGDIR VARBASE |
46 | | | 45 | |
47 | CONFIGURE_ARGS+= --enable-auth=basic,digest,ntlm \ | | 46 | CONFIGURE_ARGS+= --enable-auth=basic,digest,ntlm \ |
48 | --enable-cachemgr-hostname=localhost \ | | 47 | --enable-cachemgr-hostname=localhost \ |
49 | --enable-delay-pools \ | | 48 | --enable-delay-pools \ |
50 | --enable-removal-policies=lru,heap \ | | 49 | --enable-removal-policies=lru,heap \ |
51 | --enable-poll \ | | 50 | --enable-poll \ |
52 | --enable-underscores \ | | 51 | --enable-underscores \ |
53 | --enable-storeio=${SQUID_BACKENDS:Q} \ | | 52 | --enable-storeio=${SQUID_BACKENDS:Q} \ |
54 | --with-aio | | 53 | --with-aio |
55 | | | 54 | |
56 | # | | 55 | # |
57 | # generic helpers | | 56 | # generic helpers |
58 | # | | 57 | # |
59 | OPTIONAL_FILES+= bin/cossdump libexec/diskd-daemon libexec/dnsserver | | 58 | OPTIONAL_FILES+= bin/cossdump libexec/diskd-daemon libexec/dnsserver |
60 | OPTIONAL_FILES+= libexec/pinger libexec/unlinkd | | 59 | OPTIONAL_FILES+= libexec/pinger libexec/unlinkd |
61 | # | | 60 | # |
62 | # basic auth helpers (except LDAP, multi-domain-NTLM and SASL) | | 61 | # basic auth helpers (except LDAP, multi-domain-NTLM and SASL) |
63 | # | | 62 | # |
64 | OPTIONAL_FILES+= libexec/getpwname_auth libexec/msnt_auth libexec/ncsa_auth | | 63 | OPTIONAL_FILES+= libexec/getpwname_auth libexec/msnt_auth libexec/ncsa_auth |
65 | OPTIONAL_FILES+= libexec/pam_auth ${PKGMANDIR}/man8/ncsa_auth.8 | | 64 | OPTIONAL_FILES+= libexec/pam_auth ${PKGMANDIR}/man8/ncsa_auth.8 |
66 | OPTIONAL_FILES+= ${PKGMANDIR}/man8/pam_auth.8 | | 65 | OPTIONAL_FILES+= ${PKGMANDIR}/man8/pam_auth.8 |
67 | OPTIONAL_FILES+= libexec/smb_auth libexec/yp_auth libexec/wb_auth | | 66 | OPTIONAL_FILES+= libexec/smb_auth libexec/yp_auth libexec/wb_auth |
68 | # | | 67 | # |
69 | # digest auth helpers | | 68 | # digest auth helpers |
70 | # | | 69 | # |
71 | OPTIONAL_FILES+= libexec/digest_pw_auth | | 70 | OPTIONAL_FILES+= libexec/digest_pw_auth |
72 | # | | 71 | # |
73 | # ntlm auth helpers (except no_check and winbind) | | 72 | # ntlm auth helpers (except no_check and winbind) |
74 | # | | 73 | # |
75 | OPTIONAL_FILES+= libexec/fakeauth_auth libexec/ntlm_auth | | 74 | OPTIONAL_FILES+= libexec/fakeauth_auth libexec/ntlm_auth |
76 | OPTIONAL_FILES+= libexec/wb_ntlmauth ${PKGMANDIR}/man8/squid_unix_group.8 | | 75 | OPTIONAL_FILES+= libexec/wb_ntlmauth ${PKGMANDIR}/man8/squid_unix_group.8 |
77 | # | | 76 | # |
78 | # external acl helpers (except ldap_group, wbinfo_group and winbind_group) | | 77 | # external acl helpers (except ldap_group, wbinfo_group and winbind_group) |
79 | # | | 78 | # |
80 | OPTIONAL_FILES+= libexec/ip_user_check libexec/squid_unix_group | | 79 | OPTIONAL_FILES+= libexec/ip_user_check libexec/squid_unix_group |
81 | | | 80 | |
82 | SUBST_CLASSES+= confs | | 81 | SUBST_CLASSES+= confs |
83 | SUBST_STAGE.confs= pre-configure | | 82 | SUBST_STAGE.confs= pre-configure |
84 | SUBST_FILES.confs= src/cf.data.pre | | 83 | SUBST_FILES.confs= src/cf.data.pre |
85 | SUBST_SED.confs= -e "s/@USER@/${SQUID_USER}/" | | 84 | SUBST_SED.confs= -e "s/@USER@/${SQUID_USER}/" |
86 | SUBST_MESSAGE.confs= Fixing configuration files. | | 85 | SUBST_MESSAGE.confs= Fixing configuration files. |
87 | | | 86 | |
88 | CHECK_PORTABILITY_SKIP+= icons/icons.shar | | 87 | CHECK_PORTABILITY_SKIP+= icons/icons.shar |
89 | | | 88 | |
90 | INSTALLATION_DIRS= bin libexec ${PKGMANDIR}/man8 sbin ${DOCDIR} \ | | 89 | INSTALLATION_DIRS= bin libexec ${PKGMANDIR}/man8 sbin ${DOCDIR} \ |
91 | ${EXAMPLESDIR} share/squid/errors share/squid/icons | | 90 | ${EXAMPLESDIR} share/squid/errors share/squid/icons |
92 | | | 91 | |
93 | post-install: | | 92 | post-install: |
94 | .for f in ${EXAMPLES_FILES} | | 93 | .for f in ${EXAMPLES_FILES} |
95 | ${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLESDIR}/`basename ${f} .default` | | 94 | ${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLESDIR}/`basename ${f} .default` |
96 | .endfor | | 95 | .endfor |
97 | ${CP} ${PKGDIR}/PLIST ${PLIST_SRC} | | 96 | ${CP} ${PKGDIR}/PLIST ${PLIST_SRC} |
98 | cd ${WRKSRC}; \ | | 97 | cd ${WRKSRC}; \ |
99 | for i in ${DOCFILES}; do \ | | 98 | for i in ${DOCFILES}; do \ |
100 | ${INSTALL_DATA} $$i ${DOCDIR}; \ | | 99 | ${INSTALL_DATA} $$i ${DOCDIR}; \ |
101 | done | | 100 | done |
102 | ( \ | | 101 | ( \ |
103 | for i in ${OPTIONAL_FILES}; do \ | | 102 | for i in ${OPTIONAL_FILES}; do \ |
104 | ${TEST} ! -r ${PREFIX}/$$i || ${ECHO} $$i; \ | | 103 | ${TEST} ! -r ${PREFIX}/$$i || ${ECHO} $$i; \ |
105 | done; \ | | 104 | done; \ |
106 | cd ${WRKSRC}/errors; \ | | 105 | cd ${WRKSRC}/errors; \ |
107 | for i in *; do \ | | 106 | for i in *; do \ |
108 | ${TEST} -d $$i && \ | | 107 | ${TEST} -d $$i && \ |
109 | (${LS} $$i/ERR_* | \ | | 108 | (${LS} $$i/ERR_* | \ |
110 | ${SED} -e 's@^@share/squid/errors/@'; \ | | 109 | ${SED} -e 's@^@share/squid/errors/@'; \ |
111 | ${ECHO} "@dirrm share/squid/errors/$$i"); \ | | 110 | ${ECHO} "@dirrm share/squid/errors/$$i"); \ |
112 | done; \ | | 111 | done; \ |
113 | ${ECHO} "@dirrm share/squid/errors"; \ | | 112 | ${ECHO} "@dirrm share/squid/errors"; \ |
114 | cd ${WRKSRC}/icons; \ | | 113 | cd ${WRKSRC}/icons; \ |
115 | ${LS} anthony-*.gif | \ | | 114 | ${LS} anthony-*.gif | \ |
116 | ${SED} -e 's@^@share/squid/icons/@'; \ | | 115 | ${SED} -e 's@^@share/squid/icons/@'; \ |
117 | ${ECHO} "@dirrm share/squid/icons"; \ | | 116 | ${ECHO} "@dirrm share/squid/icons"; \ |
118 | ${ECHO} "share/squid/mib.txt"; \ | | 117 | ${ECHO} "share/squid/mib.txt"; \ |
119 | ${ECHO} "@dirrm share/squid" \ | | 118 | ${ECHO} "@dirrm share/squid" \ |
120 | ) >>${PLIST_SRC} | | 119 | ) >>${PLIST_SRC} |
121 | | | 120 | |
122 | .include "options.mk" | | 121 | .include "options.mk" |
123 | .include "../../mk/bsd.pkg.mk" | | 122 | .include "../../mk/bsd.pkg.mk" |