diff options
author | edwin <edwin@FreeBSD.org> | 2006-01-05 05:49:12 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2006-01-05 05:49:12 +0800 |
commit | e765396a55a3665d1aea215a64f0753f064aa344 (patch) | |
tree | 7628aa725f92c2cdf6e5ee91329439a660a71ead /news | |
parent | c399b5e91f3c1188e8c57d87b84283dfe1c12dc3 (diff) | |
download | freebsd-ports-gnome-e765396a55a3665d1aea215a64f0753f064aa344.tar.gz freebsd-ports-gnome-e765396a55a3665d1aea215a64f0753f064aa344.tar.zst freebsd-ports-gnome-e765396a55a3665d1aea215a64f0753f064aa344.zip |
Update port: news/newscache , Added rc script
news/newscache is lacking an rc script, so I hacked this one up
PR: ports/91319
Submitted by: Arjan Koole <arjan@blackoak.net>
Diffstat (limited to 'news')
-rw-r--r-- | news/newscache/Makefile | 14 | ||||
-rw-r--r-- | news/newscache/files/newscache.sh.in | 26 | ||||
-rw-r--r-- | news/newscache/pkg-plist | 1 |
3 files changed, 36 insertions, 5 deletions
diff --git a/news/newscache/Makefile b/news/newscache/Makefile index 2b97e99184f0..63d98d6f973a 100644 --- a/news/newscache/Makefile +++ b/news/newscache/Makefile @@ -7,7 +7,7 @@ PORTNAME= newscache PORTVERSION= 1.2.r.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= news MASTER_SITES= http://www.linuxhacker.at/linux/downloads/src/ DISTNAME= NewsCache-${PORTVERSION:S/.r./rc/} @@ -18,12 +18,13 @@ COMMENT= NewsCache is a free cache server for USENET News LIB_DEPENDS= socket[+][+].1:${PORTSDIR}/net/libsocket++ USE_AUTOTOOLS= automake:19 autoheader:259 autoconf:259 -USE_GETOPT_LONG= yes -USE_REINPLACE= yes -AUTOMAKE_ARGS= --add-missing +USE_GETOPT_LONG=yes +USE_REINPLACE= yes +AUTOMAKE_ARGS= --add-missing CONFIGURE_ENV= CPPFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" -CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc +CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc +SUB_FILES= newscache.sh MAN5= newscache.conf.5 MAN8= newscache.8 newscacheclean.8 updatenews.8 @@ -35,4 +36,7 @@ post-patch: pre-configure: (cd ${WRKSRC}; ${SETENV} ${SCRIPTS_ENV} ${SH} ./autogen) +post-install: + cp ${WRKDIR}/newscache.sh ${PREFIX}/etc/rc.d + .include <bsd.port.mk> diff --git a/news/newscache/files/newscache.sh.in b/news/newscache/files/newscache.sh.in new file mode 100644 index 000000000000..46b4167bad41 --- /dev/null +++ b/news/newscache/files/newscache.sh.in @@ -0,0 +1,26 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: newscache +# REQUIRE: DAEMON +# KEYWORD: FreeBSD +# +# Add the following line to /etc/rc.conf to enable newscache: +# +# newscache_enable="YES" +# +newscache_enable=${newscache_enable-"NO"} +newscache_flags=${newscache_flags-""} + +. %%RC_SUBR%% + +name=newscache +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/${name} +pidfile=/var/run/${name}.pid +sig_stop=-KILL + +load_rc_config ${name} +run_rc_command "$1" diff --git a/news/newscache/pkg-plist b/news/newscache/pkg-plist index f6d74ddf91be..47ea849c34cc 100644 --- a/news/newscache/pkg-plist +++ b/news/newscache/pkg-plist @@ -1,5 +1,6 @@ bin/updatenews etc/newscache.conf-dist etc/newscache.auth-dist +etc/rc.d/newscache.sh sbin/newscache sbin/newscacheclean |