wok-next view liboping/receipt @ rev 20869
mono: fix build on 32-bit
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jul 02 10:15:48 2018 +0300 (2018-07-02) |
parents | 9e5dca6702bf |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
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 BUILD_DEPENDS="ncurses-dev perl-dev libcap-dev"
15 SPLIT="liboping-dev"
17 compile_rules() {
18 ./configure $CONFIGURE_ARGS &&
19 fix libtool &&
20 make &&
21 make DESTDIR=$DESTDIR install
22 }
24 genpkg_rules() {
25 case $PACKAGE in
26 liboping)
27 copy @std
28 DEPENDS="ncurses libcap"
29 ;;
30 *-dev)
31 copy @dev
32 ;;
33 esac
34 }
36 post_install_liboping() {
37 chroot "$1/" setcap cap_net_raw=ep /usr/bin/oping
38 chroot "$1/" setcap cap_net_raw=ep /usr/bin/noping
39 }