summaryrefslogtreecommitdiff
path: root/community/fcgiwrap
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-08-20 12:45:35 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-08-20 12:45:35 -0300
commiteb13db73efc6dcc424d687f3c6669cfadc7c9657 (patch)
tree0c62a303b84eb484cc713fd0bb1e56be0995bbcb /community/fcgiwrap
parenta795c43769d1cb1c19a4fdd66c662e92ab73bf0f (diff)
parent524da814660fa35bca4a24d0faa0a10b7eab5c6f (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: multilib/wine/PKGBUILD
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 a4d9e558e..4f6a4f374 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' 'mips64el')
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