mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-15 02:32:35 +02:00
This allows e.g. ping -c 1 127.0.0.2 -W 5 to function the same as it would when compiled against glibc. Signed-off-by: Jens Reidel <adrian@postmarketos.org>
91 lines
1.9 KiB
Plaintext
91 lines
1.9 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=iputils
|
|
pkgver=20250605
|
|
pkgrel=1
|
|
pkgdesc="IP Configuration Utilities"
|
|
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="
|
|
iputils-$pkgver.tar.xz::https://github.com/iputils/iputils/releases/download/$pkgver/iputils-$pkgver.tar.xz
|
|
|
|
0001-Use-getopt_long-for-opt-parsing-in-ping.patch
|
|
"
|
|
# checks need suid/setcap'd binaries
|
|
# ping is suid
|
|
options="suid !check"
|
|
|
|
# secfixes:
|
|
# 20250602-r0:
|
|
# - CVE-2025-47268
|
|
# - CVE-2025-48964
|
|
|
|
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 --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="
|
|
1f3df2a4ea0a3f95bb9657d9ee36ed929fa841c9442dfd04e5d7f55ef533b0cac3182c2172b627c7ad7f366afdc1d232f2618d701bd1c601feadbfc754059cae iputils-20250605.tar.xz
|
|
0d2afc812a5ac29fa0850f808b7ff685ecb10a570f698447ba94fd3e4038724b9130c369eafe2d689dfd8ccff07f5e5eb7fc38be6a76b97a10c8c8c9a45659fa 0001-Use-getopt_long-for-opt-parsing-in-ping.patch
|
|
"
|