wok-6.x view hiawatha/receipt @ rev 25432
motion: adapted configuration parameters to version 4.4.0
author | Hans-G?nter Theisgen |
---|---|
date | Sun Aug 21 17:07:48 2022 +0100 (24 months ago) |
parents | 83b97236db32 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="hiawatha"
4 VERSION="11.1"
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 mkdir _build &&
35 cd _build &&
36 cmake .. \
37 -D CMAKE_INSTALL_PREFIX=/usr \
38 -D CMAKE_INSTALL_SYSCONFDIR=/etc\
39 -D LOG_DIR=/var/log \
40 -D WEBROOT_DIR=/var/www \
41 -D PID_DIR=/var/run \
42 -D WORK_DIR=/var/lib &&
43 make install DESTDIR=$DESTDIR
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 cook_copy_folders bin
50 cook_copy_folders etc
51 cook_copy_folders lib
52 cook_copy_folders sbin
53 cook_copy_folders var
54 }