LOCALBASE -> PREFIX where nesessary;

add 'stop' action to webmin.sh.sample.

PR:		23093
Submitted by:	olgeni@uli.it
This commit is contained in:
Dmitry Sivachenko 2000-11-25 20:29:43 +00:00
parent 62859be383
commit fc1420a178
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=35418
3 changed files with 48 additions and 15 deletions

View File

@ -29,11 +29,12 @@ post-patch:
${WRKDIR}/webmin-${PORTVERSION}/bind8/config-freebsd-3.4
do-install:
${MKDIR} ${LOCALBASE}/lib/webmin
${CP} -r ${WRKSRC}/* ${LOCALBASE}/lib/webmin
@cd ${LOCALBASE}/lib/webmin && find . -name "*.orig" -print \
@${MKDIR} ${PREFIX}/lib/webmin
@${CP} -r ${WRKSRC}/* ${PREFIX}/lib/webmin
@cd ${PREFIX}/lib/webmin && find . -name "*.orig" -print \
| xargs ${RM}
@cd ${LOCALBASE}/lib/webmin && ./setup.sh
${MV} /tmp/webmin.sh ${LOCALBASE}/etc/rc.d/webmin.sh
@cd ${PREFIX}/lib/webmin && ./setup.sh
@${MV} /tmp/webmin.sh ${PREFIX}/etc/rc.d/webmin.sh
@${CHMOD} 554 ${PREFIX}/etc/rc.d/webmin.sh
.include <bsd.port.mk>

View File

@ -2,8 +2,24 @@
# $FreeBSD$
if [ "x$1" = "x" -o "x$1" = "xstart" ]; then
if [ -x !!PREFIX!!/etc/webmin/start ]; then
!!PREFIX!!/etc/webmin/start
fi
fi
case $1 in
start)
if [ -x !!PREFIX!!/etc/webmin/start ]; then
!!PREFIX!!/etc/webmin/start >/dev/null
echo -n ' webmin'
fi
;;
stop)
if [ -x !!PREFIX!!/etc/webmin/stop ]; then
!!PREFIX!!/etc/webmin/stop >/dev/null
echo -n ' webmin'
fi
;;
*)
echo "usage: `basename $0` {start|stop}" >&2
exit 64
;;
esac

View File

@ -2,8 +2,24 @@
# $FreeBSD$
if [ "x$1" = "x" -o "x$1" = "xstart" ]; then
if [ -x !!PREFIX!!/etc/webmin/start ]; then
!!PREFIX!!/etc/webmin/start
fi
fi
case $1 in
start)
if [ -x !!PREFIX!!/etc/webmin/start ]; then
!!PREFIX!!/etc/webmin/start >/dev/null
echo -n ' webmin'
fi
;;
stop)
if [ -x !!PREFIX!!/etc/webmin/stop ]; then
!!PREFIX!!/etc/webmin/stop >/dev/null
echo -n ' webmin'
fi
;;
*)
echo "usage: `basename $0` {start|stop}" >&2
exit 64
;;
esac