From 4615977e679224f727dbbaa66f6314efa5a6c476 Mon Sep 17 00:00:00 2001 From: demon Date: Thu, 1 Jan 2004 10:48:49 +0000 Subject: Set the appropriate permissions for config files; Add dependency to libiconv; Compile with debug messages unless WITHOUT_DEBUG is set; Minor spelling nit. --- net/jabberd/Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'net/jabberd/Makefile') diff --git a/net/jabberd/Makefile b/net/jabberd/Makefile index 9f16601..638bd4d 100644 --- a/net/jabberd/Makefile +++ b/net/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 -- cgit v1.1