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