From 4a4f6be8604aa35bdc81ae29d86b07dc8aea0c5c Mon Sep 17 00:00:00 2001 From: root Date: Sat, 16 Feb 2013 00:07:09 -0800 Subject: Sat Feb 16 00:07:08 PST 2013 --- community/fcgiwrap/PKGBUILD | 22 ++++-------- community/fcgiwrap/fcgiwrap.conf.d | 13 ------- community/fcgiwrap/fcgiwrap.rc.d | 74 -------------------------------------- 3 files changed, 7 insertions(+), 102 deletions(-) delete mode 100644 community/fcgiwrap/fcgiwrap.conf.d delete mode 100644 community/fcgiwrap/fcgiwrap.rc.d (limited to 'community/fcgiwrap') diff --git a/community/fcgiwrap/PKGBUILD b/community/fcgiwrap/PKGBUILD index e5a83ca0a..80f5babe0 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 # Contributor: Aaron Bull Schaefer # Contributor: Ron Huang 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') 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 -- cgit v1.2.3-54-g00ecf