diff options
author | Dmitry Sivachenko <demon@FreeBSD.org> | 2004-01-01 13:21:15 +0000 |
---|---|---|
committer | Dmitry Sivachenko <demon@FreeBSD.org> | 2004-01-01 13:21:15 +0000 |
commit | 75fdd3fbc09afea1d6ae6c5df8c351b415b25957 (patch) | |
tree | 8efbbabe03444600f34f54dbfbf5dc85e12f50f2 /net | |
parent | Eliminate the evidence that I stole this file from net/jabber port. (diff) |
Put datafiles in /var/jabber directory.
Remind to remove this directory manually on deinstall.
Notes
Notes:
svn path=/head/; revision=97030
Diffstat (limited to 'net')
-rw-r--r-- | net/jabberd/Makefile | 3 | ||||
-rw-r--r-- | net/jabberd/pkg-deinstall | 2 | ||||
-rw-r--r-- | net/jabberd/pkg-install | 4 |
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 |