aboutsummaryrefslogtreecommitdiff
path: root/mail/squirrelmail-change_ldappass-plugin
diff options
context:
space:
mode:
authorAndrew Pantyukhin <sat@FreeBSD.org>2007-07-20 09:35:13 +0000
committerAndrew Pantyukhin <sat@FreeBSD.org>2007-07-20 09:35:13 +0000
commitcac5744ca73eac53c2043c82a1d858363cd586c4 (patch)
treeedfa4fa4c6e9ab7dfb28d9f1277148537b45c112 /mail/squirrelmail-change_ldappass-plugin
parent60af9968e1a1bb24bb0f3c6f533f1679d1510532 (diff)
downloadports-cac5744ca73eac53c2043c82a1d858363cd586c4.tar.gz
ports-cac5744ca73eac53c2043c82a1d858363cd586c4.zip
- Pass maintainership to submitter
- Rework Makefile for easier readability - Reformat pkg-descr - Bump portrevision (file owner/group changed) PR: ports/114488 Submitted by: Thomas Abthorpe <thomas@goodking.ca> Approved by: Alexander Wittig <alexander@wittig.name> (maintainer)
Notes
Notes: svn path=/head/; revision=195940
Diffstat (limited to 'mail/squirrelmail-change_ldappass-plugin')
-rw-r--r--mail/squirrelmail-change_ldappass-plugin/Makefile40
-rw-r--r--mail/squirrelmail-change_ldappass-plugin/pkg-descr8
-rw-r--r--mail/squirrelmail-change_ldappass-plugin/pkg-plist6
3 files changed, 29 insertions, 25 deletions
diff --git a/mail/squirrelmail-change_ldappass-plugin/Makefile b/mail/squirrelmail-change_ldappass-plugin/Makefile
index 563f64398ce7..72b3d7dd99ba 100644
--- a/mail/squirrelmail-change_ldappass-plugin/Makefile
+++ b/mail/squirrelmail-change_ldappass-plugin/Makefile
@@ -1,47 +1,52 @@
-# New ports collection makefile for: squirrelmail-change_ldappass-plugin
+# New ports collection makefile for: squirrelmail-change_ldappass-plugin
# Date created: 3 Jul 2005
-# Whom: Alexander Wittig <alexander@wittig.name>
+# Whom: Alexander Wittig <alexander@wittig.name>
#
# $FreeBSD$
-PORTNAME= squirrelmail
+PORTNAME= change_ldappass
PORTVERSION= 2.1
+PORTREVISION= 1
CATEGORIES= mail www
MASTER_SITES= http://www.squirrelmail.org/plugins/
-PKGNAMESUFFIX= -${SQUIRREL_PLUGIN_NAME}-plugin
-DISTNAME= ${SQUIRREL_PLUGIN_NAME}-${PORTVERSION}-1.4.0
+PKGNAMEPREFIX= squirrelmail-
+PKGNAMESUFFIX= -plugin
+DISTNAME= ${PORTNAME}-${PORTVERSION}-1.4.0
DIST_SUBDIR= squirrelmail
-MAINTAINER= alexander@wittig.name
+MAINTAINER= thomas@goodking.ca
COMMENT= Allows users to change their passwords stored in LDAP Tree
RUN_DEPENDS= ${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail
-SQUIRREL_PLUGIN_NAME= change_ldappass
+SQUIRREL_PLUGIN_NAME= ${PORTNAME}
.ifdef SQUIRRELDIR
PLIST_SUB+= SQUIRRELDIR=${SQUIRRELDIR}
SUB_LIST+= "SQUIRRELDIR=${SQUIRRELDIR}"
.else
-. ifndef WITHOUT_WWWDIR
+.ifndef WITHOUT_WWWDIR
SQUIRRELDIR= ${PREFIX}/www/squirrelmail
PLIST_SUB+= SQUIRRELDIR=www/squirrelmail
SUB_LIST+= "SQUIRRELDIR=www/squirrelmail"
-. else
+.else
SQUIRRELDIR= ${PREFIX}/squirrelmail
PLIST_SUB+= SQUIRRELDIR=squirrelmail
SUB_LIST+= "SQUIRRELDIR=squirrelmail"
-. endif
.endif
+.endif
+PLIST_SUB+= SQUIRREL_PLUGIN_NAME=${SQUIRREL_PLUGIN_NAME}
SUB_FILES= pkg-message
-NO_BUILD= yes
-NO_WRKSUBDIR= yes
-USE_PERL5_BUILD=yes
-USE_PHP= ldap
-WANT_PHP_WEB= yes
-USE_GETTEXT= yes
+NO_BUILD= yes
+NO_WRKSUBDIR= yes
+USE_PERL5_BUILD= yes
+USE_PHP= ldap
+WANT_PHP_WEB= yes
+USE_GETTEXT= yes
+
+.include <bsd.port.pre.mk>
pre-everything::
@${ECHO} ""
@@ -58,6 +63,7 @@ pre-everything::
do-install:
${CP} -rp ${WRKSRC}/${SQUIRREL_PLUGIN_NAME} ${SQUIRRELDIR}/plugins
+ ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME}
post-install:
.ifndef WITHOUT_ACTIVATE
@@ -72,4 +78,4 @@ post-install:
@${ECHO} ""
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/mail/squirrelmail-change_ldappass-plugin/pkg-descr b/mail/squirrelmail-change_ldappass-plugin/pkg-descr
index 830519db85eb..4929a37d6748 100644
--- a/mail/squirrelmail-change_ldappass-plugin/pkg-descr
+++ b/mail/squirrelmail-change_ldappass-plugin/pkg-descr
@@ -1,7 +1,5 @@
-SquirrelMail (mail/suirrelmail) Plug-In to allow users to change their user
-passwords stored in an LDAP directory from within SquirrelMail.
+SquirrelMail (mail/suirrelmail) Plug-In to allow users to change
+their user passwords stored in an LDAP directory from within
+SquirrelMail.
WWW: http://www.squirrelmail.org
-
-- Alexander Wittig
-alexander@wittig.name
diff --git a/mail/squirrelmail-change_ldappass-plugin/pkg-plist b/mail/squirrelmail-change_ldappass-plugin/pkg-plist
index 5c5080e790c7..5d54177fc061 100644
--- a/mail/squirrelmail-change_ldappass-plugin/pkg-plist
+++ b/mail/squirrelmail-change_ldappass-plugin/pkg-plist
@@ -1,4 +1,4 @@
-@unexec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --remove-plugin change_ldappass; fi
+@unexec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --remove-plugin %%SQUIRREL_PLUGIN_NAME%%; fi
%%SQUIRRELDIR%%/plugins/change_ldappass/locale/fr_FR/LC_MESSAGES/change_ldappass.mo
%%SQUIRRELDIR%%/plugins/change_ldappass/locale/fr_FR/LC_MESSAGES/change_ldappass.po
%%SQUIRRELDIR%%/plugins/change_ldappass/locale/pl_PL/LC_MESSAGES/change_ldappass.mo
@@ -56,5 +56,5 @@
@dirrm %%SQUIRRELDIR%%/plugins/change_ldappass/locale/pt_BR
@dirrm %%SQUIRRELDIR%%/plugins/change_ldappass/locale/sv_SE
@dirrm %%SQUIRRELDIR%%/plugins/change_ldappass/locale
-@dirrm %%SQUIRRELDIR%%/plugins/change_ldappass/
-@exec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin change_ldappass; fi
+@dirrm %%SQUIRRELDIR%%/plugins/change_ldappass
+@exec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin %%SQUIRREL_PLUGIN_NAME%%; fi