wok rev 19207
Add liboping
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sun Jun 12 15:30:59 2016 +0100 (2016-06-12) |
parents | 1c8a113c536a |
children | 58452392e881 |
files | liboping-dev/receipt liboping/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/liboping-dev/receipt Sun Jun 12 15:30:59 2016 +0100 1.3 @@ -0,0 +1,23 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="liboping-dev" 1.7 +VERSION="1.8.0" 1.8 +CATEGORY="development" 1.9 +MAINTAINER="paul@slitaz.org" 1.10 +LICENSE="LGPL2.1" 1.11 +SHORT_DESC="Library to ping IPv4 and IPv6 hosts in parallel development files." 1.12 +WEB_SITE="http://noping.cc/" 1.13 +WANTED="liboping" 1.14 + 1.15 +DEPENDS="liboping" 1.16 + 1.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.18 +genpkg_rules() 1.19 +{ 1.20 + mkdir -p $fs/usr/lib 1.21 + cp -a $install/usr/include $fs/usr 1.22 + cp -a $install/usr/lib/pkgconfig $fs/usr/lib 1.23 + cp -a $install/usr/lib/*.*a $fs/usr/lib 1.24 + cp -a $install/usr/lib/perl* $fs/usr/lib 1.25 +} 1.26 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/liboping/receipt Sun Jun 12 15:30:59 2016 +0100 2.3 @@ -0,0 +1,39 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="liboping" 2.7 +VERSION="1.8.0" 2.8 +CATEGORY="network" 2.9 +SHORT_DESC="Library to ping IPv4 and IPv6 hosts in parallel." 2.10 +MAINTAINER="paul@slitaz.org" 2.11 +LICENSE="LGPL2.1" 2.12 +TARBALL="$PACKAGE-$VERSION.tar.gz" 2.13 +WEB_SITE="http://noping.cc/" 2.14 +WGET_URL="http://noping.cc/files/$TARBALL" 2.15 + 2.16 +DEPENDS="ncurses libcap" 2.17 +BUILD_DEPENDS="ncurses-dev perl libcap-dev" 2.18 + 2.19 +# Rules to configure and make the package. 2.20 +compile_rules() 2.21 +{ 2.22 + ./configure \ 2.23 + --prefix=/usr \ 2.24 + $CONFIGURE_ARGS && 2.25 + make && 2.26 + make DESTDIR=$DESTDIR install 2.27 +} 2.28 + 2.29 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.30 +genpkg_rules() 2.31 +{ 2.32 + mkdir -p $fs/usr/lib 2.33 + cp -a $install/usr/bin $fs/usr 2.34 + cp -a $install/usr/lib/*.so* $fs/usr/lib 2.35 +} 2.36 + 2.37 +post_install() 2.38 +{ 2.39 + chroot "$1/" setcap cap_net_raw=ep /usr/bin/oping 2.40 + chroot "$1/" setcap cap_net_raw=ep /usr/bin/noping 2.41 +} 2.42 +