Lines 44-52
LICENSE_FILE= ${WRKSRC}/COPYING
Link Here
|
44 |
SQUID_STABLE_VER= 13 |
44 |
SQUID_STABLE_VER= 13 |
45 |
|
45 |
|
46 |
CONFLICTS_INSTALL= squid-2.[0-9].* squid33-* cacheboy-[0-9]* lusca-head-[0-9]* |
46 |
CONFLICTS_INSTALL= squid-2.[0-9].* squid33-* cacheboy-[0-9]* lusca-head-[0-9]* |
47 |
USES= perl5 |
47 |
USES= perl5 tar:bzip2 shebangfix |
|
|
48 |
SHEBANG_FILES= scripts/AnnounceCache.pl \ |
49 |
scripts/access-log-matrix.pl \ |
50 |
scripts/cache-compare.pl \ |
51 |
scripts/cachetrace.pl \ |
52 |
scripts/check_cache.pl \ |
53 |
scripts/fileno-to-pathname.pl \ |
54 |
scripts/flag_truncs.pl \ |
55 |
scripts/icp-test.pl \ |
56 |
scripts/find-alive.pl \ |
57 |
scripts/trace-job.pl \ |
58 |
scripts/trace-master.pl \ |
59 |
scripts/icpserver.pl \ |
60 |
scripts/tcp-banger.pl \ |
61 |
scripts/udp-banger.pl \ |
62 |
scripts/upgrade-1.0-store.pl \ |
63 |
scripts/calc-must-ids.pl \ |
64 |
contrib/rredir.pl \ |
65 |
contrib/user-agents.pl \ |
66 |
contrib/url-normalizer.pl \ |
67 |
src/mk-globals-c.pl \ |
68 |
src/mk-string-arrays.pl \ |
69 |
tools/helper-mux.pl \ |
70 |
tools/helper-ok-dying.pl \ |
71 |
tools/helper-ok.pl |
48 |
GNU_CONFIGURE= yes |
72 |
GNU_CONFIGURE= yes |
49 |
USE_BZIP2= yes |
|
|
50 |
USE_RC_SUBR= squid |
73 |
USE_RC_SUBR= squid |
51 |
|
74 |
|
52 |
USERS= squid |
75 |
USERS= squid |
Lines 203-209
CONFIGURE_ARGS= --with-default-user=squid \
Link Here
|
203 |
--disable-linux-tproxy \ |
226 |
--disable-linux-tproxy \ |
204 |
--disable-translation |
227 |
--disable-translation |
205 |
|
228 |
|
206 |
NO_STAGE= yes |
|
|
207 |
.include <bsd.port.pre.mk> |
229 |
.include <bsd.port.pre.mk> |
208 |
|
230 |
|
209 |
.if ${CC:T:Mclang} == "clang" || ${CXX:T:Mclang++} == "clang++" || ${OSVERSION} >= 1000024 |
231 |
.if ${CC:T:Mclang} == "clang" || ${CXX:T:Mclang++} == "clang++" || ${OSVERSION} >= 1000024 |
Lines 470-476
PLIST_DIRS= %%ETCDIR%%/icons/silk %%ETCDIR%%/icons libexec/squid
Link Here
|
470 |
PLIST_FILES= ${etc_files:S,^,etc/,} \ |
492 |
PLIST_FILES= ${etc_files:S,^,etc/,} \ |
471 |
%%ETCDIR%%/icons/SN.png \ |
493 |
%%ETCDIR%%/icons/SN.png \ |
472 |
${icon_silk_files:S,^,%%ETCDIR%%/icons/silk/,} \ |
494 |
${icon_silk_files:S,^,%%ETCDIR%%/icons/silk/,} \ |
473 |
${libexec:S,^,libexec/squid/,} ${sbin:S,^,sbin/,} |
495 |
${libexec:S,^,libexec/squid/,} ${sbin:S,^,sbin/,} \ |
|
|
496 |
man/man8/cachemgr.cgi.8.gz \ |
497 |
man/man8/basic_db_auth.8.gz \ |
498 |
man/man8/basic_getpwnam_auth.8.gz \ |
499 |
man/man8/basic_ncsa_auth.8.gz \ |
500 |
man/man8/basic_pam_auth.8.gz \ |
501 |
man/man8/basic_radius_auth.8.gz \ |
502 |
man/man8/digest_file_auth.8.gz \ |
503 |
man/man8/ext_file_userip_acl.8.gz \ |
504 |
man/man8/ext_unix_group_acl.8.gz \ |
505 |
man/man8/negotiate_kerberos_auth.8.gz \ |
506 |
man/man8/squid.8.gz \ |
507 |
man/man1/squidclient.1.gz \ |
508 |
%%ETCDIR%%/cachemgr.conf \ |
509 |
%%ETCDIR%%/mime.conf \ |
510 |
%%ETCDIR%%/msntauth.conf \ |
511 |
%%ETCDIR%%/squid.conf \ |
512 |
%%ETCDIR%%/errorpage.css |
474 |
|
513 |
|
475 |
PLIST_FILES+= %%ETCDIR%%/errors/COPYRIGHT %%ETCDIR%%/errors/TRANSLATORS |
514 |
PLIST_FILES+= %%ETCDIR%%/errors/COPYRIGHT %%ETCDIR%%/errors/TRANSLATORS |
476 |
.for d in ${error_dirs} |
515 |
.for d in ${error_dirs} |
Lines 479-485
PLIST_FILES+= ${error_files:S,^,%%ETCDIR%%/errors/${d}/,}
Link Here
|
479 |
.endfor |
518 |
.endfor |
480 |
PLIST_FILES+= ${error_dir_links:S,^,%%ETCDIR%%/errors/,} |
519 |
PLIST_FILES+= ${error_dir_links:S,^,%%ETCDIR%%/errors/,} |
481 |
PLIST_DIRS+= %%ETCDIR%%/errors |
520 |
PLIST_DIRS+= %%ETCDIR%%/errors |
482 |
PLIST_DIRSTRY+= %%ETCDIR%% |
521 |
PLIST_DIRSTRY+= %%ETCDIR%% /var/log/squid /var/run/squid \ |
|
|
522 |
/var/squid/cache/squid /var/squid/cache \ |
523 |
/var/squid/logs /var/squid %%EXAMPLESDIR%% |
483 |
|
524 |
|
484 |
post-patch: |
525 |
post-patch: |
485 |
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ |
526 |
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ |
Lines 497-511
pre-su-install:
Link Here
|
497 |
post-install: |
538 |
post-install: |
498 |
.if ${PORT_OPTIONS:MEXAMPLES} |
539 |
.if ${PORT_OPTIONS:MEXAMPLES} |
499 |
@${MKDIR} ${EXAMPLESDIR} |
540 |
@${MKDIR} ${EXAMPLESDIR} |
500 |
${INSTALL_DATA} ${WRKSRC}/helpers/basic_auth/DB/passwd.sql ${EXAMPLESDIR} |
541 |
${INSTALL_DATA} ${WRKSRC}/helpers/basic_auth/DB/passwd.sql ${STAGEDIR}${EXAMPLESDIR} |
501 |
.endif |
542 |
.endif |
502 |
.if ${PORT_OPTIONS:MICMP} |
543 |
.if ${PORT_OPTIONS:MICMP} |
503 |
${CHMOD} 4510 ${PREFIX}/libexec/squid/pinger; \ |
544 |
${CHMOD} 4510 ${STAGEDIR}${PREFIX}/libexec/squid/pinger; \ |
504 |
${CHGRP} squid ${PREFIX}/libexec/squid/pinger |
545 |
${CHGRP} squid ${STAGEDIR}${PREFIX}/libexec/squid/pinger |
505 |
.endif |
546 |
.endif |
506 |
.if ${PORT_OPTIONS:MDOCS} |
547 |
.if ${PORT_OPTIONS:MDOCS} |
507 |
@${MKDIR} ${DOCSDIR} |
548 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
508 |
cd ${WRKSRC} && ${INSTALL_DATA} ${docs} ${DOCSDIR} |
549 |
cd ${WRKSRC} && ${INSTALL_DATA} ${docs} ${STAGEDIR}${DOCSDIR} |
509 |
.endif |
550 |
.endif |
510 |
@${SETENV} PKG_PREFIX=${PREFIX} \ |
551 |
@${SETENV} PKG_PREFIX=${PREFIX} \ |
511 |
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL |
552 |
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL |