forked from Lainports/freebsd-ports
actually work. Submitted by: MikeM <MyRaQ@mgm51.com> Add dependency on security/p5-Authen-PAM, and change BUILD_DEPENDS to RUN_DEPENDS (perl modules are needed at runtime too...). Add proper return codes to the startup script.
29 lines
432 B
Bash
29 lines
432 B
Bash
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
|
|
|
case $1 in
|
|
|
|
start)
|
|
LD_PRELOAD=/usr/lib/libpam.so.1
|
|
export LD_PRELOAD
|
|
if [ -x !!PREFIX!!/etc/webmin/start ]; then
|
|
!!PREFIX!!/etc/webmin/start >/dev/null
|
|
echo -n ' webmin'
|
|
fi
|
|
exit 0
|
|
;;
|
|
|
|
stop)
|
|
if [ -x !!PREFIX!!/etc/webmin/stop ]; then
|
|
!!PREFIX!!/etc/webmin/stop >/dev/null
|
|
echo -n ' webmin'
|
|
fi
|
|
exit 0
|
|
;;
|
|
|
|
*)
|
|
echo "usage: `basename $0` {start|stop}" >&2
|
|
exit 64
|
|
;;
|
|
esac
|