openbsd-ports/net/openfire/Makefile

55 lines
1.5 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.25 2012/10/23 20:43:52 jasper Exp $
COMMENT= XMPP real time collaboration server
DISTNAME= openfire_src_3_7_1
PKGNAME= openfire-3.7.1
CATEGORIES= net
MASTER_SITES= http://www.igniterealtime.org/downloadServlet?filename=openfire/
HOMEPAGE= http://www.igniterealtime.org/projects/openfire/index.jsp
# ASL 2.0
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
2009-06-18 23:03:14 -04:00
NO_REGRESS= yes
MODULES=java
MODJAVA_VER = 1.7+
MODJAVA_JRE = Yes
2011-09-01 13:18:50 -04:00
MODJAVA_BUILD = ant
RUN_DEPENDS = java/javaPathHelper
WRKDIST= ${WRKDIR}/openfire_src
2011-09-05 02:55:16 -04:00
WRKSRC= ${WRKDIST}/build/
OPENFIREDEST= ${PREFIX}/openfire
DATADIRS= lib logs plugins resources
pre-install:
2011-09-05 02:55:16 -04:00
rm -rf ${WRKDIST}/target/openfire/resources/nativeAuth
mv ${WRKDIST}/target/openfire/resources/security ${WRKBUILD}
do-install:
2011-09-05 02:55:16 -04:00
cd ${WRKDIST}/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
2011-09-05 02:55:16 -04:00
${INSTALL_DATA} ${WRKDIST}/documentation/docs/*-guide.html \
${PREFIX}/share/doc/openfire
2011-09-05 02:55:16 -04:00
${INSTALL_DATA} ${WRKDIST}/documentation/docs/database.html \
${PREFIX}/share/doc/openfire
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/openfire/security
2011-09-05 02:55:16 -04:00
${INSTALL_DATA} ${WRKDIST}/target/openfire/conf/openfire.xml \
${PREFIX}/share/examples/openfire
${INSTALL_DATA} ${WRKBUILD}/security/* \
${PREFIX}/share/examples/openfire/security
.include <bsd.port.mk>