summaryrefslogtreecommitdiff
path: root/sysutils/webmin
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2001-02-27 20:53:58 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2001-02-27 20:53:58 +0000
commitd677765331d332afd86e3937dc5626f90aebef05 (patch)
treec9ca32165179723857ba18f4cfa5cac951378c35 /sysutils/webmin
parentProvide sensible defaults for the postgresql module (correct username for (diff)
Add WITH_UPDATES install option.
When the webmin version changes on the master site, patches for previous versions may be removed (they are not stored in a version dependent subdirectory). This means that the port of version A will break as soon as version B is released, because the required updates disappear. If the updates are optional, webmin users still get a chance to install the port without updating their ports collection. It is also easier to support users because, by default, they will run the same "official" version of webmin. PORTREVISION bump: if you reinstall without WITH_UPDATES you will get an unpatched version of webmin.
Notes
Notes: svn path=/head/; revision=38863
Diffstat (limited to 'sysutils/webmin')
-rw-r--r--sysutils/webmin/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysutils/webmin/Makefile b/sysutils/webmin/Makefile
index 9277670e15df..bc602974f1b5 100644
--- a/sysutils/webmin/Makefile
+++ b/sysutils/webmin/Makefile
@@ -7,7 +7,7 @@
PORTNAME= webmin
PORTVERSION= 0.84
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= http://webadmin.sourceforge.net/webmin/updates/ \
http://webadmin.sourceforge.net/webmin/download/
@@ -23,12 +23,16 @@ NO_BUILD= yes
IS_INTERACTIVE= yes
USE_PERL5= yes
+.if defined(WITH_UPDATES)
WEBMIN_MODULES= apache.wbm.gz mysql.wbm.gz status.wbm.gz file.wbm.gz
+.endif
post-extract:
+.if defined(WITH_UPDATES)
@for webmin_module in ${WEBMIN_MODULES}; do \
${TAR} xfz ${DISTDIR}/$${webmin_module} -C ${WRKSRC}; \
done
+.endif
@find ${WRKSRC} -name "*.bak" | xargs ${RM}
post-patch: