wok-next view liboping/receipt @ rev 20236
linux-cloop: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 06 10:18:18 2017 +0100 (2017-11-06) |
parents | f463de72afe3 |
children | 4396aed7eb01 |
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 WEB_SITE="http://noping.cc/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://noping.cc/files/$TARBALL"
14 DEPENDS="ncurses libcap"
15 BUILD_DEPENDS="ncurses-dev perl-dev libcap-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./configure $CONFIGURE_ARGS &&
21 make &&
22 make DESTDIR=$DESTDIR install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 copy oping noping *.so*
29 }
31 post_install()
32 {
33 chroot "$1/" setcap cap_net_raw=ep /usr/bin/oping
34 chroot "$1/" setcap cap_net_raw=ep /usr/bin/noping
35 }