diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-07 03:12:12 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-07 03:12:12 +0000 |
commit | 4e0f61672a4cd8a3d8afc21e9afc2a7acd849976 (patch) | |
tree | 20cba6f816bb34fdd956935e64d4432ed2427c65 /net-misc | |
parent | d479c9c5c724c7b1300a98e44975f31f4f2e51dd (diff) |
gentoo auto-resync : 07:12:2022 - 03:12:11
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/Manifest.gz | bin | 55249 -> 55245 bytes | |||
-rw-r--r-- | net-misc/snarf/Manifest | 2 | ||||
-rw-r--r-- | net-misc/snarf/files/snarf-fix-build-for-clang16.patch | 33 | ||||
-rw-r--r-- | net-misc/snarf/snarf-7.0-r5.ebuild | 44 |
4 files changed, 79 insertions, 0 deletions
diff --git a/net-misc/Manifest.gz b/net-misc/Manifest.gz Binary files differindex ae66006fdaa7..90db2389bc55 100644 --- a/net-misc/Manifest.gz +++ b/net-misc/Manifest.gz diff --git a/net-misc/snarf/Manifest b/net-misc/snarf/Manifest index 17d2d0cf9462..7c920c9d5aaa 100644 --- a/net-misc/snarf/Manifest +++ b/net-misc/snarf/Manifest @@ -1,6 +1,8 @@ AUX snarf-basename-patch.diff 4438 BLAKE2B 0d5e9ee5efb26de8d622b6bbcacd2efe49c9daee6c2c49982e03c08c089cbc8310932b06cf4a8e5ff95a6f290ec75307c61efe8ae5d5a862fe939812fb0aac59 SHA512 55ee3e284f9f9da0ca61a60bd8674302f6aef5c503e9ace0060fdc00f59172daafe3fd50e5ece4114a75e0707b2ea6dd9a4d3e00b5d4ee20dd8e8a68b2cd2436 +AUX snarf-fix-build-for-clang16.patch 674 BLAKE2B 9c04d8bd7c140773bc512f6cef34d7850db7ad89e745175aa00f243fdd3225f54d7cf854d9e1f7542c13ae988283ceebcafd3a280ecde8804011514632b1e731 SHA512 5467254d018314e259f1ddcbcb433914fe549fd1efd24677d44c162eff007b1728219b9a3c7fba648ccc0271535bad9ca74086834b2bf7b7aba1a87b0ecaa0cc AUX snarf-fix-off-by-ones.diff 1592 BLAKE2B 5d6e72b792ceb95c40185211d3e1221afec730013ae8ae58f2406f2c71a230e34df282ed4323e5d27eecf7f16c1ea63d59d605e80b00e88db9fadfd9f05d4b8c SHA512 0e42437031fbfacbfaaeb76432b19ff65cd979cfebb0b17adef230fae75bc69cafccc386f95f656c1d40f01a849f0e4daa0d027fb78d97932ac5881c22e0cfb6 AUX snarf-unlink-empty.diff 1581 BLAKE2B 09cd54db80c7b427cf84f413ac9253eb1aab44d3c4999e5c005c4fc9cfe45dfc280c2a7cf855545ab3f41896a1a5196662d628264f7384730450d7f0b6e7619f SHA512 bb33a2b5c4d929d8a35fce94812c8231f76b54914c9dc57d07dee7bf311e4fd034a97a343c588eba5479cbacd406cb82acc1835e15c911cd04100eff2dd3d398 DIST snarf-7.0.tar.gz 64495 BLAKE2B d91930e0578a4a89b200a76aa69834d5f7c974a280c56d3c5f4a6f6b4e127145c90a397c410cb339d0865468a53aa433c7387dc2cb205ef8decd2f7a794168d0 SHA512 311c3e4a1b32fd024da8a5c8167888f254608d538695e30b3c632c606f67d1e3d94d8c88deb7850f782f38412f1bfd9022b0ee780c8644655f0648ccf0a0354e EBUILD snarf-7.0-r4.ebuild 874 BLAKE2B e5b522d1082a482f0d5ed1554059003cd01247c3c688feec6445ad51ba9d2b8cb977ddf54a415f066b9b57e8ef7934e6d83b474ebb4f5cdb305ea09452346c03 SHA512 34abbd5a85a0f08e60ea90f0380a061ec4720f75df2bf03768baf242c2c62f941820168d63aaf2f4696f65fbb971badb2a5cc589d89e01c8b71757687476bbd0 +EBUILD snarf-7.0-r5.ebuild 988 BLAKE2B 4eeaef26fc7e4dfb79976671b8234ae3f9584d98763bcb4678ffded3e311551c9c3a7b5ea97d47f09a93905ffe43bba41d38704e9bf0b2009a8139e6ad93de04 SHA512 84d9c91b15f3ebdd72bc6301e9541799182f765b7ae07315e96e14db998f131e9e1227dd3ab1edaecb58ff932018ecd2e7c4a05b02a2689516eefe6c111d8719 MISC metadata.xml 387 BLAKE2B a4f66d319d05707c587a47b85198eea2d4004db907659d10f8e7532828e338f5250d72fee6378bafc91119314fa2c26921eb0d13232a46e13f1ef5647175004a SHA512 bb55fed6a7e232743e6fd4a35ed5a38f3002ea6fca327bb1f58ac4c4d37da08fefa5bf7eda53fa156a808a22f158a70ca2754917f86796693b32213a5ec17b1d diff --git a/net-misc/snarf/files/snarf-fix-build-for-clang16.patch b/net-misc/snarf/files/snarf-fix-build-for-clang16.patch new file mode 100644 index 000000000000..a239696ff8f1 --- /dev/null +++ b/net-misc/snarf/files/snarf-fix-build-for-clang16.patch @@ -0,0 +1,33 @@ +Clang16 will not allow implicit function declarations by default. +This patch overhauls the source to make it build with clang16 defaults. + +This patch was sent upstream via mail. +Bug: https://bugs.gentoo.org/874012 + +# Pascal Jäger <pascal.jaeger@leimstift.de> (2022-11-23) + +--- a/http.c ++++ b/http.c +@@ -2,6 +2,7 @@ + + #include <config.h> + ++#include <ctype.h> + #include <stdio.h> + #include <stdlib.h> + #include <string.h> +--- a/util.c ++++ b/util.c +@@ -33,8 +33,11 @@ + #include <errno.h> + #include <time.h> + #include <libgen.h> +-#include "url.h" ++#include "ftp.h" ++#include "gopher.h" ++#include "http.h" + #include "options.h" ++#include "url.h" + + + char output_buf[BUFSIZ]; diff --git a/net-misc/snarf/snarf-7.0-r5.ebuild b/net-misc/snarf/snarf-7.0-r5.ebuild new file mode 100644 index 000000000000..7a78027bb2a2 --- /dev/null +++ b/net-misc/snarf/snarf-7.0-r5.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +WANT_AUTOCONF="2.1" +inherit autotools toolchain-funcs + +DESCRIPTION="Small and fast CLI resource grabber for http, gopher, finger, ftp" +HOMEPAGE="https://www.xach.com/snarf/" +SRC_URI="https://www.xach.com/snarf/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" + +PATCHES=( + "${FILESDIR}"/snarf-basename-patch.diff + "${FILESDIR}"/snarf-unlink-empty.diff + "${FILESDIR}"/snarf-fix-off-by-ones.diff + "${FILESDIR}"/snarf-fix-build-for-clang16.patch +) + +src_prepare() { + default + eautoconf +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + dobin snarf + doman snarf.1 + dodoc ChangeLog README TODO +} + +pkg_postinst() { + elog 'To use snarf with portage, try these settings in your make.conf' + elog + elog ' FETCHCOMMAND="/usr/bin/snarf -b \${URI} \${DISTDIR}/\${FILE}"' + elog ' RESUMECOMMAND="/usr/bin/snarf -rb \${URI} \${DISTDIR}/\${FILE}"' +} |