27 lines
770 B
Bash
27 lines
770 B
Bash
# Template file for 'darkhttpd'
|
|
pkgname=darkhttpd
|
|
version=1.13
|
|
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/v${version}.tar.gz"
|
|
checksum=1d88c395ac79ca9365aa5af71afe4ad136a4ed45099ca398168d4a2014dc0fc2
|
|
CFLAGS="$CFLAGS $LDFLAGS"
|
|
|
|
# Create darkhttpd system user/group
|
|
system_accounts="_darkhttpd"
|
|
make_dirs="/srv/www/${pkgname} 0755 _${pkgname} _${pkgname}
|
|
/var/log/${pkgname} 0755 _${pkgname} _${pkgname}"
|
|
|
|
do_build() {
|
|
${CC} ${CFLAGS} ${LDFLAGS} ${LIBS} ${pkgname}.c -o ${pkgname}
|
|
}
|
|
|
|
do_install() {
|
|
vsv ${pkgname}
|
|
vbin ${pkgname}
|
|
sed -n '0,/^$/p' darkhttpd.c > LICENSE
|
|
vlicense LICENSE
|
|
}
|