# SliTaz package receipt. PACKAGE="ipcalc" VERSION="0.41" CATEGORY="network" SHORT_DESC="IP Calculator." MAINTAINER="paul@slitaz.org" LICENSE="GPL2" WEB_SITE="http://jodies.de/ipcalc" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="http://jodies.de/ipcalc-archive/$TARBALL" DEPENDS="perl" BUILD_DEPENDS="" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin $fs/var/www/cgi-bin/ipcalc $fs/usr/share/images/ipcalc cp -a $src/ipcalc $fs/usr/bin cp -a $src/ipcalc.cgi $fs/var/www/cgi-bin/ipcalc cp -a $src/ipcalc.gif $fs/usr/share/images/ipcalc cp -a $src/ipcalculator.png $fs/usr/share/images/ipcalc }