aboutsummaryrefslogtreecommitdiffstats
path: root/main/fcgi
diff options
context:
space:
mode:
authortmpfile <tmpfile@users.noreply.github.com>2017-05-14 13:40:55 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2017-06-09 13:12:06 +0000
commit919a7023941a246c06457d0912bf7748a8b19b06 (patch)
tree1580f54e87c24fe2644cc335a8b102f8251ca57f /main/fcgi
parent8bca3c6b8441f17559d220f7fd77ef813dc933fa (diff)
downloadaports-919a7023941a246c06457d0912bf7748a8b19b06.tar.bz2
aports-919a7023941a246c06457d0912bf7748a8b19b06.tar.xz
main/fcgi: modernize abuild
Diffstat (limited to 'main/fcgi')
-rw-r--r--main/fcgi/APKBUILD38
1 files changed, 9 insertions, 29 deletions
diff --git a/main/fcgi/APKBUILD b/main/fcgi/APKBUILD
index be49f0a27d..aacc69319d 100644
--- a/main/fcgi/APKBUILD
+++ b/main/fcgi/APKBUILD
@@ -19,14 +19,10 @@ source="http://distfiles.alpinelinux.org/distfiles/$pkgname-$pkgver.tar.gz
CVE-2012-6687.patch
"
+builddir="$srcdir/$pkgname-$pkgver"
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
+ default_prepare
+
sed -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.in
libtoolize --force && aclocal && autoconf \
@@ -34,8 +30,7 @@ prepare() {
}
build() {
- cd "$srcdir/$pkgname-$pkgver"
-
+ cd $builddir
export LIBS="-lm"
./configure \
--build=$CBUILD \
@@ -44,16 +39,15 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
- --enable-shared \
- || return 1
+ --enable-shared
# work around parallel build issue
- make -C libfcgi libfcgi.la || return 1
- make || return 1
+ make -C libfcgi libfcgi.la
+ make
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
- make DESTDIR="$pkgdir" install || return 1
+ cd $builddir
+ make DESTDIR="$pkgdir" install
}
@@ -63,20 +57,6 @@ xx() {
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