sthen 0ab68330a1 update to unifi-5.0.6, release notes at
https://community.ubnt.com/t5/UniFi-Updates-Blog/UniFi-5-0-6-is-released/ba-p/1579716

new AP firmware has changes to the rate selection code fixing issues
where some clients stay associated but don't have a usable connection.
new gen2 AP firmware has this, plus a fix for 5GHz radio lockup under load.
2016-06-02 11:35:23 +00:00

58 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.27 2016/06/02 11:35:23 sthen Exp $
COMMENT= controller for Ubiquiti uniFi (AP/routing/switching/voip)
VERSION= 5.0.6
V= ${VERSION:C/-.*//}
DISTFILES= unifi-$V{UniFi.unix}.zip unifi_sh_api-$V{unifi_sh_api}
EXTRACT_ONLY= unifi-$V.zip
PKGNAME= unifi-$V
CATEGORIES= net
HOMEPAGE= http://wiki.ubnt.com/UniFi_FAQ
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
# at least the firmware files are restricted, if not more
PERMIT_PACKAGE_CDROM= http://www.ubnt.com/eula/
PERMIT_PACKAGE_FTP= http://www.ubnt.com/eula/
PERMIT_DISTFILES_FTP= http://www.ubnt.com/eula/
MASTER_SITES= http://dl.ubnt.com/unifi/${VERSION}/
MODULES= java
MODJAVA_VER= 1.8+
MODJAVA_JRERUN= yes
RUN_DEPENDS= databases/mongodb \
java/javaPathHelper
NO_BUILD= Yes
NO_TEST= Yes
WRKDIST= ${WRKDIR}/UniFi
INSTDIR= ${PREFIX}/share/unifi/
LIB_V= lib/4_8_18_8395
SUBST_VARS= LIB_V
post-extract:
cp ${FULLDISTDIR}/unifi_sh_api-$V ${WRKSRC}/unifi_sh_api
do-install:
${INSTALL_DATA_DIR} ${INSTDIR}{,/backup,/data,/run,/work}
cp -Rp ${WRKSRC}/* ${INSTDIR}
ln -fs ${LOCALBASE}/bin/mongod ${INSTDIR}/bin/mongod
ln -s /var/log/unifi ${INSTDIR}/logs
chown -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}
find ${INSTDIR} -type f|xargs chmod ${SHAREMODE}
find ${INSTDIR} -type d|xargs chmod ${DIRMODE}
${SUBST_CMD} -c -m 555 -o ${BINOWN} -g ${BINGRP} \
${FILESDIR}/unifi.sh ${PREFIX}/bin/unifi
ln -s unifi ${PREFIX}/bin/unifi-discover
rm -f ${INSTDIR}/unifi_sh_api.orig
rm -rf ${INSTDIR}/lib/native
.include <bsd.port.mk>