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

(-)/usr/ports/local/www/pound/Makefile (-7 / +31 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	pound
8
PORTNAME=	pound
9
PORTVERSION=	1.8.5
9
PORTVERSION=	1.9
10
CATEGORIES=	www net
10
CATEGORIES=	www net
11
MASTER_SITES=	http://www.apsis.ch/pound/ \
11
MASTER_SITES=	http://www.apsis.ch/pound/ \
12
		ftp://ftp.nuug.no/pub/anders/distfiles/
12
		ftp://ftp.nuug.no/pub/anders/distfiles/
Lines 18-33 Link Here
18
18
19
GNU_CONFIGURE=	yes
19
GNU_CONFIGURE=	yes
20
USE_OPENSSL=	yes
20
USE_OPENSSL=	yes
21
USE_RC_SUBR=	${PORTNAME}.sh
22
23
SUB_LIST+=	NAME=${PORTNAME}
21
24
22
CONFIGURE_ENV+=	PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
25
CONFIGURE_ENV+=	PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
23
		PTHREAD_LIBS="${PTHREAD_LIBS}"
26
		PTHREAD_LIBS="${PTHREAD_LIBS}"
24
MAKE_ARGS+=	F_CONF=${PREFIX}/etc/pound.cfg
27
MAKE_ARGS+=	F_CONF=${PREFIX}/etc/${PORTNAME}.cfg
25
28
26
MAN8=	pound.8
29
MAN8=	pound.8
27
30
31
OPTIONS+=	DAEMON		"Running as a daemon" on \
32
		LOG		"With Syslog support" on \
33
		MSDAV		"With the Microsoft WebDAV extensions support" off
34
35
.include <bsd.port.pre.mk>
36
37
.if !defined(WITH_DAEMON)
38
CONFIGURE_ARGS+=	--disable-daemon
39
.endif
40
41
.if !defined(WITH_LOG)
42
CONFIGURE_ARGS+=	--without-log
43
.endif
44
45
.if defined(WITH_MSDAV)
46
CONFIGURE_ARGS+=	--enable-msdav
47
.endif
48
28
post-install:
49
post-install:
29
	@${ECHO} "===>  Installing ${PREFIX}/etc/rc.d/pound.sh"
50
.if !defined(NOPORTDOCS)
30
	@${ECHO} "===>  startup file as ${PREFIX}/etc/rc.d/pound.sh.sample"
51
	@${MKDIR} ${DOCSDIR}
31
	@${INSTALL_SCRIPT} -m 751 ${FILESDIR}/pound.sh \
52
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
32
			${PREFIX}/etc/rc.d/pound.sh.sample
53
	${INSTALL_DATA} ${WRKSRC}/FAQ ${DOCSDIR}
33
.include <bsd.port.mk>
54
.endif
55
	@${CAT} ${PKGMESSAGE}
56
57
.include <bsd.port.post.mk>
(-)/usr/ports/local/www/pound/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (Pound-1.8.5.tgz) = 508ef4411ae4bf292c17c966746935d5
1
MD5 (Pound-1.9.tgz) = f1ec64357e0a53ed8050847517209525
2
SIZE (Pound-1.8.5.tgz) = 142055
2
SIZE (Pound-1.9.tgz) = 143284
(-)/usr/ports/local/www/pound/files/pound.sh (-22 lines)
Lines 1-22 Link Here
1
#!/bin/sh
2
3
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
4
    echo "$0: Cannot determine the PREFIX" >&2
5
    exit 1
6
fi
7
8
case "$1" in
9
	start)
10
	if [ -x ${PREFIX}/sbin/pound ]; then
11
		${PREFIX}/sbin/pound &
12
		echo -n ' pound'
13
	fi
14
	;;
15
	stop)
16
		killall pound
17
		echo -n ' pound'
18
	;;
19
	*)
20
	echo "Usage: `basename $0` {start|stop}" >&2
21
	;;
22
esac
(-)/usr/ports/local/www/pound/files/pound.sh.in (+30 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
6
# PROVIDE: %%NAME%%
7
# REQUIRE: NETWORKING SERVERS
8
# BEFORE:  DAEMON
9
# KEYWORD: FreeBSD shutdown
10
11
# Add the following line to /etc/rc.conf to enable `%%NAME%%':
12
#
13
#%%NAME%%_enable="YES"
14
#
15
# and be sure to configure %%PREFIX%%/etc/%%NAME%%.conf
16
17
. "%%RC_SUBR%%"
18
19
name="%%NAME%%"
20
rcvar=`set_rcvar`
21
22
command="%%PREFIX%%/sbin/$name"
23
pidfile="/var/run/$name.pid"
24
required_files="%%PREFIX%%/etc/$name.cfg"
25
26
# read configuration and set defaults
27
load_rc_config $name
28
: ${%%NAME%%_enable="NO"}
29
30
run_rc_command "$1"
(-)/usr/ports/local/www/pound/pkg-message (+6 lines)
Line 0 Link Here
1
******************************************************
2
3
To run pound from startup, add 'pound_enable="YES"'
4
in your /etc/rc.conf.
5
6
******************************************************
(-)/usr/ports/local/www/pound/pkg-plist (-1 / +3 lines)
Lines 1-2 Link Here
1
etc/rc.d/pound.sh.sample
2
sbin/pound
1
sbin/pound
2
%%PORTDOCS%%%%DOCSDIR%%/README
3
%%PORTDOCS%%%%DOCSDIR%%/FAQ
4
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 82998