Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Dec 2013 16:53:57 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r335912 - in head/mail: squirrelmail-compatibility-plugin squirrelmail-multilogin-plugin squirrelmail-multilogin-plugin/files squirrelmail-notes-plugin squirrelmail-notes-plugin/files s...
Message-ID:  <201312081653.rB8Grvgw055812@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adamw
Date: Sun Dec  8 16:53:57 2013
New Revision: 335912
URL: http://svnweb.freebsd.org/changeset/ports/335912

Log:
  - Convert remaining plugins to bsd.squirrelmail.mk.
  - Change the perl5 dependency to install, which it is
  - Correct path in pkg-message

Modified:
  head/mail/squirrelmail-compatibility-plugin/Makefile
  head/mail/squirrelmail-multilogin-plugin/Makefile
  head/mail/squirrelmail-multilogin-plugin/files/pkg-message.in
  head/mail/squirrelmail-notes-plugin/Makefile
  head/mail/squirrelmail-notes-plugin/files/pkg-message.in
  head/mail/squirrelmail-notify-plugin/Makefile
  head/mail/squirrelmail-quota_usage-plugin/Makefile
  head/mail/squirrelmail-quota_usage-plugin/files/pkg-message.in
  head/mail/squirrelmail-sasql-plugin/Makefile
  head/mail/squirrelmail-sasql-plugin/files/pkg-message.in
  head/mail/squirrelmail-shared_calendars-plugin/Makefile
  head/mail/squirrelmail-shared_calendars-plugin/files/pkg-message.in
  head/mail/squirrelmail-wetteronline-plugin/Makefile

Modified: head/mail/squirrelmail-compatibility-plugin/Makefile
==============================================================================
--- head/mail/squirrelmail-compatibility-plugin/Makefile	Sun Dec  8 16:39:45 2013	(r335911)
+++ head/mail/squirrelmail-compatibility-plugin/Makefile	Sun Dec  8 16:53:57 2013	(r335912)
@@ -14,8 +14,10 @@ MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Required by many plugins for compatibility with SquirrelMail
 
 USES=		perl5
-USE_PERL5=	run
+USE_PERL5=	install
 
 NO_STAGE=	yes
+
+.include <bsd.port.pre.mk>
 .include "${.CURDIR}/../squirrelmail/bsd.squirrelmail.mk"
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

Modified: head/mail/squirrelmail-multilogin-plugin/Makefile
==============================================================================
--- head/mail/squirrelmail-multilogin-plugin/Makefile	Sun Dec  8 16:39:45 2013	(r335911)
+++ head/mail/squirrelmail-multilogin-plugin/Makefile	Sun Dec  8 16:53:57 2013	(r335912)
@@ -13,65 +13,12 @@ DIST_SUBDIR=	squirrelmail
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Allows manual selection of login server on login page
 
