wok-current view thttpd/receipt @ rev 25124

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