26 lines
704 B
Bash
26 lines
704 B
Bash
# Template file for 'darkhttpd'
|
|
pkgname=darkhttpd
|
|
version=1.16
|
|
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=ab97ea3404654af765f78282aa09cfe4226cb007d2fcc59fe1a475ba0fef1981
|
|
|
|
# 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
|
|
}
|