-RUN_DEPENDS=	${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail \
-		${SQUIRRELDIR}/plugins/compatibility:${PORTSDIR}/mail/squirrelmail-compatibility-plugin
-
-SQUIRREL_PLUGIN_NAME=	${PORTNAME}
-
-.ifdef SQUIRRELDIR
-PLIST_SUB+=		SQUIRRELDIR=${SQUIRRELDIR}
-SUB_LIST+=		"SQUIRRELDIR=${SQUIRRELDIR}"
-.else
-.	ifndef WITHOUT_WWWDIR
-SQUIRRELDIR=		${PREFIX}/www/squirrelmail
-PLIST_SUB+=		SQUIRRELDIR=www/squirrelmail
-SUB_LIST+=		"SQUIRRELDIR=www/squirrelmail"
-.	else
-SQUIRRELDIR=		${PREFIX}/squirrelmail
-PLIST_SUB+=		SQUIRRELDIR=squirrelmail
-SUB_LIST+=		"SQUIRRELDIR=squirrelmail"
-.	endif
-.endif
-
-SUB_FILES=		pkg-message
-
-USES=			perl5
-NO_BUILD=		yes
-NO_WRKSUBDIR=		yes
-USE_PERL5=		build
-USE_PHP=		yes
-WANT_PHP_WEB=		yes
+USES=		perl5
+USE_PERL5=	install
+USE_SM_COMPAT=	yes
 
 NO_STAGE=	yes
-pre-everything::
-	@${ECHO} ""
-.ifndef WITHOUT_ACTIVATE
-	@${ECHO} "Activating plug-in in SquirrelMail after installation."
-	@${ECHO} "If you don't want to automatically activate the plug-in set"
-	@${ECHO} "WITHOUT_ACTIVATE=yes"
-.else
-	@${ECHO} "NOT Activating plug-in in SquirrelMail after installation."
-	@${ECHO} "If you want to automatically activate the plug-in unset"
-	@${ECHO} "WITHOUT_ACTIVATE"
-.endif
-	@${ECHO} ""
-
-do-install:
-	${CP} -rp ${WRKSRC}/${SQUIRREL_PLUGIN_NAME} ${SQUIRRELDIR}/plugins
-	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME}
-
-post-install:
-.ifndef WITHOUT_ACTIVATE
-.if exists( ${SQUIRRELDIR}/config/config.php )
-	@${ECHO} "Activating plug-in in SquirrelMail"
-	${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}
-	cd ${SQUIRRELDIR} && ${PATCH} -p0 < plugins/${SQUIRREL_PLUGIN_NAME}/patches/multilogin-squirrelmail-1.4.12.diff
-.endif
-.else
-	@${ECHO} "To activate the plug-in in SquirrelMail use"
-	@${ECHO} "${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}"
-.endif
-	@${ECHO} ""
-	@${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${.CURDIR}/../squirrelmail/bsd.squirrelmail.mk"
+.include <bsd.port.post.mk>

Modified: head/mail/squirrelmail-multilogin-plugin/files/pkg-message.in
==============================================================================
--- head/mail/squirrelmail-multilogin-plugin/files/pkg-message.in	Sun Dec  8 16:39:45 2013	(r335911)
+++ head/mail/squirrelmail-multilogin-plugin/files/pkg-message.in	Sun Dec  8 16:53:57 2013	(r335912)
@@ -1,5 +1,5 @@
 For the port to work properly you must copy the file
-%%PREFIX%%/%%SQUIRRELDIR%%/plugins/multilogin/config.sample.php
+%%SQUIRRELDIR%%/plugins/multilogin/config.sample.php
 to
-%%PREFIX%%/%%SQUIRRELDIR%%/plugins/multilogin/config.php
+%%SQUIRRELDIR%%/plugins/multilogin/config.php
 and edit the configuration to meet your needs.

Modified: head/mail/squirrelmail-notes-plugin/Makefile
==============================================================================
--- head/mail/squirrelmail-notes-plugin/Makefile	Sun Dec  8 16:39:45 2013	(r335911)
+++ head/mail/squirrelmail-notes-plugin/Makefile	Sun Dec  8 16:53:57 2013	(r335912)
@@ -1,77 +1,25 @@
 # Created by: Gerrit Beine <gerrit.beine@gmx.de>
 # $FreeBSD$
 
-PORTNAME=		squirrelmail-${SQUIRREL_PLUGIN_NAME}-plugin
-PORTVERSION=		1.2
+PORTNAME=		notes
+PORTVERSION=	1.2
 PORTREVISION=	1
 CATEGORIES=		mail www
-MASTER_SITES=		http://www.squirrelmail.org/plugins/
-DISTNAME=		${SQUIRREL_PLUGIN_NAME}.${PORTVERSION}-1.4.0
-DIST_SUBDIR=		squirrelmail
+MASTER_SITES=	http://www.squirrelmail.org/plugins/
+PKGNAMEPREFIX=	squirrelmail-
+PKGNAMESUFFIX=	-plugin
+DISTNAME=		${PORTNAME}.${PORTVERSION}-1.4.0
+DIST_SUBDIR=	squirrelmail
 
 MAINTAINER=		ports@FreeBSD.org
 COMMENT=		Allows you to create notes
 
-RUN_DEPENDS=		${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail \
-			${SQUIRRELDIR}/plugins/compatibility:${PORTSDIR}/mail/squirrelmail-compatibility-plugin
-
-SQUIRREL_PLUGIN_NAME=	notes
-
-.ifdef SQUIRRELDIR
-PLIST_SUB+=		SQUIRRELDIR=${SQUIRRELDIR}
-SUB_LIST+=		"SQUIRRELDIR=${SQUIRRELDIR}"
-.else
-.	ifndef WITHOUT_WWWDIR
-SQUIRRELDIR=		${PREFIX}/www/squirrelmail
-PLIST_SUB+=		SQUIRRELDIR=www/squirrelmail
-SUB_LIST+=		"SQUIRRELDIR=www/squirrelmail"
-.	else
-SQUIRRELDIR=		${PREFIX}/squirrelmail
-PLIST_SUB+=		SQUIRRELDIR=squirrelmail
-SUB_LIST+=		"SQUIRRELDIR=squirrelmail"
-.	endif
-.endif
-
-SUB_FILES=		pkg-message
-
-USES=			perl5
-NO_BUILD=		yes
-NO_WRKSUBDIR=		yes
-USE_PERL5=		build
-USE_PHP=		yes
-WANT_PHP_WEB=		yes
-IGNORE_WITH_PHP=	5 # known incompatibilities with php-5.4, use 5.3 for now
-DEFAULT_PHP_VER=	53
+USES=		perl5
+USE_PERL5=	install
+USE_SM_COMPAT=	yes
 
 NO_STAGE=	yes
-pre-everything::
-	@${ECHO} ""
-.ifndef WITHOUT_ACTIVATE
-	@${ECHO} "Activating plug-in in SquirrelMail after installation."
-	@${ECHO} "If you don't want to automatically activate the plug-in set"
-	@${ECHO} "WITHOUT_ACTIVATE=yes"
-.else
-	@${ECHO} "NOT Activating plug-in in SquirrelMail after installation."
-	@${ECHO} "If you want to automatically activate the plug-in unset"
-	@${ECHO} "WITHOUT_ACTIVATE"
-.endif
-	@${ECHO} ""
-
-do-install:
-	${CP} -rp ${WRKSRC}/${SQUIRREL_PLUGIN_NAME} ${SQUIRRELDIR}/plugins
-	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME}
-
-post-install:
-.ifndef WITHOUT_ACTIVATE
-.if exists( ${SQUIRRELDIR}/config/config.php )
-	@${ECHO} "Activating plug-in in SquirrelMail"
-	${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}
-.endif
-.else
-	@${ECHO} "To activate the plug-in in SquirrelMail use"
-	@${ECHO} "${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}"
-.endif
-	@${ECHO} ""
-	@${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${.CURDIR}/../squirrelmail/bsd.squirrelmail.mk"
+.include <bsd.port.post.mk>

Modified: head/mail/squirrelmail-notes-plugin/files/pkg-message.in
==============================================================================
--- head/mail/squirrelmail-notes-plugin/files/pkg-message.in	Sun Dec  8 16:39:45 2013	(r335911)
+++ head/mail/squirrelmail-notes-plugin/files/pkg-message.in	Sun Dec  8 16:53:57 2013	(r335912)
@@ -1,5 +1,5 @@
 For the port to work properly you must copy the file
-%%PREFIX%%/%%SQUIRRELDIR%%/plugins/notes/config.php.sample
+%%SQUIRRELDIR%%/plugins/notes/config.php.sample
 to
-%%PREFIX%%/%%SQUIRRELDIR%%/plugins/notes/config.php
+%%SQUIRRELDIR%%/plugins/notes/config.php
 and edit the configuration to meet your needs.

Modified: head/mail/squirrelmail-notify-plugin/Makefile
==============================================================================
--- head/mail/squirrelmail-notify-plugin/Makefile	Sun Dec  8 16:39:45 2013	(r335911)
+++ head/mail/squirrelmail-notify-plugin/Makefile	Sun Dec  8 16:53:57 2013	(r335912)
@@ -1,72 +1,25 @@
 # Created by: Gerrit Beine <gerrit.beine@gmx.de>
 # $FreeBSD$
 
-PORTNAME=		squirrelmail-${SQUIRREL_PLUGIN_NAME}-plugin
-PORTVERSION=		1.3
+PORTNAME=		notify
+PORTVERSION=	1.3
 PORTREVISION=	1
 CATEGORIES=		mail www
-MASTER_SITES=		http://www.squirrelmail.org/plugins/
-DISTNAME=		${SQUIRREL_PLUGIN_NAME}_${PORTVERSION:S/./_/g}
-DIST_SUBDIR=		squirrelmail
+MASTER_SITES=	http://www.squirrelmail.org/plugins/
+PKGNAMEPREFIX=	squirrelmail-
+PKGNAMESUFFIX=	-plugin
+DISTNAME=		${PORTNAME}_${PORTVERSION:S/./_/g}
+DIST_SUBDIR=	squirrelmail
 
 MAINTAINER=		ports@FreeBSD.org
 COMMENT=		Notify when new mail arrives
 
-RUN_DEPENDS=		${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail \
-			${SQUIRRELDIR}/plugins/compatibility:${PORTSDIR}/mail/squirrelmail-compatibility-plugin
-
-SQUIRREL_PLUGIN_NAME=	notify
-
-.ifdef SQUIRRELDIR
-PLIST_SUB+=		SQUIRRELDIR=${SQUIRRELDIR}
-SUB_LIST+=		"SQUIRRELDIR=${SQUIRRELDIR}"
-.else
-.	ifndef WITHOUT_WWWDIR
-SQUIRRELDIR=		${PREFIX}/www/squirrelmail
-PLIST_SUB+=		SQUIRRELDIR=www/squirrelmail
-SUB_LIST+=		"SQUIRRELDIR=www/squirrelmail"
-.	else
-SQUIRRELDIR=		${PREFIX}/squirrelmail
-PLIST_SUB+=		SQUIRRELDIR=squirrelmail
-SUB_LIST+=		"SQUIRRELDIR=squirrelmail"
-.	endif
-.endif
-
-USES=			perl5
-NO_BUILD=		yes
-NO_WRKSUBDIR=		yes
-USE_PERL5=		build
-USE_PHP=		yes
-WANT_PHP_WEB=		yes
+USES=		perl5
+USE_PERL5=	install
+USE_SM_COMPAT=	yes
 
 NO_STAGE=	yes
-pre-everything::
-	@${ECHO} ""
-.ifndef WITHOUT_ACTIVATE
-	@${ECHO} "Activating plug-in in SquirrelMail after installation."
-	@${ECHO} "If you don't want to automatically activate the plug-in set"
-	@${ECHO} "WITHOUT_ACTIVATE=yes"
-.else
-	@${ECHO} "NOT Activating plug-in in SquirrelMail after installation."
-	@${ECHO} "If you want to automatically activate the plug-in unset"
-	@${ECHO} "WITHOUT_ACTIVATE"
-.endif
-	@${ECHO} ""
-
-do-install:
-	${CP} -rp ${WRKSRC}/${SQUIRREL_PLUGIN_NAME} ${SQUIRRELDIR}/plugins
-	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME}
-
-post-install:
-.ifndef WITHOUT_ACTIVATE
-.if exists( ${SQUIRRELDIR}/config/config.php )
-	@${ECHO} "Activating plug-in in SquirrelMail"
-	${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}
-.endif
-.else
-	@${ECHO} "To activate the plug-in in SquirrelMail use"
-	@${ECHO} "${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}"
-.endif
-	@${ECHO} ""
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${.CURDIR}/../squirrelmail/bsd.squirrelmail.mk"
+.include <bsd.port.post.mk>

Modified: head/mail/squirrelmail-quota_usage-plugin/Makefile
==============================================================================
--- head/mail/squirrelmail-quota_usage-plugin/Makefile	Sun Dec  8 16:39:45 2013	(r335911)
+++ head/mail/squirrelmail-quota_usage-plugin/Makefile	Sun Dec  8 16:53:57 2013	(r335912)
@@ -1,77 +1,25 @@
 # Created by: Gerrit Beine <gerrit.beine@gmx.de>
 # $FreeBSD$
 
-PORTNAME=		squirrelmail-${SQUIRREL_PLUGIN_NAME}-plugin
-PORTVERSION=		1.3.1
+PORTNAME=		quota_usage
+PORTVERSION=	1.3.1
 PORTREVISION=	1
 CATEGORIES=		mail www
-MASTER_SITES=		http://www.squirrelmail.org/plugins/
-DISTNAME=		${SQUIRREL_PLUGIN_NAME}-${PORTVERSION}-1.2.7
+MASTER_SITES=	http://www.squirrelmail.org/plugins/
+PKGNAMEPREFIX=	squirrelmail-
+PKGNAMESUFFIX=	-plugin
+DISTNAME=		${PORTNAME}-${PORTVERSION}-1.2.7
 DIST_SUBDIR=		squirrelmail
 
 MAINTAINER=		ports@FreeBSD.org
 COMMENT=		View quota and current usage
 
-RUN_DEPENDS=		${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail \
-			${SQUIRRELDIR}/plugins/compatibility:${PORTSDIR}/mail/squirrelmail-compatibility-plugin
-
-SQUIRREL_PLUGIN_NAME=	quota_usage
-
-.ifdef SQUIRRELDIR
-PLIST_SUB+=		SQUIRRELDIR=${SQUIRRELDIR}
-SUB_LIST+=		"SQUIRRELDIR=${SQUIRRELDIR}"
-.else
-.	ifndef WITHOUT_WWWDIR
-SQUIRRELDIR=		${PREFIX}/www/squirrelmail
-PLIST_SUB+=		SQUIRRELDIR=www/squirrelmail
-SUB_LIST+=		"SQUIRRELDIR=www/squirrelmail"
-.	else
-SQUIRRELDIR=		${PREFIX}/squirrelmail
-PLIST_SUB+=		SQUIRRELDIR=squirrelmail
-SUB_LIST+=		"SQUIRRELDIR=squirrelmail"
-.	endif
-.endif
-
-SUB_FILES=		pkg-message
-
-USES=			perl5
-NO_BUILD=		yes
-NO_WRKSUBDIR=		yes
-USE_PERL5=		build
-USE_PHP=		yes
-WANT_PHP_WEB=		yes
-IGNORE_WITH_PHP=	5 # known incompatibilities with php-5.4, use 5.3 for now
-DEFAULT_PHP_VER=	53
+USES=		perl5
+USE_PERL5=	install
+USE_SM_COMPAT=	yes
 
 NO_STAGE=	yes
-pre-everything::
-	@${ECHO} ""
-.ifndef WITHOUT_ACTIVATE
-	@${ECHO} "Activating plug-in in SquirrelMail after installation."
-	@${ECHO} "If you don't want to automatically activate the plug-in set"
-	@${ECHO} "WITHOUT_ACTIVATE=yes"
-.else
-	@${ECHO} "NOT Activating plug-in in SquirrelMail after installation."
-	@${ECHO} "If you want to automatically activate the plug-in unset"
-	@${ECHO} "WITHOUT_ACTIVATE"
-.endif
-	@${ECHO} ""
-
-do-install:
-	${CP} -rp ${WRKSRC}/${SQUIRREL_PLUGIN_NAME} ${SQUIRRELDIR}/plugins
-	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME}
-
-post-install:
-.ifndef WITHOUT_ACTIVATE
-.if exists( ${SQUIRRELDIR}/config/config.php )
-	@${ECHO} "Activating plug-in in SquirrelMail"
-	${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}
-.endif
-.else
-	@${ECHO} "To activate the plug-in in SquirrelMail use"
-	@${ECHO} "${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}"
-.endif
-	@${ECHO} ""
-	@${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${.CURDIR}/../squirrelmail/bsd.squirrelmail.mk"
+.include <bsd.port.post.mk>

Modified: head/mail/squirrelmail-quota_usage-plugin/files/pkg-message.in
==============================================================================
--- head/mail/squirrelmail-quota_usage-plugin/files/pkg-message.in	Sun Dec  8 16:39:45 2013	(r335911)
+++ head/mail/squirrelmail-quota_usage-plugin/files/pkg-message.in	Sun Dec  8 16:53:57 2013	(r335912)
@@ -1,5 +1,5 @@
 For the port to work properly you must copy the file
-%%PREFIX%%/%%SQUIRRELDIR%%/plugins/quota_usage/config.php.sample
+%%SQUIRRELDIR%%/plugins/quota_usage/config.php.sample
 to
-%%PREFIX%%/%%SQUIRRELDIR%%/plugins/quota_usage/config.php
+%%SQUIRRELDIR%%/plugins/quota_usage/config.php
 and edit the configuration to meet your needs.

Modified: head/mail/squirrelmail-sasql-plugin/Makefile
==============================================================================
--- head/mail/squirrelmail-sasql-plugin/Makefile	Sun Dec  8 16:39:45 2013	(r335911)
+++ head/mail/squirrelmail-sasql-plugin/Makefile	Sun Dec  8 16:53:57 2013	(r335912)
@@ -1,79 +1,29 @@
 # Created by: Gerrit Beine <gerrit.beine@gmx.de>
 # $FreeBSD$
 
-PORTNAME=	squirrelmail-${SQUIRREL_PLUGIN_NAME}-plugin
+PORTNAME=		sasql
 PORTVERSION=	3.2.0
 PORTREVISION=	1
 CATEGORIES=	mail www
 MASTER_SITES=	http://www.squirrelmail.org/plugins/
-DISTNAME=	${SQUIRREL_PLUGIN_NAME}-${PORTVERSION}
+PKGNAMEPREFIX=	squirrelmail-
+PKGNAMESUFFIX=	-plugin
 DIST_SUBDIR=	squirrelmail
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Edit SpamAssassin settings stored in an SQL DB
 
-RUN_DEPENDS=	${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail \
-		${SQUIRRELDIR}/plugins/compatibility:${PORTSDIR}/mail/squirrelmail-compatibility-plugin \
-		${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB
-
-SQUIRREL_PLUGIN_NAME=	sasql
-
-.ifdef SQUIRRELDIR
-PLIST_SUB+=	SQUIRRELDIR=${SQUIRRELDIR}
-SUB_LIST+=	"SQUIRRELDIR=${SQUIRRELDIR}"
-.else
-.	ifndef WITHOUT_WWWDIR
-SQUIRRELDIR=	${PREFIX}/www/squirrelmail
-PLIST_SUB+=	SQUIRRELDIR=www/squirrelmail
-SUB_LIST+=	"SQUIRRELDIR=www/squirrelmail"
-.	else
-SQUIRRELDIR=	${PREFIX}/squirrelmail
-PLIST_SUB+=	SQUIRRELDIR=squirrelmail
-SUB_LIST+=	"SQUIRRELDIR=squirrelmail"
-.	endif
-.endif
-
-SUB_FILES=	pkg-message
+RUN_DEPENDS=	${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB
 
 USES=		perl5
-NO_BUILD=	yes
-NO_WRKSUBDIR=	yes
-USE_PERL5=	build
-USE_PHP=	yes
-WANT_PHP_WEB=	yes
+USE_PERL5=	install
+USE_SM_COMPAT=	yes
 
 NO_STAGE=	yes
-pre-everything::
-	@${ECHO} ""
-.ifndef WITHOUT_ACTIVATE
-	@${ECHO} "Activating plug-in in SquirrelMail after installation."
-	@${ECHO} "If you don't want to automatically activate the plug-in set"
-	@${ECHO} "WITHOUT_ACTIVATE=yes"
-.else
-	@${ECHO} "NOT Activating plug-in in SquirrelMail after installation."
-	@${ECHO} "If you want to automatically activate the plug-in unset"
-	@${ECHO} "WITHOUT_ACTIVATE"
-.endif
-	@${ECHO} ""
 
 post-patch:
 	@${RM} ${WRKSRC}/${SQUIRREL_PLUGIN_NAME}/*.orig ${WRKSRC}/${SQUIRREL_PLUGIN_NAME}/.cvsignore
 
-do-install:
-	${CP} -rp ${WRKSRC}/${SQUIRREL_PLUGIN_NAME} ${SQUIRRELDIR}/plugins
-	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME}
-
-post-install:
-.ifndef WITHOUT_ACTIVATE
-.if exists( ${SQUIRRELDIR}/config/config.php )
-	@${ECHO} "Activating plug-in in SquirrelMail"
-	${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}
-.endif
-.else
-	@${ECHO} "To activate the plug-in in SquirrelMail use"
-	@${ECHO} "${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}"
-.endif
-	@${ECHO} ""
-	@${CAT} ${PKGMESSAGE}
-
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${.CURDIR}/../squirrelmail/bsd.squirrelmail.mk"
+.include <bsd.port.post.mk>

Modified: head/mail/squirrelmail-sasql-plugin/files/pkg-message.in
==============================================================================
--- head/mail/squirrelmail-sasql-plugin/files/pkg-message.in	Sun Dec  8 16:39:45 2013	(r335911)
+++ head/mail/squirrelmail-sasql-plugin/files/pkg-message.in	Sun Dec  8 16:53:57 2013	(r335912)
@@ -1,5 +1,5 @@
 For the port to work properly you must copy the file
-%%PREFIX%%/%%SQUIRRELDIR%%/plugins/sasql/sasql_conf.php.dist
+%%SQUIRRELDIR%%/plugins/sasql/sasql_conf.php.dist
 to
-%%PREFIX%%/%%SQUIRRELDIR%%/plugins/sasql/sasql_conf.php
+%%SQUIRRELDIR%%/plugins/sasql/sasql_conf.php
 and edit the configuration to meet your needs.

Modified: head/mail/squirrelmail-shared_calendars-plugin/Makefile
==============================================================================
--- head/mail/squirrelmail-shared_calendars-plugin/Makefile	Sun Dec  8 16:39:45 2013	(r335911)
+++ head/mail/squirrelmail-shared_calendars-plugin/Makefile	Sun Dec  8 16:53:57 2013	(r335912)
@@ -2,89 +2,33 @@
 # $FreeBSD$
 
 PORTNAME=		shared_calendars
-PORTVERSION=		2.0.1
+PORTVERSION=	2.0.1
 PORTREVISION=	1
 CATEGORIES=		mail www
-MASTER_SITES=		http://www.squirrelmail.org/plugins/
-PKGNAMEPREFIX=		squirrelmail-
-PKGNAMESUFFIX=		-plugin
+MASTER_SITES=	http://www.squirrelmail.org/plugins/
+PKGNAMEPREFIX=	squirrelmail-
+PKGNAMESUFFIX=	-plugin
 DISTNAME=		${PORTNAME}-${PORTVERSION}-1.4.0
-DIST_SUBDIR=		squirrelmail
+DIST_SUBDIR=	squirrelmail
 
 MAINTAINER=		ports@FreeBSD.org
 COMMENT=		iCal-compliant calendaring for SquirrelMail
 
-RUN_DEPENDS=		${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail \
-			${SQUIRRELDIR}/plugins/compatibility:${PORTSDIR}/mail/squirrelmail-compatibility-plugin
-
-SQUIRREL_PLUGIN_NAME=	${PORTNAME}
-
-.ifdef SQUIRRELDIR
-PLIST_SUB+=		SQUIRRELDIR=${SQUIRRELDIR}
-SUB_LIST+=		"SQUIRRELDIR=${SQUIRRELDIR}"
-.else
-.	ifndef WITHOUT_WWWDIR
-SQUIRRELDIR=		${PREFIX}/www/squirrelmail
-PLIST_SUB+=		SQUIRRELDIR=www/squirrelmail
-SUB_LIST+=		"SQUIRRELDIR=www/squirrelmail"
-.	else
-SQUIRRELDIR=		${PREFIX}/squirrelmail
-PLIST_SUB+=		SQUIRRELDIR=squirrelmail
-SUB_LIST+=		"SQUIRRELDIR=squirrelmail"
-.	endif
-.endif
-
-SUB_FILES=		pkg-message
-
-USES=			perl5
-NO_BUILD=		yes
-NO_WRKSUBDIR=		yes
-USE_PERL5=		build
-USE_PHP=		yes
-WANT_PHP_WEB=		yes
+USES=		perl5
+USE_PERL5=	install
+USE_SM_COMPAT=	yes
+_SMSRCDIR=	calendar
 
 OPTIONS_DEFINE=	SQL
-SQL_DESC=	use SQL backend
-
-LATEST_LINK=	${PORTNAME}${PKGNAMESUFFIX}
 
 NO_STAGE=	yes
-.include <bsd.port.options.mk>
 
+.include <bsd.port.pre.mk>
 .if ${PORT_OPTIONS:MSQL}
 RUN_DEPENDS+=		${SQUIRRELDIR}/plugins/calendar_sql_backend:${PORTSDIR}/mail/squirrelmail-calendar_sql_backend-plugin
 .else
 RUN_DEPENDS+=		${SQUIRRELDIR}/plugins/calendar_file_backend:${PORTSDIR}/mail/squirrelmail-calendar_file_backend-plugin
 .endif
 
-pre-everything::
-	@${ECHO} ""
-.ifndef WITHOUT_ACTIVATE
-	@${ECHO} "Activating plug-in in SquirrelMail after installation."
-	@${ECHO} "If you don't want to automatically activate the plug-in set"
-	@${ECHO} "WITHOUT_ACTIVATE=yes"
-.else
-	@${ECHO} "NOT Activating plug-in in SquirrelMail after installation."
-	@${ECHO} "If you want to automatically activate the plug-in unset"
-	@${ECHO} "WITHOUT_ACTIVATE"
-.endif
-	@${ECHO} ""
-
-do-install:
-	${CP} -rp ${WRKSRC}/calendar ${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME}
-	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME}
-
-post-install:
-.ifndef WITHOUT_ACTIVATE
-.if exists( ${SQUIRRELDIR}/config/config.php )
-	@${ECHO} "Activating plug-in in SquirrelMail"
-	${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}
-.endif
-.else
-	@${ECHO} "To activate the plug-in in SquirrelMail use"
-	@${ECHO} "${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}"
-.endif
-	@${ECHO} ""
-	@${CAT} ${PKGMESSAGE}
-
+.include "${.CURDIR}/../squirrelmail/bsd.squirrelmail.mk"
 .include <bsd.port.mk>

Modified: head/mail/squirrelmail-shared_calendars-plugin/files/pkg-message.in
==============================================================================
--- head/mail/squirrelmail-shared_calendars-plugin/files/pkg-message.in	Sun Dec  8 16:39:45 2013	(r335911)
+++ head/mail/squirrelmail-shared_calendars-plugin/files/pkg-message.in	Sun Dec  8 16:53:57 2013	(r335912)
@@ -1,5 +1,5 @@
 For the port to work properly you must copy the file
-%%PREFIX%%/%%SQUIRRELDIR%%/plugins/shared_calendars/data/config.sample.php
+%%SQUIRRELDIR%%/plugins/shared_calendars/data/config.sample.php
 to
-%%PREFIX%%/%%SQUIRRELDIR%%/plugins/shared_calendars/data/config.php
+%%SQUIRRELDIR%%/plugins/shared_calendars/data/config.php
 and edit the configuration to meet your needs.

Modified: head/mail/squirrelmail-wetteronline-plugin/Makefile
==============================================================================
--- head/mail/squirrelmail-wetteronline-plugin/Makefile	Sun Dec  8 16:39:45 2013	(r335911)
+++ head/mail/squirrelmail-wetteronline-plugin/Makefile	Sun Dec  8 16:53:57 2013	(r335912)
@@ -1,74 +1,24 @@
 # Created by: Gerrit Beine <gerrit.beine@gmx.de>
 # $FreeBSD$
 
-PORTNAME=		squirrelmail-${SQUIRREL_PLUGIN_NAME}-plugin
-PORTVERSION=		0.1
+PORTNAME=		wetteronline
+PORTVERSION=	0.1
 PORTREVISION=	1
 CATEGORIES=		mail www
-MASTER_SITES=		http://www.squirrelmail.org/plugins/
-DISTNAME=		${SQUIRREL_PLUGIN_NAME}-${PORTVERSION}
-DIST_SUBDIR=		squirrelmail
+MASTER_SITES=	http://www.squirrelmail.org/plugins/
+PKGNAMEPREFIX=	squirrelmail-
+PKGNAMESUFFIX=	-plugin
+DIST_SUBDIR=	squirrelmail
 
 MAINTAINER=		ports@FreeBSD.org
 COMMENT=		Plugin for the weather in Germany
 
-RUN_DEPENDS=		${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail \
-			${SQUIRRELDIR}/plugins/compatibility:${PORTSDIR}/mail/squirrelmail-compatibility-plugin
-
-SQUIRREL_PLUGIN_NAME=	wetteronline
-
-.ifdef SQUIRRELDIR
-PLIST_SUB+=		SQUIRRELDIR=${SQUIRRELDIR}
-SUB_LIST+=		"SQUIRRELDIR=${SQUIRRELDIR}"
-.else
-.	ifndef WITHOUT_WWWDIR
-SQUIRRELDIR=		${PREFIX}/www/squirrelmail
-PLIST_SUB+=		SQUIRRELDIR=www/squirrelmail
-SUB_LIST+=		"SQUIRRELDIR=www/squirrelmail"
-.	else
-SQUIRRELDIR=		${PREFIX}/squirrelmail
-PLIST_SUB+=		SQUIRRELDIR=squirrelmail
-SUB_LIST+=		"SQUIRRELDIR=squirrelmail"
-.	endif
-.endif
-
-USES=			perl5
-NO_BUILD=		yes
-NO_WRKSUBDIR=		yes
-USE_PERL5=		build
-USE_PHP=		yes
-WANT_PHP_WEB=		yes
-IGNORE_WITH_PHP=5 # known incompatibilities with php-5.4, use 5.3 for now
-DEFAULT_PHP_VER=53
+USES=		perl5
+USE_PERL5=	install
+USE_SM_COMPAT=	yes
 
 NO_STAGE=	yes
-pre-everything::
-	@${ECHO} ""
-.ifndef WITHOUT_ACTIVATE
-	@${ECHO} "Activating plug-in in SquirrelMail after installation."
-	@${ECHO} "If you don't want to automatically activate the plug-in set"
-	@${ECHO} "WITHOUT_ACTIVATE=yes"
-.else
-	@${ECHO} "NOT Activating plug-in in SquirrelMail after installation."
-	@${ECHO} "If you want to automatically activate the plug-in unset"
-	@${ECHO} "WITHOUT_ACTIVATE"
-.endif
-	@${ECHO} ""
-
-do-install:
-	${CP} -rp ${WRKSRC}/${SQUIRREL_PLUGIN_NAME} ${SQUIRRELDIR}/plugins
-	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME}
-
-post-install:
-.ifndef WITHOUT_ACTIVATE
-.if exists( ${SQUIRRELDIR}/config/config.php )
-	@${ECHO} "Activating plug-in in SquirrelMail"
-	${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}
-.endif
-.else
-	@${ECHO} "To activate the plug-in in SquirrelMail use"
-	@${ECHO} "${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}"
-.endif
-	@${ECHO} ""
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${.CURDIR}/../squirrelmail/bsd.squirrelmail.mk"
+.include <bsd.port.post.mk>



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