summaryrefslogtreecommitdiff
path: root/user/iputils/APKBUILD
diff options
context:
space:
mode:
authorDan Theisen <djt@hxx.in>2019-06-25 16:34:19 +0000
committerDan Theisen <djt@hxx.in>2019-06-26 09:36:09 +0000
commit849c6d27691fb7901ad3e364ffa4cc69f6cb26e3 (patch)
tree7fe143d50db233a5ac8f605f8fe846bb281aae6b /user/iputils/APKBUILD
parentce23089ab69352506edeb69fb0b195c8dee57709 (diff)
downloadpackages-849c6d27691fb7901ad3e364ffa4cc69f6cb26e3.tar.gz
packages-849c6d27691fb7901ad3e364ffa4cc69f6cb26e3.tar.bz2
packages-849c6d27691fb7901ad3e364ffa4cc69f6cb26e3.tar.xz
packages-849c6d27691fb7901ad3e364ffa4cc69f6cb26e3.zip
user/iputils: bump to 20190515
Diffstat (limited to 'user/iputils/APKBUILD')
-rw-r--r--user/iputils/APKBUILD47
1 files changed, 17 insertions, 30 deletions
diff --git a/user/iputils/APKBUILD b/user/iputils/APKBUILD
index fc6b1b3e6..4a35f931b 100644
--- a/user/iputils/APKBUILD
+++ b/user/iputils/APKBUILD
@@ -1,55 +1,42 @@
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Dan Theisen <djt@hxx.in>
pkgname=iputils
-pkgver=20180629
+pkgver=20190515
pkgrel=0
pkgdesc="IP Configuration Utilities (and Ping)"
url="https://github.com/iputils/iputils/"
arch="all"
license="BSD-3-Clause AND GPL-2.0-or-later"
-makedepends="libcap-dev openssl-dev libxslt docbook-xsl"
+makedepends="meson libcap-dev libxslt docbook-xsl-ns openssl-dev libgcrypt-dev"
replaces="bbsuid"
-subpackages="$pkgname-doc"
+subpackages="$pkgname-doc $pkgname-lang $pkgname-openrc"
source="$pkgname-$pkgver.tgz::https://github.com/$pkgname/$pkgname/archive/s$pkgver.tar.gz
- time.patch
- fix-init-of-cmsg.patch
- fix-idn.patch
+ docbook-man.patch
"
-options="!check suid" # there is no testsuite for these applications
+options="suid"
builddir="$srcdir/$pkgname-s$pkgver"
build() {
cd "$builddir"
# we're waiting for idn support in musl so that we can enable it here
# https://wiki.musl-libc.org/functional-differences-from-glibc.html#Name-Resolver/DNS
- make all ninfod USE_IDN=no USE_NETTLE=no KERNEL_INCLUDE=/usr/include
- make man
+ meson --prefix /usr --buildtype=plain builddir -DUSE_IDN=false
+ ninja -v -C builddir
}
-package() {
- local name
+check() {
cd "$builddir"
+ ninja -C builddir test
+}
- for name in arping clockdiff ipg rarpd rdisc tftpd tracepath; do
- install -D -m755 $name "$pkgdir"/usr/sbin/$name
- done
- install -D -m755 ninfod/ninfod "$pkgdir"/usr/sbin/ninfod
-
- for name in ping traceroute6; do
- install -D -m4755 $name "$pkgdir"/bin/$name
- done
+package() {
+ cd "$builddir"
- mkdir -p "$pkgdir"/usr/share/man/man8
- for doc in ./doc/*.8; do
- gzip $doc
- install -m644 "$doc".gz "$pkgdir"/usr/share/man/man8/
- done
+ DESTDIR=$pkgdir ninja -C builddir install
- ln -s tracepath "$pkgdir"/usr/sbin/tracepath6
- ln -s ping "$pkgdir"/bin/ping6
+ ln -s tracepath "$pkgdir"/usr/bin/tracepath6
+ ln -s ping "$pkgdir"/usr/bin/ping6
}
-sha512sums="16b8f5ad1cf88083ebaee0a71fddb14bb0a904336fd0baebfcca86c27ac0773553b21d12790b05cab7661d6432c75bbb1523e871e5e1b77faacd13ccc84f4476 iputils-20180629.tgz
-530532d16574921d0789af6a82706915e8103e712195c4f2eb6379192cc7126ba6bc9f33e8454118628d59f8932ffd2bb5aaba3b61fa93df83088e3b0d93d227 time.patch
-2779b9d987089a2a9a39c27a092f16da85881e9dfbc99edcca6baea42912b8a1a7e16b00c19684d2ea1a6123d66f78be12bef43398e63be7d7c97d3d6269a5bf fix-init-of-cmsg.patch
-b3a5e5ef9ed1ed12a137f176db6a444f15db67dfaef3706514bc4d0cd2a332fb8aeeae0460fca8a1dfef2e0ce2ae0cf2218a74e3f61c46fcb27715a030425ac0 fix-idn.patch"
+sha512sums="adb8831ca3a567b9a5f3762227c631aefa62eedbaa7578c2bfea90b6d494b9e0cccf49b68713912611ec56c352d6c517df9e8409c9c9478cfc5732371c8cf250 iputils-20190515.tgz
+411f45a2d16c88b09f3547e3f04aa20e257f54650c7783123e4cb021bd8850cd96896480fbf9305d6df72abe32d8d5c2239ce4ac4ef9bfa821c205309451d6ff docbook-man.patch"