aboutsummaryrefslogtreecommitdiffstats
path: root/net/jabberd
diff options
context:
space:
mode:
authordemon <demon@FreeBSD.org>2004-01-01 21:21:15 +0800
committerdemon <demon@FreeBSD.org>2004-01-01 21:21:15 +0800
commitaac683c83dd46ce1c17fa6a2573950293a241a84 (patch)
treeb2b77f525cf7860222354529fa5ad88b22520f9c /net/jabberd
parenta271ffd367a14acb5a928fee5caeb6f5cc910fd3 (diff)
downloadfreebsd-ports-gnome-aac683c83dd46ce1c17fa6a2573950293a241a84.tar.gz
freebsd-ports-gnome-aac683c83dd46ce1c17fa6a2573950293a241a84.tar.zst
freebsd-ports-gnome-aac683c83dd46ce1c17fa6a2573950293a241a84.zip
Put datafiles in /var/jabber directory.
Remind to remove this directory manually on deinstall.
Diffstat (limited to 'net/jabberd')
-rw-r--r--net/jabberd/Makefile3
-rw-r--r--net/jabberd/pkg-deinstall2
-rw-r--r--net/jabberd/pkg-install4
3 files changed, 8 insertions, 1 deletions
diff --git a/net/jabberd/Makefile b/net/jabberd/Makefile
index 638bd4dcb080..8d62392dd366 100644
--- a/net/jabberd/Makefile
+++ b/net/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/jabberd/pkg-deinstall b/net/jabberd/pkg-deinstall
index ec0a1eb4d869..8a4fe0fcabf9 100644
--- a/net/jabberd/pkg-deinstall
+++ b/net/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/jabberd/pkg-install b/net/jabberd/pkg-install
index 43cb7753583f..e45dcc1b3e2c 100644
--- a/net/jabberd/pkg-install
+++ b/net/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