aboutsummaryrefslogtreecommitdiffstats
path: root/non-free/unifi/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'non-free/unifi/APKBUILD')
-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