diff options
author | Michael Imhof <tantive@gentoo.org> | 2004-08-31 15:49:44 +0000 |
---|---|---|
committer | Michael Imhof <tantive@gentoo.org> | 2004-08-31 15:49:44 +0000 |
commit | fc12e0f27b1d2e5f004d9fce16d311c32142bc9b (patch) | |
tree | 3bd1dbf6cc4453b8b4eb58252c2d93c7d725b0ff /sys-cluster | |
parent | Small fixes. (Manifest recommit) (diff) | |
download | gentoo-2-fc12e0f27b1d2e5f004d9fce16d311c32142bc9b.tar.gz gentoo-2-fc12e0f27b1d2e5f004d9fce16d311c32142bc9b.tar.bz2 gentoo-2-fc12e0f27b1d2e5f004d9fce16d311c32142bc9b.zip |
Initial import. Closes #51335.
Diffstat (limited to 'sys-cluster')
-rw-r--r-- | sys-cluster/saru/ChangeLog | 10 | ||||
-rw-r--r-- | sys-cluster/saru/Manifest | 4 | ||||
-rw-r--r-- | sys-cluster/saru/files/digest-saru-0.0.1 | 1 | ||||
-rw-r--r-- | sys-cluster/saru/files/saru.conf | 1 | ||||
-rw-r--r-- | sys-cluster/saru/files/saru.init | 37 | ||||
-rw-r--r-- | sys-cluster/saru/saru-0.0.1.ebuild | 88 |
6 files changed, 141 insertions, 0 deletions
diff --git a/sys-cluster/saru/ChangeLog b/sys-cluster/saru/ChangeLog new file mode 100644 index 000000000000..2e75f5ee82ec --- /dev/null +++ b/sys-cluster/saru/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sys-cluster/saru +# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/saru/ChangeLog,v 1.1 2004/08/31 15:49:44 tantive Exp $ + +*saru-0.0.1 (31 Aug 2004) + + 31 Aug 2004; Michael Imhof <tantive@gentoo.org> +files/saru.conf, + +files/saru.init, +saru-0.0.1.ebuild: + Initial import. Closes #51335. + diff --git a/sys-cluster/saru/Manifest b/sys-cluster/saru/Manifest new file mode 100644 index 000000000000..fc9a686f789a --- /dev/null +++ b/sys-cluster/saru/Manifest @@ -0,0 +1,4 @@ +MD5 5939e8fad7cef2be87a8af294de1bce9 saru-0.0.1.ebuild 2459 +MD5 137dd5a4f89430782c03c2c3068ad7f9 files/saru.conf 11 +MD5 c5e666d281f435e2d695c302b5716503 files/saru.init 904 +MD5 40d70f0580743972bfc3da261b384cc2 files/digest-saru-0.0.1 62 diff --git a/sys-cluster/saru/files/digest-saru-0.0.1 b/sys-cluster/saru/files/digest-saru-0.0.1 new file mode 100644 index 000000000000..fc8a4b931d88 --- /dev/null +++ b/sys-cluster/saru/files/digest-saru-0.0.1 @@ -0,0 +1 @@ +MD5 afd22b16f0716f07eafacad294d89c14 saru-0.0.1.tar.gz 242850 diff --git a/sys-cluster/saru/files/saru.conf b/sys-cluster/saru/files/saru.conf new file mode 100644 index 000000000000..237fa3528d6a --- /dev/null +++ b/sys-cluster/saru/files/saru.conf @@ -0,0 +1 @@ +SARU_ARGS= diff --git a/sys-cluster/saru/files/saru.init b/sys-cluster/saru/files/saru.init new file mode 100644 index 000000000000..96d778607674 --- /dev/null +++ b/sys-cluster/saru/files/saru.init @@ -0,0 +1,37 @@ +#!/sbin/runscript +# +# init.d script for saru +# +# Created by Christian Zoffoli (XMerlin) <czoffoli@xmerlin.org> +# Version 0.3 + +PIDFILE=/var/run/saru.pid + +depend() { + use net + after heartbeat + after ip_vs_user_sync_simple +} + +start() { + + if ! lsmod | grep "ipt_saru" &> /dev/null ; then + # module ipt_saru not loaded + ebegin "Inserting ipt_saru kernel module" + modprobe ipt_saru &> /dev/null + eend $? + fi + + ebegin 'Starting saru' + + start-stop-daemon --quiet --start --startas /usr/sbin/saru --pidfile ${PIDFILE} -- ${SARU_ARGS} + eend $? +} + +stop() { + ebegin 'Stopping saru' + # start-stop-daemon doesn't work as expected with saru ...killproc works better + #start-stop-daemon -o --quiet --stop --pidfile ${PIDFILE} + killproc /usr/sbin/saru && rm -f ${PIDFILE} + eend $? +} diff --git a/sys-cluster/saru/saru-0.0.1.ebuild b/sys-cluster/saru/saru-0.0.1.ebuild new file mode 100644 index 000000000000..d6460ea9369e --- /dev/null +++ b/sys-cluster/saru/saru-0.0.1.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/saru/saru-0.0.1.ebuild,v 1.1 2004/08/31 15:49:44 tantive Exp $ + +DESCRIPTION="Heartbeat application to provide active active load balancers" + +HOMEPAGE="http://www.ultramonkey.org/download/active_active/" +LICENSE="GPL-2" +DEPEND="virtual/glibc + >=sys-cluster/ipvsadm + >=dev-libs/popt + >=dev-libs/glib + >=dev-libs/vanessa-logger-0.0.6 + >=net-libs/vanessa-socket-0.0.7 + >=dev-libs/vanessa-adt-0.0.6 + >=dev-libs/libip_vs_user_sync-1.0.0 + =sys-cluster/heartbeat-1.0.4* + >=net-firewall/iptables" + +SRC_URI="http://www.ultramonkey.org/download/active_active/${P}.tar.gz" +IUSE="" +SLOT="0" +KEYWORDS="~x86" +S="${WORKDIR}/${P}" + +src_compile() { + econf \ + --with-iptables-lib=/lib/iptables \ + --with-heartbeat-lib=/usr/lib/heartbeat \ + --with-heartbeat-fifo=/var/lib/heartbeat/api || die + + emake || die +} + +src_install() { + #einstall DESTDIR=${D} || die + + # saru binary + dodir /usr/sbin + exeinto /usr/sbin + doexe saru/saru || die + + dodir /usr/lib/heartbeat + dosym /usr/sbin/saru /usr/lib/heartbeat/saru || die + + # iptable module + dodir /lib/iptables/ + insinto /lib/iptables/ + insopts -m0755 + doins iptables/extensions/libipt_saru.so || die + + dodir /lib/modules/${KV}/kernel/net/ipv4/netfilter + insinto /lib/modules/${KV}/kernel/net/ipv4/netfilter + doins iptables/kernel/ipt_saru.o || die + + dodir /etc/init.d /etc/conf.d /etc/saru + insinto /etc/conf.d + newins ${FILESDIR}/saru.conf saru || die + + insinto /etc/saru + doins etc/saru/saru.conf || die + + exeinto /etc/init.d + newexe ${FILESDIR}/saru.init saru || die + + doman saru/saru.8 || die + + dodir /var/lib/heartbeat/api + mknod -m 200 ${D}/var/lib/heartbeat/api/saru_1.req p || die + fowners 65:65 /var/lib/heartbeat/api/saru_1.req || die + mknod -m 600 ${D}/var/lib/heartbeat/api/saru_1.rsp p || die + fowners 65:65 /var/lib/heartbeat/api/saru_1.rsp || die + + dodoc ChangeLog README INSTALL TODO NEWS AUTHORS || die + dodoc patches/linux-2.4.20-outgoing_mac.hidden.patch \ + patches/linux-2.4.20-outgoing_mac.patch || die + newdoc patches/README README.patches || die +} + +pkg_postinst() { + einfo "" + einfo "upgrading module dependencies ... " + /sbin/depmod -a -F /lib/modules/${KV}/build/System.map + einfo "... done" + einfo "" + einfo "Please remember to re-emerge saru when you upgrade your kernel!" + einfo "" +} |