mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-06 14:22:41 +02:00
82 lines
1.6 KiB
Plaintext
82 lines
1.6 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=iputils
|
|
pkgver=20221126
|
|
pkgrel=2
|
|
pkgdesc="IP Configuration Utilities"
|
|
options="!check suid"
|
|
url="https://github.com/iputils/iputils/"
|
|
arch="all"
|
|
license="BSD-3-Clause AND GPL-2.0-or-later"
|
|
replaces="bbsuid"
|
|
makedepends="
|
|
libcap-dev
|
|
meson
|
|
"
|
|
subpackages="
|
|
iputils-arping
|
|
iputils-clockdiff
|
|
iputils-ping
|
|
iputils-tracepath
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/iputils/iputils/archive/$pkgver.tar.gz"
|
|
# checks need suid/setcap'd binaries
|
|
# ping is suid
|
|
options="suid !check"
|
|
|
|
build() {
|
|
abuild-meson \
|
|
-Db_lto=true \
|
|
-DNO_SETCAP_OR_SUID=true \
|
|
-DBUILD_MANS=false \
|
|
-DUSE_IDN=false \
|
|
-DUSE_GETTEXT=false \
|
|
. output
|
|
meson compile -C output
|
|
}
|
|
|
|
check() {
|
|
meson test --no-rebuild --print-errorlogs -C output
|
|
}
|
|
|
|
package() {
|
|
depends="
|
|
iputils-arping=$pkgver-r$pkgrel
|
|
iputils-clockdiff=$pkgver-r$pkgrel
|
|
iputils-ping=$pkgver-r$pkgrel
|
|
iputils-tracepath=$pkgver-r$pkgrel
|
|
"
|
|
|
|
install -Dm4755 output/ping/ping "$pkgdir"/bin/ping
|
|
|
|
for name in arping clockdiff tracepath; do
|
|
install -Dm755 output/$name "$pkgdir"/usr/sbin/$name
|
|
done
|
|
|
|
ln -s tracepath "$pkgdir"/usr/sbin/tracepath6
|
|
ln -s ping "$pkgdir"/bin/ping6
|
|
}
|
|
|
|
arping() {
|
|
pkgdesc="$pkgdesc (arping utility)"
|
|
amove usr/sbin/arping
|
|
}
|
|
|
|
clockdiff() {
|
|
pkgdesc="$pkgdesc (clockdiff utility)"
|
|
amove usr/sbin/clockdiff
|
|
}
|
|
|
|
ping() {
|
|
pkgdesc="$pkgdesc (ping utility)"
|
|
amove bin/ping*
|
|
}
|
|
|
|
tracepath() {
|
|
pkgdesc="$pkgdesc (tracepath utility)"
|
|
amove usr/sbin/tracepath*
|
|
}
|
|
|
|
sha512sums="
|
|
7fdfd76e6f2977039bc0930a1a5451f17319bf17beefc429751d99ffe143a83344d5b4cdbf008627bd70caafeadaf906a8b7c00393fa819e50d6c02b512c367f iputils-20221126.tar.gz
|
|
"
|