diff options
Diffstat (limited to 'www/squirm/Makefile')
-rw-r--r-- | www/squirm/Makefile | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/www/squirm/Makefile b/www/squirm/Makefile index 887f047d466c..2b8b7f6137b8 100644 --- a/www/squirm/Makefile +++ b/www/squirm/Makefile @@ -3,7 +3,7 @@ # Date created: 24 May 1999 # Whom: Maxim Sobolev <sobomax@altavista.net> # -# $Id$ +# $Id: Makefile,v 1.1.1.1 1999/06/09 01:39:19 steve Exp $ # DISTNAME= squirm-1.0betaB @@ -16,9 +16,29 @@ MAINTAINER= sobomax@altavista.net RUN_DEPENDS= ${PREFIX}/sbin/squid:${PORTSDIR}/www/squid22 +NO_PACKAGE= must set SQUID_UID and SQUID_GID before building + +MAKE_ENV+= SQUID_UID=${SQUID_UID} SQUID_GID=${SQUID_GID} + post-patch: @${PERL} -pi -e "s.%PREFIX%.${PREFIX}.g" ${WRKSRC}/paths.h +pre-install: +.if defined(SQUID_UID) && defined(SQUID_GID) +.if (${SQUID_UID} == "nobody") || (${SQUID_GID} == "nogroup") + @echo + @echo 'WARNING! You are going to install squirm files with either nobody owner or' + @echo 'nogroup group, which may be insecure.' + @echo +.endif +.else + @echo + @echo 'You should set SQUID_UID and SQUID_GID variables to your squid effective' + @echo 'user/group. For example: SQUID_UID=squid SQUID_GID=squid.' + @echo + @false +.endif + post-install: @echo @echo ' +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++' |