wok-undigest annotate thttpd/receipt @ rev 0
Add thttpd
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Fri Mar 19 18:55:59 2010 +0100 (2010-03-19) |
parents | |
children | 274a2611828e |
rev | line source |
---|---|
erjo@0 | 1 # SliTaz package receipt. |
erjo@0 | 2 |
erjo@0 | 3 PACKAGE="thttpd" |
erjo@0 | 4 VERSION="2.25b" |
erjo@0 | 5 CATEGORY="network" |
erjo@0 | 6 SHORT_DESC="Throttleable lightweight httpd server" |
erjo@0 | 7 MAINTAINER="erjo@slitaz.org" |
erjo@0 | 8 DEPENDS="" |
erjo@0 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
erjo@0 | 10 WEB_SITE="http://www.acme.com/software/thttpd/" |
erjo@0 | 11 WGET_URL="http://www.acme.com/software/thttpd/$TARBALL" |
erjo@0 | 12 |
erjo@0 | 13 # Rules to configure and make the package. |
erjo@0 | 14 compile_rules() |
erjo@0 | 15 { |
erjo@0 | 16 cd $src |
erjo@0 | 17 patch -p1 -i ../stuff/htpassword.c.u || exit 1 |
erjo@0 | 18 ./configure \ |
erjo@0 | 19 --prefix=/usr \ |
erjo@0 | 20 --infodir=/usr/share/info \ |
erjo@0 | 21 --mandir=/usr/share/man \ |
erjo@0 | 22 $CONFIGURE_ARGS && |
erjo@0 | 23 make |
erjo@0 | 24 } |
erjo@0 | 25 |
erjo@0 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@0 | 27 genpkg_rules() |
erjo@0 | 28 { |
erjo@0 | 29 mkdir -p $fs/usr/sbin \ |
erjo@0 | 30 $fs/var/log/thttpd \ |
erjo@0 | 31 |
erjo@0 | 32 cp -a $src/thttpd $fs/usr/sbin |
erjo@0 | 33 cp -a $src/extras/htpasswd $fs/usr/sbin |
erjo@0 | 34 cp -a $src/extras/syslogtocern $fs/usr/sbin |
erjo@0 | 35 cp -a stuff/etc $fs/ |
erjo@0 | 36 } |
erjo@0 | 37 |