* update darkhttpd to 1.16-2

This commit is contained in:
Alexander Baldeck 2024-12-17 10:50:45 +01:00
parent bd9e457247
commit 9da9e4d0ee
3 changed files with 15 additions and 9 deletions

View File

@ -1,14 +1,15 @@
pkgbase = darkhttpd
pkgdesc = A small and secure static webserver
pkgver = 1.16
pkgrel = 1.1
pkgrel = 2
url = https://unix4lyfe.org/darkhttpd/
arch = x86_64
arch = powerpc64le
arch = powerpc64
arch = powerpc
arch = riscv64
license = BSD
license = ISC
depends = glibc
backup = etc/conf.d/mimetypes
source = darkhttpd-1.16.tar.gz::https://github.com/emikulic/darkhttpd/archive/v1.16.tar.gz
source = darkhttpd.service

View File

@ -0,0 +1,4 @@
[darkhttpd]
source = "git"
git = "https://github.com/emikulic/darkhttpd.git"
prefix = "v"

View File

@ -3,11 +3,12 @@
pkgname=darkhttpd
pkgver=1.16
pkgrel=1.1
pkgdesc="A small and secure static webserver"
pkgrel=2
pkgdesc='A small and secure static webserver'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url="https://unix4lyfe.org/darkhttpd/"
license=('BSD')
url='https://unix4lyfe.org/darkhttpd/'
license=('ISC')
depends=('glibc')
backup=('etc/conf.d/mimetypes')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/emikulic/darkhttpd/archive/v${pkgver}.tar.gz"
'darkhttpd.service'
@ -26,11 +27,11 @@ package() {
cd "$srcdir/$pkgname-$pkgver"
# install darkhttpd
install -Dm755 "$srcdir/$pkgname-$pkgver/darkhttpd" "$pkgdir/usr/bin/darkhttpd"
install -Dm0755 "$srcdir/$pkgname-$pkgver/darkhttpd" "$pkgdir/usr/bin/darkhttpd"
# install systemd files
install -Dm644 "$srcdir/darkhttpd.service" "$pkgdir/usr/lib/systemd/system/darkhttpd.service"
install -Dm644 "$srcdir/darkhttpd@.service" "$pkgdir/usr/lib/systemd/system/darkhttpd@.service"
install -Dm0644 "$srcdir/darkhttpd.service" "$pkgdir/usr/lib/systemd/system/darkhttpd.service"
install -Dm0644 "$srcdir/darkhttpd@.service" "$pkgdir/usr/lib/systemd/system/darkhttpd@.service"
install -dm0755 "$pkgdir"/etc/conf.d/
touch "$pkgdir"/etc/conf.d/mimetypes