wok view hiawatha/receipt @ rev 25707
Up perl-net-pcap (0.21), qtermwidget (0.5.1), youtube-dl-gui (0.3.8)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 05 14:08:34 2024 +0000 (3 months ago) |
parents | 82a123e54615 |
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://hiawatha.leisink.net/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://hiawatha.leisink.net/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 }