openbsd-ports/net/openfire/Makefile
2010-03-24 02:38:29 +00:00

66 lines
2.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.8 2010/03/24 02:38:29 jcs Exp $
COMMENT= XMPP real time collaboration server
DISTNAME= openfire_src_3_6_4
PKGNAME= openfire-3.6.4p3
CATEGORIES= net
MASTER_SITES= http://www.igniterealtime.org/downloadServlet?filename=openfire/
HOMEPAGE= http://www.igniterealtime.org/projects/openfire/index.jsp
MAINTAINER= Jolan Luff <jolan@openbsd.org>
# GPLv2
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
NO_REGRESS= yes
MODULES=java
MODJAVA_VER= 1.7+
BUILD_DEPENDS= ::devel/apache-ant
MAKE_ENV+= JAVA_HOME=${JAVA_HOME}
WRKDIST= ${WRKDIR}/openfire_src
OPENFIREDEST= ${PREFIX}/openfire
DATADIRS= lib logs plugins resources
post-configure:
@sed -e "s|__LOCALBASE__|${LOCALBASE}|g ; s|__PREFIX__|${PREFIX}|g" ${FILESDIR}/openfirectl.template > ${WRKBUILD}/openfirectl
do-build:
cd ${WRKSRC}/build && ${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/ant
pre-install:
rm -rf ${WRKSRC}/target/openfire/resources/nativeAuth
mv ${WRKSRC}/target/openfire/resources/security ${WRKBUILD}
do-install:
cd ${WRKSRC}/target/openfire && \
find ${DATADIRS} -type d \
-exec ${INSTALL_DATA_DIR} ${OPENFIREDEST}/{} \; && \
find ${DATADIRS} ! -type d \
-exec ${INSTALL_DATA} -m 644 {} ${OPENFIREDEST}/{} \;
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/openfire
${INSTALL_DATA} ${WRKSRC}/documentation/docs/*-guide.html \
${PREFIX}/share/doc/openfire
${INSTALL_DATA} ${WRKSRC}/documentation/docs/database.html \
${PREFIX}/share/doc/openfire
@sed -e "s|__PREFIX__|${TRUEPREFIX}|g" ${FILESDIR}/README.OpenBSD > \
${WRKBUILD}/README.OpenBSD
${INSTALL_DATA} ${WRKBUILD}/README.OpenBSD \
${PREFIX}/share/doc/openfire
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/openfire/security
${INSTALL_DATA} ${WRKSRC}/target/openfire/conf/openfire.xml \
${PREFIX}/share/examples/openfire
${INSTALL_DATA} ${WRKBUILD}/security/* \
${PREFIX}/share/examples/openfire/security
${INSTALL_SCRIPT} ${WRKBUILD}/openfirectl ${PREFIX}/sbin
.include <bsd.port.mk>