diff options
author | Michael Haro <mharo@FreeBSD.org> | 2001-01-07 18:57:24 +0000 |
---|---|---|
committer | Michael Haro <mharo@FreeBSD.org> | 2001-01-07 18:57:24 +0000 |
commit | 2733c5f0e6661919eb720780a5725a68205eda60 (patch) | |
tree | ab8346440045f381fc5f905db12efe99f5f6d8bc /net/iplog | |
parent | b2079ddfe5fa731a3c2759b8f27a30f16d988cbe (diff) | |
download | ports-2733c5f0e6661919eb720780a5725a68205eda60.tar.gz ports-2733c5f0e6661919eb720780a5725a68205eda60.zip |
add an example of a PREFIX/rc.d/iplog.sh script for startup as daemon.
PR: 24128
Submitted by: MAINTAINER
Notes
Notes:
svn path=/head/; revision=36900
Diffstat (limited to 'net/iplog')
-rw-r--r-- | net/iplog/Makefile | 4 | ||||
-rw-r--r-- | net/iplog/files/iplog.sh.tmpl | 15 | ||||
-rw-r--r-- | net/iplog/pkg-plist | 1 |
3 files changed, 20 insertions, 0 deletions
diff --git a/net/iplog/Makefile b/net/iplog/Makefile index d26f6c28535f..5049552fc339 100644 --- a/net/iplog/Makefile +++ b/net/iplog/Makefile @@ -39,6 +39,10 @@ post-install: @${ECHO_MSG} "See ${PREFIX}/etc/example-iplog.conf for an example" @${ECHO_MSG} "============================================================================" @${ECHO_MSG} + @${ECHO_MSG} "Installing ${PREFIX}/etc/rc.d/iplog.sh.sample file." + @${CAT} ${FILESDIR}/iplog.sh.tmpl | \ + ${SED} -e 's;PREFIX;${PREFIX};' \ + > ${PREFIX}/etc/rc.d/iplog.sh.sample .endif .include <bsd.port.post.mk> diff --git a/net/iplog/files/iplog.sh.tmpl b/net/iplog/files/iplog.sh.tmpl new file mode 100644 index 000000000000..6653b64baf6a --- /dev/null +++ b/net/iplog/files/iplog.sh.tmpl @@ -0,0 +1,15 @@ +#!/bin/sh +# + +umask 022 +arg=${1:-start} + +test -x PREFIX/sbin/iplog || exit 1 +echo -n " iplog" + +case $arg in +start) + PREFIX/sbin/iplog -d -z;; +stop) + killall iplog;; +esac diff --git a/net/iplog/pkg-plist b/net/iplog/pkg-plist index 6c24cb03e9d6..d3e90e6094f1 100644 --- a/net/iplog/pkg-plist +++ b/net/iplog/pkg-plist @@ -1,4 +1,5 @@ sbin/iplog @unexec if cmp -s %D/etc/iplog.conf %D/etc/example-iplog.conf; then rm -f %D/etc/iplog.conf; fi etc/example-iplog.conf +etc/rc.d/iplog.sh.sample @exec test -f %B/iplog.conf || cp %B/%f %B/iplog.conf |