aboutsummaryrefslogtreecommitdiffstats
path: root/www/hastymail2
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-09-13 19:43:00 +0800
committerantoine <antoine@FreeBSD.org>2014-09-13 19:43:00 +0800
commit76f5a2cb9500ee04dc7e0f13d15db700e0b2116a (patch)
tree46ec5a910531beb275fb4b8136dd20ff8c570325 /www/hastymail2
parent7300b9963d3316e21f3ae412b2130348d2c9182d (diff)
downloadfreebsd-ports-gnome-76f5a2cb9500ee04dc7e0f13d15db700e0b2116a.tar.gz
freebsd-ports-gnome-76f5a2cb9500ee04dc7e0f13d15db700e0b2116a.tar.zst
freebsd-ports-gnome-76f5a2cb9500ee04dc7e0f13d15db700e0b2116a.zip
- Allow staging as regular user
- Bump portrevision as files were not packaged with intended owner
Diffstat (limited to 'www/hastymail2')
-rw-r--r--www/hastymail2/Makefile4
-rw-r--r--www/hastymail2/pkg-plist8
2 files changed, 7 insertions, 5 deletions
diff --git a/www/hastymail2/Makefile b/www/hastymail2/Makefile
index a0c1eb6d2c20..75e9274cde8b 100644
--- a/www/hastymail2/Makefile
+++ b/www/hastymail2/Makefile
@@ -3,7 +3,7 @@
PORTNAME= hastymail2
PORTVERSION= 1.1
-PORTREVISION= 4
+PORTREVISION= 5
PORTEPOCH= 1
CATEGORIES= www mail
MASTER_SITES= SF/hastymail/Hastymail2%20Stable%20Releases/Hastymail2%201.1/
@@ -26,6 +26,7 @@ WIKEDVERSION= 1_1
WRKSRC= ${WRKDIR}/${PORTNAME}_${WIKEDVERSION}
NO_BUILD= yes
FIND_SKIP_OPTS= -not -name hastymail2.conf.example -not -name '*.orig'
+PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
OPTIONS_DEFINE= PGSQL MYSQL DB ICONV MBSTRING
@@ -69,7 +70,6 @@ do-install:
@${MKDIR} ${STAGEDIR}${WWWDIR}
@cd ${WRKSRC} && ${FIND} . ${FIND_SKIP_OPTS} \
| ${PAX} -rwd ${STAGEDIR}${WWWDIR}
- @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
@${MKDIR} ${STAGEDIR}${ETCDIR}
@${INSTALL_DATA} ${WRKSRC}/hastymail2.conf.example \
${STAGEDIR}${ETCDIR}/hastymail2.conf.sample
diff --git a/www/hastymail2/pkg-plist b/www/hastymail2/pkg-plist
index 426b7b6c1c8f..38cfb61fadec 100644
--- a/www/hastymail2/pkg-plist
+++ b/www/hastymail2/pkg-plist
@@ -1,6 +1,6 @@
-@unexec if cmp -s %D/%%ETCDIR%%/hastymail2.conf.sample %D/%%ETCDIR%%/hastymail2.conf; then rm -f %D/%%ETCDIR%%/hastymail2.conf; fi
-%%ETCDIR%%/hastymail2.conf.sample
-@exec if [ ! -f %D/%%ETCDIR%%/hastymail2.conf ]; then cp -p %D/%F %B/hastymail2.conf; fi
+@sample %%ETCDIR%%/hastymail2.conf.sample
+@owner %%WWWOWN%%
+@group %%WWWGRP%%
%%WWWDIR%%/CHANGES
%%WWWDIR%%/COPYING
%%WWWDIR%%/INSTALL
@@ -1616,4 +1616,6 @@
@dirrmtry %%WWWDIR%%/db
@dirrmtry %%WWWDIR%%/contrib
@dirrmtry %%WWWDIR%%
+@owner root
+@group wheel
@dirrmtry %%ETCDIR%%