darkhttpd: add service, fix license
This commit is contained in:
parent
2909f67d6f
commit
fa878b32f7
2 changed files with 14 additions and 5 deletions
2
srcpkgs/darkhttpd/files/darkhttpd/run
Executable file
2
srcpkgs/darkhttpd/files/darkhttpd/run
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec darkhttpd /srv/www/darkhttpd --chroot --uid _darkhttpd --gid _darkhttpd --no-server-id &>/var/log/darkhttpd/darkhttpd.log
|
|
@ -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 <abc@pompel.me>"
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue