www-servers/pound: add 3.0.2

Add an ebuild for pound-3.0.2 with support for
EAPI 8.

Closes: https://bugs.gentoo.org/837992
Signed-off-by: Philipp Rösner <rndxelement@protonmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Philipp Rösner
2022-05-31 23:12:15 +02:00
committed by Sam James
parent 4fd804270e
commit 12d029caa5
3 changed files with 78 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST Pound-3.0.2.tgz 76000 BLAKE2B 0e3f2dc69771a1d1f3de00a721f02cdc4ff31f4d17ab81f64c368668f03c0c1f12484e2d40e7c1d2d203b033488f2bad57cafd8da5022dfe680a09cdc6b73bec SHA512 4c96a93df2b340049778ed7782377e521fbdd7b6ccaa157748b05941ac7a825b2688f37f3081a7e577b2fa1ec4f64d68a25d27af2210f59da5be0dc10d1391e9
DIST Pound-3.0.tgz 75905 BLAKE2B 8834d2d57c81bf792d803bc2aef7ad5d17243539ea3fddab777ab3dbd7f903a2f771762ee8d4818c63b7c6380c253dc7c7465e10225f884c2bb968af3dfab831 SHA512 28426fa2d66efa310fce43fc57b87b6cd9d646573161ab880b139feec856710306002af623f023907bb77f8b37979cf2332dc3e16cde48c6d349d813c6ac47e2

View File

@@ -0,0 +1,21 @@
--- a/src/hpack.c
+++ b/src/hpack.c
@@ -69,9 +69,6 @@ static size_t hbuf_left(struct hbuf *);
static struct hpack hpack_global;
-#ifdef __GLIBC__
-/* these functions are available on BSD, but not on Linux */
-
#include <stdlib.h>
void *
@@ -100,8 +97,6 @@ freezero(void *ptr, size_t size)
return;
}
-#endif
-
int
hpack_init(void)
{

View File

@@ -0,0 +1,56 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
MY_P="${P/p/P}"
DESCRIPTION="A http/https reverse-proxy and load-balancer"
HOMEPAGE="https://www.apsis.ch/pound.html"
SRC_URI="https://www.apsis.ch/pound/${MY_P}.tgz"
LICENSE="BSD GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
DEPEND="
dev-libs/libpcre:=
dev-libs/libyaml:=
dev-libs/nanomsg:=
dev-libs/openssl:=
net-libs/mbedtls:=
elibc_musl? ( sys-libs/queue-standalone )
"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
DOCS=( README.md )
PATCHES=(
"${FILESDIR}"/${P}-hpack.patch
)
src_install() {
rm GPL.txt || die
dosbin "${BUILD_DIR}"/pound
doman "${S}"/man/pound.8
einstalldocs
dodir /etc/init.d
newinitd "${FILESDIR}"/pound.init-1.9 pound
insinto /etc
newins "${FILESDIR}"/pound-2.2.cfg pound.cfg
}
pkg_postinst() {
elog "No demo-/sample-configfile is included in the distribution;"
elog "read the man-page for more info."
elog "A sample (localhost:8888 -> localhost:80)"
elog "for gentoo is given in \"/etc/pound.cfg\"."
}