- Fix automatic activation

- Move toward new SM plugin configuration standard
- Compat plugin not required, remove reference
- Bump PORTREVISION

PR:             110310
Submitted by:   Thomas Abthorpe <thomas@goodking.ca> (maintainer)
This commit is contained in:
Martin Wilke 2007-03-16 12:55:52 +00:00
parent 57c475431e
commit 1f2c8a158d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=187509
2 changed files with 13 additions and 8 deletions

View file

@ -5,20 +5,22 @@
# $FreeBSD$
#
PORTNAME= squirrelmail-${SQUIRREL_PLUGIN_NAME}-plugin
PORTNAME= pupdate
PORTVERSION= 0.7
PORTREVISION= 1
CATEGORIES= mail www
MASTER_SITES= http://www.squirrelmail.org/plugins/
DISTNAME= ${SQUIRREL_PLUGIN_NAME}.${PORTVERSION}-1.4.2
PKGNAMEPREFIX= squirrelmail-
PKGNAMESUFFIX= -plugin
DISTNAME= ${PORTNAME}.${PORTVERSION}-1.4.2
DIST_SUBDIR= squirrelmail
MAINTAINER= thomas@goodking.ca
COMMENT= Checks for plugin updates by parsing the SM site
RUN_DEPENDS= ${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail \
${SQUIRRELDIR}/plugins/compatibility:${PORTSDIR}/mail/squirrelmail-compatibility-plugin
RUN_DEPENDS= ${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail
SQUIRREL_PLUGIN_NAME= pupdate
SQUIRREL_PLUGIN_NAME= ${PORTNAME}
.ifdef SQUIRRELDIR
PLIST_SUB+= SQUIRRELDIR=${SQUIRRELDIR}
@ -34,6 +36,7 @@ PLIST_SUB+= SQUIRRELDIR=squirrelmail
SUB_LIST+= "SQUIRRELDIR=squirrelmail"
.endif
.endif
PLIST_SUB+= SQUIRREL_PLUGIN_NAME=${SQUIRREL_PLUGIN_NAME}
SUB_FILES= pkg-message
@ -43,6 +46,8 @@ USE_PERL5_BUILD= yes
USE_PHP= yes
WANT_PHP_WEB= yes
.include <bsd.port.pre.mk>
pre-everything::
@${ECHO} ""
.ifndef WITHOUT_ACTIVATE
@ -73,4 +78,4 @@ post-install:
@${ECHO} ""
@${CAT} ${PKGMESSAGE}
.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 pupdate; fi
@unexec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --remove-plugin %%SQUIRREL_PLUGIN_NAME%%; fi
%%SQUIRRELDIR%%/plugins/pupdate/docs/index.php
%%SQUIRRELDIR%%/plugins/pupdate/docs/INSTALL
%%SQUIRRELDIR%%/plugins/pupdate/docs/README
@ -17,4 +17,4 @@
@dirrm %%SQUIRRELDIR%%/plugins/pupdate/docs
@dirrm %%SQUIRRELDIR%%/plugins/pupdate/udata
@dirrm %%SQUIRRELDIR%%/plugins/pupdate
@exec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin pupdate; fi
@exec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin %%SQUIRREL_PLUGIN_NAME%%; fi