diff options
Diffstat (limited to 'community/fcgiwrap')
-rw-r--r-- | community/fcgiwrap/PKGBUILD | 22 | ||||
-rw-r--r-- | community/fcgiwrap/fcgiwrap.conf.d | 13 | ||||
-rw-r--r-- | community/fcgiwrap/fcgiwrap.rc.d | 74 |
3 files changed, 7 insertions, 102 deletions
diff --git a/community/fcgiwrap/PKGBUILD b/community/fcgiwrap/PKGBUILD index f3d818fea..dd461bd70 100644 --- a/community/fcgiwrap/PKGBUILD +++ b/community/fcgiwrap/PKGBUILD @@ -1,29 +1,23 @@ -# $Id: PKGBUILD 79378 2012-11-03 21:00:27Z lfleischer $ +# $Id: PKGBUILD 84283 2013-02-15 14:33:33Z 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> pkgname=fcgiwrap -pkgver=1.0.3 -_gitrev='b9f03e6' -pkgrel=4 +pkgver=1.1.0 +pkgrel=1 pkgdesc='A simple server for running CGI applications over FastCGI.' arch=('i686' 'x86_64' 'mips64el') url='http://nginx.localdomain.pl/wiki/FcgiWrap' license=('MIT') depends=('fcgi' 'systemd') -backup=('etc/conf.d/fcgiwrap') -source=("ftp://ftp.archlinux.org/other/community/${pkgname}/${pkgname}-${_gitrev}.tar.gz" - 'fcgiwrap.conf.d' - 'fcgiwrap.rc.d' +source=("https://github.com/gnosek/fcgiwrap/archive/${pkgver}.tar.gz" 'LICENSE') -md5sums=('96d5f5a82b96f6eb7b4117fbab5e1e58' - '9fbb5b0e861ffea74e655143a4c1a8f9' - '71ea12f43aebca39f73ff2e0b684f361' +md5sums=('d14f56bda6758a6e02aa7b3fb125cbce' '5aee62c27b4308f25ab32f05da387366') build() { - cd "${srcdir}/${pkgname}" + cd "${srcdir}/${pkgname}-${pkgver}" autoreconf --install ./configure --prefix=/usr --mandir=/share/man @@ -31,10 +25,8 @@ build() { } package() { - cd "${srcdir}/${pkgname}" + cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install - 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" } diff --git a/community/fcgiwrap/fcgiwrap.conf.d b/community/fcgiwrap/fcgiwrap.conf.d deleted file mode 100644 index 906f597a0..000000000 --- a/community/fcgiwrap/fcgiwrap.conf.d +++ /dev/null @@ -1,13 +0,0 @@ -# -# parameters for fcgiwrap daemon -# - -SPAWNER='/usr/bin/spawn-fcgi' - -FCGI_ADDRESS='127.0.0.1' -FCGI_PORT='9001' -FCGI_USER='http' -FCGI_GROUP='http' -FCGI_EXTRA_OPTIONS='' - -SPAWNER_ARGS="-a $FCGI_ADDRESS -p $FCGI_PORT -u $FCGI_USER -g $FCGI_GROUP $FCGI_EXTRA_OPTIONS -- /usr/sbin/fcgiwrap" diff --git a/community/fcgiwrap/fcgiwrap.rc.d b/community/fcgiwrap/fcgiwrap.rc.d deleted file mode 100644 index 42787d149..000000000 --- a/community/fcgiwrap/fcgiwrap.rc.d +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions - -DAEMON=fcgiwrap - -# source application-specific settings -[ -f /etc/conf.d/$DAEMON ] && . /etc/conf.d/$DAEMON - -# set defaults if settings are missing -[ -z "$SPAWNER" ] && SPAWNER='/usr/bin/spawn-fcgi' -[ -z "$SPAWNER_ARGS" ] && SPAWNER_ARGS='-a 127.0.0.1 -p 9001 -u http -g http -- /usr/sbin/fcgiwrap' - -get_pid() { - pidof -o %PPID $DAEMON -} - -case "$1" in - start) - stat_busy "Starting $DAEMON daemon" - - PID=$(get_pid) - if [ -z "$PID" ]; then - [ -f /var/run/$DAEMON.pid ] && rm -f /var/run/$DAEMON.pid - # RUN - $SPAWNER $SPAWNER_ARGS &> /dev/null - # - if [ $? -gt 0 ]; then - stat_fail - exit 1 - else - echo $(get_pid) > /var/run/$DAEMON.pid - add_daemon $DAEMON - stat_done - fi - else - stat_fail - exit 1 - fi - ;; - - stop) - stat_busy "Stopping $DAEMON daemon" - PID=$(get_pid) - # KILL - [ ! -z "$PID" ] && kill $PID &> /dev/null - # - if [ $? -gt 0 ]; then - stat_fail - exit 1 - else - rm -f /var/run/$DAEMON.pid &> /dev/null - rm_daemon $DAEMON - stat_done - fi - ;; - - restart) - $0 stop - sleep 3 - $0 start - ;; - - status) - stat_busy "Checking $DAEMON status"; - ck_status $DAEMON - ;; - - *) - echo "usage: $0 {start|stop|restart|status}" -esac - -exit 0 |