wok-next view liboping/receipt @ rev 19394
mv pdfgrep to wok-undigest
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Mon Aug 29 17:25:51 2016 +0100 (2016-08-29) |
parents | |
children | 550f64433173 |
line source
1 # SliTaz package receipt.
3 PACKAGE="liboping"
4 VERSION="1.8.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 ./configure \
20 --prefix=/usr \
21 $CONFIGURE_ARGS &&
22 make &&
23 make DESTDIR=$DESTDIR install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/lib
30 cp -a $install/usr/bin $fs/usr
31 cp -a $install/usr/lib/*.so* $fs/usr/lib
32 }
34 post_install()
35 {
36 chroot "$1/" setcap cap_net_raw=ep /usr/bin/oping
37 chroot "$1/" setcap cap_net_raw=ep /usr/bin/noping
38 }