summaryrefslogtreecommitdiff
path: root/www/squirm/Makefile
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-06-30 19:27:31 +0000
committerSteve Price <steve@FreeBSD.org>1999-06-30 19:27:31 +0000
commit274db9e5c8ff8424c602994bbe63d1fb916bb4cc (patch)
tree4346480bfacbfc1afc7aad06539b56513942a886 /www/squirm/Makefile
parentFix resource's typo. (diff)
In an attempt to avoid possible security implications with having files
owned by nobody:nogroup, install them owned by SQUIG_UID:SQUID_GID instead. Also mark this as NO_PACKAGE since you have to set these values in your environment before installing this port. Submitted by: maintainer Reviewed by: Rodney W. Grimes <rgrimes@gndrsh.aac.dev.com>
Notes
Notes: svn path=/head/; revision=19922
Diffstat (limited to 'www/squirm/Makefile')
-rw-r--r--www/squirm/Makefile22
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 ' +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'