void-packages/srcpkgs/hiawatha/template

29 lines
970 B
Bash

# Template file for 'hiawatha'
pkgname=hiawatha
version=11.6
revision=1
build_style=cmake
configure_args="-DLOG_DIR=/var/log/hiawatha -DPID_DIR=/run
-DWEBROOT_DIR=/srv/www/$pkgname -DWORK_DIR=/var/lib/hiawatha
-DUSE_SYSTEM_MBEDTLS=ON -DUSE_SYSTEM_NGHTTP2=ON
-DCMAKE_INSTALL_SYSCONFDIR=/etc"
makedepends="libxslt-devel mbedtls-devel nghttp2-devel"
short_desc="Advanced and secure webserver for Unix"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://hiawatha.leisink.net"
distfiles="https://hiawatha.leisink.net/files/hiawatha-${version}.tar.gz"
checksum=b3c5eb7be007509b7e1f3d88cc03a99904d3b6e5e05d980f9d5bdaa424864dd6
conf_files="/etc/${pkgname}/*.conf /etc/${pkgname}/*.xslt"
make_dirs="/var/log/hiawatha 0755 root root"
if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
makedepends+=" libxcrypt-devel"
fi
XBPS_DISTFILES_MIRROR+=" https://hiawatha.leisink.net/files/hiawatha-${version%%.*}/"
post_install() {
vsv hiawatha
}