diff options
author | Chris Piazza <cpiazza@FreeBSD.org> | 2000-05-19 06:37:24 +0000 |
---|---|---|
committer | Chris Piazza <cpiazza@FreeBSD.org> | 2000-05-19 06:37:24 +0000 |
commit | cc3897a83ebb926470f25dc52c49b4a98b89c0da (patch) | |
tree | 9809b48d84561edd013eaca756b4102c2606d704 /net-im/jabber/pkg-install | |
parent | Activate openjade. (diff) |
Make the makefile and INSTALL script to work correctly with pkg_add.
PR: 18635
Submitted by: maintainer
Diffstat (limited to '')
-rw-r--r-- | net-im/jabber/pkg-install | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/net-im/jabber/pkg-install b/net-im/jabber/pkg-install index 794315549287..9a0bf378ad65 100644 --- a/net-im/jabber/pkg-install +++ b/net-im/jabber/pkg-install @@ -110,15 +110,25 @@ EOF user=jserver group=jserver spooldir="/var/jspool" - etcdir=${PREFIX}/etc + etcdir=${PREFIX:-$PKG_PREFIX}/etc echo "" make_account ${user} ${group} "Jabber Daemon" "/nonexistent" + if [ ! -d ${spooldir} ]; then + echo "Creating \"${spooldir}\"." + mkdir -p ${spooldir} + fi + echo "Fixing ownerships and modes in \"${spooldir}\"." chown -R ${user}:${group} ${spooldir} chmod -R go= ${spooldir} + if [ ! -f ${etcdir}/jserver.xml ]; then + echo "Creating \"${etcdir}/jserver.xml\"." + cp -p ${etcdir}/jserver.xml.default ${etcdir}/jserver.xml + fi + echo "Fixing config files ownerships and modes." chown root:${group} ${etcdir}/jserver.xml ${etcdir}/jserver.xml.default chmod 640 ${etcdir}/jserver.xml ${etcdir}/jserver.xml.default |