# SliTaz package receipt. PACKAGE="fping" VERSION="5.1" CATEGORY="system-tools" SHORT_DESC="ICMP echo with multiple hosts." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="other" WEB_SITE="https://fping.org/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="${WEB_SITE}dist/$TARBALL" # What is the latest version available today? current_version() { wget -O - https://github.com/schweikert/fping/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { ./configure \ LIBS="-lrt" \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && make && make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/etc mkdir -p $fs/usr cp -a $install/usr/sbin $fs/usr cp $stuff/protocols $fs/etc }