1 |
commit: eb69fc34f003b38035037daf7f9e322110fb2769 |
2 |
Author: Rolf Eike Beer <eike <AT> sf-mail <DOT> de> |
3 |
AuthorDate: Fri Oct 18 06:59:13 2019 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 2 04:43:06 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb69fc34 |
7 |
|
8 |
net-mail/checkpassword: bump to EAPI7 |
9 |
|
10 |
Signed-off-by: Rolf Eike Beer <eike <AT> sf-mail.de> |
11 |
(cherry picked from commit d538de140833170bf5da393ae38b136a6c924c65) |
12 |
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/13332 |
14 |
|
15 |
.../checkpassword/checkpassword-0.90-r4.ebuild | 38 +++++++++ |
16 |
...-errno.patch => checkpassword-0.90-errno.patch} | 4 +- |
17 |
...90-exit.patch => checkpassword-0.90-exit.patch} | 0 |
18 |
.../files/checkpassword-0.90-headers.patch | 98 ++++++++++++++++++++++ |
19 |
4 files changed, 138 insertions(+), 2 deletions(-) |
20 |
|
21 |
diff --git a/net-mail/checkpassword/checkpassword-0.90-r4.ebuild b/net-mail/checkpassword/checkpassword-0.90-r4.ebuild |
22 |
new file mode 100644 |
23 |
index 00000000000..5029a6bdbee |
24 |
--- /dev/null |
25 |
+++ b/net-mail/checkpassword/checkpassword-0.90-r4.ebuild |
26 |
@@ -0,0 +1,38 @@ |
27 |
+# Copyright 1999-2019 Gentoo Authors |
28 |
+# Distributed under the terms of the GNU General Public License v2 |
29 |
+ |
30 |
+EAPI=7 |
31 |
+ |
32 |
+inherit fixheadtails toolchain-funcs |
33 |
+ |
34 |
+DESCRIPTION="A uniform password checking interface for root applications" |
35 |
+HOMEPAGE="https://cr.yp.to/checkpwd.html" |
36 |
+SRC_URI="https://cr.yp.to/checkpwd/${P}.tar.gz" |
37 |
+ |
38 |
+LICENSE="all-rights-reserved" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
41 |
+IUSE="static" |
42 |
+RESTRICT="mirror bindist" |
43 |
+ |
44 |
+PATCHES=( |
45 |
+ "${FILESDIR}"/${P}-errno.patch |
46 |
+ "${FILESDIR}"/${P}-exit.patch |
47 |
+ "${FILESDIR}"/${P}-headers.diff |
48 |
+) |
49 |
+ |
50 |
+src_prepare() { |
51 |
+ default |
52 |
+ |
53 |
+ ht_fix_file Makefile print-cc.sh |
54 |
+ |
55 |
+ use static && append-ldflags -static |
56 |
+ |
57 |
+ echo "$(tc-getCC) ${CFLAGS} ${CPPFLAGS}" > ./conf-cc || die 'Patching conf-cc failed.' |
58 |
+ echo "$(tc-getCC) ${LDFLAGS}" > ./conf-ld || die 'Patching conf-ld failed.' |
59 |
+} |
60 |
+ |
61 |
+src_install() { |
62 |
+ dobin checkpassword |
63 |
+ einstalldocs |
64 |
+} |
65 |
|
66 |
diff --git a/net-mail/checkpassword/files/0.90-errno.patch b/net-mail/checkpassword/files/checkpassword-0.90-errno.patch |
67 |
similarity index 58% |
68 |
rename from net-mail/checkpassword/files/0.90-errno.patch |
69 |
rename to net-mail/checkpassword/files/checkpassword-0.90-errno.patch |
70 |
index 9cf40c689c1..0e152b4aee7 100644 |
71 |
--- a/net-mail/checkpassword/files/0.90-errno.patch |
72 |
+++ b/net-mail/checkpassword/files/checkpassword-0.90-errno.patch |
73 |
@@ -1,5 +1,5 @@ |
74 |
---- error.h.orig 2003-03-05 15:48:54.000000000 -0500 |
75 |
-+++ error.h 2003-03-05 15:49:08.000000000 -0500 |
76 |
+--- a/error.h 2003-03-05 15:48:54.000000000 -0500 |
77 |
++++ b/error.h 2003-03-05 15:49:08.000000000 -0500 |
78 |
@@ -1,7 +1,7 @@ |
79 |
#ifndef ERROR_H |
80 |
#define ERROR_H |
81 |
|
82 |
diff --git a/net-mail/checkpassword/files/0.90-exit.patch b/net-mail/checkpassword/files/checkpassword-0.90-exit.patch |
83 |
similarity index 100% |
84 |
rename from net-mail/checkpassword/files/0.90-exit.patch |
85 |
rename to net-mail/checkpassword/files/checkpassword-0.90-exit.patch |
86 |
|
87 |
diff --git a/net-mail/checkpassword/files/checkpassword-0.90-headers.patch b/net-mail/checkpassword/files/checkpassword-0.90-headers.patch |
88 |
new file mode 100644 |
89 |
index 00000000000..4644542204b |
90 |
--- /dev/null |
91 |
+++ b/net-mail/checkpassword/files/checkpassword-0.90-headers.patch |
92 |
@@ -0,0 +1,98 @@ |
93 |
+diff -aurp checkpassword-0.90-orig/alloc.c checkpassword-0.90/alloc.c |
94 |
+--- checkpassword-0.90-orig/alloc.c 2019-10-18 18:32:45.888000000 +0200 |
95 |
++++ checkpassword-0.90/alloc.c 2019-10-18 18:39:41.820000000 +0200 |
96 |
+@@ -1,7 +1,6 @@ |
97 |
++#include <stdlib.h> |
98 |
+ #include "alloc.h" |
99 |
+ #include "error.h" |
100 |
+-extern char *malloc(); |
101 |
+-extern void free(); |
102 |
+ |
103 |
+ #define ALIGNMENT 16 /* XXX: assuming that this alignment is enough */ |
104 |
+ #define SPACE 2048 /* must be multiple of ALIGNMENT */ |
105 |
+diff -aurp checkpassword-0.90-orig/checkpassword.c checkpassword-0.90/checkpassword.c |
106 |
+--- checkpassword-0.90-orig/checkpassword.c 2019-10-18 18:32:45.888000000 +0200 |
107 |
++++ checkpassword-0.90/checkpassword.c 2019-10-18 18:42:00.352000000 +0200 |
108 |
+@@ -1,3 +1,4 @@ |
109 |
++#include <string.h> |
110 |
+ #include <unistd.h> |
111 |
+ |
112 |
+ #include "error.h" |
113 |
+@@ -23,6 +24,7 @@ static struct userpw *upw; |
114 |
+ static char up[513]; |
115 |
+ static int uplen; |
116 |
+ |
117 |
++int |
118 |
+ main(int argc,char **argv) |
119 |
+ { |
120 |
+ char *login; |
121 |
+diff -aurp checkpassword-0.90-orig/chkshsgr.c checkpassword-0.90/chkshsgr.c |
122 |
+--- checkpassword-0.90-orig/chkshsgr.c 2019-10-18 18:32:45.888000000 +0200 |
123 |
++++ checkpassword-0.90/chkshsgr.c 2019-10-18 18:38:29.436000000 +0200 |
124 |
+@@ -1,5 +1,8 @@ |
125 |
++#include <grp.h> |
126 |
++#include <unistd.h> |
127 |
+ #include "exit.h" |
128 |
+ |
129 |
++int |
130 |
+ main() |
131 |
+ { |
132 |
+ short x[4]; |
133 |
+diff -aurp checkpassword-0.90-orig/install.c checkpassword-0.90/install.c |
134 |
+--- checkpassword-0.90-orig/install.c 2019-10-18 18:32:45.888000000 +0200 |
135 |
++++ checkpassword-0.90/install.c 2019-10-18 18:43:52.968000000 +0200 |
136 |
+@@ -1,3 +1,6 @@ |
137 |
++#include <sys/stat.h> |
138 |
++#include <sys/types.h> |
139 |
++#include <unistd.h> |
140 |
+ #include "buffer.h" |
141 |
+ #include "strerr.h" |
142 |
+ #include "error.h" |
143 |
+@@ -137,6 +140,7 @@ int mode; |
144 |
+ strerr_die6sys(111,FATAL,"unable to chmod .../",subdir,"/",file,": "); |
145 |
+ } |
146 |
+ |
147 |
++int |
148 |
+ main() |
149 |
+ { |
150 |
+ fdsourcedir = open_read("."); |
151 |
+diff -aurp checkpassword-0.90-orig/instcheck.c checkpassword-0.90/instcheck.c |
152 |
+--- checkpassword-0.90-orig/instcheck.c 2019-10-18 18:32:45.888000000 +0200 |
153 |
++++ checkpassword-0.90/instcheck.c 2019-10-18 18:42:42.428000000 +0200 |
154 |
+@@ -101,6 +101,7 @@ int mode; |
155 |
+ perm("",home,"/",file,S_IFREG,uid,gid,mode); |
156 |
+ } |
157 |
+ |
158 |
++int |
159 |
+ main() |
160 |
+ { |
161 |
+ hier(); |
162 |
+diff -aurp checkpassword-0.90-orig/pathexec_run.c checkpassword-0.90/pathexec_run.c |
163 |
+--- checkpassword-0.90-orig/pathexec_run.c 2019-10-18 18:32:45.888000000 +0200 |
164 |
++++ checkpassword-0.90/pathexec_run.c 2019-10-18 18:40:42.944000000 +0200 |
165 |
+@@ -1,3 +1,4 @@ |
166 |
++#include <unistd.h> |
167 |
+ #include "error.h" |
168 |
+ #include "stralloc.h" |
169 |
+ #include "str.h" |
170 |
+diff -aurp checkpassword-0.90-orig/prot.c checkpassword-0.90/prot.c |
171 |
+--- checkpassword-0.90-orig/prot.c 2019-10-18 18:32:45.888000000 +0200 |
172 |
++++ checkpassword-0.90/prot.c 2019-10-18 18:37:28.668000000 +0200 |
173 |
+@@ -1,3 +1,5 @@ |
174 |
++#include <grp.h> |
175 |
++#include <unistd.h> |
176 |
+ #include "hasshsgr.h" |
177 |
+ #include "prot.h" |
178 |
+ |
179 |
+diff -aurp checkpassword-0.90-orig/readwrite.h checkpassword-0.90/readwrite.h |
180 |
+--- checkpassword-0.90-orig/readwrite.h 2019-10-18 18:32:45.888000000 +0200 |
181 |
++++ checkpassword-0.90/readwrite.h 2019-10-18 18:33:59.732000000 +0200 |
182 |
+@@ -1,7 +1,6 @@ |
183 |
+ #ifndef READWRITE_H |
184 |
+ #define READWRITE_H |
185 |
+ |
186 |
+-extern int read(); |
187 |
+-extern int write(); |
188 |
++#include <unistd.h> |
189 |
+ |
190 |
+ #endif |