diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-19 02:12:47 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-19 02:24:58 +0100 |
commit | 430f0751b62c42901c4cbedea3e6baeceb7314e6 (patch) | |
tree | d104770d7ca8925d5fce3d8be720c2991f21b57d | |
parent | 6c2dcfd1f3598a36f5575603c05ae10308bf91e1 (diff) | |
download | aports-430f0751b62c42901c4cbedea3e6baeceb7314e6.tar.bz2 aports-430f0751b62c42901c4cbedea3e6baeceb7314e6.tar.xz |
testing/keepalived: upgrade to 1.2.24
-rw-r--r-- | testing/keepalived/APKBUILD | 30 | ||||
-rw-r--r-- | testing/keepalived/fix-configure.patch | 46 |
2 files changed, 65 insertions, 11 deletions
diff --git a/testing/keepalived/APKBUILD b/testing/keepalived/APKBUILD index 2ded39350d..daa562e002 100644 --- a/testing/keepalived/APKBUILD +++ b/testing/keepalived/APKBUILD @@ -2,25 +2,31 @@ # Contributor: Jakub Jirutka <jakub@jirutka.cz> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=keepalived -pkgver=1.2.23 -pkgrel=2 +pkgver=1.2.24 +pkgrel=0 pkgdesc="Health Checking for Linux Virtual Server & High-Availability" url="http://www.keepalived.org/" arch="all" license="GPL" depends="$pkgname-common !$pkgname-snmp" -makedepends="libressl-dev popt-dev linux-headers net-snmp-dev libnl-dev libnfnetlink-dev" +makedepends="libressl-dev popt-dev linux-headers net-snmp-dev libnl-dev + libnfnetlink-dev automake autoconf" install="$pkgname.post-upgrade" -subpackages="$pkgname-doc $pkgname-sample-config:samples $pkgname-common $pkgname-snmp" +subpackages="$pkgname-doc $pkgname-sample-config:samples:noarch + $pkgname-common $pkgname-snmp" source="http://www.keepalived.org/software/$pkgname-$pkgver.tar.gz $pkgname.initd $pkgname.confd + fix-configure.patch " builddir="$srcdir/$pkgname-$pkgver" prepare() { default_prepare || return 1 + # The build scripts are somehow broken, so we must regenerate them. + autoreconf -fiv || return 1 + cp -ar "$builddir" "$builddir-snmp" } @@ -87,18 +93,20 @@ snmp() { samples() { pkgdesc="Sample configuration for keepalived" - arch="noarch" mkdir -p "$subpkgdir"/etc/keepalived/ mv "$pkgdir"/etc/keepalived/samples "$subpkgdir"/etc/keepalived/ } -md5sums="451919d34d0af969a2c574529dca96e9 keepalived-1.2.23.tar.gz +md5sums="e878312095b7dcab91ad06e257822247 keepalived-1.2.24.tar.gz ad67cf11d9fc60f55eff562728a16863 keepalived.initd -252a289af5b7c7ec6f0cb3fe48f57486 keepalived.confd" -sha256sums="19e432bcf10ff3e801aa87acf84113a0b57d31524c3ca8866f13ffeb0475d910 keepalived-1.2.23.tar.gz +252a289af5b7c7ec6f0cb3fe48f57486 keepalived.confd +a2283ead67c71ec937a64cfecbb3eb66 fix-configure.patch" +sha256sums="3071804478077e606197a2348b5733d7d53af2843906af5e0d544945565c36ef keepalived-1.2.24.tar.gz 535bcfe41410a86e6640bf8c8c8ddb31546ba83476fceef8e0799121737ee5c2 keepalived.initd -4e655777aa3d6afa6cd746e84aa87fbb356c6d4cac9846c3a2f8805d65763497 keepalived.confd" -sha512sums="5879965990f5ad54493d2aa85fbd11ad486d76fe00848c63d293240d7d19ced81ff4f1e4a51cea5b85632b74e800eadd1cf4b2a8fa106abec896a1739f68336a keepalived-1.2.23.tar.gz +4e655777aa3d6afa6cd746e84aa87fbb356c6d4cac9846c3a2f8805d65763497 keepalived.confd +0ccc131d013959b430f44ad9a7e9fa5ddbe068cfe2af31ed72d30e8ef394a77e fix-configure.patch" +sha512sums="a5e555dd955173887896155a04b1f6bb0c2f2a758008472abd5433b057be3fd85e4f270a7b7eb2f36a1c16e46b235ef930b1844938276528ff61bbdd783bb1f5 keepalived-1.2.24.tar.gz 12361313dd044269150c9ea1a4ffc6987075b0106dfdd4b3804b1852d2a47f608d954ab473419474747b475c98fade3779800be8147134969016817cfa050ee4 keepalived.initd -413cb05aa2d1d8c0f552398bb5d511ee022b4d07f5b18217350c1159d013f2d26d87ae63d2977329ec78d7416760e84c4048a5ad20a1f63ef2bc3a1a84c3a41a keepalived.confd" +413cb05aa2d1d8c0f552398bb5d511ee022b4d07f5b18217350c1159d013f2d26d87ae63d2977329ec78d7416760e84c4048a5ad20a1f63ef2bc3a1a84c3a41a keepalived.confd +6d24889d83bc3ec6d4d8636380477576ffb6439dc49ff0b59be50a5afe41d1050bbad6f938fc9b5cb4b9cc64b8de9d6c058d8ef1bb721420140ae467656b5429 fix-configure.patch" diff --git a/testing/keepalived/fix-configure.patch b/testing/keepalived/fix-configure.patch new file mode 100644 index 0000000000..14c43d8048 --- /dev/null +++ b/testing/keepalived/fix-configure.patch @@ -0,0 +1,46 @@ +From 4b6ceb48080044d675bc67ac93a86513b61eea63 Mon Sep 17 00:00:00 2001 +From: Jakub Jirutka <jakub@jirutka.cz> +Date: Sat, 19 Nov 2016 01:43:24 +0100 +Subject: [PATCH] Fix illegal syntax in configure script + +Indirect expansion (`${!foo}`) is a bashism, it's not POSIX-sh +compatible and is not supported by common shells except Bash and ZSH! +Configure script should be portable, hence strictly POSIX compliant. +Moreover it has shebang /bin/sh. + +Sent to upstream: https://github.com/acassen/keepalived/pull/456 +--- + configure | 4 ++-- + configure.ac | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/configure b/configure +index bfd0acb..c6085e2 100755 +--- a/configure ++++ b/configure +@@ -7087,8 +7087,8 @@ cat >>confdefs.h <<_ACEOF + _ACEOF + + for flag in RTA_ENCAP RTA_EXPIRES RTA_NEWDST RTA_PREF RTA_VIA FRA_OIFNAME FRA_SUPPRESS_PREFIXLEN FRA_SUPPRESS_IFGROUP FRA_TUN_ID RTAX_CC_ALGO RTAX_QUICKACK; do +- decl_var=ac_cv_have_decl_$flag +- if test ${!decl_var} = yes; then ++ eval decl_var=\$ac_cv_have_decl_$flag ++ if test ${decl_var} = yes; then + BUILD_OPTIONS="$BUILD_OPTIONS "${flag} + fi + done +diff --git a/configure.ac b/configure.ac +index 2496be1..15ffc40 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -422,8 +422,8 @@ AC_CHECK_DECLS([RTA_VIA, FRA_OIFNAME], [], [], + #include <sys/socket.h> + #include <linux/fib_rules.h>]]) + for flag in RTA_ENCAP RTA_EXPIRES RTA_NEWDST RTA_PREF RTA_VIA FRA_OIFNAME FRA_SUPPRESS_PREFIXLEN FRA_SUPPRESS_IFGROUP FRA_TUN_ID RTAX_CC_ALGO RTAX_QUICKACK; do +- decl_var=ac_cv_have_decl_$flag +- if test ${!decl_var} = yes; then ++ AS_VAR_COPY([decl_var], [ac_cv_have_decl_$flag]) ++ if test ${decl_var} = yes; then + add_build_opt[${flag}] + fi + done |