[arch-commits] Commit in darkhttpd/trunk (3 files)

Sergej Pupykin spupykin at archlinux.org
Tue Mar 7 09:00:15 UTC 2017


    Date: Tuesday, March 7, 2017 @ 09:00:14
  Author: spupykin
Revision: 215228

upgpkg: darkhttpd 1.12-2

upd

Added:
  darkhttpd/trunk/darkhttpd at .service
Modified:
  darkhttpd/trunk/PKGBUILD
  darkhttpd/trunk/darkhttpd.service

--------------------+
 PKGBUILD           |   11 ++++++-----
 darkhttpd.service  |    2 +-
 darkhttpd at .service |    9 +++++++++
 3 files changed, 16 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-03-07 08:32:47 UTC (rev 215227)
+++ PKGBUILD	2017-03-07 09:00:14 UTC (rev 215228)
@@ -3,7 +3,7 @@
 
 pkgname=darkhttpd
 pkgver=1.12
-pkgrel=1
+pkgrel=2
 pkgdesc="A small and secure static webserver"
 arch=('i686' 'x86_64')
 url="http://dmr.ath.cx/net/darkhttpd/"
@@ -11,11 +11,11 @@
 depends=()
 backup=('etc/conf.d/mimetypes')
 source=("$url/$pkgname-$pkgver.tar.bz2"
-        'darkhttpd.service')
-sha256sums=('afad244add43c53010b36ada6ccdf1a854885cb37d6aeff103ad0aa4aed96c51'
-            '40f037a74bf8d28e779dcf7c0d447bcc74a629ffe6abb470e193f047567aed11')
+        'darkhttpd.service'
+        'darkhttpd at .service')
 sha256sums=('a50417b622b32b5f421b3132cb94ebeff04f02c5fb87fba2e31147d23de50505'
-            '40f037a74bf8d28e779dcf7c0d447bcc74a629ffe6abb470e193f047567aed11')
+            '0839e355e84911f764077d3d6f7163ba51d39f5bfccd12b22b22d536ac4bf166'
+            '50eedeebc14b0cf1f2885bdeabe2a55206996d026637ed6656513254d545027f')
 
 build() {
   cd "$srcdir/$pkgname-$pkgver"
@@ -30,6 +30,7 @@
 
   # 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
 

Modified: darkhttpd.service
===================================================================
--- darkhttpd.service	2017-03-07 08:32:47 UTC (rev 215227)
+++ darkhttpd.service	2017-03-07 09:00:14 UTC (rev 215228)
@@ -3,7 +3,7 @@
 
 [Service]
 Type=simple
-ExecStart=/usr/bin/darkhttpd /srv/http --uid nobody --gid nobody --chroot --mimetypes /etc/conf.d/mimetypes
+ExecStart=/usr/bin/darkhttpd /srv/http --uid http --gid http --chroot --no-listing --mimetypes /etc/conf.d/mimetypes
 
 [Install]
 WantedBy=multi-user.target

Added: darkhttpd at .service
===================================================================
--- darkhttpd at .service	                        (rev 0)
+++ darkhttpd at .service	2017-03-07 09:00:14 UTC (rev 215228)
@@ -0,0 +1,9 @@
+[Unit]
+Description=Darkhttpd Webserver
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/darkhttpd /srv/http --uid http --gid http --chroot --no-listing --mimetypes /etc/conf.d/mimetypes --addr %i
+
+[Install]
+WantedBy=multi-user.target


More information about the arch-commits mailing list