blob: fb3065831849a45df66e426cf8c771cf4af9ed58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
#!/bin/mkpkg
# description: Simple FastCGI wrapper for CGI scripts
# url: https://github.com/gnosek/fcgiwrap
name=fcgiwrap
version=1.1.0
release=2
depends=(fcgi2)
makedeps=(autoconf automake libtool m4)
groups=(fcgiwrap:user:fcgiwrap:/var/empty:755)
services=(fcgiwrap)
source=(https://github.com/gnosek/fcgiwrap/archive/refs/tags/$version.tar.gz)
sha256sums=(
"4c7de0db2634c38297d5fcef61ab4a3e21856dd7247d49c33d9b19542bd1c61f"
)
build() {
cd $name-$version
autoreconf -i
./configure \
--prefix=/usr \
--mandir=/share/man
make
make DESTDIR=$PKG install
}
post_build() {
install -d $PKG/etc/sv/fcgiwrap/log
printf '%s\n' \
'#!/bin/sh' \
'exec 2>&1' \
'' \
"if grep -q '^http:' /etc/group; then" \
' webgroup=http' \
'else' \
' webgroup=fcgiwrap' \
'fi' \
'' \
'install -d -o fcgiwrap -g "$webgroup" -m 2750 /run/fcgiwrap' \
'rm -f /run/fcgiwrap/sock' \
'umask 007' \
'' \
'exec chpst -u fcgiwrap:fcgiwrap fcgiwrap -c 4 -s unix:/run/fcgiwrap/sock' \
> $PKG/etc/sv/fcgiwrap/run
printf '%s\n' \
'#!/bin/sh' \
'mkdir -p /var/log/fcgiwrap' \
'exec svlogd -tt /var/log/fcgiwrap' \
> $PKG/etc/sv/fcgiwrap/log/run
printf '%s\n' \
'#!/bin/sh' \
'rm -f /run/fcgiwrap/sock' \
> $PKG/etc/sv/fcgiwrap/finish
chmod 755 $PKG/etc/sv/fcgiwrap/run \
$PKG/etc/sv/fcgiwrap/log/run \
$PKG/etc/sv/fcgiwrap/finish
}
signify() {
untrusted comment: public key
RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}
# vim: filetype=sh
|