1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/net-mgmt/unifi4/Makefile

52 lines
1.2 KiB
Makefile

# Created by: Alban MAIRE <a.maire@s2mi.fr>
# $FreeBSD$
PORTNAME= unifi4
PORTVERSION= 4.7.5
PORTREVISION= 0
CATEGORIES= net-mgmt java
MASTER_SITES= https://www.ubnt.com/downloads/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}
PLIST_SUB+= PORTVERSION=${PORTVERSION}
USES= cpe zip
CPE_VENDOR= ubnt
CPE_PRODUCT= unifi_controller
USE_JAVA= yes
JAVA_VERSION= 1.8
JAVA_OS= native
JAVA_VENDOR= openjdk bsdjava
JAVA_RUN= yes
NO_BUILD= yes
NO_ARCH= 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
# Create directories that will be writable by unifi
.for i in data logs run work
${MKDIR} ${STAGEDIR}/${JAVASHAREDIR}/unifi/${i}
.endfor
.include <bsd.port.mk>