ports/189898: [patch] Add staging support to www/squid
Joseph Benden
joe at thrallingpenguin.com
Sat May 17 20:40:00 UTC 2014
>Number: 189898
>Category: ports
>Synopsis: [patch] Add staging support to www/squid
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat May 17 20:40:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Joseph Benden
>Release: FreeBSD 11
>Organization:
>Environment:
FreeBSD lucy 11.0-CURRENT FreeBSD 11.0-CURRENT #4 r264887: Thu Apr 24 12:43:46 MST 2014 root at lucy:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
Adds staging support, added shebangfixes, and USES tar:bzip2 to www/squid.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff --git a/www/squid/Makefile b/www/squid/Makefile
index e77f475..47f5f44 100644
--- a/www/squid/Makefile
+++ b/www/squid/Makefile
@@ -1,7 +1,6 @@
# Created by: Adrian Chadd <adrian at FreeBSD.org>
# $FreeBSD$
-NO_STAGE= yes
# Tunables not (yet) configurable via 'make config':
# SQUID_{U,G}ID
# Which user/group Squid should run as (default: squid/squid).
@@ -116,8 +115,19 @@ SQUID_STABLE_VER= 9
CONFLICTS_INSTALL= squid-2.[^7]* squid3?-* cacheboy-[0-9]* lusca-head-[0-9]*
USES= perl5
+USES+= shebangfix
+USES+= tar:bzip2
+SHEBANG_FILES= scripts/*.pl \
+ src/mk-globals-c.pl \
+ src/mk-string-arrays.pl \
+ contrib/rredir.pl \
+ contrib/user-agents.pl \
+ contrib/url-normalizer.pl \
+ helpers/basic_auth/multi-domain-NTLM/smb_auth.pl \
+ helpers/basic_auth/POP3/pop3.pl \
+ helpers/ntlm_auth/no_check/no_check.pl \
+ helpers/external_acl/wbinfo_group/wbinfo_group.pl
GNU_CONFIGURE= yes
-USE_BZIP2= yes
USE_RC_SUBR= squid
SQUID_UID?= squid
@@ -418,16 +428,16 @@ pre-su-install:
post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
- @${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/helpers/basic_auth/DB/passwd.sql ${EXAMPLESDIR}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/helpers/basic_auth/DB/passwd.sql ${STAGEDIR}${EXAMPLESDIR}
.endif
.if ${PORT_OPTIONS:MPINGER}
- ${CHMOD} 4510 ${PREFIX}/libexec/squid/pinger; \
- ${CHGRP} ${SQUID_GID} ${PREFIX}/libexec/squid/pinger
+ ${CHMOD} 4510 ${STAGEDIR}${PREFIX}/libexec/squid/pinger; \
+ ${CHGRP} ${SQUID_GID} ${STAGEDIR}${PREFIX}/libexec/squid/pinger
.endif
.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${docs} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${docs} ${STAGEDIR}${DOCSDIR}
.endif
@${SETENV} PKG_PREFIX=${PREFIX} \
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list