wok-current view liboping/receipt @ rev 22068

updated udftools (1.0.0b3 -> 2.1)
author Hans-G?nter Theisgen
date Fri Oct 25 15:05:17 2019 +0100 (2019-10-25)
parents 828da114adaa
children ede1d184d5c5
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 # Rules to configure and make the package.
18 compile_rules()
19 {
20 export LDFLAGS="$LDFLAGS -lrt" # for clock_gettime
22 ./configure \
23 --prefix=/usr \
24 $CONFIGURE_ARGS &&
25 make -j 1 &&
26 make DESTDIR=$DESTDIR install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/lib
34 cp -a $install/usr/bin $fs/usr
35 cp -a $install/usr/lib/*.so* $fs/usr/lib
36 }
38 post_install()
39 {
40 chroot "$1/" setcap cap_net_raw=ep /usr/bin/oping
41 chroot "$1/" setcap cap_net_raw=ep /usr/bin/noping
42 }