void-packages/srcpkgs/darkhttpd/template

26 lines
704 B
Bash

# Template file for 'darkhttpd'
pkgname=darkhttpd
version=1.15
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=ea48cedafbf43186f4a8d1afc99b33b671adee99519658446022e6f63bd9eda9
# 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
}