aboutsummaryrefslogtreecommitdiffstats
path: root/main/fcgi/APKBUILD
blob: adee7984e4a7db48fd40981324671e05cbd24fe8 (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
# 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="https://distfiles.alpinelinux.org/distfiles/$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
	"

builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	default_prepare

	sed -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.in

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

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

package() {
	cd $builddir
	make DESTDIR="$pkgdir" install

}

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

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"