1999-06-09 01:39:22 +00:00
|
|
|
# New ports collection makefile for: squirm
|
|
|
|
# Version required: 1.0betaB
|
|
|
|
# Date created: 24 May 1999
|
|
|
|
# Whom: Maxim Sobolev <sobomax@altavista.net>
|
|
|
|
#
|
1999-08-31 02:43:35 +00:00
|
|
|
# $FreeBSD$
|
1999-06-09 01:39:22 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= squirm-1.0betaB
|
|
|
|
PKGNAME= squirm-1.0b
|
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://www.senet.com.au/squirm/ \
|
|
|
|
http://www.elab.co.za/squirm/
|
|
|
|
|
|
|
|
MAINTAINER= sobomax@altavista.net
|
|
|
|
|
2000-02-15 23:54:36 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/squid:${PORTSDIR}/www/squid22
|
1999-06-09 01:39:22 +00:00
|
|
|
|
1999-06-30 19:27:31 +00:00
|
|
|
NO_PACKAGE= must set SQUID_UID and SQUID_GID before building
|
|
|
|
|
|
|
|
MAKE_ENV+= SQUID_UID=${SQUID_UID} SQUID_GID=${SQUID_GID}
|
|
|
|
|
1999-06-09 01:39:22 +00:00
|
|
|
post-patch:
|
|
|
|
@${PERL} -pi -e "s.%PREFIX%.${PREFIX}.g" ${WRKSRC}/paths.h
|
|
|
|
|
1999-06-30 19:27:31 +00:00
|
|
|
pre-install:
|
|
|
|
.if defined(SQUID_UID) && defined(SQUID_GID)
|
|
|
|
.if (${SQUID_UID} == "nobody") || (${SQUID_GID} == "nogroup")
|
1999-08-27 22:30:39 +00:00
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} 'WARNING! You are going to install squirm files with either nobody owner or'
|
|
|
|
@${ECHO_MSG} 'nogroup group, which may be insecure.'
|
|
|
|
@${ECHO_MSG}
|
1999-06-30 19:27:31 +00:00
|
|
|
.endif
|
|
|
|
.else
|
1999-08-27 22:30:39 +00:00
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} 'You should set SQUID_UID and SQUID_GID variables to your squid effective'
|
|
|
|
@${ECHO_MSG} 'user/group. For example: SQUID_UID=squid SQUID_GID=squid.'
|
|
|
|
@${ECHO_MSG}
|
1999-08-23 04:23:59 +00:00
|
|
|
@${FALSE}
|
1999-06-30 19:27:31 +00:00
|
|
|
.endif
|
|
|
|
|
1999-06-09 01:39:22 +00:00
|
|
|
post-install:
|
1999-08-27 22:30:39 +00:00
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} ' +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'
|
|
|
|
@${ECHO_MSG} ' You have to manually add "redirect_program ${PREFIX}/bin/squirm"'
|
|
|
|
@${ECHO_MSG} ' into your squid.conf file.'
|
|
|
|
@${ECHO_MSG} ' For help on configuring squirm try http://www.senet.com.au/squirm/'
|
|
|
|
@${ECHO_MSG} ' +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'
|
|
|
|
@${ECHO_MSG}
|
1999-06-09 01:39:22 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|