diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2006-01-04 21:49:12 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2006-01-04 21:49:12 +0000 |
commit | d4c35c7632d4ec76deadc94d3436c8f357bdb70e (patch) | |
tree | b1dbb86ba3bd4703ae685794c4a2afcc943bec74 /news | |
parent | e6cb68266d410f9b0f6a30db4f7787877370036e (diff) | |
download | ports-d4c35c7632d4ec76deadc94d3436c8f357bdb70e.tar.gz ports-d4c35c7632d4ec76deadc94d3436c8f357bdb70e.zip |
Notes
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 |