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'
|
# Template file for 'darkhttpd'
|
||||||
pkgname=darkhttpd
|
pkgname=darkhttpd
|
||||||
version=1.12
|
version=1.12
|
||||||
revision=1
|
revision=2
|
||||||
short_desc="A small and secure static webserver"
|
short_desc="Small and secure static webserver"
|
||||||
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
||||||
license="BSD"
|
license="ISC"
|
||||||
homepage="http://dmr.ath.cx/net/darkhttpd/"
|
homepage="https://unix4lyfe.org/darkhttpd/"
|
||||||
distfiles="$homepage/$pkgname-$version.tar.bz2"
|
distfiles="https://unix4lyfe.org/darkhttpd/darkhttpd-${version}.tar.bz2"
|
||||||
checksum=a50417b622b32b5f421b3132cb94ebeff04f02c5fb87fba2e31147d23de50505
|
checksum=a50417b622b32b5f421b3132cb94ebeff04f02c5fb87fba2e31147d23de50505
|
||||||
CFLAGS="$CFLAGS $LDFLAGS"
|
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() {
|
do_build() {
|
||||||
${CC} ${CFLAGS} ${LDFLAGS} ${LIBS} ${pkgname}.c -o ${pkgname}
|
${CC} ${CFLAGS} ${LDFLAGS} ${LIBS} ${pkgname}.c -o ${pkgname}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
|
vsv ${pkgname}
|
||||||
vbin ${pkgname}
|
vbin ${pkgname}
|
||||||
sed -n '0,/^$/p' darkhttpd.c > LICENSE
|
sed -n '0,/^$/p' darkhttpd.c > LICENSE
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue