summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2006-06-11 14:05:43 +0000
committerAlin Năstac <mrness@gentoo.org>2006-06-11 14:05:43 +0000
commit924f6aba0dfcb5fe9e0f65a77d0a6b802a2dd9f4 (patch)
tree7ae3b279c62a98b4c6ee49f1c631f4d94f61e600 /net-proxy
parentversion bump as per bug #126049 (diff)
downloadhistorical-924f6aba0dfcb5fe9e0f65a77d0a6b802a2dd9f4.tar.gz
historical-924f6aba0dfcb5fe9e0f65a77d0a6b802a2dd9f4.tar.bz2
historical-924f6aba0dfcb5fe9e0f65a77d0a6b802a2dd9f4.zip
Initial import from bug #136025
Package-Manager: portage-2.1
Diffstat (limited to 'net-proxy')
-rw-r--r--net-proxy/haproxy/ChangeLog10
-rw-r--r--net-proxy/haproxy/Manifest30
-rw-r--r--net-proxy/haproxy/files/digest-haproxy-1.2.143
-rw-r--r--net-proxy/haproxy/files/haproxy.initd33
-rw-r--r--net-proxy/haproxy/haproxy-1.2.14.ebuild43
-rw-r--r--net-proxy/haproxy/metadata.xml16
6 files changed, 135 insertions, 0 deletions
diff --git a/net-proxy/haproxy/ChangeLog b/net-proxy/haproxy/ChangeLog
new file mode 100644
index 000000000000..00ac4099e490
--- /dev/null
+++ b/net-proxy/haproxy/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-proxy/haproxy
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/ChangeLog,v 1.1 2006/06/11 14:05:43 mrness Exp $
+
+*haproxy-1.2.14 (11 Jun 2006)
+
+ 11 Jun 2006; Alin Nastac <mrness@gentoo.org> +files/haproxy.initd,
+ +metadata.xml, +haproxy-1.2.14.ebuild:
+ Initial import from bug #136025, thanks to Greg McIntyre.
+
diff --git a/net-proxy/haproxy/Manifest b/net-proxy/haproxy/Manifest
new file mode 100644
index 000000000000..be7b32a689a8
--- /dev/null
+++ b/net-proxy/haproxy/Manifest
@@ -0,0 +1,30 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX haproxy.initd 756 RMD160 661f778f58531bd2ee971283f644fd224b640701 SHA1 7eb3b11518e098d8d6769b2d9eecf8a53826de17 SHA256 91c8f45da03dc248324ce0a3c57fb67185714ea547c6a10d8804587cc8c8f381
+MD5 cff688b267b894a8021ba718c1788442 files/haproxy.initd 756
+RMD160 661f778f58531bd2ee971283f644fd224b640701 files/haproxy.initd 756
+SHA256 91c8f45da03dc248324ce0a3c57fb67185714ea547c6a10d8804587cc8c8f381 files/haproxy.initd 756
+DIST haproxy-1.2.14.tar.gz 190350 RMD160 7ee203ffe26b4e3c47fe3753c6bfc4d96659701b SHA1 1467abd742be619fc561fa6ac56b97960d1b69a2 SHA256 62b64c4fe050541974deb1cb652b80ffa0959dfda7c5ef3169d01b9e7fc6d4aa
+EBUILD haproxy-1.2.14.ebuild 1298 RMD160 71d54aab0abd76f64f37f2a0f436eeb51dd91d92 SHA1 65cabac9b803ebf0794de12b4bfa2bd53e1174b1 SHA256 486f14119160fbc3cf1f6bc3c4c05767f18df94ceab88b843c2f5075cc96fa2b
+MD5 4d0d84cadd3e5938089460545f45708d haproxy-1.2.14.ebuild 1298
+RMD160 71d54aab0abd76f64f37f2a0f436eeb51dd91d92 haproxy-1.2.14.ebuild 1298
+SHA256 486f14119160fbc3cf1f6bc3c4c05767f18df94ceab88b843c2f5075cc96fa2b haproxy-1.2.14.ebuild 1298
+MISC ChangeLog 409 RMD160 c69ee0e48d0c8502d5de1892d72a1de0c40871b6 SHA1 2f65d55eb31d97fffe4b1a66062b1e9b47fe56e5 SHA256 aeebf33c1d396725b36796f26ad374f680febe3804c3f52b78d0ada5d23f7846
+MD5 f75b91233dbb2a2dc7089ae86fba61c3 ChangeLog 409
+RMD160 c69ee0e48d0c8502d5de1892d72a1de0c40871b6 ChangeLog 409
+SHA256 aeebf33c1d396725b36796f26ad374f680febe3804c3f52b78d0ada5d23f7846 ChangeLog 409
+MISC metadata.xml 929 RMD160 5165e64077d97077bfd334036f3a6c50defacfbe SHA1 1df1db8e4ded2e77dc7dc8b500c013e27bde027d SHA256 f59d153f4707b2195eb319ac40844a2c264a3231656fa75846a5d33422b9f6a4
+MD5 6710b828e4b6762de067c846f321c403 metadata.xml 929
+RMD160 5165e64077d97077bfd334036f3a6c50defacfbe metadata.xml 929
+SHA256 f59d153f4707b2195eb319ac40844a2c264a3231656fa75846a5d33422b9f6a4 metadata.xml 929
+MD5 57ab445b5dcef69229ac04193928fd65 files/digest-haproxy-1.2.14 244
+RMD160 9ab2ff84f602478dec5b730c321a25c23a7a5686 files/digest-haproxy-1.2.14 244
+SHA256 e31ef7b445aba7716bb921907a5cc486458ecbdf3fc290f8c2e931a82d365db3 files/digest-haproxy-1.2.14 244
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.3 (GNU/Linux)
+
+iD8DBQFEjCNsjG8pv1lIUX4RApk9AKDQLLfZY4MZJ0xy3eIWkgtVN0CaOQCfZj00
+nS+/7/iw4upi4Kias6vrO8g=
+=E6nV
+-----END PGP SIGNATURE-----
diff --git a/net-proxy/haproxy/files/digest-haproxy-1.2.14 b/net-proxy/haproxy/files/digest-haproxy-1.2.14
new file mode 100644
index 000000000000..d3cd241c0848
--- /dev/null
+++ b/net-proxy/haproxy/files/digest-haproxy-1.2.14
@@ -0,0 +1,3 @@
+MD5 bdbd8340b30a3cc2e1e6ea8572a713a0 haproxy-1.2.14.tar.gz 190350
+RMD160 7ee203ffe26b4e3c47fe3753c6bfc4d96659701b haproxy-1.2.14.tar.gz 190350
+SHA256 62b64c4fe050541974deb1cb652b80ffa0959dfda7c5ef3169d01b9e7fc6d4aa haproxy-1.2.14.tar.gz 190350
diff --git a/net-proxy/haproxy/files/haproxy.initd b/net-proxy/haproxy/files/haproxy.initd
new file mode 100644
index 000000000000..9126994a8b4d
--- /dev/null
+++ b/net-proxy/haproxy/files/haproxy.initd
@@ -0,0 +1,33 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/files/haproxy.initd,v 1.1 2006/06/11 14:05:43 mrness Exp $
+
+checkconfig() {
+ if [[ ! -f /etc/haproxy.cfg ]] ; then
+ eerror "/etc/haproxy.cfg does not exist!"
+ return 1
+ fi
+ /usr/bin/haproxy -c -f /etc/haproxy.cfg >/dev/null
+}
+
+depend() {
+ need net
+ use dns logger
+}
+
+start() {
+ checkconfig || return 1
+
+ ebegin "Starting haproxy"
+ start-stop-daemon --start --quiet \
+ --exec /usr/bin/haproxy \
+ -- -D -p /var/run/haproxy.pid -f /etc/haproxy.cfg
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping haproxy"
+ start-stop-daemon --stop --quiet --pidfile /var/run/haproxy.pid
+ eend ${?}
+}
diff --git a/net-proxy/haproxy/haproxy-1.2.14.ebuild b/net-proxy/haproxy/haproxy-1.2.14.ebuild
new file mode 100644
index 000000000000..ff0ab7c6f23c
--- /dev/null
+++ b/net-proxy/haproxy/haproxy-1.2.14.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/haproxy-1.2.14.ebuild,v 1.1 2006/06/11 14:05:43 mrness Exp $
+
+inherit linux-info
+
+DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments"
+HOMEPAGE="http://haproxy.1wt.eu"
+SRC_URI="http://haproxy.1wt.eu/download/1.2/src/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="pcre"
+
+DEPEND="pcre? ( >=dev-libs/libpcre-6.3 )"
+
+src_compile() {
+ local ARGS="TARGET=linux${KV_MAJOR}${KV_MINOR}"
+ use pcre && ARGS="${ARGS} REGEX=pcre"
+ emake ADDINC="${CFLAGS}" LDFLAGS="${LDFLAGS}" ${ARGS}
+}
+
+src_install() {
+ exeinto /usr/bin
+ doexe haproxy
+ newinitd "${FILESDIR}/haproxy.initd" haproxy
+
+ dodoc CHANGELOG ROADMAP TODO doc/*
+ docinto examples
+ dodoc examples/examples.cfg examples/haproxy.cfg
+}
+
+pkg_postinst() {
+ if [[ ! -f "${ROOT}/etc/haproxy.cfg" ]] ; then
+ einfo "You need to create /etc/haproxy.cfg before you start haproxy service."
+ if [[ -d "${ROOT}/usr/share/doc/${P}" ]]; then
+ einfo "Please consult the installed documentation for learning the configuration file's syntax."
+ einfo "The documentation and sample configuration files are installed here:"
+ einfo " ${ROOT}usr/share/doc/${P}"
+ fi
+ fi
+}
diff --git a/net-proxy/haproxy/metadata.xml b/net-proxy/haproxy/metadata.xml
new file mode 100644
index 000000000000..52f0f9838a6a
--- /dev/null
+++ b/net-proxy/haproxy/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version = '1.0' encoding = 'UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>net-proxy</herd>
+ <longdescription>HA-Proxy is a TCP/HTTP reverse proxy which is particularly suited for high availability environments.
+It can:
+ - route HTTP requests depending on statically assigned cookies
+ - spread the load among several servers while assuring server persistence through the use of HTTP cookies
+ - switch to backup servers in the event a main one fails
+ - accept connections to special ports dedicated to service monitoring
+ - stop accepting connections without breaking existing ones
+ - add/modify/delete HTTP headers both ways
+ - block requests matching a particular pattern
+Its event-driven architecture allows it to easily handle thousands of simultaneous connections on hundreds of instances without risking the system's stability.
+</longdescription>
+</pkgmetadata>