Fix packaging as a user

This commit is contained in:
Baptiste Daroussin 2014-09-02 14:22:03 +00:00
parent be3b7db171
commit c57439824f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=367007
2 changed files with 6 additions and 11 deletions

View File

@ -85,7 +85,5 @@ post-install:
@${MKDIR} ${STAGEDIR}${SPOOLDIR}/incoming ${STAGEDIR}${SPOOLDIR}/outgoing \
${STAGEDIR}${SPOOLDIR}/checked ${STAGEDIR}${LOGDIR} \
${STAGEDIR}${PIDDIR}
@${CHOWN} -R ${SMSD_USER}:${SMSD_GROUP} ${STAGEDIR}${SPOOLDIR} \
${STAGEDIR}${LOGDIR} ${STAGEDIR}${PIDDIR}
.include <bsd.port.mk>

View File

@ -27,12 +27,9 @@ bin/unicode2sms
%%DATADIR%%/unicode2sms
@sample etc/smsd.conf.sample
@dirrm %%DATADIR%%
@cwd /
@owner %%SMSD_USER%%
@group %%SMSD_GROUP%%
@dirrmtry %%SPOOLDIR%%/incoming
@dirrmtry %%SPOOLDIR%%/outgoing
@dirrmtry %%SPOOLDIR%%/checked
@dirrmtry %%LOGDIR%%
@dirrmtry %%PIDDIR%%
@dirrmtry %%SPOOLDIR%%
@dirrmtry(%%SMSD_USER%%,%%SMSD_GROUP%%,) %%SPOOLDIR%%/incoming
@dirrmtry(%%SMSD_USER%%,%%SMSD_GROUP%%,) %%SPOOLDIR%%/outgoing
@dirrmtry(%%SMSD_USER%%,%%SMSD_GROUP%%,) %%SPOOLDIR%%/checked
@dirrmtry(%%SMSD_USER%%,%%SMSD_GROUP%%,) %%LOGDIR%%
@dirrmtry(%%SMSD_USER%%,%%SMSD_GROUP%%,) %%PIDDIR%%
@dirrmtry(%%SMSD_USER%%,%%SMSD_GROUP%%,) %%SPOOLDIR%%