wok-next annotate liboping/receipt @ rev 20881
accessx: fix build
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jul 10 11:20:55 2018 +0300 (2018-07-10) |
parents | 9e5dca6702bf |
children | d5aab818505e |
rev | line source |
---|---|
al@20464 | 1 # SliTaz package receipt v2. |
paul@19207 | 2 |
paul@19207 | 3 PACKAGE="liboping" |
al@19606 | 4 VERSION="1.9.0" |
paul@19207 | 5 CATEGORY="network" |
al@20464 | 6 SHORT_DESC="Library to ping IPv4 and IPv6 hosts in parallel" |
paul@19207 | 7 MAINTAINER="paul@slitaz.org" |
paul@19207 | 8 LICENSE="LGPL2.1" |
al@19606 | 9 WEB_SITE="http://noping.cc/" |
al@19606 | 10 |
paul@19207 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
paul@19207 | 12 WGET_URL="http://noping.cc/files/$TARBALL" |
paul@19207 | 13 |
pascal@19967 | 14 BUILD_DEPENDS="ncurses-dev perl-dev libcap-dev" |
al@20464 | 15 SPLIT="liboping-dev" |
paul@19207 | 16 |
al@20464 | 17 compile_rules() { |
al@19606 | 18 ./configure $CONFIGURE_ARGS && |
al@20595 | 19 fix libtool && |
paul@19207 | 20 make && |
paul@19207 | 21 make DESTDIR=$DESTDIR install |
paul@19207 | 22 } |
paul@19207 | 23 |
al@20464 | 24 genpkg_rules() { |
al@20464 | 25 case $PACKAGE in |
al@20464 | 26 liboping) |
al@20557 | 27 copy @std |
al@20464 | 28 DEPENDS="ncurses libcap" |
al@20464 | 29 ;; |
al@20464 | 30 *-dev) |
al@20557 | 31 copy @dev |
al@20464 | 32 ;; |
al@20464 | 33 esac |
paul@19207 | 34 } |
paul@19207 | 35 |
al@20464 | 36 post_install_liboping() { |
paul@19207 | 37 chroot "$1/" setcap cap_net_raw=ep /usr/bin/oping |
paul@19207 | 38 chroot "$1/" setcap cap_net_raw=ep /usr/bin/noping |
paul@19207 | 39 } |