openbsd-ports/net/mfi/Makefile
ajacoutot c4096e6659 Stop using the daemon class in @newuser.
If we need to make an exception we can do it and properly document the
reason but by default we should just use the default login class.
rc.d uses daemon or the login class provided in login.conf.d so this has
no impact there.

discussed with sthen@, tb@ and robert@

praying that my grep/sed skills did not break anything and still
believing in portbump :-)
2022-11-08 11:16:56 +00:00

44 lines
1015 B
Makefile

COMMENT= Ubiquiti mfi wireless controller
DISTFILES= mFi-$V{mFi.unix}.zip
V= 2.1.2
FW_VER= 2.1.2.1297
PKGNAME= mfi-$V
REVISION= 10
CATEGORIES= net
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>
# at least the firmware files are restricted, if not more
PERMIT_PACKAGE= http://www.ubnt.com/eula/
PERMIT_DISTFILES= http://www.ubnt.com/eula/
MASTER_SITES= http://dl.ubnt.com/mfi/$V/
MODULES= java
MODJAVA_VER= 1.8
RUN_DEPENDS= databases/mongodb/36 \
java/javaPathHelper
NO_BUILD= Yes
NO_TEST= Yes
WRKDIST= ${WRKDIR}/mFi
INSTDIR= ${PREFIX}/share/mfi/
SUBST_VARS= FW_VER
do-install:
${INSTALL_DATA_DIR} ${INSTDIR}
cp -Rp ${WRKSRC}/* ${INSTDIR}
ln -fs ${LOCALBASE}/bin/mongod ${INSTDIR}/bin/mongod
ln -s /var/log/mfi ${INSTDIR}/logs
chown -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}
find ${INSTDIR} -type f -exec chmod ${SHAREMODE} {} + -o \
-type d -exec chmod ${DIRMODE} {} +
${SUBST_CMD} -c -m 555 -o ${BINOWN} -g ${BINGRP} \
${FILESDIR}/mfi.sh ${PREFIX}/bin/mfi
.include <bsd.port.mk>