mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
Preload libpam.so.1 in the startup script so that PAM authentication will
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.
This commit is contained in:
parent
1ca61dd22e
commit
fd27bdf0d1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=55174
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= webmin
|
||||
PORTVERSION= 0.92
|
||||
PORTREVISION= 6
|
||||
PORTREVISION= 7
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://www.webmin.com/webmin/updates/ \
|
||||
http://www.webmin.com/webmin/download/
|
||||
@ -17,7 +17,8 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
||||
|
||||
MAINTAINER= olgeni@FreeBSD.org
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Net/SSLeay.pm:${PORTSDIR}/security/p5-Net-SSLeay
|
||||
RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Net/SSLeay.pm:${PORTSDIR}/security/p5-Net-SSLeay \
|
||||
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Authen/PAM.pm:${PORTSDIR}/security/p5-Authen-PAM
|
||||
|
||||
NO_BUILD= yes
|
||||
USE_PERL5= yes
|
||||
|
@ -5,10 +5,13 @@
|
||||
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)
|
||||
@ -16,6 +19,7 @@ case $1 in
|
||||
!!PREFIX!!/etc/webmin/stop >/dev/null
|
||||
echo -n ' webmin'
|
||||
fi
|
||||
exit 0
|
||||
;;
|
||||
|
||||
*)
|
||||
|
@ -5,10 +5,13 @@
|
||||
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)
|
||||
@ -16,6 +19,7 @@ case $1 in
|
||||
!!PREFIX!!/etc/webmin/stop >/dev/null
|
||||
echo -n ' webmin'
|
||||
fi
|
||||
exit 0
|
||||
;;
|
||||
|
||||
*)
|
||||
|
Loading…
Reference in New Issue
Block a user