wok view liboping/receipt @ rev 25439
Up xz (5.2.6)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 01 16:28:38 2022 +0000 (2022-09-01) |
parents | ede1d184d5c5 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="liboping"
4 VERSION="1.10.0"
5 CATEGORY="network"
6 SHORT_DESC="Library to ping IPv4 and IPv6 hosts in parallel."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://noping.cc/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://noping.cc/files/$TARBALL"
14 DEPENDS="libcap ncurses"
15 BUILD_DEPENDS="libcap-dev ncurses-dev perl"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export LDFLAGS="$LDFLAGS -lrt" # for clock_gettime
29 patch -p0 < $stuff/format-extra-args.u
30 ./configure \
31 --prefix=/usr \
32 $CONFIGURE_ARGS &&
33 make -j 1 &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/lib/*.so* $fs/usr/lib
44 }
46 post_install()
47 {
48 chroot "$1/" setcap cap_net_raw=ep /usr/bin/oping
49 chroot "$1/" setcap cap_net_raw=ep /usr/bin/noping
50 }