2019-05-23 17:38:20 +02:00
|
|
|
# Description: Basic networking utilities
|
2021-02-16 14:45:48 +01:00
|
|
|
# URL: https://github.com/iputils/iputils
|
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2021-12-14 09:57:26 +01:00
|
|
|
# Depends on: libcap meson ninja openssl
|
2019-05-23 17:38:20 +02:00
|
|
|
|
|
|
|
name=iputils
|
2022-11-26 11:13:20 +01:00
|
|
|
version=20221126
|
2020-08-22 14:54:51 +02:00
|
|
|
release=1
|
2022-01-03 15:45:12 +01:00
|
|
|
source=(https://github.com/iputils/iputils/archive/$version/$name-$version.tar.gz)
|
2019-05-23 17:38:20 +02:00
|
|
|
|
|
|
|
build() {
|
2021-12-14 09:57:26 +01:00
|
|
|
meson setup build $name-$version \
|
2021-02-16 14:45:48 +01:00
|
|
|
--prefix=/usr \
|
|
|
|
--buildtype=plain \
|
2022-01-03 15:45:12 +01:00
|
|
|
--wrap-mode nodownload \
|
|
|
|
-D b_lto=true \
|
|
|
|
-D b_pie=true \
|
2022-11-26 11:13:20 +01:00
|
|
|
-D BUILD_MANS=false
|
2019-05-23 17:38:20 +02:00
|
|
|
|
2021-02-16 14:45:48 +01:00
|
|
|
meson compile -C build -j ${JOBS:-1}
|
2019-05-23 17:43:06 +02:00
|
|
|
|
2022-11-26 11:13:20 +01:00
|
|
|
install -d $PKG/{{sbin,bin},usr/{bin,sbin}}
|
2021-02-16 14:45:48 +01:00
|
|
|
install build/ping/ping $PKG/bin/
|
|
|
|
install build/arping $PKG/sbin/
|
2022-11-26 11:13:20 +01:00
|
|
|
install build/{tracepath,clockdiff} $PKG/usr/sbin/
|
2020-11-21 17:32:47 +01:00
|
|
|
|
2022-01-03 15:45:12 +01:00
|
|
|
chmod u+s $PKG/bin/ping
|
2019-05-23 17:38:20 +02:00
|
|
|
}
|