wok view liboping/receipt @ rev 21232
updated libhtp and libhtp-dev (0.2.6 -> 0.5.30)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 11 13:28:24 2019 +0100 (2019-04-11) |
parents | c61851b23eb6 |
children | fafbb5087ce7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="liboping"
4 VERSION="1.9.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 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://noping.cc/"
11 WGET_URL="http://noping.cc/files/$TARBALL"
13 DEPENDS="ncurses libcap"
14 BUILD_DEPENDS="ncurses-dev perl libcap-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 export LDFLAGS="$LDFLAGS -lrt" # for clock_gettime
20 ./configure \
21 --prefix=/usr \
22 $CONFIGURE_ARGS &&
23 make &&
24 make DESTDIR=$DESTDIR install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/lib
31 cp -a $install/usr/bin $fs/usr
32 cp -a $install/usr/lib/*.so* $fs/usr/lib
33 }
35 post_install()
36 {
37 chroot "$1/" setcap cap_net_raw=ep /usr/bin/oping
38 chroot "$1/" setcap cap_net_raw=ep /usr/bin/noping
39 }