aboutsummaryrefslogtreecommitdiffstats
path: root/mail/squirrelmail-multilogin-plugin
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2013-12-09 00:53:57 +0800
committeradamw <adamw@FreeBSD.org>2013-12-09 00:53:57 +0800
commitdb3941c57c61310dde13327e9ac1422a4dc50223 (patch)
treea10c7c003855b79bd2d28f4f3d9dbed60cc28f4f /mail/squirrelmail-multilogin-plugin
parent3149705e5c86a192a816571b7749986d1069f9cb (diff)
downloadfreebsd-ports-gnome-db3941c57c61310dde13327e9ac1422a4dc50223.tar.gz
freebsd-ports-gnome-db3941c57c61310dde13327e9ac1422a4dc50223.tar.zst
freebsd-ports-gnome-db3941c57c61310dde13327e9ac1422a4dc50223.zip
- Convert remaining plugins to bsd.squirrelmail.mk.
- Change the perl5 dependency to install, which it is - Correct path in pkg-message
Diffstat (limited to 'mail/squirrelmail-multilogin-plugin')
-rw-r--r--mail/squirrelmail-multilogin-plugin/Makefile65
-rw-r--r--mail/squirrelmail-multilogin-plugin/files/pkg-message.in4
2 files changed, 8 insertions, 61 deletions
diff --git a/mail/squirrelmail-multilogin-plugin/Makefile b/mail/squirrelmail-multilogin-plugin/Makefile
index 92e836fd679c..24232f0d1aaf 100644
--- a/mail/squirrelmail-multilogin-plugin/Makefile
+++ b/mail/squirrelmail-multilogin-plugin/Makefile
@@ -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>
diff --git a/mail/squirrelmail-multilogin-plugin/files/pkg-message.in b/mail/squirrelmail-multilogin-plugin/files/pkg-message.in
index 5a52e022b027..d9df0612aba0 100644
--- a/mail/squirrelmail-multilogin-plugin/files/pkg-message.in
+++ b/mail/squirrelmail-multilogin-plugin/files/pkg-message.in
@@ -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.