pkgsrc/chat/jabberd/Makefile
jlam 9c8b5ede43 Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
2006-03-04 21:28:51 +00:00

86 lines
2.6 KiB
Makefile

# $NetBSD: Makefile,v 1.23 2006/03/04 21:29:03 jlam Exp $
#
DISTNAME= jabber-1.4.2
PKGNAME= jabberd-1.4.2
PKGREVISION= 5
CATEGORIES= chat
MASTER_SITES= http://jabberd.jabberstudio.org/1.4/dist/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://jabberd.jabberstudio.org/1.4/
COMMENT= Instant messaging server
CONFLICTS= jabberd2-[0-9]*
PKG_INSTALLATION_TYPES= overwrite pkgviews
HAS_CONFIGURE= yes
USE_TOOLS+= gmake
CONFIGURE_ARGS+= --enable-ssl
RCD_SCRIPTS= jabberd
PKG_SYSCONFSUBDIR= jabberd
EGDIR= ${PREFIX}/share/examples/jabberd
LIBDIR= ${PREFIX}/lib/jabberd
INCDIR= ${PREFIX}/include/jabberd
.include "options.mk"
# some systems don't have u_intN_t
CPPFLAGS+= -Du_int8_t=uint8_t
BUILD_DEFS+= JABBERD_USER JABBERD_GROUP \
JABBERD_LOGDIR JABBERD_SPOOLDIR \
JABBERD_PIDDIR
PKG_GROUPS= ${JABBERD_GROUP}
PKG_USERS= ${JABBERD_USER}:${JABBERD_GROUP}::Jabberd\ user
FILES_SUBST+= JABBERD_USER=${JABBERD_USER:Q}
FILES_SUBST+= JABBERD_GROUP=${JABBERD_GROUP:Q}
FILES_SUBST+= JABBERD_SPOOLDIR=${JABBERD_SPOOLDIR:Q}
FILES_SUBST+= JABBERD_PIDDIR=${JABBERD_PIDDIR:Q}
.for f in ${JABBERD_LOGDIR} ${JABBERD_SPOOLDIR} ${JABBERD_PIDDIR}
OWN_DIRS_PERMS+= ${f} ${JABBERD_USER} ${JABBERD_GROUP} 750
.endfor
CONF_FILES= ${EGDIR}/jabber.xml ${PKG_SYSCONFDIR}/jabber.xml
CONF_FILES+= ${EGDIR}/platform-settings \
${PKG_SYSCONFDIR}/platform-settings
INSTALLATION_DIRS= sbin
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
@${CP} ${PKGSRCDIR}/mk/gnu-config/config.guess ${WRKSRC}/jabberd/pth-1.4.0
@${CP} ${PKGSRCDIR}/mk/gnu-config/config.sub ${WRKSRC}/jabberd/pth-1.4.0
do-install:
${INSTALL_DATA_DIR} ${EGDIR} ${LIBDIR} ${INCDIR} ${INCDIR}/lib
${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}
${INSTALL_DATA} ${WRKSRC}/jabberd/lib/lib.h ${INCDIR}/lib
${INSTALL_DATA} ${WRKSRC}/jabberd/lib/xmlparse.h ${INCDIR}/lib
#.include "../../devel/pth/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"