1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-31 05:41:08 +00:00

Use SUB_FILES.

This commit is contained in:
Jimmy Olgeni 2006-01-16 21:20:09 +00:00
parent 4592c30d0d
commit 94ce4ffc8c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=153683
4 changed files with 5 additions and 34 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= webmin
PORTVERSION= 1.250
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= http://www.webmin.com/updates/:up \
${MASTER_SITE_SOURCEFORGE:S/$/:sf/}
@ -23,8 +23,9 @@ RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Net/SSLeay.pm:${PORTSDIR}/security/p5-Net
NO_BUILD= yes
USE_PERL5= yes
USE_RC_SUBR= yes
USE_RC_SUBR= webmin.sh
USE_REINPLACE= yes
SUB_LIST= PERL5=${PERL}
WEBMIN_MODULES= acl-1.250-2.wbm.gz
@ -62,11 +63,6 @@ post-patch:
do-install:
@${MKDIR} ${PREFIX}/lib/webmin
@${CP} -r ${WRKSRC}/* ${PREFIX}/lib/webmin
@${SED} -e "s=%%RC_SUBR%%=${RC_SUBR}=" \
-e "s=%%PREFIX%%=${PREFIX}=" \
-e "s=%%PERL5%%=${PERL}=" \
< ${FILESDIR}/webmin.sh.sample > ${PREFIX}/etc/rc.d/webmin.sh
@${CHMOD} 555 ${PREFIX}/etc/rc.d/webmin.sh
post-install:
@cd ${WRKSRC} ; ${FIND} * -type f -o -type l | ${SORT} | ${AWK} \

View File

@ -11,6 +11,8 @@
# webmin_enable="YES"
#
webmin_enable=${webmin_enable:-"NO"}
. %%RC_SUBR%%
name=webmin

View File

@ -1,26 +0,0 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: webmin
# REQUIRE: LOGIN
# KEYWORD: FreeBSD
#
# Add the following line to /etc/rc.conf to enable webmin:
#
# webmin_enable="YES"
#
. %%RC_SUBR%%
name=webmin
rcvar=`set_rcvar`
prefix=%%PREFIX%%
procname=%%PERL5%%
pidfile=/var/log/webmin/miniserv.pid
required_dirs=${prefix}/etc/webmin
command=${prefix}/etc/webmin/start
load_rc_config ${name}
run_rc_command "$1"

View File

@ -1,4 +1,3 @@
etc/rc.d/webmin.sh
@comment Insert PLIST.lib-webmin here
@comment -=[ begin PLIST.lib-webmin ]=-
@comment -=[ end PLIST.lib-webmin ]=-