2004-04-07 15:13:18 +02:00
|
|
|
# $NetBSD: Makefile,v 1.7 2004/04/07 13:13:18 salo Exp $
|
2003-12-23 11:16:20 +01:00
|
|
|
#
|
|
|
|
|
2004-02-21 06:38:29 +01:00
|
|
|
DISTNAME= jabber-1.4.2
|
|
|
|
PKGNAME= jabberd-1.4.2
|
2004-03-26 03:27:34 +01:00
|
|
|
PKGREVISION= 1
|
2003-12-23 11:16:20 +01:00
|
|
|
CATEGORIES= chat
|
2004-02-21 06:38:29 +01:00
|
|
|
MASTER_SITES= http://jabberd.jabberstudio.org/downloads/ \
|
|
|
|
http://jabberd.jabberstudio.org/1.4/dist/
|
2003-12-23 11:16:20 +01:00
|
|
|
|
|
|
|
MAINTAINER= xtraeme@NetBSD.org
|
|
|
|
HOMEPAGE= http://jabberd.jabberstudio.org/1.4/
|
|
|
|
COMMENT= Instant messaging server
|
|
|
|
|
2004-04-07 15:13:18 +02:00
|
|
|
CONFLICTS= jabberd2-[0-9]*
|
2003-12-23 11:16:20 +01:00
|
|
|
|
2004-02-02 02:37:09 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
|
|
|
USE_BUILDLINK3= yes
|
2003-12-23 11:16:20 +01:00
|
|
|
HAS_CONFIGURE= yes
|
2004-01-22 08:49:20 +01:00
|
|
|
USE_GNU_TOOLS+= make
|
2003-12-23 11:16:20 +01:00
|
|
|
USE_PKGINSTALL= yes
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --enable-ssl
|
|
|
|
|
|
|
|
RCD_SCRIPTS= jabberd
|
|
|
|
PKG_SYSCONFSUBDIR= jabberd
|
|
|
|
|
|
|
|
EGDIR= ${PREFIX}/share/examples/jabberd
|
|
|
|
LIBDIR= ${PREFIX}/lib/jabberd
|
|
|
|
INCDIR= ${PREFIX}/include/jabberd
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2004-02-02 02:37:09 +01:00
|
|
|
# some systems don't have u_intN_t
|
|
|
|
CPPFLAGS+= -Du_int8_t=uint8_t
|
|
|
|
|
2003-12-23 11:16:20 +01:00
|
|
|
BUILD_DEFS+= JABBERD_USER JABBERD_GROUP \
|
|
|
|
JABBERD_LOGDIR JABBERD_SPOOLDIR \
|
|
|
|
JABBERD_PIDDIR USE_INET6
|
|
|
|
|
|
|
|
.if !empty(USE_INET6:M[Yy][Ee][Ss])
|
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
|
|
.endif
|
|
|
|
|
|
|
|
PKG_GROUPS= ${JABBERD_GROUP}
|
|
|
|
PKG_USERS= ${JABBERD_USER}:${JABBERD_GROUP}::Jabberd\\ user
|
|
|
|
|
|
|
|
FILES_SUBST+= JABBERD_USER="${JABBERD_USER}"
|
|
|
|
FILES_SUBST+= JABBERD_GROUP="${JABBERD_GROUP}"
|
|
|
|
FILES_SUBST+= JABBERD_SPOOLDIR="${JABBERD_SPOOLDIR}"
|
|
|
|
FILES_SUBST+= JABBERD_PIDDIR="${JABBERD_PIDDIR}"
|
|
|
|
|
|
|
|
.for f in ${JABBERD_LOGDIR} ${JABBERD_SPOOLDIR} ${JABBERD_PIDDIR}
|
|
|
|
OWN_DIRS_PERMS+= ${f} ${JABBERD_USER} ${JABBERD_GROUP} 750
|
|
|
|
.endfor
|
|
|
|
.undef f
|
|
|
|
|
|
|
|
CONF_FILES= ${EGDIR}/jabber.xml ${PKG_SYSCONFDIR}/jabber.xml
|
|
|
|
SUPPORT_FILES= ${EGDIR}/platform-settings \
|
|
|
|
${PKG_SYSCONFDIR}/platform-settings
|
|
|
|
post-extract:
|
|
|
|
@${MV} ${WRKSRC}/jabber.xml ${WRKSRC}/jabber.xml.in
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@${SED} \
|
|
|
|
-e "s|@LIBDIR@|${PREFIX}/lib/jabberd|g" \
|
|
|
|
-e "s|@LOGDIR@|${JABBERD_LOGDIR}|g" \
|
|
|
|
-e "s|@PIDDIR@|${JABBERD_PIDDIR}|g" \
|
|
|
|
-e "s|@SPOOLDIR@|${JABBERD_SPOOLDIR}|g" \
|
|
|
|
${WRKSRC}/jabber.xml.in > ${WRKSRC}/jabber.xml
|
|
|
|
|
|
|
|
do-install:
|
2004-02-11 04:22:37 +01:00
|
|
|
${INSTALL_DATA_DIR} ${EGDIR} ${LIBDIR} ${INCDIR} ${INCDIR}/lib
|
2003-12-23 11:16:20 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/jabber.xml ${EGDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/platform-settings ${EGDIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/jabberd/jabberd ${PREFIX}/sbin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/jsm/jsm.so ${LIBDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/xdb_file/xdb_file.so ${LIBDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/pthsock/pthsock_client.so ${LIBDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/dnsrv/dnsrv.so ${LIBDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/dialback/dialback.so ${LIBDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/jabberd/jabberd.h ${INCDIR}
|
2004-02-11 04:22:37 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/jabberd/lib/lib.h ${INCDIR}/lib
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/jabberd/lib/xmlparse.h ${INCDIR}/lib
|
2003-12-23 11:16:20 +01:00
|
|
|
|
2004-02-21 06:38:29 +01:00
|
|
|
#.include "../../devel/pth/buildlink3.mk"
|
2004-02-02 02:37:09 +01:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
2003-12-23 11:16:20 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|