wok view thttpd/receipt @ rev 24520

updated ethtool (5.4 -> 5.16)
author Hans-G?nter Theisgen
date Tue Feb 22 15:25:07 2022 +0100 (2022-02-22)
parents ad52c2b51c28
children 22bf62841f5c
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/"
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
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 }