diff options
author | prspkt <prspkt@protonmail.com> | 2018-03-10 16:17:46 +0000 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2018-03-11 15:38:46 +0100 |
commit | fe1169b4f5e7dc910b0bd3ebaae48a53529bbdb3 (patch) | |
tree | dde90ec02dc6285a86f8a6b54199d665909f91e9 /main/radvd | |
parent | f97a99e5860354c34439420e5270ce0f8b590f14 (diff) | |
download | aports-fe1169b4f5e7dc910b0bd3ebaae48a53529bbdb3.tar.bz2 aports-fe1169b4f5e7dc910b0bd3ebaae48a53529bbdb3.tar.xz |
main/radvd: enable checks, modernize
Diffstat (limited to 'main/radvd')
-rw-r--r-- | main/radvd/APKBUILD | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/main/radvd/APKBUILD b/main/radvd/APKBUILD index d4d4167a88..27a5168c5f 100644 --- a/main/radvd/APKBUILD +++ b/main/radvd/APKBUILD @@ -2,13 +2,14 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=radvd pkgver=2.17 -pkgrel=0 +pkgrel=1 pkgdesc="IPv6 router advertisement daemon" url="http://www.litech.org/radvd" arch="all" license="BSD with advertising" depends="" makedepends="flex bison libdaemon-dev linux-headers" +checkdepends="check-dev" install="$pkgname.pre-install" subpackages="$pkgname-doc" source="http://www.litech.org/radvd/dist/radvd-$pkgver.tar.xz @@ -24,21 +25,23 @@ build() { --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc/ \ - --with-pidfile=/run/radvd/radvd.pid \ - || return 1 + --with-check \ + --with-pidfile=/run/radvd/radvd.pid # work around parallel build issue - make gram.h && make || return 1 + make gram.h && make +} + +check() { + make -C "$builddir" check } package() { cd "$builddir" - make -j1 DESTDIR="$pkgdir" install || return 1 - install -Dm755 "$srcdir"/radvd.initd "$pkgdir"/etc/init.d/radvd \ - || return 1 - install -Dm644 "$srcdir"/radvd.confd "$pkgdir"/etc/conf.d/radvd \ - || return 1 + make -j1 DESTDIR="$pkgdir" install + install -Dm755 "$srcdir"/radvd.initd "$pkgdir"/etc/init.d/radvd + install -Dm644 "$srcdir"/radvd.confd "$pkgdir"/etc/conf.d/radvd install -Dm644 radvd.conf.example \ - "$pkgdir"/usr/share/doc/radvd/radvd.conf.example || return 1 + "$pkgdir"/usr/share/doc/radvd/radvd.conf.example } sha512sums="f62aa8acb423320423637c7908abe1d3b8ec4b32f78a81ba67c1a4ecf9bcaaae4e3671fc0c2c5b5776edfe5e6b5d3bf1daf60e55387dd0c0d7370a86d867873c radvd-2.17.tar.xz |