mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-20 08:02:26 +01:00
- split openrc subpackage - use /run instead of /var/run for socket dir - remove use of pidfile. It seems that the first process will not clean up the childen. Let openrc kill all children by not specify pidfile - fix permission of unix socket path. it needs to be writable by www-data group. - clean up unix socket after stop - make it possible to set number of preforks via 'nproc' in /etc/conf.d/fcgiwrap. default to number of cpus on system. - allow set tcp socket via /etc/conf.d/fcgiwrap - provide example /etc/conf.d/fcgiwrap
41 lines
1.4 KiB
Plaintext
41 lines
1.4 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=fcgiwrap
|
|
pkgver=1.1.0
|
|
pkgrel=3
|
|
pkgdesc="Simple server for running CGI applications over FastCGI"
|
|
url="https://github.com/gnosek/fcgiwrap"
|
|
arch="all"
|
|
license="MIT"
|
|
pkgusers="fcgiwrap"
|
|
pkggroups="www-data"
|
|
install="$pkgname.pre-install"
|
|
makedepends="$depends_dev autoconf libtool automake fcgi-dev"
|
|
subpackages="$pkgname-doc $pkgname-openrc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/gnosek/$pkgname/archive/$pkgver.tar.gz
|
|
$pkgname.initd
|
|
$pkgname.confd"
|
|
|
|
builddir="$srcdir/$pkgname-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
autoreconf --install
|
|
CFLAGS="$CFLAGS -Wno-implicit-fallthrough" \
|
|
./configure --prefix=/usr \
|
|
--mandir=/share/man \
|
|
--sbindir=/bin
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
install -d -m2775 -o fcgiwrap -g www-data "$pkgdir"/run/fcgiwrap
|
|
make DESTDIR="$pkgdir" install
|
|
install -Dm755 $srcdir/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
|
|
install -Dm644 $srcdir/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
|
|
}
|
|
|
|
sha512sums="b8d35762d1d3c94a67602290b0092f0c38cffbbcd3dbc16597abf8b92172909b04450c238de2e430e841a17dd47fdd48d6a001f77539966980ef1af61e447ddc fcgiwrap-1.1.0.tar.gz
|
|
0dbf5f4387e5dc5de6e9bd6d98247e175f1a7943fe1d04ea916881b1269fd0b62abfafac91f8c0dd2f4dc9c71118195ba9dd7cf9bb5e3d93e6e711ec7d770453 fcgiwrap.initd
|
|
893e9afa92c20c9d0dab68fffc806a1be1f2e28a7e73bbb497316386a9ee083be4bad68a90f660e489311a9812a512b50fb0edb8b9c49b12f6cd266ba53b01a6 fcgiwrap.confd"
|