2000-11-01 16:51:11 +01:00
|
|
|
# New ports collection makefile for: squirm
|
|
|
|
# Date created: 24 May 1999
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
1999-06-09 03:39:22 +02:00
|
|
|
#
|
1999-08-31 04:43:35 +02:00
|
|
|
# $FreeBSD$
|
1999-06-09 03:39:22 +02:00
|
|
|
#
|
|
|
|
|
2000-04-10 02:07:29 +02:00
|
|
|
PORTNAME= squirm
|
2001-02-05 16:33:58 +01:00
|
|
|
PORTVERSION= 1.23
|
2001-11-07 21:26:37 +01:00
|
|
|
PORTREVISION= 1
|
1999-06-09 03:39:22 +02:00
|
|
|
CATEGORIES= www
|
2003-10-27 03:58:25 +01:00
|
|
|
# this mastersite hosts an older version; mastersites with newer version have disappeared
|
|
|
|
MASTER_SITES= # http://squirm.foote.com.au/
|
2000-06-07 10:00:48 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
1999-06-09 03:39:22 +02:00
|
|
|
|
2003-07-29 11:12:37 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= A fast & configurable redirector for the Squid
|
1999-06-09 03:39:22 +02:00
|
|
|
|
2001-10-05 16:40:23 +02:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/squid:${PORTSDIR}/www/squid24
|
1999-06-09 03:39:22 +02:00
|
|
|
|
1999-06-30 21:27:31 +02:00
|
|
|
NO_PACKAGE= must set SQUID_UID and SQUID_GID before building
|
|
|
|
|
|
|
|
MAKE_ENV+= SQUID_UID=${SQUID_UID} SQUID_GID=${SQUID_GID}
|
|
|
|
|
2000-06-07 10:00:48 +02:00
|
|
|
PLIST_SUB= SQUID_UID=${SQUID_UID} SQUID_GID=${SQUID_GID}
|
1999-06-09 03:39:22 +02:00
|
|
|
|
1999-06-30 21:27:31 +02:00
|
|
|
pre-install:
|
|
|
|
.if defined(SQUID_UID) && defined(SQUID_GID)
|
|
|
|
.if (${SQUID_UID} == "nobody") || (${SQUID_GID} == "nogroup")
|
1999-08-28 00:30:39 +02: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 21:27:31 +02:00
|
|
|
.endif
|
|
|
|
.else
|
1999-08-28 00:30:39 +02: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 06:23:59 +02:00
|
|
|
@${FALSE}
|
1999-06-30 21:27:31 +02:00
|
|
|
.endif
|
|
|
|
|
1999-06-09 03:39:22 +02:00
|
|
|
post-install:
|
1999-08-28 00:30:39 +02: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 03:39:22 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|