freebsd-ports/net-mgmt/unifi4/Makefile
Mark Felder 1b4f314b17 Welcome unifi4 to the ports tree.
This is still alpha software according to Ubiquiti. You've been warned.

PR:		194628
Submitted by:	Alban Maire
2014-10-31 13:32:02 +00:00

44 lines
995 B
Makefile

# Created by: Alban MAIRE <a.maire@s2mi.fr>
# $FreeBSD$
PORTNAME= unifi4
PORTVERSION= 4.2.0
CATEGORIES= net-mgmt java
MASTER_SITES= http://dl.ubnt.com/unifi/${PORTVERSION}/
DISTNAME= UniFi.unix
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
MAINTAINER= feld@FreeBSD.org
COMMENT= UniFi Controller
RUN_DEPENDS= mongodb>0:${PORTSDIR}/databases/mongodb
SUB_LIST+= USERS=${USERS} GROUPS=${GROUPS} JAVASHAREDIR=${JAVASHAREDIR}
USES= cpe zip
CPE_VENDOR= ubnt
CPE_PRODUCT= unifi_controller
USE_JAVA= yes
JAVA_VERSION= 1.6+
JAVA_OS= native
JAVA_VENDOR= openjdk bsdjava
JAVA_RUN= yes
NO_BUILD= yes
USE_RC_SUBR= unifi
USERS= unifi
GROUPS= unifi
WRKSRC= ${WRKDIR}/UniFi
RESTRICTED= Redistribution of bundled firmware images is not permitted
CONFLICTS= unifi2-* unifi3-*
do-install:
${MKDIR} ${STAGEDIR}${JAVASHAREDIR}/unifi
(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${JAVASHAREDIR}/unifi/)
${LN} -sf ${PREFIX}/bin/mongod ${STAGEDIR}${JAVASHAREDIR}/unifi/bin/mongod
.include <bsd.port.mk>