summaryrefslogtreecommitdiff
path: root/community/fcgiwrap
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-08-20 00:02:06 +0000
committerroot <root@rshg054.dnsready.net>2012-08-20 00:02:06 +0000
commit524da814660fa35bca4a24d0faa0a10b7eab5c6f (patch)
tree1bcbd03b3e06e28d9fa0d461e72d4964830e9c05 /community/fcgiwrap
parent07455ea1de16867b168628e8a9f7f5bffc169a5f (diff)
Mon Aug 20 00:02:06 UTC 2012
Diffstat (limited to 'community/fcgiwrap')
-rw-r--r--community/fcgiwrap/PKGBUILD8
-rw-r--r--community/fcgiwrap/fcgiwrap.service13
2 files changed, 19 insertions, 2 deletions
diff --git a/community/fcgiwrap/PKGBUILD b/community/fcgiwrap/PKGBUILD
index e3c68122d..2237fc3a7 100644
--- a/community/fcgiwrap/PKGBUILD
+++ b/community/fcgiwrap/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 57830 2011-11-03 10:18:16Z lfleischer $
+# $Id: PKGBUILD 75304 2012-08-18 12:28:57Z lfleischer $
# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: Aaron Bull Schaefer <aaron@elasticdog.com>
# Contributor: Ron Huang <ronhuang+aur at gmail dot com>
@@ -6,7 +6,7 @@
pkgname=fcgiwrap
pkgver=1.0.3
_gitrev='2e301c8'
-pkgrel=2
+pkgrel=3
pkgdesc='A simple server for running CGI applications over FastCGI.'
arch=('i686' 'x86_64')
url='http://nginx.localdomain.pl/wiki/FcgiWrap'
@@ -16,10 +16,12 @@ backup=('etc/conf.d/fcgiwrap')
source=("https://github.com/downloads/gnosek/fcgiwrap/${pkgname}-${pkgver}.tar.gz"
'fcgiwrap.conf.d'
'fcgiwrap.rc.d'
+ 'fcgiwrap.service'
'LICENSE')
md5sums=('be73d90df7c4442084463e2815fc213d'
'9fbb5b0e861ffea74e655143a4c1a8f9'
'71ea12f43aebca39f73ff2e0b684f361'
+ 'fda6e50f609ede7c599caac8a7bb127a'
'5aee62c27b4308f25ab32f05da387366')
build() {
@@ -37,4 +39,6 @@ package() {
install -Dm0644 ../fcgiwrap.conf.d "${pkgdir}/etc/conf.d/${pkgname}"
install -Dm0755 ../fcgiwrap.rc.d "${pkgdir}/etc/rc.d/${pkgname}"
install -Dm0644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+ install -Dm0644 "${srcdir}/fcgiwrap.service" "${pkgdir}/usr/lib/systemd/system/fcgiwrap.service"
}
diff --git a/community/fcgiwrap/fcgiwrap.service b/community/fcgiwrap/fcgiwrap.service
new file mode 100644
index 000000000..f59f18db2
--- /dev/null
+++ b/community/fcgiwrap/fcgiwrap.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Simple server for running CGI applications over FastCGI
+After=syslog.target network.target remote-fs.target nss-lookup.target
+
+[Service]
+Type=forking
+Restart=on-abort
+PIDFile=/var/run/fcgiwrap.pid
+ExecStart=/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9001 -u http -g http -- /usr/sbin/fcgiwrap
+ExecStop=/usr/bin/kill -15 $MAINPID
+
+[Install]
+WantedBy=multi-user.target