aboutsummaryrefslogtreecommitdiffstats
path: root/main/fcgi/APKBUILD
blob: e5ae44b4483226b0f9c93bb2eb47a249f0156fa0 (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=fcgi
pkgver=2.4.0
pkgrel=8
pkgdesc="FAST CGI(fcgi) is a language independent, high performant extension to CGI"
url="http://www.fastcgi.com"
arch="all"
license="GPL"
depends=""
makedepends="libtool autoconf automake"
subpackages="$pkgname-dev $pkgname++:xx"
source="http://www.fastcgi.com/dist/${pkgname}-${pkgver}.tar.gz
	configure.patch
	fcgi-2.4.0-gcc44_fixes.patch
	fcgi-2.4.0-Makefile.am-CPPFLAGS.patch
	20-fcgi-2.4.0-clientdata-pointer.patch
	30-fcgi-2.4.0-html-updates.patch
	CVE-2012-6687.patch
	"

prepare() {
	cd "$srcdir/$pkgname-$pkgver"
        for i in $source; do
		case $i in
		*.patch) msg "Applying $i"
			patch -p1 -i "$srcdir"/$i || return 1;;
		esac
        done
	sed -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.in

	libtoolize --force && aclocal && autoconf \
		&& automake --force --add-missing
}

build() {
	cd "$srcdir/$pkgname-$pkgver"

	export LIBS="-lm"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-shared \
		|| return 1
	# work around parallel build issue
	make -C libfcgi libfcgi.la || return 1
	make || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1

}

xx() {
	pkgdesc="FCGI c++ library"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/*++* "$subpkgdir"/usr/lib/
}

md5sums="d15060a813b91383a9f3c66faf84867e  fcgi-2.4.0.tar.gz
6d6d15f05721284b63b173ab6e728ecb  configure.patch
2e72c834db21da6af3f77dd2b36727a2  fcgi-2.4.0-gcc44_fixes.patch
8c07165aed574b853326ae25fe9af291  fcgi-2.4.0-Makefile.am-CPPFLAGS.patch
d2654525f06451c99b8cdd4cc00a963b  20-fcgi-2.4.0-clientdata-pointer.patch
f26b536786f70b30a2d91c83d56e944c  30-fcgi-2.4.0-html-updates.patch
02900e5f2400ed2982db1e02c4a17aa8  CVE-2012-6687.patch"
sha256sums="66fc45c6b36a21bf2fbbb68e90f780cc21a9da1fffbae75e76d2b4402d3f05b9  fcgi-2.4.0.tar.gz
5dfa0465d08b4d87e4e30caefa3702c73e8f7eb634f584305fccd3b63ee65e24  configure.patch
c31eb921a662b53401a88caafbadb16b02ae809d25d0b6d8b1ac96d20803e9d5  fcgi-2.4.0-gcc44_fixes.patch
df132dec038246ce9526f311c5d00ec103427111722c476f78069d7f1386529f  fcgi-2.4.0-Makefile.am-CPPFLAGS.patch
27936406b5fcb13096bbdd80ee7eb0cf262e5c2b983e79e41d17a3cd17387683  20-fcgi-2.4.0-clientdata-pointer.patch
df8b2eb4c017fedf6f27a5650e2f4f5636e66ec7d02d20a50282edbc8d636c69  30-fcgi-2.4.0-html-updates.patch
7fc1e0af1c71d7b86d1a90595fbadedbb01db0731b9e91b17fb5437680bb4e96  CVE-2012-6687.patch"
sha512sums="38164d11112e834b30c6f809da4e184021e8d22ec8db2c49ad827895a75b99dc1824b94831304aa0ae1174176fe64d02a12882b1a00b780119600bdc39a90927  fcgi-2.4.0.tar.gz
57ae87e526c6fbc39b81b93b0fa2d159315f4d06f9a58053a5636bb3377955c3d92024f2363af483bf4c22b7f3c888d1f1505e265f77e8a1b690740cf5909959  configure.patch
6dafc960c30c1c9f5e09eff0fa71a0202265e063b9ccc56b82d58961f4a2e290734dcea06bd45ea58abc5a394db6edbaed4ccac5dc1fcfa22f0595917fa24243  fcgi-2.4.0-gcc44_fixes.patch
04886b4aa5fab4aca7ef8834b73c1b8d899fcfd8072934a9b337913306335e53e5b24069af6c7e7ac37272bb6bbd9fe0eb82704255a58c344fb964846f925255  fcgi-2.4.0-Makefile.am-CPPFLAGS.patch
c5339ae940994daeec4cf8030933ca2ab5a00651b91eb5d2ff3b871673b5a62646bfb8e81c190ad6d83015fcf59df4076bc745f097ddcada220ca0dc4a05db6a  20-fcgi-2.4.0-clientdata-pointer.patch
79abe9f43150b3163e92030cc9afbee90f69f04bd487254d187abda6fa3484623f605394c96eeb6fd4203d2b06f7e771c9b46f9c21b03cde1aa043da9b3e8d5e  30-fcgi-2.4.0-html-updates.patch
119cc765d330d7324c1a8aeb87492d270ee43b23e3d2036445b6f494e2fe8031093fbc0af78b137588c28ecddde2e85ff932a851840896e105efc14403e05a68  CVE-2012-6687.patch"