diff options
-rw-r--r-- | net-proxy/haproxy/Manifest | 5 | ||||
-rw-r--r-- | net-proxy/haproxy/files/haproxy.initd | 44 | ||||
-rw-r--r-- | net-proxy/haproxy/files/haproxy.initd-r1 | 51 | ||||
-rw-r--r-- | net-proxy/haproxy/files/haproxy.initd-r2 | 47 | ||||
-rw-r--r-- | net-proxy/haproxy/haproxy-20130214.ebuild | 107 |
5 files changed, 0 insertions, 254 deletions
diff --git a/net-proxy/haproxy/Manifest b/net-proxy/haproxy/Manifest deleted file mode 100644 index e5557076..00000000 --- a/net-proxy/haproxy/Manifest +++ /dev/null @@ -1,5 +0,0 @@ -AUX haproxy.initd 948 SHA256 4ffccbd0e635ba89235561669cab9e9d4cd8f13e1d8028213c08e9123f092628 SHA512 6773eab5dcfe5d79b8ef76914a8bef20df9fc91aed887f93e43469ec21940f14a78fbe11a70e12d6ba811bf42016eb39665d695176c482bcfc3846e80932c289 WHIRLPOOL 86dcf253138effa476d53565a18088dcde322eae734944c8e55aa458f7bea0d66e68d1dc3cfd37565e13cdbb474bf643a68871350433bfe2776d9438cf91e78d -AUX haproxy.initd-r1 1157 SHA256 5412580888ae334974d6af99a137adb9abbbc8ecd807c45c906058160b570de1 SHA512 83c5043dd894906f7363086ccb30e6eb159a91bb5f4c60535047f15cfda5b0c4d955701f0fe059a6edd9518a267ab5d98f977de5b65bd35436323527172f282a WHIRLPOOL 3bb1b51fe0f91e2c11a2edd48d02a98091b43c237ae71a3045190f2d92ecc38b987f906e6b6fe49370f168aa32c276c88e2eafa225a739800d2da87f1cd07a4f -AUX haproxy.initd-r2 1095 SHA256 0136fbcbb9e7c77dfade5a4b0f28522a11f15c84fb0bb79f5f486f6baf00a0c4 SHA512 32c5a78a6545c7357ae4b81d8b236ae7569a6ca55171c7560089d345a7a8ba7d2df2083fc7c43b72031a0f8ad1e5151990530ce7b4d2c967dd959bd0ee542ee5 WHIRLPOOL e5c251617d938f07c9dcdb3008f8ec050bedd9c2dccdd63b4c83d8367795e24be79a1f394808f530f908f0147f72b7a6794a75a240d26d9d23285265f496f1b4 -DIST haproxy-ss-20130214.tar.gz 1108532 SHA256 66233ecb7806735ead632903ea2d46b46567a8d63de71d8c066552d0c794508f SHA512 61d2d684289e9a52a5e49343b3bceab169a79b65a8843b11ad810bd529af274dc6dbf7bac6f4e5c691c11c2fb0c00bec09d8344e55dfc25d779a2710debc4c07 WHIRLPOOL 3f784159c7bbe44f60ae921cd87a041040020d01c7e3e7cc78e01fd904c390e246e0e83709ebd72b0bdc592e325f733ae09c3ad767b4b03e2a596be860a857b2 -EBUILD haproxy-20130214.ebuild 2614 SHA256 80e7912214b28c8c3d8cb2292d03323232b8e7888d74f6eb8af2e980480f2470 SHA512 abc000f97dfaf342302f3d7ddeaeb6efc0cc351be727496c7c71800baa20a4ce659262baaf77b1d12e0d1e9162f4356e3ddbe9468aeeb1de418f20d2886e3e63 WHIRLPOOL 1a44155e90bce1f6666db3cf7811dc09c308873a77d1b5acfc6246cd134e954b8cd5eb8a2af494dd494e9174ef148ea62dd491a7c40ba39198f22af5dcb9745b diff --git a/net-proxy/haproxy/files/haproxy.initd b/net-proxy/haproxy/files/haproxy.initd deleted file mode 100644 index b86d93f2..00000000 --- a/net-proxy/haproxy/files/haproxy.initd +++ /dev/null @@ -1,44 +0,0 @@ -#!/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.3 2007/10/27 10:42:32 mrness Exp $ - -opts="${opts} reload" - -CONFFILE=/etc/${SVCNAME}.cfg -PIDFILE=/var/run/${SVCNAME}.pid - -checkconfig() { - if [ ! -f "${CONFFILE}" ]; then - eerror "${CONFFILE} does not exist!" - return 1 - fi - /usr/bin/haproxy -c -f "${CONFFILE}" >/dev/null -} - -depend() { - need net - use dns logger -} - -start() { - checkconfig || return 1 - - ebegin "Starting ${SVCNAME}" - start-stop-daemon --start --quiet \ - --exec /usr/bin/haproxy \ - -- -D -p "${PIDFILE}" -f "${CONFFILE}" - eend ${?} -} - -stop() { - ebegin "Stopping ${SVCNAME}" - start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" - eend ${?} -} - -reload() { - ebegin "Reloading ${SVCNAME}" - /usr/bin/haproxy -D -p "${PIDFILE}" -f "${CONFFILE}" -sf $(cat "${PIDFILE}") - eend ${?} -} diff --git a/net-proxy/haproxy/files/haproxy.initd-r1 b/net-proxy/haproxy/files/haproxy.initd-r1 deleted file mode 100644 index 7c2b76ff..00000000 --- a/net-proxy/haproxy/files/haproxy.initd-r1 +++ /dev/null @@ -1,51 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/files/haproxy.initd-r1,v 1.2 2011/12/04 10:32:32 swegener Exp $ - -extra_commands="checkconfig" -extra_started_commands="reload" - -CONFFILE=/etc/${SVCNAME}.cfg -PIDFILE=/var/run/${SVCNAME}.pid - -depend() { - need net - use dns logger -} - -checkconfig() { - if [ ! -f "${CONFFILE}" ]; then - eerror "${CONFFILE} does not exist!" - return 1 - fi - - ebegin "Checking ${CONFFILE}" - /usr/bin/haproxy -q -c -f "${CONFFILE}" - eend $? -} - -start() { - ebegin "Starting ${SVCNAME}" - start-stop-daemon --pidfile "${PIDFILE}" --exec /usr/bin/haproxy \ - --start -- -D -p "${PIDFILE}" -f "${CONFFILE}" - eend $? -} - -stop() { - ebegin "Stopping ${SVCNAME}" - - if [ "${RC_CMD}" = "restart" ]; then - checkconfig || return 1 - fi - - start-stop-daemon --stop --pidfile "${PIDFILE}" - eend $? -} - -reload() { - ebegin "Reloading ${SVCNAME}" - checkconfig || { eerror "Reloading failed, please fix your ${CONFFILE} first"; return 1; } - /usr/bin/haproxy -D -p "${PIDFILE}" -f "${CONFFILE}" -sf $(cat "${PIDFILE}") - eend $? -} diff --git a/net-proxy/haproxy/files/haproxy.initd-r2 b/net-proxy/haproxy/files/haproxy.initd-r2 deleted file mode 100644 index 79b12e8c..00000000 --- a/net-proxy/haproxy/files/haproxy.initd-r2 +++ /dev/null @@ -1,47 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/files/haproxy.initd-r2,v 1.1 2012/09/30 22:07:40 idl0r Exp $ - -extra_commands="checkconfig" -extra_started_commands="reload" - -command="/usr/bin/haproxy" -pidfile="/var/run/${SVCNAME}.pid" - -if [ -z "${CONFFILE}" -a -d "/etc/haproxy" -a -f "/etc/haproxy/${SVCNAME}.cfg" ]; then - CONFFILE=/etc/haproxy/${SVCNAME}.cfg -else - CONFFILE=/etc/${SVCNAME}.cfg -fi - -command_args="-D -p ${pidfile} -f ${CONFFILE}" - -depend() { - need net - use dns logger -} - -checkconfig() { - if [ ! -f "${CONFFILE}" ]; then - eerror "${CONFFILE} does not exist!" - return 1 - fi - - ebegin "Checking ${CONFFILE}" - $command -q -c -f "${CONFFILE}" - eend $? -} - -stop_pre() { - if [ "${RC_CMD}" = "restart" ]; then - checkconfig || return 1 - fi -} - -reload() { - ebegin "Reloading ${SVCNAME}" - checkconfig || { eerror "Reloading failed, please fix your ${CONFFILE} first"; return 1; } - $command -D -p "${pidfile}" -f "${CONFFILE}" -sf $(cat "${pidfile}") - eend $? -} diff --git a/net-proxy/haproxy/haproxy-20130214.ebuild b/net-proxy/haproxy/haproxy-20130214.ebuild deleted file mode 100644 index c4247030..00000000 --- a/net-proxy/haproxy/haproxy-20130214.ebuild +++ /dev/null @@ -1,107 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/haproxy/haproxy-1.5_beta17.ebuild,v 1.2 2012/12/29 03:03:45 idl0r Exp $ - -EAPI="4" - -inherit user versionator toolchain-funcs flag-o-matic - -MY_P="${PN}-ss-${PV}" - -DESCRIPTION="A TCP/HTTP reverse proxy for high availability environments" -HOMEPAGE="http://haproxy.1wt.eu" -SRC_URI="http://haproxy.1wt.eu/download/1.5/src/snapshot/${MY_P}.tar.gz" - -LICENSE="GPL-2 LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" -IUSE="+crypt examples +pcre ssl vim-syntax +zlib" - -DEPEND="pcre? ( dev-libs/libpcre ) - ssl? ( dev-libs/openssl[zlib?] ) - zlib? ( sys-libs/zlib )" -RDEPEND="${DEPEND}" - -S="${WORKDIR}/${MY_P}" - -pkg_setup() { - enewgroup haproxy - enewuser haproxy -1 -1 -1 haproxy -} - -src_compile() { - local args="TARGET=linux2628 USE_GETADDRINFO=1" - - if use pcre; then - args="${args} USE_PCRE=1" - else - args="${args} USE_PCRE=" - fi - -# if use kernel_linux; then -# args="${args} USE_LINUX_SPLICE=1 USE_LINUX_TPROXY=1" -# else -# args="${args} USE_LINUX_SPLICE= USE_LINUX_TPROXY=" -# fi - - if use crypt; then - args="${args} USE_LIBCRYPT=1" - else - args="${args} USE_LIBCRYPT=" - fi - - if use ssl; then - args="${args} USE_OPENSSL=1" - else - args="${args} USE_OPENSSL=" - fi - - if use zlib; then - args="${args} USE_ZLIB=1" - else - args="${args} USE_ZLIB=" - fi - - # For now, until the strict-aliasing breakage will be fixed -# append-cflags -fno-strict-aliasing - - emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC=$(tc-getCC) ${args} || die -} - -src_install() { - dobin haproxy || die - - newinitd "${FILESDIR}/haproxy.initd-r2" haproxy || die - - # Don't install useless files -# rm examples/build.cfg doc/*gpl.txt - - dodoc CHANGELOG ROADMAP TODO doc/{configuration,haproxy-en}.txt - doman doc/haproxy.1 - - if use examples; - then - docinto examples - dodoc examples/*.cfg || die - fi - - if use vim-syntax; - then - insinto /usr/share/vim/vimfiles/syntax - doins examples/haproxy.vim || die - fi -} - -pkg_postinst() { - if [[ ! -f "${ROOT}/etc/haproxy.cfg" ]] ; then - ewarn "You need to create /etc/haproxy.cfg before you start the haproxy service." - ewarn "It's best practice to not run haproxy as root, user and group haproxy was therefore created." - ewarn "Make use of them with the \"user\" and \"group\" directives." - - if [[ -d "${ROOT}/usr/share/doc/${PF}" ]]; 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/${PF}" - fi - fi -} |