void-packages/srcpkgs/darkhttpd/template

26 lines
704 B
Bash

# Template file for 'darkhttpd'
pkgname=darkhttpd
version=1.14
revision=1
short_desc="Small and secure static webserver"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="ISC"
homepage="https://unix4lyfe.org/darkhttpd/"
distfiles="https://github.com/emikulic/darkhttpd/archive/refs/tags/v${version}.tar.gz"
checksum=e063de9efa5635260c8def00a4d41ec6145226a492d53fa1dac436967670d195
# Create darkhttpd system user/group
system_accounts="_darkhttpd"
make_dirs="/srv/www/darkhttpd 0755 _darkhttpd _darkhttpd
/var/log/darkhttpd 0755 _darkhttpd _darkhttpd"
do_build() {
${CC} ${CFLAGS} ${LDFLAGS} darkhttpd.c -o darkhttpd
}
do_install() {
vsv darkhttpd
vbin darkhttpd
vlicense COPYING LICENSE
}