1 |
commit: 805e4d2c2d6946e593f5901679cc41e97462e68b |
2 |
Author: Rolf Eike Beer <eike <AT> sf-mail <DOT> de> |
3 |
AuthorDate: Sat Oct 5 08:50:40 2019 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 2 04:39:01 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=805e4d2c |
7 |
|
8 |
net-mail/queue-fix: bump to EAPI 7 |
9 |
|
10 |
Signed-off-by: Rolf Eike Beer <eike <AT> sf-mail.de> |
11 |
(cherry picked from commit 42cff3a3eb45b12ff77be1cad5db5ae3776c7e2c) |
12 |
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/13151 |
14 |
|
15 |
net-mail/queue-fix/files/queue-fix-1.4-errno.patch | 25 +++++++++++++ |
16 |
.../queue-fix/files/queue-fix-1.4-stdlib.patch | 39 ++++++++++++++++++++ |
17 |
net-mail/queue-fix/queue-fix-1.4-r3.ebuild | 41 ++++++++++++++++++++++ |
18 |
3 files changed, 105 insertions(+) |
19 |
|
20 |
diff --git a/net-mail/queue-fix/files/queue-fix-1.4-errno.patch b/net-mail/queue-fix/files/queue-fix-1.4-errno.patch |
21 |
new file mode 100644 |
22 |
index 00000000000..d11716bcd73 |
23 |
--- /dev/null |
24 |
+++ b/net-mail/queue-fix/files/queue-fix-1.4-errno.patch |
25 |
@@ -0,0 +1,25 @@ |
26 |
+From d741f95ed6c983919a7ed3080c15064f6fb44e61 Mon Sep 17 00:00:00 2001 |
27 |
+From: Rolf Eike Beer <eike@×××××××.de> |
28 |
+Date: Sat, 5 Oct 2019 10:39:59 +0200 |
29 |
+Subject: [PATCH 2/2] fix declaration of errno |
30 |
+ |
31 |
+--- |
32 |
+ error.h | 2 +- |
33 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
34 |
+ |
35 |
+diff --git a/error.h b/error.h |
36 |
+index 01bd3dc..5d98c6b 100644 |
37 |
+--- a/error.h |
38 |
++++ b/error.h |
39 |
+@@ -1,7 +1,7 @@ |
40 |
+ #ifndef ERROR_H |
41 |
+ #define ERROR_H |
42 |
+ |
43 |
+-extern int errno; |
44 |
++#include <errno.h> |
45 |
+ |
46 |
+ extern int error_intr; |
47 |
+ extern int error_nomem; |
48 |
+-- |
49 |
+2.16.4 |
50 |
+ |
51 |
|
52 |
diff --git a/net-mail/queue-fix/files/queue-fix-1.4-stdlib.patch b/net-mail/queue-fix/files/queue-fix-1.4-stdlib.patch |
53 |
new file mode 100644 |
54 |
index 00000000000..02842a3bfdb |
55 |
--- /dev/null |
56 |
+++ b/net-mail/queue-fix/files/queue-fix-1.4-stdlib.patch |
57 |
@@ -0,0 +1,39 @@ |
58 |
+From 29dd8f91cf83441aba074dae5af10fe09d095f6b Mon Sep 17 00:00:00 2001 |
59 |
+From: Rolf Eike Beer <eike@×××××××.de> |
60 |
+Date: Sat, 5 Oct 2019 10:39:21 +0200 |
61 |
+Subject: [PATCH 1/2] include stdlib.h for exit() and malloc() |
62 |
+ |
63 |
+--- |
64 |
+ alloc.c | 4 ++-- |
65 |
+ queue-fix.c | 1 + |
66 |
+ 2 files changed, 3 insertions(+), 2 deletions(-) |
67 |
+ |
68 |
+diff --git a/alloc.c b/alloc.c |
69 |
+index c661453..0ed63b5 100644 |
70 |
+--- a/alloc.c |
71 |
++++ b/alloc.c |
72 |
+@@ -1,7 +1,7 @@ |
73 |
+ #include "alloc.h" |
74 |
+ #include "error.h" |
75 |
+-extern char *malloc(); |
76 |
+-extern void free(); |
77 |
++ |
78 |
++#include <stdlib.h> |
79 |
+ |
80 |
+ #define ALIGNMENT 16 /* XXX: assuming that this alignment is enough */ |
81 |
+ #define SPACE 4096 /* must be multiple of ALIGNMENT */ |
82 |
+diff --git a/queue-fix.c b/queue-fix.c |
83 |
+index be9b080..b164dfb 100644 |
84 |
+--- a/queue-fix.c |
85 |
++++ b/queue-fix.c |
86 |
+@@ -9,6 +9,7 @@ |
87 |
+ #include <sys/stat.h> |
88 |
+ #include <pwd.h> |
89 |
+ #include <grp.h> |
90 |
++#include <stdlib.h> |
91 |
+ #include "stralloc.h" |
92 |
+ #include "direntry.h" |
93 |
+ #include "fmt.h" |
94 |
+-- |
95 |
+2.16.4 |
96 |
+ |
97 |
|
98 |
diff --git a/net-mail/queue-fix/queue-fix-1.4-r3.ebuild b/net-mail/queue-fix/queue-fix-1.4-r3.ebuild |
99 |
new file mode 100644 |
100 |
index 00000000000..3b3b852d844 |
101 |
--- /dev/null |
102 |
+++ b/net-mail/queue-fix/queue-fix-1.4-r3.ebuild |
103 |
@@ -0,0 +1,41 @@ |
104 |
+# Copyright 1999-2019 Gentoo Authors |
105 |
+# Distributed under the terms of the GNU General Public License v2 |
106 |
+ |
107 |
+EAPI=7 |
108 |
+ |
109 |
+inherit fixheadtails toolchain-funcs |
110 |
+ |
111 |
+DESCRIPTION="Qmail Queue Repair Application with support for big-todo" |
112 |
+HOMEPAGE="http://www.netmeridian.com/e-huss/" |
113 |
+SRC_URI="http://www.netmeridian.com/e-huss/${P}.tar.gz |
114 |
+ mirror://qmail/queue-fix-todo.patch" |
115 |
+ |
116 |
+LICENSE="all-rights-reserved public-domain" # includes code from qmail |
117 |
+SLOT="0" |
118 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~s390 ~sh ~sparc ~x86" |
119 |
+RESTRICT="mirror bindist" |
120 |
+ |
121 |
+PDEPEND="virtual/qmail" |
122 |
+ |
123 |
+PATCHES=( |
124 |
+ "${DISTDIR}"/queue-fix-todo.patch |
125 |
+ "${FILESDIR}"/${P}-stdlib.patch |
126 |
+ "${FILESDIR}"/${P}-errno.patch |
127 |
+) |
128 |
+ |
129 |
+src_unpack() { |
130 |
+ default |
131 |
+ ht_fix_file "${S}"/Makefile* |
132 |
+} |
133 |
+ |
134 |
+src_configure() { |
135 |
+ echo "$(tc-getCC) ${CFLAGS}" > conf-cc |
136 |
+ echo "$(tc-getCC) ${LDFLAGS}" > conf-ld |
137 |
+ sed -e "s#'ar #'$(tc-getAR) #" -e "s#'ranlib #'$(tc-getRANLIB) #" -i make-makelib.sh || die |
138 |
+} |
139 |
+ |
140 |
+src_install () { |
141 |
+ dobin queue-fix |
142 |
+ |
143 |
+ einstalldocs |
144 |
+} |