- 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)
This commit is contained in:
Martin Wilke 2007-04-26 21:56:31 +00:00
parent 5afd978fd8
commit e513c9e0c0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=190983
2 changed files with 11 additions and 7 deletions

View File

@ -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>

View File

@ -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