wok-current view hiawatha/receipt @ rev 24538
updated fbcat (0.5.1 -> 0.5.2)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 23 15:14:49 2022 +0100 (2022-02-23) |
parents | 6359b5854aa5 |
children | 7d05d3f89e8d |
line source
1 # SliTaz package receipt.
3 PACKAGE="hiawatha"
4 VERSION="10.10"
5 CATEGORY="network"
6 TAGS="webserver http server"
7 SHORT_DESC="Advanced and secure webserver."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.hiawatha-webserver.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}files/$TARBALL"
15 PROVIDE="lighttpd"
16 DEPENDS="gcc83-lib-base libxml2 libxslt openssl zlib"
17 BUILD_DEPENDS="cmake gcc83 libxml2-dev libxslt-dev openssl-dev zlib-dev"
19 CONFIG_FILES="/etc/hiawatha"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - ${WGET_URL%/*} 2>/dev/null | \
25 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 export CC=gcc-83
32 export CXX=g++-83
34 cmake . \
35 -DCMAKE_INSTALL_PREFIX=/usr \
36 -DCMAKE_INSTALL_SYSCONFDIR=/etc \
37 -DLOG_DIR=/var/log \
38 -DWEBROOT_DIR=/var/www \
39 -DPID_DIR=/var/run \
40 -DWORK_DIR=/var/lib &&
41 make DESTDIR=$DESTDIR install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr
49 cp -a $install/var $fs
50 cp -a $install/etc $fs
51 cp -a $install/usr/lib $fs/usr
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/sbin $fs/usr
54 }