aboutsummaryrefslogtreecommitdiff
path: root/news/nntpcache/files
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2006-03-15 17:14:57 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2006-03-15 17:14:57 +0000
commit508a87ccc86722524b2b9a5f556a416ac3754c93 (patch)
tree72e35f453ec8086cf9558c02e303d2cacb26a2cd /news/nntpcache/files
parent8c3dcfda0fcaf3716125c39ac9d4d73b96ea19b0 (diff)
downloadports-508a87ccc86722524b2b9a5f556a416ac3754c93.tar.gz
ports-508a87ccc86722524b2b9a5f556a416ac3754c93.zip
- update to 3.0.2
- add spamphobia NoCeM support - take maintainership
Notes
Notes: svn path=/head/; revision=157307
Diffstat (limited to 'news/nntpcache/files')
-rw-r--r--news/nntpcache/files/nntpcached.in27
-rw-r--r--news/nntpcache/files/nntpcached.rc16
2 files changed, 27 insertions, 16 deletions
diff --git a/news/nntpcache/files/nntpcached.in b/news/nntpcache/files/nntpcached.in
new file mode 100644
index 000000000000..691fc250f3c6
--- /dev/null
+++ b/news/nntpcache/files/nntpcached.in
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# PROVIDE: nntpcached
+# REQUIRE: NETWORKING SERVERS
+# BEFORE: DAEMON
+# KEYWORD: FreeBSD shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable nntpcached:
+#
+# nntpcached_enable="YES"
+#
+
+. /etc/rc.subr
+
+name=nntpcached
+rcvar=`set_rcvar`
+
+load_rc_config $name
+
+command=%%PREFIX%%/sbin/nntpcached
+required_files="%%PREFIX%%/etc/nntpcache/nntpcache.access %%PREFIX%%/etc/nntpcache/nntpcache.config %%PREFIX%%/etc/nntpcache/nntpcache.servers"
+procname=nntpcached
+
+nntpcached_enable=${nntpcached_enable:-"NO"}
+
+run_rc_command "$1"
diff --git a/news/nntpcache/files/nntpcached.rc b/news/nntpcache/files/nntpcached.rc
deleted file mode 100644
index cc3f7c5c2283..000000000000
--- a/news/nntpcache/files/nntpcached.rc
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-case "$1" in
- start)
- if [ -x %%PREFIX%%/sbin/nntpcached ]; then
- %%PREFIX%%/sbin/nntpcached && echo -n ' nntpcached'
- fi
- ;;
- stop)
- /usr/bin/killall nntpcached >/dev/null 2>&1 && echo -n ' nntpcached'
- ;;
- *)
- echo ""
- echo "Usage: `basename $0` {start|stop}" >&2
- ;;
-esac