aboutsummaryrefslogtreecommitdiffstats
path: root/testing/keepalived
diff options
context:
space:
mode:
Diffstat (limited to 'testing/keepalived')
-rw-r--r--testing/keepalived/APKBUILD62
-rw-r--r--testing/keepalived/keepalived-1.1.20-ipvs_haeader_check.patch68
-rw-r--r--testing/keepalived/keepalived.confd7
-rwxr-xr-xtesting/keepalived/keepalived.initd25
4 files changed, 0 insertions, 162 deletions
diff --git a/testing/keepalived/APKBUILD b/testing/keepalived/APKBUILD
deleted file mode 100644
index fb85a5f5a7..0000000000
--- a/testing/keepalived/APKBUILD
+++ /dev/null
@@ -1,62 +0,0 @@
-# Contributor: Pablo Castorino <pcastorino@mendoza-conicet.gob.ar>
-# Maintainer: Pablo Castorino <pcastorino@mendoza-conicet.gob.ar>
-pkgname=keepalived
-pkgver=1.1.20
-pkgrel=0
-pkgdesc="Health Checking for Linux Virtual Server & High-Availability"
-url="http://www.keepalived.org/"
-arch="all"
-license="GPL"
-depends=
-makedepends="openssl-dev popt-dev linux-headers"
-install=
-subpackages="$pkgname-doc $pkgname-sample-config:samples"
-source="http://www.keepalived.org/software/$pkgname-$pkgver.tar.gz
- keepalived-1.1.20-ipvs_haeader_check.patch
- $pkgname.initd
- $pkgname.confd
- "
-
-_builddir="$srcdir"/$pkgname-$pkgver
-
-prepare() {
- cd "$_builddir"
- # apply patches here
- for i in $source; do
- case $i in
- *.patch)
- msg "Applying $i"
- patch -p1 -i "$srcdir"/$i || return 1
- ;;
- esac
- done
-}
-
-build() {
- cd "$_builddir"
- ./configure --prefix=/usr \
- --sysconfdir=/etc \
- --with-kernel-dir=/usr/include/linux \
- --mandir=/usr/share/man \
- --infodir=/usr/share/info
- make || return 1
-}
-
-package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install
-
- install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
- install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
-}
-
-samples() {
- pkgdesc="Sample configuration for keepalived"
- mkdir -p "$subpkgdir"/etc/keepalived/
- mv "$pkgdir"/etc/keepalived/samples "$subpkgdir"/etc/keepalived/
-}
-
-md5sums="6c3065c94bb9e2187c4b5a80f6d8be31 keepalived-1.1.20.tar.gz
-78c19e15f649e353c2fba44e1f70b1e1 keepalived-1.1.20-ipvs_haeader_check.patch
-d20faa8d55b8a41b8ddb71bb00a6bead keepalived.initd
-56ff68ad19e973826c2dbc42c892939f keepalived.confd"
diff --git a/testing/keepalived/keepalived-1.1.20-ipvs_haeader_check.patch b/testing/keepalived/keepalived-1.1.20-ipvs_haeader_check.patch
deleted file mode 100644
index d5220fe4c6..0000000000
--- a/testing/keepalived/keepalived-1.1.20-ipvs_haeader_check.patch
+++ /dev/null
@@ -1,68 +0,0 @@
---- old/configure
-+++ new/configure
-@@ -3849,8 +3889,8 @@
-
- IPVS_SUPPORT="_WITHOUT_LVS_"
- if test "$enable_lvs" != "no"; then
-- ac_fn_c_check_header_mongrel "$LINENO" "net/ip_vs.h" "ac_cv_header_net_ip_vs_h" "$ac_includes_default"
--if test "x$ac_cv_header_net_ip_vs_h" = x""yes; then :
-+ ac_fn_c_check_header_mongrel "$LINENO" "linux/ip_vs.h" "ac_cv_header_linux_ip_vs_h" "$ac_includes_default"
-+if test "x$ac_cv_header_linux_ip_vs_h" = xyes; then :
- IPVS_SUPPORT="_WITH_LVS_"
- else
-
---- old/configure.in
-+++ new/configure.in
-@@ -113,7 +113,7 @@
- dnl ----[ Checks for LVS and VRRP support ]----
- IPVS_SUPPORT="_WITHOUT_LVS_"
- if test "$enable_lvs" != "no"; then
-- AC_CHECK_HEADER([net/ip_vs.h],
-+ AC_CHECK_HEADER([linux/ip_vs.h],
- [IPVS_SUPPORT="_WITH_LVS_"],
- [
- IPVS_SUPPORT="_WITHOUT_LVS_"
---- keepalived-1.1.20-orig/keepalived/include/check_data.h
-+++ keepalived-1.1.20/keepalived/include/check_data.h
-@@ -33,7 +33,7 @@
-
- #ifdef _WITH_LVS_
- #define SCHED_MAX_LENGTH IP_VS_SCHEDNAME_MAXLEN
-- #include <net/ip_vs.h>
-+ #include <linux/ip_vs.h>
- #else
- #define SCHED_MAX_LENGTH 1
- #endif
---- keepalived-1.1.20-orig/keepalived/include/ipvswrapper.h
-+++ keepalived-1.1.20/keepalived/include/ipvswrapper.h
-@@ -43,7 +43,7 @@
- #elif _KRNL_2_6_
- #include "../libipvs-2.6/libipvs.h"
- #endif
-- #include <net/ip_vs.h>
-+ #include <linux/ip_vs.h>
- #endif
-
- #ifndef IP_VS_TEMPLATE_TIMEOUT
---- keepalived-1.1.20-orig/keepalived/libipvs-2.4/libipvs.h
-+++ keepalived-1.1.20/keepalived/libipvs-2.4/libipvs.h
-@@ -10,7 +10,7 @@
- #ifndef _LIBIPVS_H
- #define _LIBIPVS_H
-
--#include <net/ip_vs.h>
-+#include <linux/ip_vs.h>
-
- /*
- * The default IPVS_SVC_PERSISTENT_TIMEOUT is a little larger than average
---- keepalived-1.1.20-orig/keepalived/libipvs-2.6/libipvs.h
-+++ keepalived-1.1.20/keepalived/libipvs-2.6/libipvs.h
-@@ -10,7 +10,7 @@
- #ifndef _LIBIPVS_H
- #define _LIBIPVS_H
-
--#include <net/ip_vs.h>
-+#include <linux/ip_vs.h>
-
- #define MINIMUM_IPVS_VERSION_MAJOR 1
- #define MINIMUM_IPVS_VERSION_MINOR 1
diff --git a/testing/keepalived/keepalived.confd b/testing/keepalived/keepalived.confd
deleted file mode 100644
index 87094b3553..0000000000
--- a/testing/keepalived/keepalived.confd
+++ /dev/null
@@ -1,7 +0,0 @@
-# keepalived config file
-# default: /etc/keepalived/keepalived.conf
-#KEEPALIVED_CFG=/etc/keepalived
-
-# extra options for keepalived
-#KEEPALIVED_OPTS="" # you must NOT use -f here!
-
diff --git a/testing/keepalived/keepalived.initd b/testing/keepalived/keepalived.initd
deleted file mode 100755
index a5b2bb9f98..0000000000
--- a/testing/keepalived/keepalived.initd
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-KEEPALIVED_BIN="/usr/sbin/keepalived"
-KEEPALIVED_CFG=${KEEPALIVED_CFG:-/etc/keepalived/keepalived.conf}
-
-depend() {
- use logger
- need net
- after firewall
-}
-
-start() {
- ebegin "Starting keepalived"
- start-stop-daemon --start --exec "${KEEPALIVED_BIN}" \
- -- -f "${KEEPALIVED_CFG}" ${KEEPALIVED_OPTS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping keepalived"
- start-stop-daemon --stop --exec "${KEEPALIVED_BIN}"
- eend $?
-}