blob: 47cab21e3a2fc34545db845bc373807a94fca978 (
plain)
1 # Description: Basic networking utilities
2 # URL: https://github.com/iputils/iputils
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Depends on: libcap meson ninja openssl
5
6 name=iputils
7 version=20221126
8 release=1
9 source=(https://github.com/iputils/iputils/archive/$version/$name-$version.tar.gz)
10
11 build() {
12 meson setup build $name-$version \
13 --prefix=/usr \
14 --buildtype=plain \
15 --wrap-mode nodownload \
16 -D b_lto=true \
17 -D b_pie=true \
18 -D BUILD_MANS=false
19
20 meson compile -C build -j ${JOBS:-1}
21
22 install -d $PKG/{{sbin,bin},usr/{bin,sbin}}
23 install build/ping/ping $PKG/bin/
24 install build/arping $PKG/sbin/
25 install build/{tracepath,clockdiff} $PKG/usr/sbin/
26
27 chmod u+s $PKG/bin/ping
28 }
|