summaryrefslogtreecommitdiffstats
path: root/net-im/jabberd
diff options
context:
space:
mode:
authordemon <demon@FreeBSD.org>2004-01-01 13:21:15 +0000
committerdemon <demon@FreeBSD.org>2004-01-01 13:21:15 +0000
commitaac683c83dd46ce1c17fa6a2573950293a241a84 (patch)
treeb2b77f525cf7860222354529fa5ad88b22520f9c /net-im/jabberd
parenta271ffd367a14acb5a928fee5caeb6f5cc910fd3 (diff)
downloadFreeBSD-ports-aac683c83dd46ce1c17fa6a2573950293a241a84.zip
FreeBSD-ports-aac683c83dd46ce1c17fa6a2573950293a241a84.tar.gz
Put datafiles in /var/jabber directory.
Remind to remove this directory manually on deinstall.
Diffstat (limited to 'net-im/jabberd')
-rw-r--r--net-im/jabberd/Makefile3
-rw-r--r--net-im/jabberd/pkg-deinstall2
-rw-r--r--net-im/jabberd/pkg-install4
3 files changed, 8 insertions, 1 deletions
diff --git a/net-im/jabberd/Makefile b/net-im/jabberd/Makefile
index 638bd4d..8d62392 100644
--- a/net-im/jabberd/Makefile
+++ b/net-im/jabberd/Makefile
@@ -18,7 +18,8 @@ COMMENT= Online presence and instant messaging server
LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE} \
+CONFIGURE_ARGS= --localstatedir=/var \
+ --with-libiconv-prefix=${LOCALBASE} \
--enable-storage='${STORAGE}' \
--enable-authreg='${AUTHREG}'
diff --git a/net-im/jabberd/pkg-deinstall b/net-im/jabberd/pkg-deinstall
index ec0a1eb..8a4fe0f 100644
--- a/net-im/jabberd/pkg-deinstall
+++ b/net-im/jabberd/pkg-deinstall
@@ -16,4 +16,6 @@ if pw groupshow "${USER}" 2>/dev/null 1>&2; then
echo "To delete Jabber group permanently, use 'pw groupdel ${USER}'"
fi
+echo "If you wish to delete jabber data files, remove '/var/jabberd' directory."
+
exit 0
diff --git a/net-im/jabberd/pkg-install b/net-im/jabberd/pkg-install
index 43cb775..e45dcc1 100644
--- a/net-im/jabberd/pkg-install
+++ b/net-im/jabberd/pkg-install
@@ -31,4 +31,8 @@ if ! pw usershow "${USER}" 2>/dev/null 1>&2; then
exit 1
fi
fi
+
+mkdir -p /var/jabberd/db /var/jabberd/pid /var/jabberd/log
+chown jabber:jabber /var/jabberd /var/jabberd/db /var/jabberd/pid /var/jabberd/log
+
exit 0
OpenPOWER on IntegriCloud