diff options
Diffstat (limited to 'main/smokeping/APKBUILD')
-rw-r--r-- | main/smokeping/APKBUILD | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/main/smokeping/APKBUILD b/main/smokeping/APKBUILD index 059b9e06b..7614736e2 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 |