aboutsummaryrefslogtreecommitdiff
path: root/net-im/openfire/Makefile
diff options
context:
space:
mode:
authorAlexander Botero-Lowry <alexbl@FreeBSD.org>2006-11-16 08:56:46 +0000
committerAlexander Botero-Lowry <alexbl@FreeBSD.org>2006-11-16 08:56:46 +0000
commitbb7a253a8469492f9a9c15349ebfc1b5485882da (patch)
tree54d6646234015437c36ec0f5ba232fd7cdb2c171 /net-im/openfire/Makefile
parent93d85f01a056b10f0fa08e182e66195cb6e31215 (diff)
Wildfire is an enterprise instant messaging (EIM) server dual-licensed under
the Open Source GPL and commercially. It uses the leading open protocol for instant messaging, XMPP (also called Jabber). Wildfire is incredibly easy to setup and administer, but offers rock-solid security and performance. WWW: http://www.jivesoftware.org/wildfire/ PR: ports/103492 Submitted by: Nikolay Pavlov <quetzal at zone3000.net>
Notes
Notes: svn path=/head/; revision=177379
Diffstat (limited to 'net-im/openfire/Makefile')
-rw-r--r--net-im/openfire/Makefile80
1 files changed, 80 insertions, 0 deletions
diff --git a/net-im/openfire/Makefile b/net-im/openfire/Makefile
new file mode 100644
index 000000000000..4d8eb82eb758
--- /dev/null
+++ b/net-im/openfire/Makefile
@@ -0,0 +1,80 @@
+# New ports collection makefile for: wildfire
+# Date created: 2006-11-12
+# Whom: Nikolay Pavlov <quetzal@zone3000.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= wildfire
+PORTVERSION= 3.1.1
+PORTREVISION= 1
+CATEGORIES= net-im java
+MASTER_SITES= http://www.jivesoftware.org/builds/wildfire/
+DISTNAME= ${PORTNAME}_src_${PORTVERSION:S/./_/g}
+
+MAINTAINER= quetzal@zone3000.net
+COMMENT= Wildfire is an enterprise instant messaging (EIM) server
+
+RUN_DEPENDS= classpath:${PORTSDIR}/java/javavmwrapper
+
+USE_JAVA= yes
+JAVA_VERSION= 1.5+
+
+USE_ANT= yes
+
+USE_RC_SUBR= wildfire
+
+ALL_TARGET= wildfire
+
+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)
+
+ ${MKDIR} ${DOCSDIR};
+ (cd ${WRKSRC} && ${INSTALL_DATA} -o ${SHAREOWN} -g ${SHAREGRP} \
+ LICENSE.html README.html changelog.html ${DOCSDIR});
+
+.if !defined(NOPORTDOCS)
+ (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}
+
+.include <bsd.port.mk>