[arch-commits] Commit in fcgiwrap/trunk (PKGBUILD fcgiwrap.conf.d fcgiwrap.rc.d)
Lukas Fleischer
lfleischer at nymeria.archlinux.org
Fri Feb 15 14:33:19 UTC 2013
Date: Friday, February 15, 2013 @ 15:33:19
Author: lfleischer
Revision: 84282
upgpkg: fcgiwrap 1.1.0-1
* Upstream update.
* Drop "rc.d" scripts.
Modified:
fcgiwrap/trunk/PKGBUILD
Deleted:
fcgiwrap/trunk/fcgiwrap.conf.d
fcgiwrap/trunk/fcgiwrap.rc.d
-----------------+
PKGBUILD | 20 ++++----------
fcgiwrap.conf.d | 13 ---------
fcgiwrap.rc.d | 74 ------------------------------------------------------
3 files changed, 6 insertions(+), 101 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-02-15 14:20:17 UTC (rev 84281)
+++ PKGBUILD 2013-02-15 14:33:19 UTC (rev 84282)
@@ -4,26 +4,20 @@
# 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')
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 @@
}
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"
}
Deleted: fcgiwrap.conf.d
===================================================================
--- fcgiwrap.conf.d 2013-02-15 14:20:17 UTC (rev 84281)
+++ fcgiwrap.conf.d 2013-02-15 14:33:19 UTC (rev 84282)
@@ -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"
Deleted: fcgiwrap.rc.d
===================================================================
--- fcgiwrap.rc.d 2013-02-15 14:20:17 UTC (rev 84281)
+++ fcgiwrap.rc.d 2013-02-15 14:33:19 UTC (rev 84282)
@@ -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
More information about the arch-commits
mailing list