aboutsummaryrefslogtreecommitdiffstats
path: root/main/nrpe/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/nrpe/APKBUILD')
-rw-r--r--main/nrpe/APKBUILD13
1 files changed, 10 insertions, 3 deletions
diff --git a/main/nrpe/APKBUILD b/main/nrpe/APKBUILD
index 6ceaf0b42d..ee5db43301 100644
--- a/main/nrpe/APKBUILD
+++ b/main/nrpe/APKBUILD
@@ -16,8 +16,15 @@ source="http://downloads.sourceforge.net/nagios/$pkgname-$pkgver.tar.gz
nrpe.initd
nrpe.confd"
+_builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ update_config_sub || return 1
+}
+
build() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
./configure \
--build=$CBUILD \
@@ -33,7 +40,7 @@ build() {
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
make DESTDIR="$pkgdir" install install-daemon-config
#remove plugin since its in separate package
rm -rf "$pkgdir"/usr/lib
@@ -43,7 +50,7 @@ package() {
plugin() {
pkgdesc="Nagios plugin to check result via NRPE daemon"
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
make DESTDIR="$subpkgdir" install-plugin
}