summaryrefslogtreecommitdiff
path: root/community/webfs
diff options
context:
space:
mode:
Diffstat (limited to 'community/webfs')
-rw-r--r--community/webfs/PKGBUILD34
-rw-r--r--community/webfs/webfsd.launcher9
-rw-r--r--community/webfs/webfsd.service9
3 files changed, 39 insertions, 13 deletions
diff --git a/community/webfs/PKGBUILD b/community/webfs/PKGBUILD
index 3e7da95bb..4b2310ea9 100644
--- a/community/webfs/PKGBUILD
+++ b/community/webfs/PKGBUILD
@@ -1,34 +1,42 @@
-# $Id: PKGBUILD 73433 2012-07-07 15:26:00Z cbrannon $
+# $Id: PKGBUILD 79157 2012-10-31 05:28:18Z kkeen $
+# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Roman Kyrylych <Roman.Kyrylych@gmail.com>
# Contributor: Mark Rosenstand <mark@archlinux.org>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
-# Maintainer: Chris Brannon <chris@the-brannons.com>
+# Contributor: Chris Brannon <chris@the-brannons.com>
pkgname=webfs
pkgver=1.21
-pkgrel=7
-pkgdesc="Simple http server for mostly static content."
+pkgrel=8
+pkgdesc="Simple and instant http server for mostly static content."
arch=(i686 x86_64)
url="http://linux.bytesex.org/misc/webfs.html"
license=("GPL")
depends=('mime-types' 'openssl')
backup=(etc/conf.d/webfsd)
source=(http://dl.bytesex.org/releases/webfs/webfs-${pkgver}.tar.gz
- webfsd.rc webfsd.conf webfs.patch)
-md5sums=('6dc125fe160479404147e7bbfc781dbc' '3ae9fcdcf79b193aa88e386055e9ebd7'
- 'b2c1ab041a82acd8391b06dc38d986be' '7294edcec2589df04bb775270d56536e')
+ webfsd.rc webfsd.conf webfs.patch
+ webfsd.launcher webfsd.service)
+md5sums=('6dc125fe160479404147e7bbfc781dbc'
+ '3ae9fcdcf79b193aa88e386055e9ebd7'
+ 'b2c1ab041a82acd8391b06dc38d986be'
+ '7294edcec2589df04bb775270d56536e'
+ '256533a2fa5a293a55da1f32fab2cb28'
+ '7ee2bcd77e4113f5bfe7540844cbabd3')
build() {
- cd ${srcdir}/${pkgname}-${pkgver}
+ cd "$srcdir/$pkgname-$pkgver"
- patch -i ${srcdir}/webfs.patch
+ patch -i "$srcdir/webfs.patch"
make
}
package() {
- cd ${srcdir}/${pkgname}-${pkgver}
+ cd "$srcdir/$pkgname-$pkgver"
- make prefix=/usr DESTDIR=${pkgdir} install
- install -Dm755 ${srcdir}/webfsd.rc ${pkgdir}/etc/rc.d/webfsd
- install -Dm644 ${srcdir}/webfsd.conf ${pkgdir}/etc/conf.d/webfsd
+ make prefix=/usr DESTDIR="$pkgdir" install
+ install -Dm755 "$srcdir/webfsd.rc" "$pkgdir/etc/rc.d/webfsd"
+ install -Dm644 "$srcdir/webfsd.conf" "$pkgdir/etc/conf.d/webfsd"
+ install -Dm755 "$srcdir/webfsd.launcher" "$pkgdir/usr/lib/systemd/scripts/webfsd"
+ install -Dm755 "$srcdir/webfsd.service" "$pkgdir/usr/lib/systemd/system/webfsd.service"
}
diff --git a/community/webfs/webfsd.launcher b/community/webfs/webfsd.launcher
new file mode 100644
index 000000000..fe2170617
--- /dev/null
+++ b/community/webfs/webfsd.launcher
@@ -0,0 +1,9 @@
+#! /bin/bash
+
+# wrapper script for systemd service
+
+[ -f /etc/conf.d/webfsd ] && . /etc/conf.d/webfsd
+
+# -F for simple target
+exec /usr/bin/webfsd -F ${WEBFSD_ARGS}
+
diff --git a/community/webfs/webfsd.service b/community/webfs/webfsd.service
new file mode 100644
index 000000000..18c07d7ce
--- /dev/null
+++ b/community/webfs/webfsd.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Simple and instant http server.
+After=network.target
+
+[Service]
+ExecStart=/usr/lib/systemd/scripts/webfsd
+
+[Install]
+WantedBy=multi-user.target