smlinux/net/iputils/smbuild

48 lines
1 KiB
Text

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=iputils
version=20240117
build=1sml
homepage="https://github.com/iputils/iputils"
download="https://github.com/iputils/iputils/releases/download/$version/iputils-$version.tar.gz"
desc="Collection of common network tools"
requires="libcap iptables"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
}
build() {
mkdir -p smbuild && cd smbuild
meson .. \
--prefix=/usr \
-DNO_SETCAP_OR_SUID=true \
-DBUILD_MANS=true \
-DUSE_IDN=false \
-DUSE_GETTEXT=false
ninja
install -Dm 4755 ping/ping $pkg/usr/bin/ping
for files in arping clockdiff tracepath ; do
install -Dm 755 $files $pkg/usr/bin/
done
(
cd $pkg/usr/bin
ln -s ping ping6
ln -s tracepath tracepath6
)
cp ../LICENSE $pkgdocs/
mkfinalpkg
}
sha512sums="
e0c2ddeebbe713d6efc177de29615813cca904c3154fffcebc080c196f637c3f68d35dbce9afded959f717da77030ff24904e5ad49d2aaa508333d3c394c718c iputils-20240117.tar.gz
"