aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/jabberd
diff options
context:
space:
mode:
authordemon <demon@FreeBSD.org>2004-01-01 18:48:49 +0800
committerdemon <demon@FreeBSD.org>2004-01-01 18:48:49 +0800
commit4615977e679224f727dbbaa66f6314efa5a6c476 (patch)
tree349619d30f25c7a0779991b5b45ff40139a0ebd2 /net-im/jabberd
parent4e4fe2ff81906129834b36119f40606e66e2edb3 (diff)
downloadfreebsd-ports-gnome-4615977e679224f727dbbaa66f6314efa5a6c476.tar.gz
freebsd-ports-gnome-4615977e679224f727dbbaa66f6314efa5a6c476.tar.zst
freebsd-ports-gnome-4615977e679224f727dbbaa66f6314efa5a6c476.zip
Set the appropriate permissions for config files;
Add dependency to libiconv; Compile with debug messages unless WITHOUT_DEBUG is set; Minor spelling nit.
Diffstat (limited to 'net-im/jabberd')
-rw-r--r--net-im/jabberd/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/net-im/jabberd/Makefile b/net-im/jabberd/Makefile
index 9f166012d6fb..638bd4dcb080 100644
--- a/net-im/jabberd/Makefile
+++ b/net-im/jabberd/Makefile
@@ -15,15 +15,20 @@ DIST_SUBDIR= jabber
MAINTAINER= demon@FreeBSD.org
COMMENT= Online presence and instant messaging server
+LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv
+
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE} \
--enable-storage='${STORAGE}' \
- --enable-authreg='${AUTHREG}' \
- --enable-debug
+ --enable-authreg='${AUTHREG}'
STORAGE+= fs
AUTHREG+= anon pipe
+.if !defined(WITHOUT_DEBUG)
+CONFIGURE_ARGS+=--enable-debug
+.endif
+
.if defined(WITH_PGSQL)
LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql-client
CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE}/include:${LOCALBASE}/lib
@@ -55,7 +60,7 @@ MAN8= c2s.8 jabberd.8 resolver.8 router.8 s2s.8 sm.8
pre-everything::
@${ECHO}
- @${ECHO} "You can build jabberd with the following options:"
+ @${ECHO} "You can build Jabber with the following options:"
@${ECHO} "WITH_PGSQL use PostgreSQL for storage and authentication"
@${ECHO} "WITH_BDB use Berkeley DB for storage and authentication"
@${ECHO} "WITH_MYSQL use MySQL for storage and authentication"
@@ -71,5 +76,8 @@ post-install:
${ECHO} "Installing ${PREFIX}/etc/rc.d/jabberd.sh startup file."; \
${INSTALL_SCRIPT} ${FILESDIR}/jabberd.sh ${PREFIX}/etc/rc.d/jabberd.sh; \
fi
+ @${CHOWN} -R jabber:jabber ${PREFIX}/etc/jabberd
+ @${FIND} ${PREFIX}/etc/jabberd -type d | ${XARGS} ${CHMOD} 750
+ @${FIND} ${PREFIX}/etc/jabberd -type f | ${XARGS} ${CHMOD} 660
.include <bsd.port.mk>