aboutsummaryrefslogtreecommitdiffstats
path: root/main/iputils/APKBUILD
blob: fc463ad96a30fe0104e5bee17733ca0d8a31a34f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=iputils
pkgver=20180629
pkgrel=0
pkgdesc="IP Configuration Utilities (and Ping)"
url="https://github.com/iputils/iputils/"
arch="all"
license="BSD-3-Clause GPL-2.0-or-later"
makedepends="libcap-dev libressl-dev"
replaces="bbsuid"
source="https://github.com/iputils/$pkgname/archive/s$pkgver.tar.gz
	fix-init-of-cmsg.patch
	fix-defines.patch
	"
options="!check suid"
builddir="$srcdir/$pkgname-s$pkgver"

build() {
	cd "$builddir"
	make all ninfod USE_IDN=no USE_NETTLE=no KERNEL_INCLUDE=/usr/include
}

package() {
	local name
	cd "$builddir"

	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

	ln -s tracepath "$pkgdir"/usr/sbin/tracepath6
	ln -s ping "$pkgdir"/bin/ping6
}

sha512sums="16b8f5ad1cf88083ebaee0a71fddb14bb0a904336fd0baebfcca86c27ac0773553b21d12790b05cab7661d6432c75bbb1523e871e5e1b77faacd13ccc84f4476  s20180629.tar.gz
2779b9d987089a2a9a39c27a092f16da85881e9dfbc99edcca6baea42912b8a1a7e16b00c19684d2ea1a6123d66f78be12bef43398e63be7d7c97d3d6269a5bf  fix-init-of-cmsg.patch
85c766b2cd738aeedb8dda8100af5814d9c0b4b62d6e98ca4329e3d34b19845e34bde772ca27e79360b7911cdb51bad11ca8f7717a367286c08243471fb32c47  fix-defines.patch"