opt/iputils/Pkgfile

35 lines
894 B
Plaintext
Raw Normal View History

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
# Depends on: libcap openssl meson ninja
2019-05-23 17:38:20 +02:00
name=iputils
2022-01-03 15:45:12 +01:00
version=20211215
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)
#$name-man-$version.tar.xz)
2019-05-23 17:38:20 +02:00
build() {
2021-02-16 14:45:48 +01:00
cd $name-$version
2019-05-23 17:38:20 +02:00
2021-02-16 14:45:48 +01:00
meson setup build . \
--prefix=/usr \
--buildtype=plain \
2022-01-03 15:45:12 +01:00
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true \
-D BUILD_RARPD=true \
-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}
2021-02-16 14:45:48 +01:00
install -d $PKG/{{sbin,bin},usr/{bin,sbin,share/man/man8}}
install build/ping/ping $PKG/bin/
install build/arping $PKG/sbin/
install build/{tracepath,clockdiff,rdisc,rarpd} $PKG/usr/sbin/
install build/ninfod/ninfod $PKG/usr/sbin/
2022-01-03 15:45:12 +01:00
#install -m 0644 $SRC/*.8 $PKG/usr/share/man/man8
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
}