diff options
Diffstat (limited to '')
-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 |