ports/142829: mail/squirrelmail-vlogin-plugin update

Neil Darlow neil at darlow.co.uk
Thu Jan 14 13:20:07 UTC 2010


>Number:         142829
>Category:       ports
>Synopsis:       mail/squirrelmail-vlogin-plugin update
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 14 13:20:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Neil Darlow
>Release:        FreeBSD 8.0-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD router.darlow.co.uk 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Thu Jan 7 11:15:25 GMT 2010 root at router.darlow.co.uk:/usr/obj/usr/src/sys/ROUTER i386
>Description:
The I've been dug out of the snow update!
Updates mail/squirrelmail-vlogin-plugin from 3.10.1 to 3.10.2 and:
1) Introduces USE_SM_COMPAT instead of RUN_DEPENDS
2) Manages extra documentation based upon NOPORTDOCS state
3) Has cleaned-up Makefile and pkg-plist
>How-To-Repeat:
N/A
>Fix:
Port directory diff attached.
diff -ur squirrelmail-vlogin-plugin.orig/Makefile squirrelmail-vlogin-plugin/Makefile
--- squirrelmail-vlogin-plugin.orig/Makefile	2009-11-11 11:39:08.000000000 +0000
+++ squirrelmail-vlogin-plugin/Makefile	2010-01-14 12:54:15.000000000 +0000
@@ -4,22 +4,38 @@
 #
 # $FreeBSD: ports/mail/squirrelmail-vlogin-plugin/Makefile,v 1.14 2009/11/10 19:23:06 tabthorpe Exp $
 
-PORTNAME=		vlogin
-PORTVERSION=		3.10.1
-CATEGORIES=		mail www
-MASTER_SITES=		http://www.squirrelmail.org/plugins/
-PKGNAMEPREFIX=		squirrelmail-
-PKGNAMESUFFIX=		-plugin
-DISTNAME=		${PORTNAME}-${PORTVERSION}-1.2.7
-DIST_SUBDIR=		squirrelmail
+PORTNAME=	vlogin
+PORTVERSION=	3.10.2
+CATEGORIES=	mail www
+MASTER_SITES=	http://www.squirrelmail.org/plugins/
+PKGNAMEPREFIX=	squirrelmail-
+PKGNAMESUFFIX=	-plugin
+DISTNAME=	${PORTNAME}-${PORTVERSION}-1.2.7
+DIST_SUBDIR=	squirrelmail
 
-MAINTAINER=		neil at darlow.co.uk
-COMMENT=		Adds multi-site-hosting capabilities to SquirrelMail
+MAINTAINER=	neil at darlow.co.uk
+COMMENT=	Adds multi-site-hosting capabilities to SquirrelMail
 
-RUN_DEPENDS=		squirrelmail-compatibility-plugin>=2.0.14:${PORTSDIR}/mail/squirrelmail-compatibility-plugin
+USE_PERL5_RUN=	yes
+USE_SM_COMPAT=	yes
 
-USE_PERL5_RUN=		yes
+DOCSDIR=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
 
 .include <bsd.port.pre.mk>
-.include "../squirrelmail/bsd.squirrelmail.mk"
+.include "${PORTSDIR}/mail/squirrelmail/bsd.squirrelmail.mk"
+
+# We need to rearrange, install and cleanup documentation pre-install
+# because bsd.squirrelmail.mk installs everything under ${WRKSRC}/${PORTNAME}.
+pre-install::
+.if !defined(NOPORTDOCS)
+	cd ${WRKSRC}/${PORTNAME}/docs \
+	&& ${RM} .htaccess index.php \
+	&& ${MKDIR} ${DOCSDIR} \
+	&& ${COPYTREE_SHARE} \* ${DOCSDIR} \
+	&& cd ${WRKSRC}/${PORTNAME} \
+	&& ${RM} -rf README docs
+.else
+	cd ${WRKSRC}/${PORTNAME} && ${RM} -rf README docs
+.endif
+
 .include <bsd.port.post.mk>
