View | Details | Raw Unified | Return to bug 120923
Collapse All | Expand All

(-)Makefile (-5 / +5 lines)
Lines 29-36 Link Here
29
29
30
CFGINPUT=	${.CURDIR}/files/sgcfg.in
30
CFGINPUT=	${.CURDIR}/files/sgcfg.in
31
31
32
SQUID_UID?=	nobody
32
SQUID_UID?=	squid
33
SQUID_GID?=	nogroup
33
SQUID_GID?=	squid
34
34
35
DATADIR?=	/var/db/${PORTNAME}
35
DATADIR?=	/var/db/${PORTNAME}
36
LOGDIR?=	/var/log
36
LOGDIR?=	/var/log
Lines 39-48 Link Here
39
PLIST_SUB=	DATADIR=${DATADIR}
39
PLIST_SUB=	DATADIR=${DATADIR}
40
40
41
pre-fetch:
41
pre-fetch:
42
	@if [ ${SQUID_UID} = "nobody" -o ${SQUID_GID} = "nogroup" ] ; then \
42
	@if [ ${SQUID_UID} = "squid" -o ${SQUID_GID} = "squid" ] ; then \
43
		${ECHO_MSG} "===>  SQUID_UID is set to \"${SQUID_UID}\" and SQUID_GID is set to \"${SQUID_GID}\"." ; \
43
		${ECHO_MSG} "===>  SQUID_UID is set to \"${SQUID_UID}\" and SQUID_GID is set to \"${SQUID_GID}\"." ; \
44
		${ECHO_MSG} "      To change this specify them with your make arguments, e.g." ; \
44
		${ECHO_MSG} "      To change this specify them with your make arguments, e.g." ; \
45
		${ECHO_MSG} "      make SQUID_UID=squid SQUID_GID=squid" ; \
45
		${ECHO_MSG} "      make SQUID_UID=nobody SQUID_GID=nogroup" ; \
46
	fi
46
	fi
47
47
48
post-patch:
48
post-patch:
Lines 137-143 Link Here
137
	@${ECHO_MSG} " "
137
	@${ECHO_MSG} " "
138
	@${ECHO_MSG} "==================================================================="
138
	@${ECHO_MSG} "==================================================================="
139
	@${ECHO_MSG} "= In order to activate ${PORTNAME} you have to edit squid.conf"
139
	@${ECHO_MSG} "= In order to activate ${PORTNAME} you have to edit squid.conf"
140
	@${ECHO_MSG} "= To the contain \"redirect_program	${PREFIX}/bin/${PORTNAME}\""
140
	@${ECHO_MSG} "= To the contain \"url_rewrite_program	${PREFIX}/bin/${PORTNAME}\""
141
	@${ECHO_MSG} "= and create a configuration file for ${PORTNAME}."
141
	@${ECHO_MSG} "= and create a configuration file for ${PORTNAME}."
142
	@${ECHO_MSG} "="
142
	@${ECHO_MSG} "="
143
	@${ECHO_MSG} "= To activate the changes do a ${PREFIX}/sbin/squid -k reconfigure"
143
	@${ECHO_MSG} "= To activate the changes do a ${PREFIX}/sbin/squid -k reconfigure"

Return to bug 120923