diff options
author | Brian Jackson <iggy@gentoo.org> | 2003-07-01 16:48:39 +0000 |
---|---|---|
committer | Brian Jackson <iggy@gentoo.org> | 2003-07-01 16:48:39 +0000 |
commit | 7743700227b2885d47108687990cada8f65515e5 (patch) | |
tree | 717edb927e3d5f1d41a9dd9f3b9908e93f97bc63 /sys-cluster | |
parent | bunch of keepalived fixes (diff) | |
download | historical-7743700227b2885d47108687990cada8f65515e5.tar.gz historical-7743700227b2885d47108687990cada8f65515e5.tar.bz2 historical-7743700227b2885d47108687990cada8f65515e5.zip |
bunch of keepalived fixes
Diffstat (limited to 'sys-cluster')
-rw-r--r-- | sys-cluster/keepalived/Manifest | 4 | ||||
-rw-r--r-- | sys-cluster/keepalived/files/digest-keepalived-1.0.3 | 1 | ||||
-rw-r--r-- | sys-cluster/keepalived/files/init-keepalived | 30 | ||||
-rw-r--r-- | sys-cluster/keepalived/keepalived-1.0.0.ebuild | 9 | ||||
-rw-r--r-- | sys-cluster/keepalived/keepalived-1.0.3.ebuild | 41 |
5 files changed, 78 insertions, 7 deletions
diff --git a/sys-cluster/keepalived/Manifest b/sys-cluster/keepalived/Manifest index 73fccf2f26ed..fd4ca32e8458 100644 --- a/sys-cluster/keepalived/Manifest +++ b/sys-cluster/keepalived/Manifest @@ -1,6 +1,6 @@ MD5 23bb76ed943be6310b1d183e7107ea8b keepalived-1.0.3.ebuild 882 -MD5 6a9099e4965b5c82a52c178b18727fa3 keepalived-1.0.0.ebuild 2153 -MD5 683361292800d9a277e1518853ab81ff ChangeLog 635 +MD5 c5fcdb2c0acf61846ec1bd4174915f9f keepalived-1.0.0.ebuild 2151 +MD5 3763ed4cf7add7423b793cd1f4487907 ChangeLog 633 MD5 69cff859ea4eb0354fd80bd3c799c7c0 files/init-keepalived 644 MD5 35b5899e1491da53970febf7b16c3592 files/digest-keepalived-1.0.0 68 MD5 693b1c8d6d57207baada85b995210ee2 files/digest-keepalived-1.0.3 68 diff --git a/sys-cluster/keepalived/files/digest-keepalived-1.0.3 b/sys-cluster/keepalived/files/digest-keepalived-1.0.3 new file mode 100644 index 000000000000..9706d969aa34 --- /dev/null +++ b/sys-cluster/keepalived/files/digest-keepalived-1.0.3 @@ -0,0 +1 @@ +MD5 b7fea2531e82f6621c467f9f7d11ef58 keepalived-1.0.3.tar.gz 161875 diff --git a/sys-cluster/keepalived/files/init-keepalived b/sys-cluster/keepalived/files/init-keepalived new file mode 100644 index 000000000000..dff73b464f74 --- /dev/null +++ b/sys-cluster/keepalived/files/init-keepalived @@ -0,0 +1,30 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later + + +depend() { + use logger + need net +} + +checkconfig() { + if [ ! -e /etc/keepalived/keepalived.conf ] ; then + eerror "You need an /etc/keepalived/keepalived.conf file to run keepalived" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting Keepalived" + start-stop-daemon --start --quiet --pidfile /var/run/keepalived.pid \ + --startas /usr/sbin/keepalived + eend $? +} + +stop() { + ebegin "Stopping Keepalived" + start-stop-daemon --stop --quiet --pidfile /var/run/keepalived.pid + eend $? +} diff --git a/sys-cluster/keepalived/keepalived-1.0.0.ebuild b/sys-cluster/keepalived/keepalived-1.0.0.ebuild index 10613b5caa8a..771ca66e7e81 100644 --- a/sys-cluster/keepalived/keepalived-1.0.0.ebuild +++ b/sys-cluster/keepalived/keepalived-1.0.0.ebuild @@ -1,18 +1,17 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/keepalived/keepalived-1.0.0.ebuild,v 1.1 2003/02/25 03:30:37 zwelch Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/keepalived/keepalived-1.0.0.ebuild,v 1.2 2003/07/01 16:48:35 iggy Exp $ DESCRIPTION="The main goal of the keepalived project is to add a strong & robust keepalive facility to the Linux Virtual Server project." HOMEPAGE="http://keepalived.sourceforge.net" LICENSE="GPL-2" -DEPEND="virtual/linux-sources - popt" +DEPEND="popt" SRC_URI="http://keepalived.sourceforge.net/software/${P}.tar.gz" IUSE="" SLOT="0" -KEYWORDS="~x86" +KEYWORDS="x86" S="${WORKDIR}/${P}" src_compile() { @@ -30,7 +29,7 @@ src_install() { dobin bin/genhash exeinto /etc/init.d - doexe keepalived/etc/init.d/keepalived.init + newexe ${FILESDIR}/init-keepalived keepalived insinto /etc/keepalived doins keepalived/etc/keepalived/keepalived.conf diff --git a/sys-cluster/keepalived/keepalived-1.0.3.ebuild b/sys-cluster/keepalived/keepalived-1.0.3.ebuild new file mode 100644 index 000000000000..09d43b038b82 --- /dev/null +++ b/sys-cluster/keepalived/keepalived-1.0.3.ebuild @@ -0,0 +1,41 @@ +DESCRIPTION="The main goal of the keepalived project is to add a strong & robust keepalive facility to the Linux Virtual Server project." +HOMEPAGE="http://keepalived.sourceforge.net" +LICENSE="GPL-2" +DEPEND="virtual/linux-sources + popt" + +SRC_URI="http://keepalived.sourceforge.net/software/${P}.tar.gz" + +IUSE="" +SLOT="0" +KEYWORDS="~x86" +S="${WORKDIR}/${P}" + +src_compile() { + cd "${S}" + ./configure --prefix=/ + make || die +} + +src_install() { + + cd "${S}" + einstall + + exeinto /etc/init.d + newexe ${FILESDIR}/init-keepalived keepalived + +} + +pkg_postinst() { + + einfo "" + einfo "If you want Linux Virtual Server support in" + einfo "keepalived then you must emerge an LVS patched" + einfo "kernel like gentoo-sources, compile with ipvs" + einfo "support either as a module or built into the" + einfo "kernel, emerge the ipvsadm userland tools," + einfo "and reemerge keepalived." + einfo "" + +} |