diff -ur squirrelmail-vlogin-plugin.orig/distinfo squirrelmail-vlogin-plugin/distinfo
--- squirrelmail-vlogin-plugin.orig/distinfo	2009-01-18 10:26:17.000000000 +0000
+++ squirrelmail-vlogin-plugin/distinfo	2010-01-14 10:13:49.000000000 +0000
@@ -1,3 +1,3 @@
-MD5 (squirrelmail/vlogin-3.10.1-1.2.7.tar.gz) = 4fd840c950bdc4d957e53937370ea5d6
-SHA256 (squirrelmail/vlogin-3.10.1-1.2.7.tar.gz) = 5e1aa6eda401dfe70c1b4dddddf37c6bcc508082657b3b3fb96c52288f5ae947
-SIZE (squirrelmail/vlogin-3.10.1-1.2.7.tar.gz) = 70058
+MD5 (squirrelmail/vlogin-3.10.2-1.2.7.tar.gz) = da2098ca1ada1fca40ad28006b24b081
+SHA256 (squirrelmail/vlogin-3.10.2-1.2.7.tar.gz) = 5ef49e8882a837583309290ae5ebac7a81b8d4ae3e2475c43f0ce61bd44be4f0
+SIZE (squirrelmail/vlogin-3.10.2-1.2.7.tar.gz) = 69345
diff -ur squirrelmail-vlogin-plugin.orig/pkg-plist squirrelmail-vlogin-plugin/pkg-plist
--- squirrelmail-vlogin-plugin.orig/pkg-plist	2009-01-18 10:26:17.000000000 +0000
+++ squirrelmail-vlogin-plugin/pkg-plist	2010-01-14 12:08:17.000000000 +0000
@@ -1,35 +1,36 @@
 @unexec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --remove-plugin %%SQUIRREL_PLUGIN_NAME%%; fi
-%%SQUIRRELDIR%%/plugins/vlogin/data/service_levels/index.php
-%%SQUIRRELDIR%%/plugins/vlogin/data/service_levels/premium_example.php
-%%SQUIRRELDIR%%/plugins/vlogin/data/domains/example.com.vlogin.config.php
-%%SQUIRRELDIR%%/plugins/vlogin/data/domains/index.php
-%%SQUIRRELDIR%%/plugins/vlogin/data/index.php
+%%SQUIRRELDIR%%/plugins/vlogin/data/.htaccess
 %%SQUIRRELDIR%%/plugins/vlogin/data/config_default.php
 %%SQUIRRELDIR%%/plugins/vlogin/data/config_example.php
 %%SQUIRRELDIR%%/plugins/vlogin/data/config_example_per_user_functions_only.php
 %%SQUIRRELDIR%%/plugins/vlogin/data/config_example_service_level_functions_only.php
 %%SQUIRRELDIR%%/plugins/vlogin/data/config_example_typical.php
+%%SQUIRRELDIR%%/plugins/vlogin/data/domains/example.com.vlogin.config.php
+%%SQUIRRELDIR%%/plugins/vlogin/data/domains/index.php
 %%SQUIRRELDIR%%/plugins/vlogin/data/hostmap_example.php
+%%SQUIRRELDIR%%/plugins/vlogin/data/index.php
 %%SQUIRRELDIR%%/plugins/vlogin/data/meta_config.add_default_domain.php
-%%SQUIRRELDIR%%/plugins/vlogin/data/meta_config_example.php
 %%SQUIRRELDIR%%/plugins/vlogin/data/meta_config.strip_domain.php
+%%SQUIRRELDIR%%/plugins/vlogin/data/meta_config_example.php
+%%SQUIRRELDIR%%/plugins/vlogin/data/service_levels/index.php
+%%SQUIRRELDIR%%/plugins/vlogin/data/service_levels/premium_example.php
 %%SQUIRRELDIR%%/plugins/vlogin/data/service_levels_example.php
 %%SQUIRRELDIR%%/plugins/vlogin/data/users_example.php
-%%SQUIRRELDIR%%/plugins/vlogin/data/users.paul.php
-%%SQUIRRELDIR%%/plugins/vlogin/CONFIGURATION
-%%SQUIRRELDIR%%/plugins/vlogin/COPYING
-%%SQUIRRELDIR%%/plugins/vlogin/INSTALL
-%%SQUIRRELDIR%%/plugins/vlogin/README
 %%SQUIRRELDIR%%/plugins/vlogin/functions.php
 %%SQUIRRELDIR%%/plugins/vlogin/index.php
+%%SQUIRRELDIR%%/plugins/vlogin/make_release.sh
 %%SQUIRRELDIR%%/plugins/vlogin/per_user_functions.php
 %%SQUIRRELDIR%%/plugins/vlogin/service_level_functions.php
 %%SQUIRRELDIR%%/plugins/vlogin/setup.php
 %%SQUIRRELDIR%%/plugins/vlogin/sql_settings_lookup.php
-%%SQUIRRELDIR%%/plugins/vlogin/make_release.sh
 %%SQUIRRELDIR%%/plugins/vlogin/version
+%%PORTDOCS%%%%DOCSDIR%%/CONFIGURATION
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/README
 @dirrmtry %%SQUIRRELDIR%%/plugins/vlogin/data/service_levels
 @dirrmtry %%SQUIRRELDIR%%/plugins/vlogin/data/domains
 @dirrmtry %%SQUIRRELDIR%%/plugins/vlogin/data
 @dirrmtry %%SQUIRRELDIR%%/plugins/vlogin
+%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
 @exec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin %%SQUIRREL_PLUGIN_NAME%%; fi
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list