parlay

yet another gentoo overlay
git clone https://git.parazyd.org/parlay
Log | Files | Refs | README

commit 5c52ada5de75d51704ab6e86dac9d115ffaa9a8b
parent f7aca53a0051db03729570c17d158603cb94c4f1
Author: parazyd <parazyd@dyne.org>
Date:   Fri, 15 May 2020 19:10:55 +0200

net-misc/hurl: Add 9999.

Diffstat:
Anet-misc/hurl/files/linux.patch | 34++++++++++++++++++++++++++++++++++
Anet-misc/hurl/hurl-9999.ebuild | 32++++++++++++++++++++++++++++++++
2 files changed, 66 insertions(+), 0 deletions(-)

diff --git a/net-misc/hurl/files/linux.patch b/net-misc/hurl/files/linux.patch @@ -0,0 +1,34 @@ +diff --git a/Makefile b/Makefile +index 3e9eb12..ad830b4 100644 +--- a/Makefile ++++ b/Makefile +@@ -7,8 +7,8 @@ PREFIX = /usr/local + BINDIR = ${PREFIX}/bin + MANDIR = ${PREFIX}/man/man1 + +-HURL_CFLAGS = ${CFLAGS} +-HURL_LDFLAGS = -ltls ${LDFLAGS} ++HURL_CFLAGS = ${CFLAGS} -D_DEFAULT_SOURCE ++HURL_LDFLAGS = -ltls ${LDFLAGS} -lbsd + + SRC = hurl.c + OBJ = ${SRC:.c=.o} +diff --git a/hurl.c b/hurl.c +index 4e0f9ab..7cbb4a6 100644 +--- a/hurl.c ++++ b/hurl.c +@@ -1,4 +1,5 @@ + #include <sys/socket.h> ++#include <sys/types.h> + #include <sys/time.h> + + #include <ctype.h> +@@ -10,7 +11,7 @@ + #include <stdio.h> + #include <stdint.h> + #include <stdlib.h> +-#include <string.h> ++#include <bsd/string.h> + #include <time.h> + #include <unistd.h> + diff --git a/net-misc/hurl/hurl-9999.ebuild b/net-misc/hurl/hurl-9999.ebuild @@ -0,0 +1,32 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit git-r3 savedconfig + +DESCRIPTION="Gopher/HTTP/HTTPS file grabber" +HOMEPAGE="https://git.codemadness.org/hurl/" +EGIT_REPO_URI="git://git.codemadness.org/hurl" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="" +IUSE="" + +DEPEND="net-misc/libressl dev-libs/libbsd" +RDEPEND="" + +src_prepare() { + default + epatch "${FILESDIR}/linux.patch" +} + +src_compile() { + emake all +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install + dodoc README hurl.vt +}