Drop platform specific binaries.

As far as we know, they are only for Cloud access to the controller.

These binaries are built using libgcc_s.1 and pkgsrc will complain
that this library is missing on the install target if wasn't built
using gcc *even* if these libraries are not native.
This is likely a pkgsrc bug, but we really shouldn't be installing
these anyway.
This commit is contained in:
Roy Marples 2021-01-01 03:13:44 +00:00
parent 702717015e
commit 2efff5be0e
6 changed files with 32 additions and 8 deletions

View File

@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.19 2020/08/30 06:03:53 tnn Exp $
DISTNAME= unifi-6.0.43
PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= -http://dl.ubnt.com/unifi/${PKGVERSION_NOREV}/UniFi.unix.zip
EXTRACT_SUFX= .zip
@ -76,6 +77,30 @@ post-extract:
find ${WRKSRC} -type f -print0 | xargs -0 chmod -x
mkdir ${WRKDIR}/${SNAPPY_JAVA}/target
ln -s ${WRKDIR}/${SNAPPY} ${WRKDIR}/${SNAPPY_JAVA}/target
# drop platform specific binaries
# as far as we know, these are for cloud access to your controller
ls -R ${WRKDIR}/UniFi/lib/native
rm -rf ${WRKDIR}/UniFi/lib/native/Windows
.if (${OPSYS} != "Linux")
rm -rf ${WRKDIR}/UniFi/lib/native/Linux
.else
.if (${MACHINE_ARCH} != "aarch64")
rm -rf ${WRKDIR}/UniFi/lib/native/Linux/aarch64
.endif
.if (${MACHINE_ARCH} != "armv7")
rm -rf ${WRKDIR}/UniFi/lib/native/Linux/armv7
.endif
.if (${MACHINE_ARCH} != "x86_64")
rm -rf ${WRKDIR}/UniFi/lib/native/Linux/x86_64
.endif
.endif
.if (${OPSYS} != "Darwin")
rm -rf ${WRKDIR}/UniFi/lib/native/Mac
.else
.if (${MACHINE_ARCH} != "x86_64")
rm -rf ${WRKDIR}/UniFi/lib/native/Mac/x86_64
.endif
.endif
do-build:
# bundled mongod is a linux binary; replace with symlink to native binary

View File

@ -82,14 +82,6 @@ unifi/lib/log4j-api-2.13.3.jar
unifi/lib/log4j-core-2.13.3.jar
unifi/lib/log4j-slf4j-impl-2.13.3.jar
unifi/lib/mongo-java-driver-3.4.3.jar
unifi/lib/native/Linux/aarch64/libubnt_sdnotify_jni.so
unifi/lib/native/Linux/aarch64/libubnt_webrtc_jni.so
unifi/lib/native/Linux/armv7/libubnt_sdnotify_jni.so
unifi/lib/native/Linux/armv7/libubnt_webrtc_jni.so
unifi/lib/native/Linux/x86_64/libubnt_sdnotify_jni.so
unifi/lib/native/Linux/x86_64/libubnt_webrtc_jni.so
unifi/lib/native/Mac/x86_64/libubnt_webrtc_jni.dylib
unifi/lib/native/Windows/x86_64/ubnt_webrtc_jni.dll
unifi/lib/openssh-1.0.jar
unifi/lib/org.eclipse.paho.client.mqttv3-1.1.0.jar
unifi/lib/owasp-java-html-sanitizer-20190503.1.jar

View File

@ -0,0 +1 @@
unifi/lib/native/Mac/x86_64/libubnt_webrtc_jni.dylib

View File

@ -0,0 +1,2 @@
unifi/lib/native/Linux/aarch64/libubnt_sdnotify_jni.so
unifi/lib/native/Linux/aarch64/libubnt_webrtc_jni.so

2
unifi6/PLIST.Linux-armv7 Normal file
View File

@ -0,0 +1,2 @@
unifi/lib/native/Linux/armv7/libubnt_sdnotify_jni.so
unifi/lib/native/Linux/armv7/libubnt_webrtc_jni.so

View File

@ -0,0 +1,2 @@
unifi/lib/native/Linux/x86_64/libubnt_sdnotify_jni.so
unifi/lib/native/Linux/x86_64/libubnt_webrtc_jni.so