Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Mar 2007 22:23:16 -0400 (EDT)
From:      Thomas Abthorpe <thomas@goodking.ca>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        thomas@goodking.ca
Subject:   ports/110310: [MAINTAINER] mail/squirrelmail-pupdate-plugin: fix automatic activation
Message-ID:  <200703150223.l2F2NGfs009472@goodking.goodking.ca>
Resent-Message-ID: <200703150350.l2F3o16n064846@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         110310
>Category:       ports
>Synopsis:       [MAINTAINER] mail/squirrelmail-pupdate-plugin: fix automatic activation
>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 Mar 15 03:50:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Thomas Abthorpe
>Release:        FreeBSD 6.2-RELEASE-p1 i386
>Organization:
GoodKing.Ca
>Environment:
System: FreeBSD goodking.goodking.ca 6.2-RELEASE-p1 FreeBSD 6.2-RELEASE-p1 #2: Thu Feb 15 14:49:58 EST 2007
>Description:
- fix automatic activation
- move toward new SM plugin configuration standard
- compat plugin not required, remove reference
- bump PORTREVISION

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- squirrelmail-pupdate-plugin-0.7_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/squirrelmail-pupdate-plugin/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- Makefile	4 Jul 2006 23:04:48 -0000	1.1
+++ Makefile	15 Mar 2007 02:18:21 -0000
@@ -5,20 +5,22 @@
 # $FreeBSD: ports/mail/squirrelmail-pupdate-plugin/Makefile,v 1.1 2006/07/04 23:04:48 garga Exp $
 #
 
-PORTNAME=	squirrelmail-${SQUIRREL_PLUGIN_NAME}-plugin
+PORTNAME=	pupdate
 PORTVERSION=	0.7
+PORTREVISION=	1
 CATEGORIES=	mail www
 MASTER_SITES=	http://www.squirrelmail.org/plugins/
-DISTNAME=	${SQUIRREL_PLUGIN_NAME}.${PORTVERSION}-1.4.2
+PKGNAMEPREFIX=	squirrelmail-
+PKGNAMESUFFIX=	-plugin
+DISTNAME=	${PORTNAME}.${PORTVERSION}-1.4.2
 DIST_SUBDIR=	squirrelmail
 
 MAINTAINER=	thomas@goodking.ca
 COMMENT=	Checks for plugin updates by parsing the SM site
 
-RUN_DEPENDS=	${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail \
-		${SQUIRRELDIR}/plugins/compatibility:${PORTSDIR}/mail/squirrelmail-compatibility-plugin
+RUN_DEPENDS=	${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail
 
-SQUIRREL_PLUGIN_NAME=	pupdate
+SQUIRREL_PLUGIN_NAME=	${PORTNAME}
 
 .ifdef SQUIRRELDIR
 PLIST_SUB+=	SQUIRRELDIR=${SQUIRRELDIR}
@@ -34,6 +36,7 @@
 SUB_LIST+=	"SQUIRRELDIR=squirrelmail"
 .endif
 .endif
+PLIST_SUB+=	SQUIRREL_PLUGIN_NAME=${SQUIRREL_PLUGIN_NAME}
 
 SUB_FILES=	pkg-message
 
@@ -43,6 +46,8 @@
 USE_PHP=		yes
 WANT_PHP_WEB=		yes
 
+.include <bsd.port.pre.mk>
+
 pre-everything::
 	@${ECHO} ""
 .ifndef WITHOUT_ACTIVATE
@@ -73,4 +78,4 @@
 	@${ECHO} ""
 	@${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/mail/squirrelmail-pupdate-plugin/pkg-plist,v
retrieving revision 1.1
diff -u -r1.1 pkg-plist
--- pkg-plist	4 Jul 2006 23:04:48 -0000	1.1
+++ pkg-plist	15 Mar 2007 02:18:21 -0000
@@ -1,4 +1,4 @@
-@unexec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --remove-plugin pupdate; fi
+@unexec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --remove-plugin %%SQUIRREL_PLUGIN_NAME%%; fi
 %%SQUIRRELDIR%%/plugins/pupdate/docs/index.php
 %%SQUIRRELDIR%%/plugins/pupdate/docs/INSTALL
 %%SQUIRRELDIR%%/plugins/pupdate/docs/README
@@ -17,4 +17,4 @@
 @dirrm %%SQUIRRELDIR%%/plugins/pupdate/docs
 @dirrm %%SQUIRRELDIR%%/plugins/pupdate/udata
 @dirrm %%SQUIRRELDIR%%/plugins/pupdate
-@exec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin pupdate; fi
+@exec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin %%SQUIRREL_PLUGIN_NAME%%; fi
--- squirrelmail-pupdate-plugin-0.7_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703150223.l2F2NGfs009472>