mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
Add sample startup script
PR: 35701 Submitted by: Kimura Fuyuki <fuyuki@mj.0038.net>
This commit is contained in:
parent
382d3f7a25
commit
a9c5b21221
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=55770
@ -29,4 +29,7 @@ post-patch:
|
||||
s,/usr/local,${PREFIX},g" ${WRKSRC}/main.h
|
||||
@${PERL} -pi -e "s,/etc,${PREFIX}/etc,g" ${WRKSRC}/${MAN8}
|
||||
|
||||
post-install:
|
||||
@${INSTALL_SCRIPT} ${FILESDIR}/fwlogwatch.sh.sample ${PREFIX}/etc/rc.d
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
22
security/fwlogwatch/files/fwlogwatch.sh.sample
Normal file
22
security/fwlogwatch/files/fwlogwatch.sh.sample
Normal file
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
|
||||
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
|
||||
echo "$0: Cannot determine the PREFIX" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -x ${PREFIX}/sbin/fwlogwatch ]; then
|
||||
${PREFIX}/sbin/fwlogwatch -R && echo -n ' fwlogwatch'
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
killall fwlogwatch && echo -n ' fwlogwatch'
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -1,5 +1,6 @@
|
||||
etc/fwlogwatch.config
|
||||
etc/fwlogwatch.template
|
||||
etc/rc.d/fwlogwatch.sh.sample
|
||||
sbin/fwlogwatch
|
||||
sbin/fwlw_notify
|
||||
sbin/fwlw_respond
|
||||
|
Loading…
Reference in New Issue
Block a user