diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2011-01-18 12:47:24 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2011-01-18 12:47:24 +0000 |
commit | df823f09bba4f880f7bfdadcd3409b6f425abd45 (patch) | |
tree | deb06d2ad32aa9b4a34b3d9255760952ab7ade78 /sys-cluster/keepalived | |
parent | Remove old versions and cleanup files. (diff) | |
download | historical-df823f09bba4f880f7bfdadcd3409b6f425abd45.tar.gz historical-df823f09bba4f880f7bfdadcd3409b6f425abd45.tar.bz2 historical-df823f09bba4f880f7bfdadcd3409b6f425abd45.zip |
Version bump. Drop older.
Package-Manager: portage-2.2.0_alpha10/cvs/Linux x86_64
Diffstat (limited to 'sys-cluster/keepalived')
-rw-r--r-- | sys-cluster/keepalived/ChangeLog | 12 | ||||
-rw-r--r-- | sys-cluster/keepalived/Manifest | 8 | ||||
-rw-r--r-- | sys-cluster/keepalived/files/keepalived-1.1.19-do-not-need-kernel-sources.patch | 113 | ||||
-rw-r--r-- | sys-cluster/keepalived/files/keepalived-1.1.19-gcc44-fixup.patch | 53 | ||||
-rw-r--r-- | sys-cluster/keepalived/keepalived-1.1.19.ebuild | 88 | ||||
-rw-r--r-- | sys-cluster/keepalived/keepalived-1.2.2.ebuild | 65 |
6 files changed, 78 insertions, 261 deletions
diff --git a/sys-cluster/keepalived/ChangeLog b/sys-cluster/keepalived/ChangeLog index f5035708e919..8cf72cfdf310 100644 --- a/sys-cluster/keepalived/ChangeLog +++ b/sys-cluster/keepalived/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for sys-cluster/keepalived -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/keepalived/ChangeLog,v 1.65 2010/09/11 14:21:31 scarabeus Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/keepalived/ChangeLog,v 1.66 2011/01/18 12:47:24 scarabeus Exp $ + +*keepalived-1.2.2 (18 Jan 2011) + + 18 Jan 2011; Tomáš Chvátal <scarabeus@gentoo.org> + -keepalived-1.1.19.ebuild, + -files/keepalived-1.1.19-do-not-need-kernel-sources.patch, + -files/keepalived-1.1.19-gcc44-fixup.patch, +keepalived-1.2.2.ebuild: + Version bump. Drop older. 11 Sep 2010; Tomáš Chvátal <scarabeus@gentoo.org> metadata.xml: Drop useles maintainer line diff --git a/sys-cluster/keepalived/Manifest b/sys-cluster/keepalived/Manifest index c1af0f89f2a0..da1b5720ec74 100644 --- a/sys-cluster/keepalived/Manifest +++ b/sys-cluster/keepalived/Manifest @@ -2,16 +2,14 @@ AUX init-keepalived 741 RMD160 7c01c24d94758cc93fe1c13f89dbc566187ee444 SHA1 902 AUX keepalived-1.1.13-do-not-need-kernel-sources.patch 4226 RMD160 e42b1c1e713fa0e98947e69d9721d365586ab02f SHA1 01616ee6bbdc0ea1d5fa3b0aed13209e0d883357 SHA256 d63ee9a8e1b6eff05539ed08cf37bc07b3d485c7a6af33f2e494de97a22a8d00 AUX keepalived-1.1.13-linux-2.6.21-ip_vs.h 7549 RMD160 e6407ca157a3d7bcc810841b6f5937cd7d477b0e SHA1 42386dd7a767704d0af9987578185d3fc8ccfd30 SHA256 67cb638f17e1189aedc0f464622744867549c91d637d38cdfd8d824aae841aea AUX keepalived-1.1.17-do-not-need-kernel-sources.patch 3022 RMD160 4dc8801417ee3e7e7f5f030cf03eff6adc312b74 SHA1 85389d6832ddf8c7d55267da8531bbceb69277e1 SHA256 61ffdb1c6dfc6ad34a03a76ad92c0401ed50234a882ad1d6d7d4fe38cd0a472a -AUX keepalived-1.1.19-do-not-need-kernel-sources.patch 3408 RMD160 58fc563f55d8133204764d5df5259dab2a9b523b SHA1 06576c5e233d528d0732beada6a2b5b42c9abfa8 SHA256 3193a9c470d27959170cd17c09ede9fc5df0a9e7c91b7945e7bfd9a748c837fd -AUX keepalived-1.1.19-gcc44-fixup.patch 2551 RMD160 5e315c502f26e825abf5e4b60d317571d0109b6a SHA1 a4853fe1e34e7115be1c38a220ca978aba49bb0d SHA256 4859a1b9039f5a72cd7f1197d2015cf241b5208a64e46fe44e375937e19d4aca AUX keepalived-1.1.20-do-not-need-kernel-sources.patch 3277 RMD160 975f2a7aed51f3c538e158f6097e2c0663ccb82d SHA1 5f7cd816e6e5752315da06ffd762c9aed200a962 SHA256 b4a38f12714717016a7588dae8bd5d3717de0cc9a8d72f08b089e6ff0bd88bf4 DIST keepalived-1.1.15.tar.gz 227003 RMD160 5043db0e531fbed43a5488efb451d1e23a5267a5 SHA1 b51dcc7f2297f55ac58da62e1666a6c050195c10 SHA256 9d9291b0b24d9147a2a68c78c3227d996002ef6401340123f1dda3ddf8718b44 DIST keepalived-1.1.17.tar.gz 238195 RMD160 f82eb7d8757e19acca739456f4388d6bc7cd62fe SHA1 496c18f3fc20487b690c2bc822b18fac35de8284 SHA256 c6927bad8a4f0ac441cfa4e109605d5738cb39b31354e6ace6995dc6be57c08b -DIST keepalived-1.1.19.tar.gz 241437 RMD160 d3d53dc6499fa6f573da3f34b683abdfab98b9f6 SHA1 4775fbb1f98a8bf54c0d5cdb5d7806e6744de82d SHA256 a3303a9b105912db6be0581296196aab1092852aa857b73604a359501dff5fe9 DIST keepalived-1.1.20.tar.gz 233002 RMD160 49db329a4044f02fcf7874d49628e0a8034843e9 SHA1 cd04772c22ba38520b993acc4cfcb4d191889b6f SHA256 2e6d31bc8846fec00eb8d0bb20719a04bd34bb1144684bdb5e8085d9e1d3b8f2 +DIST keepalived-1.2.2.tar.gz 249557 RMD160 a24f2fd97007c331daf9f2c2b1608eb727780552 SHA1 52a6d46823d29791d10f8869face64b6c6df5616 SHA256 4c05dbd149af120506b4f3a66b4016e30d9ad112e4c26a602e28c366705de8c0 EBUILD keepalived-1.1.15.ebuild 2490 RMD160 faa105b2d7422216131ebc169f792affd414f3d9 SHA1 cf4db4801b30aaa514d0ea200c5b76bb24911baa SHA256 e6b8878fbd1b34c42b712dac5f8aa205dbed6ecc81f3ffa5da43bb85b1b481e0 EBUILD keepalived-1.1.17.ebuild 2488 RMD160 7632886b1d939df7f4b9952050f9247c4792116a SHA1 7f3384f44c706b1c4653f832a78ee28d959e9baa SHA256 df883b7840475529647ce34d36186c3f81828f03eb549bf2db5ef548b8270d9b -EBUILD keepalived-1.1.19.ebuild 2621 RMD160 ef7f48ad20aaafdad6f6406a12b2a5fded40db50 SHA1 ffaa6c19be29519198784cf35c1de49c8641eec3 SHA256 4c2c5c4aff65d6065270bd6f89ec55c7ef0777427b6d33be4ea37346e60bc119 EBUILD keepalived-1.1.20.ebuild 1852 RMD160 ca65c760142b6311170352fa1f0183d3c63c294a SHA1 5a1b21955e8ff9d16a4ae5441c4e03ef752034e6 SHA256 d56add524fe2715482343294ba0f80e82b77b32c5d49afa6e7c7dedf2370480d -MISC ChangeLog 10079 RMD160 518828672210bc3cff9ccb3bda6e21d10f886dc8 SHA1 c7ed217dae49658bd0ec4f8e20e9008f463a990e SHA256 854fc086302a72b9e6480faaba50d44286a3f51969c0090705fa182de748890d +EBUILD keepalived-1.2.2.ebuild 1859 RMD160 e02c0badb3300fad425a4d440e85137e9e7fa1e1 SHA1 a9edeb46ca695c04e62a83ff5a993177902fdf6c SHA256 587ae8af499580c117c9dafa70f5b3525885d3cfe3c4a177730635720de97aa3 +MISC ChangeLog 10358 RMD160 1be7a7d454f8466eda1677c8a36591a48ef29844 SHA1 6b61f4302a30215f1fe1bb21cd08ffea4c18d876 SHA256 e0e9e62049e5a789f9f640646d5e7e73f35eb064af6d542421d7c7fc6b88bf5b MISC metadata.xml 280 RMD160 1869468fd0838a95533ab1a68f8d50f63ee2f0ac SHA1 2d837eb6e9478ffb08e1c597a3f8a9e456f6be12 SHA256 0924e43f049ea2f507b4f5dfa973fa4cedf4e967c19aa9cb5afb6f4ccdef6cf8 diff --git a/sys-cluster/keepalived/files/keepalived-1.1.19-do-not-need-kernel-sources.patch b/sys-cluster/keepalived/files/keepalived-1.1.19-do-not-need-kernel-sources.patch deleted file mode 100644 index 8cec602a9c4b..000000000000 --- a/sys-cluster/keepalived/files/keepalived-1.1.19-do-not-need-kernel-sources.patch +++ /dev/null @@ -1,113 +0,0 @@ -diff -Nuar --exclude '*.orig' --exclude '*.rej' keepalived-1.1.19.orig/configure.in keepalived-1.1.19/configure.in ---- keepalived-1.1.19.orig/configure.in 2009-09-28 10:56:54.000000000 +0000 -+++ keepalived-1.1.19/configure.in 2009-10-18 04:05:42.000000000 +0000 -@@ -51,106 +51,18 @@ - AC_CHECK_LIB(popt, poptGetContext,,AC_MSG_ERROR([Popt libraries is required])) - - dnl ----[ Kernel version check ]---- --CPPFLAGS="$CPPFLAGS -I$kernelinc" --AC_MSG_CHECKING([for kernel version]) --AC_TRY_RUN([ -- #include <stdlib.h> -- #include <stdio.h> -- #include <linux/version.h> -- #if !defined(UTS_RELEASE) && !defined(LINUX_VERSION_CODE) -- #include <linux/utsrelease.h> -- #endif -- int main (void) { -- FILE *fp = fopen ("linuxinfo", "w"); -- if (!fp) return 1; -- #if defined(UTS_RELEASE) -- fprintf (fp, "%s\n", UTS_RELEASE); -- #elif defined(LINUX_VERSION_CODE) -- fprintf (fp, "%d.%d.%d\n", LINUX_VERSION_CODE >> 16, (LINUX_VERSION_CODE >> 8) & 0xFF, LINUX_VERSION_CODE & 0xFF); -- #else -- fprintf (fp, "0.0.0\n"); /* Let's fail gently */ -- #endif -- fclose (fp); -- return 0; -- } -- ], [ -- LINUX_MAJOR=`cat linuxinfo | cut -d'.' -f1` -- LINUX_MINOR=`cat linuxinfo | cut -d'.' -f2` -- LINUX_PATCH=`cat linuxinfo | cut -d'.' -f3` -- ], [ -- LINUX_MAJOR="0" -- LINUX_MINOR="0" -- LINUX_PATCH="0" -- ], [ -- LINUX_MAJOR="0" -- LINUX_MINOR="0" -- LINUX_PATCH="0" -- ]) -- rm -f linuxinfo -- -- if test "$kernelversion" = "2.2"; then -- KERN="_KRNL_2_2_" -- AC_MSG_RESULT([2.2]) -- elif test "$kernelversion" = "2.4"; then -- KERN="_KRNL_2_4_" -- AC_MSG_RESULT([2.4]) -- elif test "$kernelversion" = "2.6"; then -- KERN="_KRNL_2_6_" -- AC_MSG_RESULT([2.6]) -- else -- AC_MSG_RESULT([$LINUX_MAJOR.$LINUX_MINOR.$LINUX_PATCH]) -- if test "$LINUX_MINOR" = "6"; then -- KERN="_KRNL_2_6_" -- elif test "$LINUX_MINOR" = "4"; then -- KERN="_KRNL_2_4_" -- else -- KERN="_KRNL_2_2_" -- fi -- if test "$LINUX_MAJOR" = "0" -a "$LINUX_MINOR" = "0" -a "$LINUX_PATCH" = "0"; then -- AC_MSG_WARN([Cannot determine Linux Kernel version.]) -- fi -- fi -- -+KERN="_KRNL_2_6_" - AC_SUBST(KERN) - - dnl ----[ Checks for LVS and VRRP support ]---- --IPVS_SUPPORT="_WITHOUT_LVS_" --if test "$enable_lvs" != "no"; then -- AC_CHECK_HEADER([net/ip_vs.h], -- [IPVS_SUPPORT="_WITH_LVS_"], -- [ -- IPVS_SUPPORT="_WITHOUT_LVS_" -- AC_MSG_WARN([keepalived will be built without LVS support.]) -- ]) --fi -+IPVS_SUPPORT="_WITH_LVS_" - - if test "$IPVS_SUPPORT" = "_WITHOUT_LVS_" -a "$enable_vrrp" = "no"; then - AC_MSG_ERROR([keepalived MUST be compiled at least with LVS or VRRP framework]) - fi - - dnl ----[ IPVS syncd support probe ]--- --IPVS_SYNCD="_WITHOUT_IPVS_SYNCD_" --if test "$IPVS_SUPPORT" = "_WITH_LVS_"; then -- AC_MSG_CHECKING([for IPVS syncd support]) -- if test "$KERN" = "_KRNL_2_6_"; then -- IPVS_SYNCD="_HAVE_IPVS_SYNCD_" -- elif test "_KRNL_2_4_"; then -- IPVS_SYNCD="_HAVE_IPVS_SYNCD_" -- else -- IPVS_SYNCD="_WITHOUT_IPVS_SYNCD_" -- fi -- -- if test "${IPVS_SUPPORT}" = "_WITHOUT_LVS_" -o "$enable_lvs_syncd" = "no"; then -- IPVS_SYNCD="_WITHOUT_IPVS_SYNCD_" -- fi -- -- if test "$IPVS_SYNCD" = "_HAVE_IPVS_SYNCD_"; then -- AC_MSG_RESULT([yes]) -- else -- AC_MSG_RESULT([no]) -- fi --fi -- -+IPVS_SYNCD="_HAVE_IPVS_SYNCD_" - AC_SUBST(IPVS_SYNCD) - - dnl ----[ Checks for kernel netlink support ]---- diff --git a/sys-cluster/keepalived/files/keepalived-1.1.19-gcc44-fixup.patch b/sys-cluster/keepalived/files/keepalived-1.1.19-gcc44-fixup.patch deleted file mode 100644 index 931027190294..000000000000 --- a/sys-cluster/keepalived/files/keepalived-1.1.19-gcc44-fixup.patch +++ /dev/null @@ -1,53 +0,0 @@ -diff -Nuar keepalived-1.1.19.orig/configure.in keepalived-1.1.19/configure.in ---- keepalived-1.1.19.orig/configure.in 2009-10-18 04:10:04.429512827 +0000 -+++ keepalived-1.1.19/configure.in 2009-10-18 05:23:47.096569655 +0000 -@@ -145,7 +145,7 @@ - else - echo "Use VRRP Framework : No" - fi --if test "${DFLAGS}" = "-D_DEBUG_"; then -+if test "${DFLAGS}" = "-D_DEBUG_=1"; then - echo "Use Debug flags : Yes" - else - echo "Use Debug flags : No" -diff -Nuar keepalived-1.1.19.orig/keepalived/check/Makefile.in keepalived-1.1.19/keepalived/check/Makefile.in ---- keepalived-1.1.19.orig/keepalived/check/Makefile.in 2009-09-28 11:03:47.000000000 +0000 -+++ keepalived-1.1.19/keepalived/check/Makefile.in 2009-10-18 05:31:10.359046695 +0000 -@@ -9,7 +9,8 @@ - INCLUDES = -I../include -I../../lib - CFLAGS = @CFLAGS@ @CPPFLAGS@ $(INCLUDES) \ - -Wall -Wunused -Wstrict-prototypes --DEFS = -D$(KERNEL) -D@IPVS_SUPPORT@ -D@IPVS_SYNCD@ -D@VRRP_SUPPORT@ @DFLAGS@ -+DEF_EXPNS = @KERN@ @IPVS_SUPPORT@ @IPVS_SYNCD@ @VRRP_SUPPORT@ -+DEFS = $(foreach def,$(DEF_EXPNS),-D$(def)=1) @DFLAGS@ - COMPILE = $(CC) $(CFLAGS) $(DEFS) - - OBJS = check_daemon.o check_data.o check_parser.o \ -diff -Nuar keepalived-1.1.19.orig/keepalived/core/Makefile.in keepalived-1.1.19/keepalived/core/Makefile.in ---- keepalived-1.1.19.orig/keepalived/core/Makefile.in 2009-09-28 10:56:54.000000000 +0000 -+++ keepalived-1.1.19/keepalived/core/Makefile.in 2009-10-18 05:30:23.622384728 +0000 -@@ -8,7 +8,10 @@ - INCLUDES = -I../include -I../../lib - CFLAGS = @CFLAGS@ @CPPFLAGS@ $(INCLUDES) \ - -Wall -Wunused -Wstrict-prototypes --DEFS = -D@KERN@ -D@IPVS_SUPPORT@ -D@VRRP_SUPPORT@ @DFLAGS@ -+ -+DEF_EXPNS = @KERN@ @IPVS_SUPPORT@ @VRRP_SUPPORT@ -+DEFS = $(foreach def,$(DEF_EXPNS),-D$(def)=1) @DFLAGS@ -+ - COMPILE = $(CC) $(CFLAGS) $(DEFS) - - OBJS = main.o daemon.o pidfile.o layer4.o smtp.o \ -diff -Nuar keepalived-1.1.19.orig/keepalived/vrrp/Makefile.in keepalived-1.1.19/keepalived/vrrp/Makefile.in ---- keepalived-1.1.19.orig/keepalived/vrrp/Makefile.in 2009-09-28 10:56:54.000000000 +0000 -+++ keepalived-1.1.19/keepalived/vrrp/Makefile.in 2009-10-18 05:31:32.520274208 +0000 -@@ -8,7 +8,8 @@ - INCLUDES = -I../include -I../../lib - CFLAGS = @CFLAGS@ @CPPFLAGS@ $(INCLUDES) \ - -Wall -Wunused -Wstrict-prototypes --DEFS = -D@KERN@ -D@IPVS_SUPPORT@ -D@IPVS_SYNCD@ @DFLAGS@ -+DEFS_EXPNS = @KERN@ @IPVS_SUPPORT@ @IPVS_SYNCD@ -+DEFS = $(foreach def,$(DEF_EXPNS),-D$(def)=1) @DFLAGS@ - COMPILE = $(CC) $(CFLAGS) $(DEFS) - - OBJS = vrrp_daemon.o vrrp_data.o vrrp_parser.o \ diff --git a/sys-cluster/keepalived/keepalived-1.1.19.ebuild b/sys-cluster/keepalived/keepalived-1.1.19.ebuild deleted file mode 100644 index 7f6a6d33dac1..000000000000 --- a/sys-cluster/keepalived/keepalived-1.1.19.ebuild +++ /dev/null @@ -1,88 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/keepalived/keepalived-1.1.19.ebuild,v 1.1 2009/10/18 05:52:43 robbat2 Exp $ - -inherit flag-o-matic autotools - -DESCRIPTION="add a strong & robust keepalive facility to the Linux Virtual Server project" -HOMEPAGE="http://www.keepalived.org/" -SRC_URI="http://www.keepalived.org/software/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" -IUSE="debug profile" - -RDEPEND="dev-libs/popt - sys-apps/iproute2 - dev-libs/openssl" -DEPEND="${RDEPEND} - =sys-kernel/linux-headers-2.6*" - -src_unpack() { - unpack ${A} - - # This patch allows us to avoid needing kernel sources for the configure phase - EPATCH_OPTS="-p1 -d${S}" epatch \ - "${FILESDIR}"/${PN}-1.1.19-do-not-need-kernel-sources.patch - # Make GCC4.4 happy with the -D usage. - EPATCH_OPTS="-p1 -d${S}" epatch \ - "${FILESDIR}"/${PN}-1.1.19-gcc44-fixup.patch - - cd "${S}" - eautoreconf - - # Prepare a suitable copy of the IPVS headers - # So that we don't need kernel sources at all! - mkdir -p "${S}"/include/net || die "Failed to prepare ipvs header directory" - cp -f "${FILESDIR}"/${PN}-1.1.13-linux-2.6.21-ip_vs.h \ - "${S}"/include/net/ip_vs.h || die "Failed to add ipvs header" - - # Ensure that keepalived can find the header that we are injecting - append-flags -I"${S}"/include -} - -src_compile() { - local myconf - - myconf="--enable-vrrp" - - # This is not an error - # The upstream makefile used to add man/, but doesn't anymore - myconf="${myconf} --mandir=/usr/share/man" - - use debug && myconf="${myconf} --enable-debug" - - # disable -fomit-frame-pointer for profiling - if use profile; then - filter-flags -fomit-frame-pointer - myconf="${myconf} --enable-profile" - fi - - econf ${myconf} STRIP=/bin/true || die "configure failed" - emake || die "emake failed (myconf=${myconf})" -} - -src_install() { - # Not parallel safe - emake -j1 install DESTDIR="${D}" || die "emake install failed" - - newinitd "${FILESDIR}"/init-keepalived keepalived - - dodoc doc/keepalived.conf.SYNOPSIS - dodoc README CONTRIBUTORS INSTALL VERSION ChangeLog AUTHOR TODO - - docinto genhash - dodoc genhash/README genhash/AUTHOR genhash/ChangeLog genhash/VERSION - # This was badly named by upstream, it's more HOWTO than anything else. - newdoc INSTALL INSTALL+HOWTO - - # Security risk to bundle SSL certs - rm -f "${D}"/etc/keepalived/samples/*.pem - # Clean up sysvinit files - rm -rf "${D}"/etc/sysconfig "${D}"/etc/rc.d/ -} - -pkg_postinst() { - elog "For internal debug support, compile with USE=debug via package.use" -} diff --git a/sys-cluster/keepalived/keepalived-1.2.2.ebuild b/sys-cluster/keepalived/keepalived-1.2.2.ebuild new file mode 100644 index 000000000000..6833d466faf7 --- /dev/null +++ b/sys-cluster/keepalived/keepalived-1.2.2.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/keepalived/keepalived-1.2.2.ebuild,v 1.1 2011/01/18 12:47:24 scarabeus Exp $ + +EAPI=3 + +inherit flag-o-matic autotools base + +DESCRIPTION="A strong & robust keepalive facility to the Linux Virtual Server project" +HOMEPAGE="http://www.keepalived.org/" +SRC_URI="http://www.keepalived.org/software/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="debug" + +RDEPEND="dev-libs/popt + sys-apps/iproute2 + dev-libs/openssl" +DEPEND="${RDEPEND} + =sys-kernel/linux-headers-2.6*" + +PATCHES=( "${FILESDIR}"/${PN}-1.1.20-do-not-need-kernel-sources.patch ) + +src_prepare() { + base_src_prepare + + # Prepare a suitable copy of the IPVS headers + # So that we don't need kernel sources at all! + mkdir -p "${S}"/include/net || die "Failed to prepare ipvs header directory" + cp -f "${FILESDIR}"/${PN}-1.1.13-linux-2.6.21-ip_vs.h \ + "${S}"/include/net/ip_vs.h || die "Failed to add ipvs header" + + # Ensure that keepalived can find the header that we are injecting + append-flags -I"${S}"/include + + eautoreconf +} + +src_configure() { + STRIP=/bin/true \ + econf \ + --enable-vrrp \ + $(use_enable debug) +} + +src_install() { + base_src_install + + newinitd "${FILESDIR}"/init-keepalived keepalived || die + + dodoc doc/keepalived.conf.SYNOPSIS || die + dodoc README CONTRIBUTORS INSTALL VERSION ChangeLog AUTHOR TODO || die + + docinto genhash + dodoc genhash/README genhash/AUTHOR genhash/ChangeLog genhash/VERSION || die + # This was badly named by upstream, it's more HOWTO than anything else. + newdoc INSTALL INSTALL+HOWTO || die + + # Security risk to bundle SSL certs + rm -f "${D}"/etc/keepalived/samples/*.pem + # Clean up sysvinit files + rm -rf "${D}"/etc/sysconfig "${D}"/etc/rc.d/ +} |