mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
fd27bdf0d1
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.
30 lines
432 B
Bash
30 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
|