diff options
author | fhajny <fhajny@pkgsrc.org> | 2012-06-08 12:06:37 +0000 |
---|---|---|
committer | fhajny <fhajny@pkgsrc.org> | 2012-06-08 12:06:37 +0000 |
commit | 1340bd27a99cdcfd440f5b18fe92a0f8ac01806f (patch) | |
tree | 29e541e8ab0fd59a0a901e52e64c3eefa5752e60 /chat/spectrum | |
parent | 12e93ed8e848f90c1b99207189dd3ff9f665d09d (diff) | |
download | pkgsrc-1340bd27a99cdcfd440f5b18fe92a0f8ac01806f.tar.gz |
Create own directories with proper permissions
Diffstat (limited to 'chat/spectrum')
-rw-r--r-- | chat/spectrum/Makefile | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/chat/spectrum/Makefile b/chat/spectrum/Makefile index 7a5ff3f0cdf..63e4ae5e7a7 100644 --- a/chat/spectrum/Makefile +++ b/chat/spectrum/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2012/04/27 12:31:37 obache Exp $ +# $NetBSD: Makefile,v 1.18 2012/06/08 12:06:37 fhajny Exp $ DISTNAME= spectrum-1.4.8 PKGREVISION= 7 @@ -23,6 +23,7 @@ REPLACE_PYTHON+= spectrumctl/spectrumctl.py PY_PATCHPLIST= yes BUILD_DEFS+= JABBER_USER JABBER_GROUP +BUILD_DEFS+= SPECTRUM_RUN SPECTRUM_DB SPECTRUM_LOG .include "../../mk/bsd.prefs.mk" @@ -35,6 +36,14 @@ FILES_SUBST+= JABBER_GROUP=${JABBER_GROUP} PKG_GROUPS+= ${JABBER_GROUP} PKG_USERS+= ${JABBER_USER}:${JABBER_GROUP} +SPECTRUM_RUN?= /var/run/spectrum +SPECTRUM_DB?= /var/db/spectrum +SPECTRUM_LOG?= /var/log/spectrum + +OWN_DIRS+= ${SPECTRUM_RUN} ${SPECTRUM_DB} ${SPECTRUM_LOG} +OWN_DIRS_PERMS+= ${SPECTRUM_RUN} ${JABBER_USER} ${JABBER_GROUP} 770 +OWN_DIRS_PERMS+= ${SPECTRUM_DB} ${JABBER_USER} ${JABBER_GROUP} 770 +OWN_DIRS_PERMS+= ${SPECTRUM_LOG} ${JABBER_USER} ${JABBER_GROUP} 770 PKG_SYSCONFSUBDIR= spectrum EGDIR= ${PREFIX}/share/examples/spectrum @@ -69,6 +78,14 @@ SUBST_FILES.users+= man/spectrumctl.8 SUBST_MESSAGE.users= Correcting spectrum user SUBST_SED.users= -e 's/@SPECTRUM_USER@/${JABBER_USER}/g' +SUBST_CLASSES+= cfg +SUBST_STAGE.cfg= post-patch +SUBST_FILES.cfg= spectrum.cfg +SUBST_MESSAGE.cfg= Fixing paths in default config file +SUBST_SED.cfg= -e 's,/var/run/spectrum,${SPECTRUM_RUN},g' +SUBST_SED.cfg+= -e 's,/var/lib/spectrum,${SPECTRUM_DB},g' +SUBST_SED.cfg+= -e 's,/var/log/spectrum,${SPECTRUM_LOG},g' + MESSAGE_SUBST+= EGDIR=${EGDIR} MESSAGE_SUBST+= PREFIX=${PREFIX} MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} |