1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Replace the startup script with the new one that supports {start|stop}.

This commit is contained in:
Akinori MUSHA 2000-07-05 17:09:23 +00:00
parent 35764879e6
commit e63ad781ec
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=30242
4 changed files with 56 additions and 0 deletions

View File

@ -50,6 +50,7 @@ BINSTUFF= vje \
post-patch:
@cd ${WRKSRC}/vje30/bin && ${RM} swingall.jar
@find ${WRKSRC} -name '*.orig' -delete
@${CP} ${FILESDIR}/vje.sh ${WRKSRC}/etc/rc.d/
do-install:
@cd ${WRKSRC} && tar cf - . | tar xf - -C ${PREFIX}

View File

@ -0,0 +1,27 @@
#!/bin/sh
#
# $FreeBSD$
vjed="/usr/local/vje30/bin/vjed"
case "$1" in
start)
if [ -x $vjed ] ; then
echo -n ' vje30:'
$vjed &
fi
;;
stop)
if killall vjed 2>/dev/null; then
echo -n ' vje30'
else
echo -n ' vje30: not running'
fi
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
exit 64
;;
esac
exit 0

View File

@ -82,6 +82,7 @@ post-extract:
post-patch:
@cd ${WRKSRC}/vje30/bin && ${RM} swingall.jar
@find ${WRKSRC} -name '*.orig' -delete
@${CP} ${FILESDIR}/vje.sh ${WRKSRC}/etc/rc.d/
.if defined(WITH_MINORUPDATE)
@${MV} ${WRKDIR}/vje ${WRKSRC}/vje30/bin/
.endif

View File

@ -0,0 +1,27 @@
#!/bin/sh
#
# $FreeBSD$
vjed="/usr/local/vje30/bin/vjed"
case "$1" in
start)
if [ -x $vjed ] ; then
echo -n ' vje30:'
$vjed &
fi
;;
stop)
if killall vjed 2>/dev/null; then
echo -n ' vje30'
else
echo -n ' vje30: not running'
fi
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
exit 64
;;
esac
exit 0