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:
parent
35764879e6
commit
e63ad781ec
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=30242
@ -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}
|
||||
|
27
japanese/vje30-trial/files/vje.sh
Normal file
27
japanese/vje30-trial/files/vje.sh
Normal 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
|
@ -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
|
||||
|
27
japanese/vje30/files/vje.sh
Normal file
27
japanese/vje30/files/vje.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user