diff options
author | mat <mat@FreeBSD.org> | 2015-06-17 19:24:19 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2015-06-17 19:24:19 +0800 |
commit | 6746a69982060d5fe8ea9e9d8ec5629c36b8f55e (patch) | |
tree | 8e8e12fcab604e6bf3fcec97ed5d64ad32d75fcf /mail | |
parent | b3a3237fb57512d0236d4ed5ea8504fde72437e2 (diff) | |
download | freebsd-ports-gnome-6746a69982060d5fe8ea9e9d8ec5629c36b8f55e.tar.gz freebsd-ports-gnome-6746a69982060d5fe8ea9e9d8ec5629c36b8f55e.tar.zst freebsd-ports-gnome-6746a69982060d5fe8ea9e9d8ec5629c36b8f55e.zip |
Make build as non root, and cleanup.
Sponsored by: Absolight
Diffstat (limited to 'mail')
-rw-r--r-- | mail/squirrelmail-tmda-plugin/Makefile | 16 | ||||
-rw-r--r-- | mail/squirrelmail-tmda-plugin/files/pkg-message.in | 2 | ||||
-rw-r--r-- | mail/squirrelmail-tmda-plugin/pkg-plist | 1 |
3 files changed, 8 insertions, 11 deletions
diff --git a/mail/squirrelmail-tmda-plugin/Makefile b/mail/squirrelmail-tmda-plugin/Makefile index 4833916701a5..86543458c86d 100644 --- a/mail/squirrelmail-tmda-plugin/Makefile +++ b/mail/squirrelmail-tmda-plugin/Makefile @@ -3,7 +3,7 @@ PORTNAME= squirrelmail-tmda-plugin PORTVERSION= 1.0.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= mail MASTER_SITES= http://www.squirrelmail.org/plugins/ DISTNAME= tmdatools 1.0.2 1.4.2 \(stable\) @@ -17,6 +17,7 @@ RUN_DEPENDS= tmda-filter:${PORTSDIR}/mail/tmda \ USES= perl5 NO_BUILD= yes +NO_ARCH= yes SQUIRREL_PLUGIN_NAME= tmdatools WRKSRC= ${WRKDIR}/tmdatools @@ -30,6 +31,8 @@ PLIST_SUB+= SQUIRRELDIR=squirrelmail .endif TMDATOOLDIR?= ${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME} PLIST_SUB+= TMDATOOLDIR=plugins/${SQUIRREL_PLUGIN_NAME} +SUB_LIST= TMDATOOLDIR=${TMDATOOLDIR} +SUB_FILES= pkg-message pre-everything:: @${ECHO} "The plugin expects SquirrelMail install in ${SQUIRRELDIR}" @@ -43,14 +46,7 @@ post-patch: @${RM} ${WRKSRC}/tmdatools_config.php.sample.bak do-install: - @${MKDIR} ${STAGEDIR}${TMDATOOLDIR} - @${CP} -Rp ${WRKSRC}/ ${STAGEDIR}${TMDATOOLDIR} - @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${TMDATOOLDIR} - @${RM} -f ${WRKSRC}/tmdatools_config.php.sample.bak - -post-install: - @${ECHO} "" - @${ECHO} "Refer to ${TMDATOOLDIR}/INSTALL and README for final installation/configuration instructions." - @${ECHO} "" + ${MKDIR} ${STAGEDIR}${TMDATOOLDIR} + ${CP} -Rp ${WRKSRC}/ ${STAGEDIR}${TMDATOOLDIR} .include <bsd.port.mk> diff --git a/mail/squirrelmail-tmda-plugin/files/pkg-message.in b/mail/squirrelmail-tmda-plugin/files/pkg-message.in new file mode 100644 index 000000000000..7c6c8a4070f0 --- /dev/null +++ b/mail/squirrelmail-tmda-plugin/files/pkg-message.in @@ -0,0 +1,2 @@ +Refer to %%TMDATOOLDIR%%/INSTALL and README for +final installation/configuration instructions. diff --git a/mail/squirrelmail-tmda-plugin/pkg-plist b/mail/squirrelmail-tmda-plugin/pkg-plist index a30c6597e7db..c95fbd3ca4b2 100644 --- a/mail/squirrelmail-tmda-plugin/pkg-plist +++ b/mail/squirrelmail-tmda-plugin/pkg-plist @@ -14,5 +14,4 @@ %%SQUIRRELDIR%%/%%TMDATOOLDIR%%/tools.php %%SQUIRRELDIR%%/%%TMDATOOLDIR%%/version %%SQUIRRELDIR%%/%%TMDATOOLDIR%%/viewer.php -@dirrm %%SQUIRRELDIR%%/%%TMDATOOLDIR%% @exec if [ -f %D/%%SQUIRRELDIR%%/config/config.php ]; then %D/%%SQUIRRELDIR%%/config/conf.pl --install-plugin tmdatools; fi |