aboutsummaryrefslogtreecommitdiff
path: root/mail/squirrelmail-password_forget-plugin
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-04-26 21:56:31 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-04-26 21:56:31 +0000
commite513c9e0c089ce11b3b44cead6c4c312d911b7bd (patch)
tree9eb581bdffd46f7fb9dab077d3d2d26e79c567dd /mail/squirrelmail-password_forget-plugin
parent5afd978fd878b0bc86a228a886b630c910b63b5b (diff)
downloadports-e513c9e0c089ce11b3b44cead6c4c312d911b7bd.tar.gz
ports-e513c9e0c089ce11b3b44cead6c4c312d911b7bd.zip
Notes
Diffstat (limited to 'mail/squirrelmail-password_forget-plugin')
-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