mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
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
This commit is contained in:
parent
a6d82dfcd5
commit
5d306ca36e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=495184
@ -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}
|
||||
|
6
net-mgmt/unifi-lts/files/mongod.in
Normal file
6
net-mgmt/unifi-lts/files/mongod.in
Normal file
@ -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} &
|
Loading…
Reference in New Issue
Block a user