# SliTaz package receipt. PACKAGE="foremost" VERSION="1.5.7" CATEGORY="system-tools" SHORT_DESC="Data carving utility." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="PublicDomain" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://foremost.sourceforge.net" WGET_URL="$WEB_SITE/pkg/$TARBALL" # What is the latest version available today? current_version() { wget -O - $WEB_SITE 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { cd $src sed -i 's/\/usr\/local\/etc/\/etc/' config.c make } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin $fs/etc cp -a $src/foremost $fs/usr/bin cp -a $src/foremost.conf $fs/etc }