wok view liboping/receipt @ rev 24559
updated fop (2.4 -> 2.7)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 25 15:52:00 2022 +0100 (2022-02-25) |
parents | fafbb5087ce7 |
children | 6b30e1fc52dd |
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 ./configure \
30 --prefix=/usr \
31 $CONFIGURE_ARGS &&
32 make -j 1 &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib/*.so* $fs/usr/lib
43 }
45 post_install()
46 {
47 chroot "$1/" setcap cap_net_raw=ep /usr/bin/oping
48 chroot "$1/" setcap cap_net_raw=ep /usr/bin/noping
49 }