# SliTaz package receipt. PACKAGE="mirror-tools" VERSION="258" CATEGORY="misc" SHORT_DESC="Mirrors toolset." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="BSD" WEB_SITE="http://www.slitaz.org/" SOURCE="slitaz-dev-tools" TARBALL="$SOURCE-$VERSION.tar.bz2" WGET_URL="http://hg.slitaz.org/slitaz-dev-tools/archive/$VERSION.tar.bz2" DEPENDS="rrdtool rgzip" current_version() { wget -O - http://hg.slitaz.org/slitaz-dev-tools/ 2>/dev/null | \ sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/slitaz-dev-tools/rev/|;s|<.*||' | \ xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||' } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $src/$PACKAGE/rootfs/* $fs mkdir -p $fs/var/www cp -a $src/$PACKAGE/slitaz $fs/var/www chown -R 80.80 $fs/var/www }