aboutsummaryrefslogtreecommitdiffstats
path: root/non-free
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.dk>2018-05-22 01:05:28 +0200
committerJakub Jirutka <jakub@jirutka.cz>2018-05-24 21:52:53 +0200
commit9647ca6a35bb397beba93ae79cb30a6fafbf0a3b (patch)
tree14c19054e22021da811ad076e933553333afb575 /non-free
parent0bc9dae8bd03e010228e5d0646e5ac837a3fbf8b (diff)
downloadaports-9647ca6a35bb397beba93ae79cb30a6fafbf0a3b.tar.bz2
aports-9647ca6a35bb397beba93ae79cb30a6fafbf0a3b.tar.xz
non-free/unifi: fix symbolic link
Diffstat (limited to 'non-free')
-rw-r--r--non-free/unifi/APKBUILD12
1 files changed, 9 insertions, 3 deletions
diff --git a/non-free/unifi/APKBUILD b/non-free/unifi/APKBUILD
index 7dcfac25b4..28a0dedc9f 100644
--- a/non-free/unifi/APKBUILD
+++ b/non-free/unifi/APKBUILD
@@ -65,9 +65,14 @@ package() {
ln -sf /var/lib/$pkgname/data $basedir/data
ln -sf /var/lib/$pkgname/work $basedir/work
- # overwrite with local snappy
- ln -sf /usr/share/java/snappy-java-1.1.2.6.jar \
- "$basedir"/lib/snappy-java-1.1.2.6.jar
+ # overwrite with local snappy but
+ # first we got to figure out the version
+ local file=$(ls lib/ | grep snappy-java)
+ local name=${file%.*}
+ local version=${name##*-}
+ # the java-snappy pkg has a symlink so we use that
+ ln -sf /usr/share/java/snappy-java.jar \
+ "$basedir"/lib/snappy-java-$version.jar
# make sure datadir is writable by our user
chown -R $pkgname:$pkgname $datadir
@@ -75,6 +80,7 @@ package() {
# tell search engines to do not index
echo -e "User-Agent:*\nDisallow:/" > "$webapps"/$pkgname/ROOT/robots.txt
}
+
sha512sums="63150282d9b7c907e0851bfcfa6779c8a5568b6aa5a8c7333dd5d1403ea8561f8175e9682f79c508da98812efc619257971943a1c3803dd1e72295b9de3340af unifi-5.7.23.zip
b19a7d684ef2ec7c4159417c21185ccd8ce498da25405b69014fdb32e346a0077f7edc5dfc994481d12936aa8dbf22e6baf29571fd0003aaad19609d24c549f4 unifi.initd
d339555a91de7488badbedf8a4c85cff878e7d0720a8cf6a8340f51f3666dcf4878b47a1fff4c9c2846d7af140d11e48e898f8c4dba1f81c1004b76a81f0821e unifi.confd