From d677765331d332afd86e3937dc5626f90aebef05 Mon Sep 17 00:00:00 2001 From: Jimmy Olgeni Date: Tue, 27 Feb 2001 20:53:58 +0000 Subject: 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. --- sysutils/webmin/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3