diff options
author | ume <ume@FreeBSD.org> | 2013-10-16 23:58:55 +0800 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2013-10-16 23:58:55 +0800 |
commit | 6ffec8737941da66bdf862464186edeb379e5674 (patch) | |
tree | e0524ae9722bc467e84b04e450e4ce39c4ab0e11 /japanese/tiarra | |
parent | 52b2f8ea807d7a0c2afdcd118c53289b2bf8d34d (diff) | |
download | freebsd-ports-graphics-6ffec8737941da66bdf862464186edeb379e5674.tar.gz freebsd-ports-graphics-6ffec8737941da66bdf862464186edeb379e5674.tar.zst freebsd-ports-graphics-6ffec8737941da66bdf862464186edeb379e5674.zip |
Move doing chown from do-install to pkg-plist. In stage
build, uid/gid creation is not done at do-install yet.
Diffstat (limited to 'japanese/tiarra')
-rw-r--r-- | japanese/tiarra/Makefile | 7 | ||||
-rw-r--r-- | japanese/tiarra/pkg-plist | 1 |
2 files changed, 4 insertions, 4 deletions
diff --git a/japanese/tiarra/Makefile b/japanese/tiarra/Makefile index 116ff248178..f3d5571d2af 100644 --- a/japanese/tiarra/Makefile +++ b/japanese/tiarra/Makefile @@ -17,7 +17,6 @@ USE_PERL5= run USE_BZIP2= yes USE_RC_SUBR= tiarra NO_BUILD= yes -NEED_ROOT= yes USERS= ${TIARRA_USER} GROUPS= ${TIARRA_GROUP} @@ -25,6 +24,9 @@ GROUPS= ${TIARRA_GROUP} SUB_FILES= pkg-message SUB_LIST= TIARRA_USER=${TIARRA_USER} +PLIST_SUB= TIARRA_USER=${TIARRA_USER} \ + TIARRA_GROUP=${TIARRA_GROUP} + TIARRA_USER= tiarra TIARRA_GROUP= tiarra @@ -32,10 +34,7 @@ do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/tiarra @${TAR} cfC - ${WRKSRC} . | \ ${TAR} xfC - ${STAGEDIR}${PREFIX}/tiarra - @${CHOWN} -R ${BINOWN}:${BINGRP} ${STAGEDIR}${PREFIX}/tiarra @${MKDIR} ${STAGEDIR}${PREFIX}/tiarra/log - @${CHOWN} -R ${TIARRA_USER}:${TIARRA_GROUP} \ - ${STAGEDIR}${PREFIX}/tiarra/log @${CHMOD} o-rwx ${STAGEDIR}${PREFIX}/tiarra/log .include <bsd.port.mk> diff --git a/japanese/tiarra/pkg-plist b/japanese/tiarra/pkg-plist index cd6575345d0..cad806d51a1 100644 --- a/japanese/tiarra/pkg-plist +++ b/japanese/tiarra/pkg-plist @@ -255,5 +255,6 @@ tiarra/sample.conf tiarra/tiarra tiarra/tiarra-conf.el tiarra/tiarra-conf.l +@exec chown %%TIARRA_USER%%:%%TIARRA_GROUP%% %D/tiarra/log @dirrmtry tiarra/log @dirrmtry tiarra |