# HG changeset patch # User Paul Issott # Date 1465741859 -3600 # Node ID 60776d829b2a3771f040dd56f3a5240685260d0d # Parent 1c8a113c536a35bd391b23866a05b80b5eece743 Add liboping diff -r 1c8a113c536a -r 60776d829b2a liboping-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/liboping-dev/receipt Sun Jun 12 15:30:59 2016 +0100 @@ -0,0 +1,23 @@ +# SliTaz package receipt. + +PACKAGE="liboping-dev" +VERSION="1.8.0" +CATEGORY="development" +MAINTAINER="paul@slitaz.org" +LICENSE="LGPL2.1" +SHORT_DESC="Library to ping IPv4 and IPv6 hosts in parallel development files." +WEB_SITE="http://noping.cc/" +WANTED="liboping" + +DEPENDS="liboping" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/include $fs/usr + cp -a $install/usr/lib/pkgconfig $fs/usr/lib + cp -a $install/usr/lib/*.*a $fs/usr/lib + cp -a $install/usr/lib/perl* $fs/usr/lib +} + diff -r 1c8a113c536a -r 60776d829b2a liboping/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/liboping/receipt Sun Jun 12 15:30:59 2016 +0100 @@ -0,0 +1,39 @@ +# SliTaz package receipt. + +PACKAGE="liboping" +VERSION="1.8.0" +CATEGORY="network" +SHORT_DESC="Library to ping IPv4 and IPv6 hosts in parallel." +MAINTAINER="paul@slitaz.org" +LICENSE="LGPL2.1" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://noping.cc/" +WGET_URL="http://noping.cc/files/$TARBALL" + +DEPENDS="ncurses libcap" +BUILD_DEPENDS="ncurses-dev perl libcap-dev" + +# Rules to configure and make the package. +compile_rules() +{ + ./configure \ + --prefix=/usr \ + $CONFIGURE_ARGS && + make && + make DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/bin $fs/usr + cp -a $install/usr/lib/*.so* $fs/usr/lib +} + +post_install() +{ + chroot "$1/" setcap cap_net_raw=ep /usr/bin/oping + chroot "$1/" setcap cap_net_raw=ep /usr/bin/noping +} +