1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

net-mgmt/unifi-devel: Replace bundled snappy jar

Overwrite whichever version is shipped with a symlink to the version
installed by the package dependency.

PR:		223401
Submitted by:	maintainer
This commit is contained in:
Mark Felder 2018-03-02 13:36:29 +00:00
parent 406508d5e0
commit 33da4569e5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=463398

View File

@ -3,6 +3,7 @@
PORTNAME= unifi
PORTVERSION= 5.7.15
PORTREVISION= 1
CATEGORIES= net-mgmt java
MASTER_SITES= http://dl.ubnt.com/unifi/${PORTVERSION}-${UNIFI_BUILD}/
PKGNAMESUFFIX= -devel
@ -49,8 +50,7 @@ CONFLICTS= unifi2-* unifi3-* unifi4-* unifi5-*
DIR_LIST= conf data logs run work
post-patch:
${RM} ${WRKSRC}/usr/lib/unifi/lib/snappy-java-1.1.2.6.jar ${WRKSRC}/usr/lib/unifi/bin/*
(cd ${WRKSRC}/usr/lib/unifi/lib && ${LN} -s ${JAVAJARDIR}/snappy-java.jar snappy-java-1.1.2.6.jar)
(cd ${WRKSRC}/usr/lib/unifi/lib && ${LN} -f -s ${JAVAJARDIR}/snappy-java.jar snappy-java-*.jar)
${RM} -r ${WRKSRC}/usr/lib/unifi/lib/native
do-install: