1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/net-im/openfire/Makefile
Rong-En Fan 1fc1b6429b - Update to 3.2.3
- Reflect the name change in descr, comment, and message

PR:		ports/110408
Submitted by:	Nikolay Pavlov <quetzal at zone3000.net> (maintainer)
2007-03-19 03:45:02 +00:00

85 lines
2.3 KiB
Makefile

# New ports collection makefile for: wildfire
# Date created: 2006-11-12
# Whom: Nikolay Pavlov <quetzal@zone3000.net>
#
# $FreeBSD$
#
PORTNAME= wildfire
PORTVERSION= 3.2.3
CATEGORIES= net-im java
MASTER_SITES= http://www.igniterealtime.org/downloadServlet?filename=wildfire/
DISTNAME= ${PORTNAME}_src_${PORTVERSION:S/./_/g}
MAINTAINER= quetzal@zone3000.net
COMMENT= Openfire (formerly Wildfire) is an enterprise instant messaging server
RUN_DEPENDS= classpath:${PORTSDIR}/java/javavmwrapper
USE_JAVA= yes
JAVA_VERSION= 1.5+
USE_ANT= yes
USE_RC_SUBR= wildfire
ALL_TARGET= wildfire
SUB_FILES= pkg-message
WRKSRC= ${WRKDIR}/${PORTNAME}_src
BUILD_WRKSRC= ${WRKSRC}/build
INSTALL_WRKSRC= ${WRKSRC}/target/wildfire
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
VARLOG= /var/log/wildfire
VARDB= /var/db/wildfire
WETC= ${PREFIX}/etc/wildfire
PUSER= wildfire
PGROUP= ${PUSER}
MLINKS= ${VARLOG} ${DATADIR}/logs \
${VARDB} ${DATADIR}/embedded-db \
${WETC} ${DATADIR}/conf
do-install:
(cd ${INSTALL_WRKSRC}/lib && \
${INSTALL_DATA} -m 744 *.jar ${JAVAJARDIR});
${MKDIR} ${DATADIR};
${MKDIR} ${VARLOG};
${MKDIR} ${VARDB};
(cd ${INSTALL_WRKSRC}/resources && ${FIND} . \
| ${CPIO} -pvdmu -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}/resources)
(cd ${INSTALL_WRKSRC}/plugins && ${FIND} . \
| ${CPIO} -pvdmu -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}/plugins)
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR};
(cd ${WRKSRC} && ${INSTALL_DATA} -o ${SHAREOWN} -g ${SHAREGRP} \
LICENSE.html README.html changelog.html ${DOCSDIR});
(cd ${WRKSRC}/documentation/docs && ${FIND} . \
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1 )
.endif
post-install:
${MKDIR} ${EXAMPLESDIR};
${CP} -p ${INSTALL_WRKSRC}/conf/wildfire.xml ${EXAMPLESDIR}/wildfire.xml
@if [ ! -f ${WETC}/wildfire.xml ]; then \
${MKDIR} ${WETC}; \
${CP} -p ${INSTALL_WRKSRC}/conf/wildfire.xml ${WETC}/wildfire.xml; \
fi
@PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
${CHOWN} -R ${PUSER}:${PGROUP} ${WETC}
${CHOWN} -R ${PUSER}:${PGROUP} ${VARDB}
${CHOWN} -R ${PUSER}:${PGROUP} ${VARLOG}
${CHOWN} -R ${PUSER}:${PGROUP} ${DATADIR}
@${ECHO_CMD} "===> post-installation information for ${PKGNAME}:"
@${ECHO_CMD} ""
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD} ""
.include <bsd.port.mk>