diff options
Diffstat (limited to 'sys-cluster/keepalived')
-rw-r--r-- | sys-cluster/keepalived/Manifest | 9 | ||||
-rw-r--r-- | sys-cluster/keepalived/files/keepalived.confd | 6 | ||||
-rw-r--r-- | sys-cluster/keepalived/files/keepalived.init | 33 | ||||
-rw-r--r-- | sys-cluster/keepalived/keepalived-1.2.24.ebuild | 60 | ||||
-rw-r--r-- | sys-cluster/keepalived/keepalived-1.3.5.ebuild | 64 | ||||
-rw-r--r-- | sys-cluster/keepalived/metadata.xml | 11 |
6 files changed, 183 insertions, 0 deletions
diff --git a/sys-cluster/keepalived/Manifest b/sys-cluster/keepalived/Manifest new file mode 100644 index 000000000000..32ecf7e5f442 --- /dev/null +++ b/sys-cluster/keepalived/Manifest @@ -0,0 +1,9 @@ +AUX keepalived.confd 171 SHA256 dcc2d9b209a9836d861612547537df8f06bb08153482920dd4b927730ba6ae8d SHA512 468d176d22f1ce308871829f24624b33e6ba3b234a413395599a67a865f3cf815cc24a10c244dffd1421a0acf5352fe51027a2d3b282cd3822dfeadc8a1d4df0 WHIRLPOOL a25dacb9d7d4e9f28b67dfc9db353ba9784fd77ebdefc527313668e2ab773860e6850205a2ed19812121f9996bd8fe78ce0e27268cde527876af06524221fb54 +AUX keepalived.init 792 SHA256 0567d2b8cfeb78951e6c9e9d8ae5ed018e9eb116dd9d3d92779cfb823700c9b9 SHA512 240201b81bcca7b213bd3ec45fc286f0305d72a6952a3baf485d717df413df3a2da0f4b018eaa050b0b12cda78767f5c4ae60ec75e5802cfe57cb29951e86ba0 WHIRLPOOL 479f7819685ce5e8997b351098783eaff62c981d5401a54e22f543ffe7ddb80a383d51924444c0ffbdc2d65da6d7e00a3abb4db7be9a55c96375b5c12474e6d9 +DIST keepalived-1.2.24.tar.gz 601873 SHA256 3071804478077e606197a2348b5733d7d53af2843906af5e0d544945565c36ef SHA512 a5e555dd955173887896155a04b1f6bb0c2f2a758008472abd5433b057be3fd85e4f270a7b7eb2f36a1c16e46b235ef930b1844938276528ff61bbdd783bb1f5 WHIRLPOOL 03bb40cc499139679a5ca1446334459ef92e8acabce1d7359a30330d2afedc6f425e0226c0f98cabebe05310aac538f503c49627ed46091f132f042213392c5d +DIST keepalived-1.3.5.tar.gz 683183 SHA256 c0114d86ea4c896557beb0d9367819a423ffba772bc5d7c548dc455e6b3bd048 SHA512 ebd710167becd4b99b665877953d19477c11f1d1c736eb580a05dedd4946363b756553e20607f34aa6c35f57b7252d8a22287beedc316b62a745fccc4243a720 WHIRLPOOL 4dfe73c20b3c7d40a1e1c4af85754df1ac494e8ada213e9b642197cfba0cd32acee7e17f7f9aec86c72fce8a8a01b36b464e649d6e4b8678a6246486d1468cb1 +EBUILD keepalived-1.2.24.ebuild 1412 SHA256 1d82ca2c33a235f53a7650e3f8ca14ac2d84bab6ac33dc2db53e0b7a8d18962d SHA512 3c4a6951cf0cb39bdd604af88f41f3895d5cf72c283d022b506c0fae841cb86adda7b11aa1d23247be17e26cd6cdf826fd45bae39b018f3477820a4dd2c26588 WHIRLPOOL 7c85d1ec92f7dca38c62ac5508ff4681be904c125a3c878b6bec8350f5b683b5b75de050c5c6ef2fcc57eeb95a743ee0d7b0a6b623d4d409212fe4868855ad7d +EBUILD keepalived-1.3.5.ebuild 1535 SHA256 d3f13066d3e637acb3826703785b9b75c763918872ef54314ac7b6db5b66e8cd SHA512 900a77aa4bfee11e98672dd60390f093c1f322a0d288118790cb482189a5058a9aec160dbef1a3e298b1b8c83293c258bea095873e91a0514aca5dbf9654fe8c WHIRLPOOL a4ac65c8e6d3aa672fcfbafdaf993efe42065d7591719d0e81664e0c10abbe4104bbe881021461b4e8446292a40c3d9c9e691ad764c605fbac99c8b3f13364c6 +MISC ChangeLog 5823 SHA256 6b149038eb1cb4d46b374c91f2727fb379c259d1727423c5066c721ba8c87b76 SHA512 021de388f2e972153f957c30f92936cfbd4116d8555ca568020a2a8f7d2f494caa5fbcb3caf87a294ac33fd3e5b1dbdee723b079f30a494779a24a005c1d36cb WHIRLPOOL fe722d6084b1fb833c5dbef9905b81af5d9ad784c064f110af84f6f5fc0ec8424559d20c83ddf69ba26564b168ebd498d607cec155c711039e5e75979cd17ece +MISC ChangeLog-2015 19989 SHA256 fb70d26b1268011904561aa2175ca57b7ebe5bbc712e038c415f1a886aeef68a SHA512 0bd6f3ace50e3a6c93d3691fda1c8afb5b31c8ef754adf5f9bfdc4cc73567b06e17d83c690a953729aedc11f81d966ca9265c1c399955d3627a7c0f5af7ca83c WHIRLPOOL c261e6347ac7b2d3c023412ffc9c175d6d69dce4f3e4dbd883b85d012199c558039f736144f7afe0f6b477bb9ad4758dceaa082fe19d31ec361cd7832fa96941 +MISC metadata.xml 368 SHA256 b2da76dd3c8c21c5965d5e12f9301f6c94b090f78a77c1dabb7260d411a2134d SHA512 712ea427d36786eaf0516e0b36f821ec89ee20bec9190a510ec0576c5f7e3867be89c2486cbd0faa341e3cc8235a3ed3f3d76028235d93038cc8c95be44021f5 WHIRLPOOL ba0345c0233d2b53da0be0bda94e820a99f4c3c3f9d3c746ac35073b31244523738ee6126c1a93907c2d6e7a7fb68033d3991e1acaeac7bb7cf89ed662602f46 diff --git a/sys-cluster/keepalived/files/keepalived.confd b/sys-cluster/keepalived/files/keepalived.confd new file mode 100644 index 000000000000..5f56cb23b031 --- /dev/null +++ b/sys-cluster/keepalived/files/keepalived.confd @@ -0,0 +1,6 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Keepalived options +# Increase logging: +#KEEPALIVED_OPTS="-D" diff --git a/sys-cluster/keepalived/files/keepalived.init b/sys-cluster/keepalived/files/keepalived.init new file mode 100644 index 000000000000..c290c9dbc518 --- /dev/null +++ b/sys-cluster/keepalived/files/keepalived.init @@ -0,0 +1,33 @@ +#!/sbin/openrc-run +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use logger + # The interfaces do not actually need to exist to start, it handles them gracefully. + use net +} + +command="/usr/sbin/keepalived" +command_args="${KEEPALIVED_OPTS}" +pidfile="/var/run/keepalived.pid" + +extra_commands="checkconfig reload" + +checkconfig() { + # keepalived has a config check command, but it does not work while the daemon is running! + if [ ! -e /etc/keepalived/keepalived.conf ] ; then + eerror "You need an /etc/keepalived/keepalived.conf file to run keepalived" + return 1 + fi +} + +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.24.ebuild b/sys-cluster/keepalived/keepalived-1.2.24.ebuild new file mode 100644 index 000000000000..56d96bf45ccf --- /dev/null +++ b/sys-cluster/keepalived/keepalived-1.2.24.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools + +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:= + dev-libs/openssl:= + snmp? ( net-analyzer/net-snmp ) + net-libs/libnfnetlink" +DEPEND="${RDEPEND} + >=sys-kernel/linux-headers-4.4" + +DOCS=( README CONTRIBUTORS INSTALL ChangeLog AUTHOR TODO + doc/keepalived.conf.SYNOPSIS doc/NOTE_vrrp_vmac.txt ) + +src_prepare() { + eautoreconf + default +} + +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 + # 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/ +} diff --git a/sys-cluster/keepalived/keepalived-1.3.5.ebuild b/sys-cluster/keepalived/keepalived-1.3.5.ebuild new file mode 100644 index 000000000000..3b9a251008b9 --- /dev/null +++ b/sys-cluster/keepalived/keepalived-1.3.5.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools + +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="dbus debug ipv6 snmp" + +RDEPEND="dev-libs/libnl:= + dev-libs/openssl:= + dev-libs/popt + net-libs/libnfnetlink + sys-apps/iproute2 + dbus? ( sys-apps/dbus ) + snmp? ( net-analyzer/net-snmp )" +DEPEND="${RDEPEND} + >=sys-kernel/linux-headers-4.4" + +DOCS=( README CONTRIBUTORS INSTALL ChangeLog AUTHOR TODO + doc/keepalived.conf.SYNOPSIS doc/NOTE_vrrp_vmac.txt ) + +src_prepare() { + eautoreconf + default +} + +src_configure() { + STRIP=/bin/true \ + econf \ + --with-kernel-dir=/usr \ + --enable-sha1 \ + --enable-vrrp \ + $(use_enable dbus) \ + $(use_enable dbus dbus-create-instance) \ + $(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 + # 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/ +} diff --git a/sys-cluster/keepalived/metadata.xml b/sys-cluster/keepalived/metadata.xml new file mode 100644 index 000000000000..51b30f6d8f3f --- /dev/null +++ b/sys-cluster/keepalived/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>cluster@gentoo.org</email> + <name>Gentoo Cluster Project</name> + </maintainer> + <longdescription> + VRRP2 implementation. Used for setting up high availability clusters. + </longdescription> +</pkgmetadata> |