# SliTaz package receipt. PACKAGE="thttpd" VERSION="2.29" CATEGORY="network" SHORT_DESC="Throttleable lightweight httpd server." MAINTAINER="erjo@slitaz.org" LICENSE="BSD" WEB_SITE="http://www.acme.com/software/thttpd/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="${WEB_SITE}$TARBALL" 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 configure and make the package. compile_rules() { # 2.25b # patch -p1 -i $stuff/htpassword.c.u || exit 1 ./configure \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && make -j1 } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/sbin mkdir -p $fs/var/log/thttpd cp -a $src/thttpd $fs/usr/sbin cp -a $src/extras/htpasswd $fs/usr/sbin cp -a $src/extras/syslogtocern $fs/usr/sbin cp -a stuff/etc $fs/ }