wok-current view thttpd/receipt @ rev 24988
Fix perl-gd & tcptrack
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 12 11:01:25 2022 +0000 (2022-05-12) |
parents | 22bf62841f5c |
children | e171b422f9e7 |
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="https://www.acme.com/software/thttpd/thttpd.html"
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 }