diff options
-rw-r--r-- | net-im/jabberd/Makefile | 3 | ||||
-rw-r--r-- | net-im/jabberd/pkg-deinstall | 2 | ||||
-rw-r--r-- | net-im/jabberd/pkg-install | 4 | ||||
-rw-r--r-- | net/jabberd/Makefile | 3 | ||||
-rw-r--r-- | net/jabberd/pkg-deinstall | 2 | ||||
-rw-r--r-- | net/jabberd/pkg-install | 4 |
6 files changed, 16 insertions, 2 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 diff --git a/net/jabberd/Makefile b/net/jabberd/Makefile index 638bd4d..8d62392 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 ec0a1eb..8a4fe0f 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 43cb775..e45dcc1 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 |