1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00

Add startup script for apinger.

Submitted by:		rob@debank.tv
Approved by:		roberto (mentor)
This commit is contained in:
Michael Landin 2003-06-04 09:49:31 +00:00
parent 5cf3ad9d98
commit 1c4b4bf577
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=82247
3 changed files with 31 additions and 1 deletions

View File

@ -8,20 +8,30 @@
PORTNAME= apinger
PORTVERSION= 0.6.1
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.bnet.pl/~jajcus/apinger/
MAINTAINER= mich@FreeBSD.org
COMMENT= An IP device monitoring tool
USE_REINPLACE= yes
GNU_CONFIGURE= yes
post-extract:
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${FILESDIR}/apinger.sh
post-install:
${INSTALL_DATA} ${WRKSRC}/src/apinger.conf ${PREFIX}/etc/apinger.conf.sample
${INSTALL_SCRIPT} ${FILESDIR}/apinger.sh \
${PREFIX}/etc/rc.d/apinger.sh.sample
.if !defined(BATCH)
@${ECHO_MSG} ""
@${ECHO_MSG} "###############################################################################"
@${ECHO_MSG} "# Please edit ${PREFIX}/etc/apinger.conf to your needs. #"
@${ECHO_MSG} "# Please edit ${PREFIX}/etc/apinger.conf to your needs. #"
@${ECHO_MSG} "# A sample shell script has been installed in ${PREFIX}/etc/rc.d/ #"
@${ECHO_MSG} "# rename it to automatically start apinger at boot. #"
@${ECHO_MSG} "###############################################################################"
.endif

View File

@ -0,0 +1,19 @@
#!/bin/sh
case $1 in
start)
[ -x %%PREFIX%%/sbin/apinger ] && %%PREFIX%%/sbin/apinger && echo -n ' apinger'
;;
restart)
killall -HUP apinger && echo -n ' apinger'
;;
stop)
killall apinger && echo -n ' apinger'
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
exit 64
;;
esac
exit 0

View File

@ -1,5 +1,6 @@
sbin/apinger
etc/apinger.conf.sample
etc/rc.d/apinger.sh.sample
%%PORTDOCS%%share/doc/apinger/README
%%PORTDOCS%%share/doc/apinger/NEWS
%%PORTDOCS%%share/doc/apinger/AUTHORS