1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-06 22:51:41 +00:00
freebsd-ports/www/squirm/Makefile

51 lines
1.5 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: squirm
# Date created: 24 May 1999
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
1999-08-31 02:43:35 +00:00
# $FreeBSD$
#
PORTNAME= squirm
2000-06-07 08:00:48 +00:00
PORTVERSION= 1.23
CATEGORIES= www
MASTER_SITES= http://www.senet.com.au/squirm/ \
http://www.elab.co.za/squirm/
2000-06-07 08:00:48 +00:00
EXTRACT_SUFX= .tgz
MAINTAINER= sobomax@FreeBSD.org
2000-06-07 08:00:48 +00:00
RUN_DEPENDS= ${LOCALBASE}/sbin/squid:${PORTSDIR}/www/squid23
NO_PACKAGE= must set SQUID_UID and SQUID_GID before building
MAKE_ENV+= SQUID_UID=${SQUID_UID} SQUID_GID=${SQUID_GID}
2000-06-07 08:00:48 +00:00
PLIST_SUB= SQUID_UID=${SQUID_UID} SQUID_GID=${SQUID_GID}
pre-install:
.if defined(SQUID_UID) && defined(SQUID_GID)
.if (${SQUID_UID} == "nobody") || (${SQUID_GID} == "nogroup")
@${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}
.endif
.else
@${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}
@${FALSE}
.endif
post-install:
@${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}
.include <bsd.port.mk>