summaryrefslogtreecommitdiff
path: root/net-im/jabberd/Makefile
diff options
context:
space:
mode:
authorDmitry Sivachenko <demon@FreeBSD.org>2004-01-01 10:48:49 +0000
committerDmitry Sivachenko <demon@FreeBSD.org>2004-01-01 10:48:49 +0000
commita8f68869187350d89b0a2387872a16223f42a96b (patch)
tree827c72933244370bc636794ce980e24bc310d516 /net-im/jabberd/Makefile
parentDo delete config files if they were not changed after installation. (diff)
Set the appropriate permissions for config files;
Add dependency to libiconv; Compile with debug messages unless WITHOUT_DEBUG is set; Minor spelling nit.
Notes
Notes: svn path=/head/; revision=97026
Diffstat (limited to 'net-im/jabberd/Makefile')
-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>