aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-04-27 05:56:31 +0800
committermiwi <miwi@FreeBSD.org>2007-04-27 05:56:31 +0800
commitd88b788cee51a9d7ba4c0a7141a5e58eb176bf1b (patch)
treebc94f8884caa7f7ed5403d891356d74e140f5f92 /mail
parent3d5360e7c84291fb248816ef9bcbbe30802e8806 (diff)
downloadfreebsd-ports-gnome-d88b788cee51a9d7ba4c0a7141a5e58eb176bf1b.tar.gz
freebsd-ports-gnome-d88b788cee51a9d7ba4c0a7141a5e58eb176bf1b.tar.zst
freebsd-ports-gnome-d88b788cee51a9d7ba4c0a7141a5e58eb176bf1b.zip
- Modify port to include bsd.port.(pre|post).mk to fix auto-install/remove
- Adopt new PKGNAMEPREFIX-PORTNAME-PKGNAMESUFFIX standard for squirrelmail ports - Bump PORTREVISION to reflect user-visible behaviour change of port PR: 112166 Submitted by: Neil Darlow <neil@darlow.co.uk> (maintainer)
Diffstat (limited to 'mail')
-rw-r--r--mail/squirrelmail-password_forget-plugin/Makefile14
-rw-r--r--mail/squirrelmail-password_forget-plugin/pkg-plist4
2 files changed, 11 insertions, 7 deletions
diff --git a/mail/squirrelmail-password_forget-plugin/Makefile b/mail/squirrelmail-password_forget-plugin/Makefile
index e813bb7ec5d1..28adf2490ac2 100644
--- a/mail/squirrelmail-password_forget-plugin/Makefile
+++ b/mail/squirrelmail-password_forget-plugin/Makefile
@@ -4,12 +4,13 @@
#
# $FreeBSD$
-PORTNAME= squirrelmail
+PORTNAME= password_forget
PORTVERSION= 2.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= mail www
MASTER_SITES= http://www.squirrelmail.org/plugins/
-PKGNAMESUFFIX= -${SQUIRREL_PLUGIN_NAME}-plugin
+PKGNAMEPREFIX= squirrelmail-
+PKGNAMESUFFIX= -plugin
DISTNAME= ${SQUIRREL_PLUGIN_NAME}.${PORTVERSION}-1.0.1
DIST_SUBDIR= squirrelmail
@@ -19,7 +20,7 @@ COMMENT= Prevent reuse of login details by browsers at public terminals
RUN_DEPENDS= ${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail \
${SQUIRRELDIR}/plugins/compatibility:${PORTSDIR}/mail/squirrelmail-compatibility-plugin
-SQUIRREL_PLUGIN_NAME= password_forget
+SQUIRREL_PLUGIN_NAME= ${PORTNAME}
.ifdef SQUIRRELDIR
PLIST_SUB+= SQUIRRELDIR=${SQUIRRELDIR}
@@ -32,12 +33,15 @@ SQUIRRELDIR= ${PREFIX}/squirrelmail
PLIST_SUB+= SQUIRRELDIR=squirrelmail
. endif
.endif
+PLIST_SUB+= SQUIRREL_PLUGIN_NAME=${SQUIRREL_PLUGIN_NAME}
NO_BUILD= yes
NO_WRKSUBDIR= yes
USE_PERL5_BUILD= yes
WANT_PHP_WEB= yes
+.include <bsd.port.pre.mk>
+
pre-everything::
@${ECHO} ""
.ifndef WITHOUT_ACTIVATE
@@ -66,4 +70,4 @@ post-install:
@${ECHO} "${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}"
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/mail/squirrelmail-password_forget-plugin/pkg-plist b/mail/squirrelmail-password_forget-plugin/pkg-plist
index 9a69c7be2a70..9a71ebe7c009 100644
--- a/mail/squirrelmail-password_forget-plugin/pkg-plist
+++ b/mail/squirrelmail-password_forget-plugin/pkg-plist
@@ -1,4 +1,4 @@
-@unexec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --remove-plugin password_forget; fi
+@unexec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --remove-plugin %%SQUIRREL_PLUGIN_NAME%%; fi
%%SQUIRRELDIR%%/plugins/password_forget/COPYING
%%SQUIRRELDIR%%/plugins/password_forget/INSTALL
%%SQUIRRELDIR%%/plugins/password_forget/README
@@ -8,4 +8,4 @@
%%SQUIRRELDIR%%/plugins/password_forget/setup.php
%%SQUIRRELDIR%%/plugins/password_forget/version
@dirrmtry %%SQUIRRELDIR%%/plugins/password_forget
-@exec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin password_forget; fi
+@exec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin %%SQUIRREL_PLUGIN_NAME%%; fi