mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-28 16:32:57 +02:00
parent
957853adfc
commit
877c6c001c
2 changed files with 9 additions and 12 deletions
|
@ -1,27 +1,25 @@
|
||||||
# Template file for 'darkhttpd'
|
# Template file for 'darkhttpd'
|
||||||
pkgname=darkhttpd
|
pkgname=darkhttpd
|
||||||
version=1.13
|
version=1.14
|
||||||
revision=1
|
revision=1
|
||||||
short_desc="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="ISC"
|
license="ISC"
|
||||||
homepage="https://unix4lyfe.org/darkhttpd/"
|
homepage="https://unix4lyfe.org/darkhttpd/"
|
||||||
distfiles="https://github.com/emikulic/darkhttpd/archive/v${version}.tar.gz"
|
distfiles="https://github.com/emikulic/darkhttpd/archive/refs/tags/v${version}.tar.gz"
|
||||||
checksum=1d88c395ac79ca9365aa5af71afe4ad136a4ed45099ca398168d4a2014dc0fc2
|
checksum=e063de9efa5635260c8def00a4d41ec6145226a492d53fa1dac436967670d195
|
||||||
CFLAGS="$CFLAGS $LDFLAGS"
|
|
||||||
|
|
||||||
# Create darkhttpd system user/group
|
# Create darkhttpd system user/group
|
||||||
system_accounts="_darkhttpd"
|
system_accounts="_darkhttpd"
|
||||||
make_dirs="/srv/www/${pkgname} 0755 _${pkgname} _${pkgname}
|
make_dirs="/srv/www/darkhttpd 0755 _darkhttpd _darkhttpd
|
||||||
/var/log/${pkgname} 0755 _${pkgname} _${pkgname}"
|
/var/log/darkhttpd 0755 _darkhttpd _darkhttpd"
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
${CC} ${CFLAGS} ${LDFLAGS} ${LIBS} ${pkgname}.c -o ${pkgname}
|
${CC} ${CFLAGS} ${LDFLAGS} darkhttpd.c -o darkhttpd
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vsv ${pkgname}
|
vsv darkhttpd
|
||||||
vbin ${pkgname}
|
vbin darkhttpd
|
||||||
sed -n '0,/^$/p' darkhttpd.c > LICENSE
|
vlicense COPYING LICENSE
|
||||||
vlicense LICENSE
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
site=https://unix4lyfe.org/darkhttpd/
|
|
Loading…
Add table
Reference in a new issue