diff options
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} & |