diff options
author | Stuart Herbert <stuart@gentoo.org> | 2004-08-08 17:56:08 +0000 |
---|---|---|
committer | Stuart Herbert <stuart@gentoo.org> | 2004-08-08 17:56:08 +0000 |
commit | 71086ab7686e8cc7f2ec5e418c3657a76f551ca1 (patch) | |
tree | 7b5f5c0f032e5d3d9f81e206fbe6777e3b786c17 /www-servers | |
parent | correct docs dir irt #46565 (Manifest recommit) (diff) | |
download | gentoo-2-71086ab7686e8cc7f2ec5e418c3657a76f551ca1.tar.gz gentoo-2-71086ab7686e8cc7f2ec5e418c3657a76f551ca1.tar.bz2 gentoo-2-71086ab7686e8cc7f2ec5e418c3657a76f551ca1.zip |
Moved from net-www/plb to www-servers/plb.
Diffstat (limited to 'www-servers')
-rw-r--r-- | www-servers/plb/ChangeLog | 20 | ||||
-rw-r--r-- | www-servers/plb/Manifest | 5 | ||||
-rw-r--r-- | www-servers/plb/files/digest-plb-0.3 | 1 | ||||
-rw-r--r-- | www-servers/plb/files/plb.conf | 84 | ||||
-rw-r--r-- | www-servers/plb/files/plb.rc6 | 19 | ||||
-rw-r--r-- | www-servers/plb/plb-0.3.ebuild | 38 |
6 files changed, 167 insertions, 0 deletions
diff --git a/www-servers/plb/ChangeLog b/www-servers/plb/ChangeLog new file mode 100644 index 000000000000..da97d00cf92e --- /dev/null +++ b/www-servers/plb/ChangeLog @@ -0,0 +1,20 @@ +# ChangeLog for net-www/plb +# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/plb/ChangeLog,v 1.1 2004/08/08 17:56:08 stuart Exp $ + +*plb-0.3 (08 Aug 2004) + + 08 Aug 2004; Stuart Herbert <stuart@gentoo.org> +files/plb.conf, + +files/plb.rc6, +plb-0.3.ebuild: + Moved from net-www/plb to www-servers/plb. + + 01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> plb-0.3.ebuild: + virtual/glibc -> virtual/libc + + 11 Jun 2004; Bryan Østergaard <kloeri@gentoo.org> plb-0.3.ebuild: + Stable on alpha. + +*plb-0.3 (28 Feb 2003) + + 28 Feb 2003; Mike Frysinger <vapier@gentoo.org> : + Initial import. Ebuild submitted by the maintainer of plb for #16423. diff --git a/www-servers/plb/Manifest b/www-servers/plb/Manifest new file mode 100644 index 000000000000..165b10e32de5 --- /dev/null +++ b/www-servers/plb/Manifest @@ -0,0 +1,5 @@ +MD5 9b8f0987a9b9981a8014e8afd4939944 plb-0.3.ebuild 975 +MD5 bb7099ae4fcba033dd573365b4c35368 ChangeLog 542 +MD5 e9b720f638fa4922636a7b21acd816c3 files/digest-plb-0.3 59 +MD5 55e53cfddf06cc8f514a175581cc09bd files/plb.conf 2428 +MD5 8e516d93ef83b6b288f203fec57c8e23 files/plb.rc6 392 diff --git a/www-servers/plb/files/digest-plb-0.3 b/www-servers/plb/files/digest-plb-0.3 new file mode 100644 index 000000000000..92f29169bd4b --- /dev/null +++ b/www-servers/plb/files/digest-plb-0.3 @@ -0,0 +1 @@ +MD5 74c1dee5387afc6cff169b0cf8767bbd plb-0.3.tar.gz 101701 diff --git a/www-servers/plb/files/plb.conf b/www-servers/plb/files/plb.conf new file mode 100644 index 000000000000..52fb134832aa --- /dev/null +++ b/www-servers/plb/files/plb.conf @@ -0,0 +1,84 @@ + +# +# PURE LOAD BALANCER - Sample configuration file +# +# Put this file into /etc/plb.conf, or run the load balancer with +# plb -c /path/to/plb.conf +# + + + +# This is the IP address and port the load balancer answers on. +# To listen to all interfaces, just use 0.0.0.0 for the IP address. + +listen_ip 0.0.0.0 +listen_port 80 + +# Bind family. 0 for IPv4, 1 for IPv6. + +bind_ipv6 0 + +# Protocol to balance : HTTP (SMTP is not implemented yet) + +protocol HTTP + +# IP addresses of the real web servers. Use space as a separator. +# IPv4 and IPv6 addresses are allowed. + +servers_ip 10.1.1.1 10.1.1.2 10.1.1.3 +servers_port 80 + +# After binding ports, the load balancer chroots to an empty (recommended) +# directory, and drops privileges. + +user nobody +group nobody +chroot_dir /var/empty + +# Timeouts to avoid clients use unneeded slots on your servers +# with idle connections. Values are in seconds. + +timeout_header_client_read 30 +timeout_header_client_write 30 +timeout_header_server_read 30 +timeout_header_server_write 30 +timeout_forward_client_read 30 +timeout_forward_client_write 30 +timeout_forward_server_read 30 +timeout_forward_server_write 30 + +# When a server goes down, the load balancer will try to probe it at regular +# interval in order to bring it back to life. +# This is the delay, in seconds, between probes. + +timeout_cleanup 15 + +# Really mark a server down after this many consecutive failures. + +server_retry 5 + +# The total maximal number of clients to allow + +max_clients 1000 + +# The backlog. Try something like (max_clients / 10) for extreme cases. + +backlog 100 + +# The log file verbosity. +# 0 => everything, including debugging info (not recommended) +# 1 => all errors, all warnings, all common notifications +# 2 => all errors, all warnings +# 3 => quiet mode, fatal errors only +# default is 2. Leave this commented if you want to override it with +# the -d command-line switch. + +# log_level 2 + +# By default, PLB will send error to the standard error file descriptor, +# thus making it possible to use software like multilog. +# If you want the load balancer to directly write to a file, uncomment the +# following line : + +# log_file /var/log/plb.log + diff --git a/www-servers/plb/files/plb.rc6 b/www-servers/plb/files/plb.rc6 new file mode 100644 index 000000000000..89dc3cd8b395 --- /dev/null +++ b/www-servers/plb/files/plb.rc6 @@ -0,0 +1,19 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net +} + +start() { + ebegin "Starting plb" + start-stop-daemon --start --quiet --exec /usr/bin/plb -- --daemonize --config=/etc/plb.conf + eend $? +} + +stop() { + ebegin "Stopping plb" + start-stop-daemon --stop --quiet --pidfile /var/run/plb.pid + eend $? +} diff --git a/www-servers/plb/plb-0.3.ebuild b/www-servers/plb/plb-0.3.ebuild new file mode 100644 index 000000000000..dd3e175a4f76 --- /dev/null +++ b/www-servers/plb/plb-0.3.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/plb/plb-0.3.ebuild,v 1.1 2004/08/08 17:56:08 stuart Exp $ + +DESCRIPTION="A free high-performance HTTP load balancer" +SRC_URI="http://plb.sunsite.dk/files/${P}.tar.gz" +HOMEPAGE="http://plb.sunsite.dk/" + +SLOT="0" +LICENSE="BSD" +KEYWORDS="x86 ~ppc ~sparc alpha" +IUSE="" + +DEPEND="virtual/libc + >=dev-libs/libevent-0.6" + +src_compile() { + econf || die + emake || die "compile problem" +} + +src_install() { + einstall || die + + dodoc AUTHORS CONTACT ChangeLog README NEWS THANKS + + insinto /etc/ + doins ${FILESDIR}/plb.conf + exeinto /etc/init.d + newexe ${FILESDIR}/plb.rc6 plb +} + +pkg_postinst() { + einfo "Before starting Pure Load Balancer, you have to edit the /etc/plb.conf file." + echo + ewarn "It's *really* important to read the README provided with the software." + ewarn "Just point your browser at http://plb.sunsite.dk/README" +} |