From c61905043e9ff73d46dbeb97a6d9703de99d4600 Mon Sep 17 00:00:00 2001 From: Adam Weinberger Date: Sun, 8 Dec 2013 16:53:57 +0000 Subject: - Convert remaining plugins to bsd.squirrelmail.mk. - Change the perl5 dependency to install, which it is - Correct path in pkg-message --- mail/squirrelmail-multilogin-plugin/Makefile | 65 ++-------------------- .../files/pkg-message.in | 4 +- 2 files changed, 8 insertions(+), 61 deletions(-) (limited to 'mail/squirrelmail-multilogin-plugin') 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 +.include +.include "${.CURDIR}/../squirrelmail/bsd.squirrelmail.mk" +.include 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. -- cgit v1.2.3