summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexys Jacob <ultrabug@gentoo.org>2013-03-05 13:40:24 +0000
committerAlexys Jacob <ultrabug@gentoo.org>2013-03-05 13:40:24 +0000
commit9c4b566a064f5abb9fc60f8ce9813af56e6bb812 (patch)
tree1f7bdc9b05e227f9415203d1caf0d92f534c19bf /sys-cluster
parentUse EAPI 5 and icu subslot, bug #455900 (diff)
downloadgentoo-2-9c4b566a064f5abb9fc60f8ce9813af56e6bb812.tar.gz
gentoo-2-9c4b566a064f5abb9fc60f8ce9813af56e6bb812.tar.bz2
gentoo-2-9c4b566a064f5abb9fc60f8ce9813af56e6bb812.zip
Add back the reload functionality, revbump
(Portage version: 2.1.11.54/cvs/Linux x86_64, signed Manifest commit with key B658FA13)
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/keepalived/ChangeLog10
-rw-r--r--sys-cluster/keepalived/files/keepalived.init13
-rw-r--r--sys-cluster/keepalived/keepalived-1.2.7-r2.ebuild65
3 files changed, 82 insertions, 6 deletions
diff --git a/sys-cluster/keepalived/ChangeLog b/sys-cluster/keepalived/ChangeLog
index 6ba23065ffd2..93170c512900 100644
--- a/sys-cluster/keepalived/ChangeLog
+++ b/sys-cluster/keepalived/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-cluster/keepalived
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/keepalived/ChangeLog,v 1.99 2012/09/25 18:19:32 idl0r Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/keepalived/ChangeLog,v 1.100 2013/03/05 13:40:24 ultrabug Exp $
+
+*keepalived-1.2.7-r2 (05 Mar 2013)
+
+ 05 Mar 2013; Ultrabug <ultrabug@gentoo.org> +keepalived-1.2.7-r2.ebuild,
+ files/keepalived.init:
+ Add back the reload functionality, revbump
*keepalived-1.2.7-r1 (25 Sep 2012)
diff --git a/sys-cluster/keepalived/files/keepalived.init b/sys-cluster/keepalived/files/keepalived.init
index e0acc85e74d9..0fcc4ce19260 100644
--- a/sys-cluster/keepalived/files/keepalived.init
+++ b/sys-cluster/keepalived/files/keepalived.init
@@ -1,7 +1,7 @@
#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/keepalived/files/keepalived.init,v 1.2 2012/09/25 18:19:32 idl0r Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/keepalived/files/keepalived.init,v 1.3 2013/03/05 13:40:24 ultrabug Exp $
depend() {
use logger
@@ -13,8 +13,7 @@ command="/usr/sbin/keepalived"
command_args="${KEEPALIVED_OPTS}"
pidfile="/var/run/keepalived.pid"
-extra_commands="checkconfig"
-
+extra_commands="checkconfig reload"
checkconfig() {
# keepalived has a config check command, but it does not work while the daemon is running!
@@ -27,3 +26,9 @@ checkconfig() {
start_pre() {
checkconfig || return 1
}
+
+reload() {
+ ebegin "Reloading keepalived.conf"
+ start-stop-daemon --pidfile $pidfile --signal HUP
+ eend $?
+}
diff --git a/sys-cluster/keepalived/keepalived-1.2.7-r2.ebuild b/sys-cluster/keepalived/keepalived-1.2.7-r2.ebuild
new file mode 100644
index 000000000000..8fb68d5361a8
--- /dev/null
+++ b/sys-cluster/keepalived/keepalived-1.2.7-r2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/keepalived/keepalived-1.2.7-r2.ebuild,v 1.1 2013/03/05 13:40:24 ultrabug Exp $
+
+EAPI=4
+
+inherit 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 ipv6 snmp"
+
+RDEPEND="dev-libs/popt
+ sys-apps/iproute2
+ dev-libs/libnl:1.1
+ dev-libs/openssl
+ snmp? ( net-analyzer/net-snmp )"
+DEPEND="${RDEPEND}
+ >=sys-kernel/linux-headers-2.6.30"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.2.2-libipvs-fix-backup-daemon.patch
+ "${FILESDIR}"/${PN}-1.2.2-libipvs-fix-ipv6.patch
+)
+
+DOCS=( README CONTRIBUTORS INSTALL VERSION ChangeLog AUTHOR TODO
+ doc/keepalived.conf.SYNOPSIS doc/NOTE_vrrp_vmac.txt )
+
+src_prepare() {
+ base_src_prepare
+ eautoreconf
+}
+
+src_configure() {
+ STRIP=/bin/true \
+ econf \
+ --with-kernel-dir=/usr \
+ --enable-vrrp \
+ $(use_enable debug) \
+ $(use_enable snmp)
+}
+
+src_install() {
+ default
+
+ newinitd "${FILESDIR}"/keepalived.init keepalived
+ newconfd "${FILESDIR}"/keepalived.confd keepalived
+
+ use snmp && dodoc doc/KEEPALIVED-MIB
+
+ 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
+
+ # Security risk to bundle SSL certs
+ rm -f "${ED}"/etc/keepalived/samples/*.pem
+ # Clean up sysvinit files
+ rm -rf "${ED}"/etc/sysconfig "${ED}"/etc/rc.d/
+}