46 lines
1003 B
Makefile
46 lines
1003 B
Makefile
# $OpenBSD: Makefile,v 1.2 2014/04/18 22:01:22 sthen Exp $
|
|
|
|
COMMENT= Ubiquiti uniFi wireless controller
|
|
|
|
DISTFILES= unifi-$V{UniFi.unix}.zip
|
|
V= 3.1.10
|
|
REVISION= 0
|
|
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/$V/
|
|
|
|
MODULES= java
|
|
MODJAVA_VER= 1.6+
|
|
MODJAVA_JRERUN= yes
|
|
|
|
RUN_DEPENDS= databases/mongodb \
|
|
java/javaPathHelper
|
|
|
|
NO_BUILD= Yes
|
|
NO_TEST= Yes
|
|
|
|
WRKDIST= ${WRKDIR}/UniFi
|
|
|
|
INSTDIR= ${PREFIX}/share/unifi/
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${INSTDIR}
|
|
cp -Rp ${WRKSRC}/* ${INSTDIR}
|
|
ln -fs ${LOCALBASE}/bin/mongod ${INSTDIR}/bin/mongod
|
|
ln -s /var/log/unifi ${INSTDIR}/logs
|
|
chown -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}
|
|
chmod -R ${SHAREMODE} ${INSTDIR}
|
|
|
|
.include <bsd.port.mk>
|