wok view liboping/receipt @ rev 24175
Up usbids (20211224)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 30 11:41:25 2021 +0000 (2021-12-30) |
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 }