1 |
commit: d65d2755d5c5abb31a846991847046f71748cb9e |
2 |
Author: Michael Vetter <jubalh <AT> iodoru <DOT> org> |
3 |
AuthorDate: Wed Feb 14 14:43:05 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 15 13:47:06 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d65d2755 |
7 |
|
8 |
net-nntp/suck: Add version 4.3.3 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/232581 |
11 |
Closes: https://bugs.gentoo.org/622880 |
12 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
13 |
Closes: https://github.com/gentoo/gentoo/pull/7185 |
14 |
|
15 |
net-nntp/suck/Manifest | 1 + |
16 |
net-nntp/suck/files/4.3.3-fputs.patch | 25 ++++++++++++++ |
17 |
net-nntp/suck/suck-4.3.3.ebuild | 61 +++++++++++++++++++++++++++++++++++ |
18 |
3 files changed, 87 insertions(+) |
19 |
|
20 |
diff --git a/net-nntp/suck/Manifest b/net-nntp/suck/Manifest |
21 |
index 7b2c65808df..4cf4288161b 100644 |
22 |
--- a/net-nntp/suck/Manifest |
23 |
+++ b/net-nntp/suck/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST suck-4.3.2.tar.gz 187560 BLAKE2B fd8e7ebb8e00f4ef060f72b12eae5001268399267914a617c3de73ed323a58cc87770a4ecf1eb5991c36a7f74f2475f3cd9076c60aec52bc8c05ae89cd0b32a4 SHA512 704559ea54daabc6ef7b205431e587a90de20d8a5648e60910e4bc1a1493eebc8a3497c308a9de34febf6b26eda13785cf9f1f5ae034ee7fb0a9230173d13d4f |
26 |
+DIST suck-4.3.3.tar.gz 153624 BLAKE2B 434bdb21ba37deefcba4c0fa9ec3cdf14bc49e1295533ae3c7fb298f49819113ad05e26b3ca72e20ebdd498b0514155f8d79e7c82e95f423521586de889c2371 SHA512 629ecbd7e8d070fc9c1175be6dd10d49fe71b59b8694f32a81cc2dd5ec46e32d64463d221052922a7e21fcac1c9a330f56399bad7c64fa653d68127cd16dbfdc |
27 |
|
28 |
diff --git a/net-nntp/suck/files/4.3.3-fputs.patch b/net-nntp/suck/files/4.3.3-fputs.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..df38f1d4316 |
31 |
--- /dev/null |
32 |
+++ b/net-nntp/suck/files/4.3.3-fputs.patch |
33 |
@@ -0,0 +1,25 @@ |
34 |
+From 440c3c39c51c89c0a5bc53850e9b75b142a39bd2 Mon Sep 17 00:00:00 2001 |
35 |
+From: Michael Vetter <jubalh@××××××.org> |
36 |
+Date: Wed, 14 Feb 2018 15:02:22 +0100 |
37 |
+Subject: [PATCH] Use fputs instead of fput |
38 |
+ |
39 |
+fput() seems to be non-standard. |
40 |
+See commit cb0aadd0a2f16a09bc972d648b864a1fd541e75f |
41 |
+Now we have the original patch. |
42 |
+--- |
43 |
+ lpost.c | 2 +- |
44 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
45 |
+ |
46 |
+diff --git a/lpost.c b/lpost.c |
47 |
+index a2c0d29..39bb17e 100644 |
48 |
+--- a/lpost.c |
49 |
++++ b/lpost.c |
50 |
+@@ -42,7 +42,7 @@ int main(int argc,char *argv[]) { |
51 |
+ } |
52 |
+ } |
53 |
+ else { |
54 |
+- (void) fput(line, pfp); |
55 |
++ (void) fputs(line, pfp); |
56 |
+ } |
57 |
+ } /* end while */ |
58 |
+ exit(retval); |
59 |
|
60 |
diff --git a/net-nntp/suck/suck-4.3.3.ebuild b/net-nntp/suck/suck-4.3.3.ebuild |
61 |
new file mode 100644 |
62 |
index 00000000000..684bae61e05 |
63 |
--- /dev/null |
64 |
+++ b/net-nntp/suck/suck-4.3.3.ebuild |
65 |
@@ -0,0 +1,61 @@ |
66 |
+# Copyright 1999-2018 Gentoo Foundation |
67 |
+# Distributed under the terms of the GNU General Public License v2 |
68 |
+ |
69 |
+EAPI=6 |
70 |
+inherit autotools |
71 |
+ |
72 |
+DESCRIPTION="Grab news from a remote NNTP server and feed them to another" |
73 |
+HOMEPAGE="https://lazarus-pkgs.github.io/lazarus-pkgs/suck.html" |
74 |
+SRC_URI="https://github.com/lazarus-pkgs/suck/archive/${PV}.tar.gz -> ${P}.tar.gz" |
75 |
+LICENSE="public-domain" |
76 |
+SLOT="0" |
77 |
+KEYWORDS="~amd64 ~ppc ~x86" |
78 |
+IUSE="perl ssl" |
79 |
+ |
80 |
+COMMON_DEPEND="sys-libs/gdbm:= |
81 |
+ ssl? ( dev-libs/openssl:0= )" |
82 |
+ |
83 |
+DEPEND="${COMMON_DEPEND} |
84 |
+ sys-libs/db |
85 |
+ perl? ( dev-lang/perl )" |
86 |
+ |
87 |
+RDEPEND="${COMMON_DEPEND} |
88 |
+ net-nntp/inn" |
89 |
+ |
90 |
+PATCHES=( "${FILESDIR}/${PV}-fputs.patch" ) |
91 |
+ |
92 |
+src_prepare() { |
93 |
+ default |
94 |
+ |
95 |
+ # Fix paths to the locations in Gentoo |
96 |
+ sed -i \ |
97 |
+ -e 's:/usr/bin/rnews:/usr/$(get_libdir)/news/bin/rnews:' \ |
98 |
+ -e 's:/var/lib/news/history:/var/spool/news/db/history:' \ |
99 |
+ suck_config.h || die "path adaption sed failed" |
100 |
+ |
101 |
+ eautoreconf |
102 |
+} |
103 |
+ |
104 |
+src_configure() { |
105 |
+ use ssl || sed -i -e 's/^SSL_/#SSL_/' Makefile.in || die "ssl sed failed" |
106 |
+ use perl || sed -i -e 's/^PERL_/#PERL_/' Makefile.in || die "perl sed failed" |
107 |
+ |
108 |
+ econf |
109 |
+} |
110 |
+ |
111 |
+src_compile() { |
112 |
+ emake phrases.h |
113 |
+ emake all lpost |
114 |
+} |
115 |
+ |
116 |
+src_install() { |
117 |
+ dobin lmove lpost rpost suck testhost |
118 |
+ doman man/* |
119 |
+ dodoc CHANGELOG CONTENTS README* |
120 |
+ docinto java |
121 |
+ dodoc java/* |
122 |
+ docinto perl |
123 |
+ dodoc perl/* |
124 |
+ docinto sample |
125 |
+ dodoc sample/* |
126 |
+} |