diff options
Diffstat (limited to 'testing/keepalived')
-rw-r--r-- | testing/keepalived/APKBUILD | 32 |
1 files changed, 10 insertions, 22 deletions
diff --git a/testing/keepalived/APKBUILD b/testing/keepalived/APKBUILD index 86876e6f13..e30b8e8d66 100644 --- a/testing/keepalived/APKBUILD +++ b/testing/keepalived/APKBUILD @@ -7,32 +7,18 @@ pkgdesc="Health Checking for Linux Virtual Server & High-Availability" url="http://www.keepalived.org/" arch="all" license="GPL" -depends= +depends="" makedepends="openssl-dev popt-dev linux-headers net-snmp-dev libnl-dev" -install="" subpackages="$pkgname-doc $pkgname-sample-config:samples" source="http://www.keepalived.org/software/$pkgname-$pkgver.tar.gz $pkgname.initd $pkgname.confd " - -_builddir="$srcdir"/$pkgname-$pkgver - -prepare() { - cd "$_builddir" - # apply patches here - for i in $source; do - case $i in - *.patch) - msg "Applying $i" - patch -p1 -i "$srcdir"/$i || return 1 - ;; - esac - done -} +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" + ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -48,13 +34,13 @@ build() { } package() { - cd "$_builddir" + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 - mkdir -p "$pkgdir"/usr/share/doc/$pkgname/genhash - for f in AUTHOR CONTRIBUTORS ChangeLog README INSTALL TODO \ + local f; for f in AUTHOR CONTRIBUTORS ChangeLog README INSTALL TODO \ genhash/README genhash/AUTHOR genhash/ChangeLog; do - install -m644 $f "$pkgdir"/usr/share/doc/$pkgname/$f || return 1 + install -m644 -D $f "$pkgdir"/usr/share/doc/$pkgname/$f || return 1 done install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname @@ -66,6 +52,8 @@ package() { samples() { pkgdesc="Sample configuration for keepalived" + arch="noarch" + mkdir -p "$subpkgdir"/etc/keepalived/ mv "$pkgdir"/etc/keepalived/samples "$subpkgdir"/etc/keepalived/ } |