aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/smokeping/APKBUILD7
1 files changed, 5 insertions, 2 deletions
diff --git a/main/smokeping/APKBUILD b/main/smokeping/APKBUILD
index 059b9e06b8..7614736e21 100644
--- a/main/smokeping/APKBUILD
+++ b/main/smokeping/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=smokeping
pkgver=2.6.1
-pkgrel=3
+pkgrel=4
pkgdesc="Smokeping network latency monitoring"
pkgusers="smokeping"
pkggroups="smokeping"
@@ -86,9 +86,12 @@ package() {
for i in smokeping smokeinfo; do
sed -e 's:^use lib:#use lib:g' \
- -e 's:etc/config:/etc/smokeping/config:' \
+ -e 's:etc/config:etc/smokeping/config:' \
-i "$pkgdir"/usr/bin/$i
done
+
+ sed -e 's#Smokeping::main("$FindBin::Bin/../etc/config")#Smokeping::main("/etc/smokeping/config")#' \
+ -i "$pkgdir"/usr/bin/smokeping
sed -e 's:etc/config.dist:etc/smokeping/config:' \
-i "$pkgdir"/usr/bin/tSmoke