* Update modules: postgresql, mysql, proftpd.

* Update the MSC theme.

* Stop the webmin service when the port is deinstalled, and restart it
properly when it is update (if BATCH is set then nothing happens, so
sysinstall will be happy at install time). Also, fix a $BATCH -> ${BATCH}
error in Makefile.
This commit is contained in:
Jimmy Olgeni 2002-02-08 10:05:11 +00:00
parent 5d7c7bbecc
commit 4cbed426c6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=54367
3 changed files with 18 additions and 4 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= webmin
PORTVERSION= 0.92
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= http://www.webmin.com/webmin/updates/ \
http://www.webmin.com/webmin/download/
@ -24,8 +24,10 @@ USE_PERL5= yes
SCRIPTS_ENV+= WRKDIR="${WRKDIR}"
WEBMIN_MODULES= useradmin-0.92-1.wbm.gz custom-0.92-1.wbm.gz \
jabber-0.92-1.wbm.gz bind8-0.92-1.wbm.gz
WEBMIN_THEMES=
jabber-0.92-1.wbm.gz bind8-0.92-1.wbm.gz \
postgresql-0.92-1.wbm.gz mysql-0.92-1.wbm.gz \
proftpd-0.92-1.wbm.gz
WEBMIN_THEMES= mscstyle3-0.92-1.wbt.gz
post-extract:
@if [ "${WEBMIN_MODULES}" != "" ]; then \
@ -87,10 +89,14 @@ post-install:
@${ECHO_CMD} "x!" >> ${WRKDIR}/ex.script
@${CP} -p ${TMPPLIST} ${TMPPLIST}.pre-lib-webmin
@cd ${WRKDIR} ; ex < ex.script
# stop webmin if configured and enabled at startup
@[ -n "${BATCH}" ] || ([ ! -d ${PREFIX}/etc/webmin ] || [ ! -x ${PREFIX}/etc/rc.d/webmin.sh ] || ${PREFIX}/etc/rc.d/webmin.sh stop > /dev/null)
# upgrade configuration if etc/webmin exists
@[ ! -d ${PREFIX}/etc/webmin ] || echo | nostart=Y ${PREFIX}/lib/webmin/setup.sh
# run interactive setup if not in BATCH mode and no configuration exists
@[ -n "$BATCH" ] || ([ -d ${PREFIX}/etc/webmin ] || nostart=Y ${PREFIX}/lib/webmin/setup.sh)
@[ -n "${BATCH}" ] || ([ -d ${PREFIX}/etc/webmin ] || nostart=Y ${PREFIX}/lib/webmin/setup.sh)
# start webmin again
@[ -n "${BATCH}" ] || ([ ! -d ${PREFIX}/etc/webmin ] || [ ! -x ${PREFIX}/etc/rc.d/webmin.sh ] || ${PREFIX}/etc/rc.d/webmin.sh start > /dev/null)
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

View File

@ -3,3 +3,7 @@ MD5 (useradmin-0.92-1.wbm.gz) = 1d6efe2f2d924dd2ca6c8afc37a5397e
MD5 (custom-0.92-1.wbm.gz) = 8ca81ee87a8721f4dcb3a1f11aad9586
MD5 (jabber-0.92-1.wbm.gz) = ada42bd34a54e6118f82628008dc3c10
MD5 (bind8-0.92-1.wbm.gz) = 1ed65e13dbdd43a59213885c18797c2d
MD5 (postgresql-0.92-1.wbm.gz) = b0b3a0989e9d36af19a3fe30095144a0
MD5 (mysql-0.92-1.wbm.gz) = 57d667f021a9992b32b99cc459e7b71e
MD5 (proftpd-0.92-1.wbm.gz) = 4a7867bd81e1cf0212ea6b0638c6f0a4
MD5 (mscstyle3-0.92-1.wbt.gz) = a6b3947b2e87d0a80cbdbcb8129a8c22

View File

@ -6,3 +6,7 @@ etc/rc.d/webmin.sh
@exec [ ! -d %D/etc/webmin ] || echo | nostart=Y %D/lib/webmin/setup.sh
@comment run interactive setup if not in BATCH mode and no configuration exists
@exec [ -n "$BATCH" ] || ([ -d %D/etc/webmin ] || nostart=Y %D/lib/webmin/setup.sh)
@comment restart service if package is being upgraded (the upgrade procedure stopped it)
@exec [ -n "$BATCH" ] || ([ ! -d %D/etc/webmin ] || [ ! -x %D/etc/rc.d/webmin.sh ] || %D/etc/rc.d/webmin.sh start >/dev/null )
@comment stop service at deinstall time
@unexec [ -n "$BATCH" ] || ([ ! -d %D/etc/webmin ] || [ ! -x %D/etc/rc.d/webmin.sh ] || %D/etc/rc.d/webmin.sh stop >/dev/null )