From fa878b32f700f173718313cb587caeef6c6cd8fd Mon Sep 17 00:00:00 2001 From: prspkt Date: Tue, 30 Oct 2018 02:07:07 +0200 Subject: [PATCH] darkhttpd: add service, fix license --- srcpkgs/darkhttpd/files/darkhttpd/run | 2 ++ srcpkgs/darkhttpd/template | 17 ++++++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) create mode 100755 srcpkgs/darkhttpd/files/darkhttpd/run diff --git a/srcpkgs/darkhttpd/files/darkhttpd/run b/srcpkgs/darkhttpd/files/darkhttpd/run new file mode 100755 index 0000000000..5d417967de --- /dev/null +++ b/srcpkgs/darkhttpd/files/darkhttpd/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec darkhttpd /srv/www/darkhttpd --chroot --uid _darkhttpd --gid _darkhttpd --no-server-id &>/var/log/darkhttpd/darkhttpd.log diff --git a/srcpkgs/darkhttpd/template b/srcpkgs/darkhttpd/template index 4af17040cc..34671e6909 100644 --- a/srcpkgs/darkhttpd/template +++ b/srcpkgs/darkhttpd/template @@ -1,19 +1,26 @@ # Template file for 'darkhttpd' pkgname=darkhttpd version=1.12 -revision=1 -short_desc="A small and secure static webserver" +revision=2 +short_desc="Small and secure static webserver" maintainer="Andrea Brancaleoni " -license="BSD" -homepage="http://dmr.ath.cx/net/darkhttpd/" -distfiles="$homepage/$pkgname-$version.tar.bz2" +license="ISC" +homepage="https://unix4lyfe.org/darkhttpd/" +distfiles="https://unix4lyfe.org/darkhttpd/darkhttpd-${version}.tar.bz2" checksum=a50417b622b32b5f421b3132cb94ebeff04f02c5fb87fba2e31147d23de50505 CFLAGS="$CFLAGS $LDFLAGS" +# Create darkhttpd system user/group +system_accounts="_${pkgname}" +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