[arch-commits] Commit in darkhttpd/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 7 17:07:20 UTC 2020
Date: Tuesday, July 7, 2020 @ 17:07:18
Author: felixonmars
Revision: 659560
archrelease: copy trunk to community-staging-x86_64
Added:
darkhttpd/repos/community-staging-x86_64/
darkhttpd/repos/community-staging-x86_64/PKGBUILD
(from rev 659559, darkhttpd/trunk/PKGBUILD)
darkhttpd/repos/community-staging-x86_64/darkhttpd.service
(from rev 659559, darkhttpd/trunk/darkhttpd.service)
darkhttpd/repos/community-staging-x86_64/darkhttpd at .service
(from rev 659559, darkhttpd/trunk/darkhttpd at .service)
--------------------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
darkhttpd.service | 14 ++++++++++++++
darkhttpd at .service | 14 ++++++++++++++
3 files changed, 73 insertions(+)
Copied: darkhttpd/repos/community-staging-x86_64/PKGBUILD (from rev 659559, darkhttpd/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-07-07 17:07:18 UTC (rev 659560)
@@ -0,0 +1,45 @@
+# Maintainer: Sergej Pupykin <arch+pub at sergej.pp.ru>
+
+pkgname=darkhttpd
+pkgver=1.12
+pkgrel=6
+pkgdesc="A small and secure static webserver"
+arch=('x86_64')
+url="https://unix4lyfe.org/darkhttpd/"
+license=('BSD')
+backup=('etc/conf.d/mimetypes')
+source=("$url/$pkgname-$pkgver.tar.bz2"
+ 'darkhttpd.service'
+ 'darkhttpd at .service')
+sha256sums=('a50417b622b32b5f421b3132cb94ebeff04f02c5fb87fba2e31147d23de50505'
+ 'e53ae82993f6c996c0c54ccbbd9307811501cf01404c441b48b2c79f9384fa27'
+ '0bfbe13c93ba87d8ea08ab85745c92cebcbc6b627616e7c58d6099a234a59841')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ sed -i 's/$(CFLAGS)/$(CFLAGS) $(LDFLAGS)/' Makefile
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # install darkhttpd
+ install -Dm755 "$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 at .service" "$pkgdir/usr/lib/systemd/system/darkhttpd at .service"
+ install -dm0755 "$pkgdir"/etc/conf.d/
+ touch "$pkgdir"/etc/conf.d/mimetypes
+
+ # install license
+ install -d "$pkgdir/usr/share/licenses/$pkgname"
+ sed -n '1,/^$/p' darkhttpd.c > "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
Copied: darkhttpd/repos/community-staging-x86_64/darkhttpd.service (from rev 659559, darkhttpd/trunk/darkhttpd.service)
===================================================================
--- community-staging-x86_64/darkhttpd.service (rev 0)
+++ community-staging-x86_64/darkhttpd.service 2020-07-07 17:07:18 UTC (rev 659560)
@@ -0,0 +1,14 @@
+[Unit]
+Description=Darkhttpd Webserver
+After=network.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/darkhttpd /srv/http --uid http --gid http --chroot --no-listing --mimetypes /etc/conf.d/mimetypes
+ProtectSystem=full
+ProtectHome=on
+PrivateDevices=on
+NoNewPrivileges=on
+
+[Install]
+WantedBy=multi-user.target
Copied: darkhttpd/repos/community-staging-x86_64/darkhttpd at .service (from rev 659559, darkhttpd/trunk/darkhttpd at .service)
===================================================================
--- community-staging-x86_64/darkhttpd at .service (rev 0)
+++ community-staging-x86_64/darkhttpd at .service 2020-07-07 17:07:18 UTC (rev 659560)
@@ -0,0 +1,14 @@
+[Unit]
+Description=Darkhttpd Webserver
+After=network.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/darkhttpd /srv/http --uid http --gid http --chroot --no-listing --mimetypes /etc/conf.d/mimetypes --addr %i
+ProtectSystem=full
+ProtectHome=on
+PrivateDevices=on
+NoNewPrivileges=on
+
+[Install]
+WantedBy=multi-user.target
More information about the arch-commits
mailing list