wok annotate thttpd/receipt @ rev 25030
giblib: inserted configure parameters
author | Hans-G?nter Theisgen |
---|---|
date | Fri May 20 10:23:32 2022 +0100 (2022-05-20) |
parents | 870e1ce31226 |
children |
rev | line source |
---|---|
pascal@11227 | 1 # SliTaz package receipt. |
pascal@11227 | 2 |
pascal@11227 | 3 PACKAGE="thttpd" |
Hans-G?nter@22027 | 4 VERSION="2.29" |
pascal@11227 | 5 CATEGORY="network" |
Hans-G?nter@22027 | 6 SHORT_DESC="Throttleable lightweight httpd server." |
pascal@11227 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15265 | 8 LICENSE="BSD" |
pascal@24991 | 9 WEB_SITE="http://www.acme.com/software/thttpd/" |
Hans-G?nter@22027 | 10 |
pascal@11227 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22027 | 12 WGET_URL="${WEB_SITE}$TARBALL" |
pascal@11227 | 13 |
pascal@15265 | 14 DEPENDS="" |
pascal@15265 | 15 |
pascal@24433 | 16 # What is the latest version available today? |
pascal@24433 | 17 current_version() |
pascal@24433 | 18 { |
pascal@24433 | 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24433 | 20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24433 | 21 } |
pascal@24433 | 22 |
pascal@11227 | 23 # Rules to configure and make the package. |
pascal@11227 | 24 compile_rules() |
pascal@11227 | 25 { |
Hans-G?nter@22027 | 26 # 2.25b |
Hans-G?nter@22027 | 27 # patch -p1 -i $stuff/htpassword.c.u || exit 1 |
Hans-G?nter@22027 | 28 |
Hans-G?nter@22027 | 29 ./configure \ |
Hans-G?nter@22027 | 30 --prefix=/usr \ |
Hans-G?nter@22027 | 31 --infodir=/usr/share/info \ |
Hans-G?nter@22027 | 32 --mandir=/usr/share/man \ |
pascal@11227 | 33 $CONFIGURE_ARGS && |
pascal@24779 | 34 make -j1 |
pascal@11227 | 35 } |
pascal@11227 | 36 |
pascal@11227 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11227 | 38 genpkg_rules() |
pascal@11227 | 39 { |
Hans-G?nter@22027 | 40 mkdir -p $fs/usr/sbin |
Hans-G?nter@22027 | 41 mkdir -p $fs/var/log/thttpd |
Hans-G?nter@22027 | 42 |
Hans-G?nter@22027 | 43 cp -a $src/thttpd $fs/usr/sbin |
Hans-G?nter@22027 | 44 cp -a $src/extras/htpasswd $fs/usr/sbin |
Hans-G?nter@22027 | 45 cp -a $src/extras/syslogtocern $fs/usr/sbin |
Hans-G?nter@22027 | 46 cp -a stuff/etc $fs/ |
pascal@11227 | 47 } |