diff options
author | feld <feld@FreeBSD.org> | 2019-03-10 02:12:18 +0800 |
---|---|---|
committer | feld <feld@FreeBSD.org> | 2019-03-10 02:12:18 +0800 |
commit | 899bb419b9e6e4cb8da16ae2cf9129e57406b722 (patch) | |
tree | ea884390f36461ffb43c93b58889eadea91b867d /net-mgmt | |
parent | ef8cde0e44c8da74f0913ed8a952a0be86f27625 (diff) | |
download | freebsd-ports-gnome-899bb419b9e6e4cb8da16ae2cf9129e57406b722.tar.gz freebsd-ports-gnome-899bb419b9e6e4cb8da16ae2cf9129e57406b722.tar.zst freebsd-ports-gnome-899bb419b9e6e4cb8da16ae2cf9129e57406b722.zip |
net-mgmt/unifi-lts: Fix support for Mongo 3.6+
Ubiquiti still hasn't fixed UniFi-LTS after this was reported ages ago, so
I guess every OS will have to fix this manually.
Reported by: many
MFH: 2019Q1
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/unifi-lts/Makefile | 5 | ||||
-rw-r--r-- | net-mgmt/unifi-lts/files/mongod.in | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/net-mgmt/unifi-lts/Makefile b/net-mgmt/unifi-lts/Makefile index 7ef2cd42b3ce..5452dc269dd7 100644 --- a/net-mgmt/unifi-lts/Makefile +++ b/net-mgmt/unifi-lts/Makefile @@ -3,7 +3,7 @@ PORTNAME= unifi PORTVERSION= 5.6.40 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net-mgmt java MASTER_SITES= http://dl.ubnt.com/unifi/${PORTVERSION}/ PKGNAMESUFFIX= -lts @@ -17,6 +17,7 @@ COMMENT= UniFi Controller v5 RUN_DEPENDS= mongodb36>0:databases/mongodb36 \ snappyjava>0:archivers/snappy-java +SUB_FILES= mongod SUB_LIST+= USERS=${USERS} GROUPS=${GROUPS} JAVASHAREDIR=${JAVASHAREDIR} \ JAVA=${JAVA} @@ -54,7 +55,7 @@ post-patch: do-install: ${MKDIR} ${STAGEDIR}${JAVASHAREDIR}/unifi (cd ${WRKSRC}/usr/lib/unifi && ${COPYTREE_SHARE} \* ${STAGEDIR}${JAVASHAREDIR}/unifi/) - ${LN} -sf ${PREFIX}/bin/mongod ${STAGEDIR}${JAVASHAREDIR}/unifi/bin/mongod + ${INSTALL_SCRIPT} ${WRKDIR}/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} diff --git a/net-mgmt/unifi-lts/files/mongod.in b/net-mgmt/unifi-lts/files/mongod.in new file mode 100644 index 000000000000..0501549a6ed6 --- /dev/null +++ b/net-mgmt/unifi-lts/files/mongod.in @@ -0,0 +1,6 @@ +#!/bin/sh + +# Remove argument that doesn't exist on mongodb 3.6+ +ARGS="$(echo -n ${@} | /usr/bin/sed 's,--nohttpinterface,,')" + +%%PREFIX%%/bin/mongod ${ARGS} & |