Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-ftp/netkit-ftpd/files/, net-ftp/netkit-ftpd/, profiles/
Date: Sat, 20 Apr 2019 23:29:00
Message-Id: 1555747595.bf76c750b70cad344185ce8e8a5b311973a6b7f7.mgorny@gentoo
1 commit: bf76c750b70cad344185ce8e8a5b311973a6b7f7
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 20 08:06:35 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 20 08:06:35 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf76c750
7
8 net-ftp/netkit-ftpd: Remove last-rited pkg
9
10 Closes: https://bugs.gentoo.org/676000
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 net-ftp/netkit-ftpd/Manifest | 2 -
14 net-ftp/netkit-ftpd/files/ftp.xinetd | 12 ---
15 .../files/netkit-ftpd-0.17-CVE-2008-4247.patch | 108 ---------------------
16 .../netkit-ftpd/files/netkit-ftpd-0.17-build.patch | 43 --------
17 .../files/netkit-ftpd-0.17-cleanup-ssl.patch | 10 --
18 .../files/netkit-ftpd-0.17-cleanup.patch | 10 --
19 .../netkit-ftpd/files/netkit-ftpd-0.17-cross.patch | 45 ---------
20 .../netkit-ftpd-0.17-fclose-CVE-2007-6263.patch | 24 -----
21 .../netkit-ftpd/files/netkit-ftpd-0.17-gcc41.patch | 32 ------
22 .../files/netkit-ftpd-0.17-setguid.patch | 66 -------------
23 .../files/netkit-ftpd-0.17-shadowfix.patch | 28 ------
24 net-ftp/netkit-ftpd/metadata.xml | 8 --
25 net-ftp/netkit-ftpd/netkit-ftpd-0.17-r9.ebuild | 72 --------------
26 profiles/package.mask | 2 -
27 14 files changed, 462 deletions(-)
28
29 diff --git a/net-ftp/netkit-ftpd/Manifest b/net-ftp/netkit-ftpd/Manifest
30 deleted file mode 100644
31 index 5910590cd73..00000000000
32 --- a/net-ftp/netkit-ftpd/Manifest
33 +++ /dev/null
34 @@ -1,2 +0,0 @@
35 -DIST linux-ftpd-0.17-ssl.patch 36459 BLAKE2B 36db6fb984afa6350623ebb2af3913644e01a999e9aea17e2a064c9599fcca1d69c412d67fda8303e83049ea42b89eacb27dd4d5e794612d41a0eb7b409961d5 SHA512 f27dd2f9a50a2b3c38131c46cdb4420f81abfdbb7cd7e70d00e864da3e4562363d585a308e57b9abce7db64ede8d02e41710101e618f6c14489193776b2b1e71
36 -DIST linux-ftpd-0.17.tar.gz 46763 BLAKE2B b0370a6d96a666e4b58d3841c544e6f2c767c1b561fe53371b06d561332aa8418593d875a7f340df96a60e6d8e8d8bf08f38f296121de85f9c72914fa3cca3b9 SHA512 160191baa904b4c404473e2c1de23813de1b31cbb11a3c28ff64f9953aec8270b74d865a57d5aaa6d25cf404c8aeadff05348a9b32847a2a137ef4c998557d58
37
38 diff --git a/net-ftp/netkit-ftpd/files/ftp.xinetd b/net-ftp/netkit-ftpd/files/ftp.xinetd
39 deleted file mode 100644
40 index 1d486c3a45f..00000000000
41 --- a/net-ftp/netkit-ftpd/files/ftp.xinetd
42 +++ /dev/null
43 @@ -1,12 +0,0 @@
44 -# default: off
45 -# description: The netkit ftp daemon with optional SSL support.
46 -
47 -service ftp
48 -{
49 - socket_type = stream
50 - protocol = tcp
51 - wait = no
52 - user = root
53 - server = /usr/bin/ftpd
54 - disable = yes
55 -}
56
57 diff --git a/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-CVE-2008-4247.patch b/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-CVE-2008-4247.patch
58 deleted file mode 100644
59 index e1b50c825bf..00000000000
60 --- a/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-CVE-2008-4247.patch
61 +++ /dev/null
62 @@ -1,108 +0,0 @@
63 -http://bugs.gentoo.org/239047
64 -
65 ---- linux-ftpd-0.17/ftpd/extern.h
66 -+++ linux-ftpd-0.17/ftpd/extern.h
67 -@@ -43,7 +43,7 @@ void dologout __P((int));
68 - void fatal __P((const char *));
69 - int ftpd_pclose __P((FILE *));
70 - FILE *ftpd_popen __P((char *, const char *));
71 --char *ftpd_getline __P((char *, int, FILE *));
72 -+int ftpd_getline __P((char *, int, FILE *));
73 - void ftpdlogwtmp __P((const char *, const char *, const char *));
74 - void lreply __P((int, const char *, ...));
75 - void makedir __P((char *));
76 ---- linux-ftpd-0.17/ftpd/ftpcmd.y
77 -+++ linux-ftpd-0.17/ftpd/ftpcmd.y
78 -@@ -980,7 +980,7 @@ static struct tab *lookup(struct tab *p,
79 - /*
80 - * getline - a hacked up version of fgets to ignore TELNET escape codes.
81 - */
82 --char * ftpd_getline(char *s, int n, FILE *iop)
83 -+int ftpd_getline(char *s, int n, FILE *iop)
84 - {
85 - int c;
86 - register char *cs;
87 -@@ -995,7 +995,7 @@ char * ftpd_getline(char *s, int n, FILE
88 - if (debug)
89 - syslog(LOG_DEBUG, "command: %s", s);
90 - tmpline[0] = '\0';
91 -- return(s);
92 -+ return(0);
93 - }
94 - if (c == 0)
95 - tmpline[0] = '\0';
96 -@@ -1037,11 +1037,22 @@ char * ftpd_getline(char *s, int n, FILE
97 - }
98 - }
99 - *cs++ = c;
100 -- if (--n <= 0 || c == '\n')
101 -+ if (--n <= 0) {
102 -+ /*
103 -+ * If command doesn't fit into buffer, discard the
104 -+ * rest of the command and indicate truncation.
105 -+ * This prevents the command to be split up into
106 -+ * multiple commands.
107 -+ */
108 -+ while (c != '\n' && (c = getc(iop)) != EOF)
109 -+ ;
110 -+ return (-2);
111 -+ }
112 -+ if (c == '\n')
113 - break;
114 - }
115 - if (c == EOF && cs == s)
116 -- return (NULL);
117 -+ return (-1);
118 - *cs++ = '\0';
119 - if (debug) {
120 - if (!guest && strncasecmp("pass ", s, 5) == 0) {
121 -@@ -1061,7 +1072,7 @@ char * ftpd_getline(char *s, int n, FILE
122 - syslog(LOG_DEBUG, "command: %.*s", len, s);
123 - }
124 - }
125 -- return (s);
126 -+ return (0);
127 - }
128 -
129 - void toolong(int signo)
130 -@@ -1090,9 +1101,14 @@ static int yylex(void)
131 - case CMD:
132 - (void) signal(SIGALRM, toolong);
133 - (void) alarm((unsigned) timeout);
134 -- if (ftpd_getline(cbuf, sizeof(cbuf)-1, stdin)==NULL) {
135 -+ n = ftpd_getline(cbuf, sizeof(cbuf)-1, stdin);
136 -+ if (n == -1) {
137 - reply(221, "You could at least say goodbye.");
138 - dologout(0);
139 -+ } else if (n == -2) {
140 -+ reply(500, "Command too long.");
141 -+ alarm(0);
142 -+ continue;
143 - }
144 - (void) alarm(0);
145 - if ((cp = strchr(cbuf, '\r'))) {
146 ---- linux-ftpd-0.17/ftpd/ftpd.c
147 -+++ linux-ftpd-0.17/ftpd/ftpd.c
148 -@@ -2210,6 +2210,7 @@ void dologout(int status)
149 - static void myoob(int signo)
150 - {
151 - char *cp;
152 -+ int ret;
153 - int save_errno = errno;
154 -
155 - (void)signo;
156 -@@ -2218,9 +2219,13 @@ static void myoob(int signo)
157 - if (!transflag)
158 - return;
159 - cp = tmpline;
160 -- if (ftpd_getline(cp, 7, stdin) == NULL) {
161 -+ ret = ftpd_getline(cp, 7, stdin);
162 -+ if (ret == -1) {
163 - reply(221, "You could at least say goodbye.");
164 - dologout(0);
165 -+ } else if (ret == -2) {
166 -+ /* Ignore truncated command */
167 -+ return;
168 - }
169 - upper(cp);
170 - if (strcmp(cp, "ABOR\r\n") == 0) {
171
172 diff --git a/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-build.patch b/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-build.patch
173 deleted file mode 100644
174 index 6df58378c93..00000000000
175 --- a/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-build.patch
176 +++ /dev/null
177 @@ -1,43 +0,0 @@
178 ---- configure
179 -+++ configure
180 -@@ -114,40 +114,6 @@
181 - echo 'no'
182 - fi
183 -
184 --if [ x$DEBUG = x ]; then
185 -- echo -n "Checking if $CC accepts -O2... "
186 -- if (
187 -- $CC -O2 __conftest.c -o __conftest
188 -- ) >/dev/null 2>&1; then
189 -- echo 'yes'
190 -- CFLAGS="$CFLAGS -O2"
191 -- else
192 -- echo 'no'
193 -- echo -n "Checking if $CC accepts -O... "
194 -- if (
195 -- $CC -O __conftest.c -o __conftest
196 -- ) >/dev/null 2>&1; then
197 -- echo 'yes'
198 -- CFLAGS="$CFLAGS -O"
199 -- else
200 -- echo 'no'
201 -- fi
202 -- fi
203 --
204 --else
205 -- echo -n "Checking if $CC accepts -g... "
206 -- if (
207 -- $CC -g __conftest.c -o __conftest
208 -- ) >/dev/null 2>&1; then
209 -- echo 'yes'
210 -- CFLAGS="$CFLAGS -g"
211 -- else
212 -- echo 'no'
213 -- fi
214 --
215 --fi
216 --
217 --LDFLAGS=
218 - LIBS=
219 -
220 - rm -f __conftest*
221
222 diff --git a/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-cleanup-ssl.patch b/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-cleanup-ssl.patch
223 deleted file mode 100644
224 index e228eaceda5..00000000000
225 --- a/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-cleanup-ssl.patch
226 +++ /dev/null
227 @@ -1,10 +0,0 @@
228 ---- ftpd/ftpcmd.y
229 -+++ ftpd/ftpcmd.y
230 -@@ -109,6 +109,7 @@
231 - typedef struct ssl_st SSL;
232 - int SSL_write(SSL *ssl,const char *buf,int num);
233 - extern int do_ssl_start(void);
234 -+int ssl_getc(SSL *ssl_con);
235 - extern int ssl_secure_flag;
236 - extern int ssl_active_flag;
237 - extern SSL *ssl_con;
238
239 diff --git a/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-cleanup.patch b/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-cleanup.patch
240 deleted file mode 100644
241 index 73289adfba0..00000000000
242 --- a/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-cleanup.patch
243 +++ /dev/null
244 @@ -1,10 +0,0 @@
245 ---- ftpd/logwtmp.c
246 -+++ ftpd/logwtmp.c
247 -@@ -43,6 +43,7 @@
248 - #include <sys/types.h>
249 - #include <sys/time.h>
250 - #include <sys/stat.h>
251 -+#include <time.h>
252 -
253 - #include <fcntl.h>
254 - #include <utmp.h>
255
256 diff --git a/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-cross.patch b/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-cross.patch
257 deleted file mode 100644
258 index cb6ad986a91..00000000000
259 --- a/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-cross.patch
260 +++ /dev/null
261 @@ -1,45 +0,0 @@
262 ---- configure.orig 2008-05-11 12:02:50.000000000 -0700
263 -+++ configure 2008-05-11 12:04:14.000000000 -0700
264 -@@ -93,7 +93,7 @@
265 - echo -n 'Checking if C compiler works... '
266 - if (
267 - $CC __conftest.c -o __conftest || exit 1
268 -- ./__conftest || exit 1
269 -+ [ -e __conftest ] || exit 1
270 - ) >/dev/null 2>&1; then
271 - echo 'yes'
272 - else
273 -@@ -169,13 +169,13 @@
274 - EOF
275 - if (
276 - $CC $CFLAGS __conftest.c -o __conftest || exit 1
277 -- ./__conftest || exit 1
278 -+ [ -e __conftest ] || exit 1
279 - ) >/dev/null 2>&1; then
280 - echo 'yes'
281 - else
282 - if (
283 - $CC $CFLAGS -D__USE_BSD_SIGNAL __conftest.c -o __conftest || exit 1
284 -- ./__conftest || exit 1
285 -+ [ -e ./__conftest ] || exit 1
286 - ) >/dev/null 2>&1; then
287 - echo '-D__USE_BSD_SIGNAL'
288 - CFLAGS="$CFLAGS -D__USE_BSD_SIGNAL"
289 -@@ -311,7 +311,7 @@
290 - else
291 - if (
292 - $CC $CFLAGS -D_GNU_SOURCE __conftest.c -o __conftest || exit 1
293 -- ./__conftest || exit 1
294 -+ [ -e ./__conftest ] || exit 1
295 - ) >/dev/null 2>&1; then
296 - echo '-D_GNU_SOURCE'
297 - CFLAGS="$CFLAGS -D_GNU_SOURCE"
298 -@@ -342,7 +342,7 @@
299 - EOF
300 - if (
301 - $CC $CFLAGS __conftest.c $LIBBSD -o __conftest || exit 1
302 -- ./__conftest || exit 1
303 -+ [ -e ./__conftest ] || exit 1
304 - ) >/dev/null 2>&1; then
305 - echo 'ok'
306 - else
307
308 diff --git a/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-fclose-CVE-2007-6263.patch b/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-fclose-CVE-2007-6263.patch
309 deleted file mode 100644
310 index 5da61aee734..00000000000
311 --- a/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-fclose-CVE-2007-6263.patch
312 +++ /dev/null
313 @@ -1,24 +0,0 @@
314 -diff -u linux-ftpd-ssl-0.17.18+0.3/ftpd/ftpd.c linux-ftpd-ssl-0.17.18+0.3/ftpd/ftpd.c
315 ---- linux-ftpd-ssl-0.17.18+0.3/ftpd/ftpd.c
316 -+++ linux-ftpd-ssl-0.17.18+0.3/ftpd/ftpd.c
317 -@@ -1729,7 +1729,7 @@
318 - static FILE * dataconn(const char *name, off_t size, const char *mode, int stou)
319 - {
320 - char sizebuf[32];
321 -- FILE *file;
322 -+ FILE *file = NULL;
323 - int retry = 0, tos;
324 -
325 - file_size = size;
326 -@@ -1822,7 +1822,10 @@
327 - ERR_error_string(ERR_get_error(),NULL));
328 - perror_reply(425, errbuf);
329 - /* abort time methinks ... */
330 -- fclose(file);
331 -+ if(file != NULL){
332 -+ fclose(file);
333 -+ file = NULL;
334 -+ }
335 - return NULL;
336 - } else {
337 - if (ssl_debug_flag) {
338
339 diff --git a/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-gcc41.patch b/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-gcc41.patch
340 deleted file mode 100644
341 index 5f516ce5d35..00000000000
342 --- a/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-gcc41.patch
343 +++ /dev/null
344 @@ -1,32 +0,0 @@
345 ---- linux-ftpd-0.17/ftpd/ftpcmd.y
346 -+++ linux-ftpd-0.17/ftpd/ftpcmd.y
347 -@@ -125,7 +125,14 @@
348 - char cbuf[512];
349 - char *fromname;
350 -
351 --struct tab;
352 -+struct tab {
353 -+ const char *name;
354 -+ short token;
355 -+ short state;
356 -+ short implemented; /* 1 if command is implemented */
357 -+ const char *help;
358 -+};
359 -+
360 - static int yylex __P((void));
361 - static void sizecmd __P((char *));
362 - static void help __P((struct tab *, char *));
363 -@@ -891,13 +898,6 @@
364 - #define SITECMD 7 /* SITE command */
365 - #define NSTR 8 /* Number followed by a string */
366 -
367 --struct tab {
368 -- const char *name;
369 -- short token;
370 -- short state;
371 -- short implemented; /* 1 if command is implemented */
372 -- const char *help;
373 --};
374 -
375 - struct tab cmdtab[] = { /* In order defined in RFC 765 */
376 - { "AUTH", AUTH, STR1, 1, "<sp> auth_type" },
377
378 diff --git a/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-setguid.patch b/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-setguid.patch
379 deleted file mode 100644
380 index f5d0cf75fcf..00000000000
381 --- a/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-setguid.patch
382 +++ /dev/null
383 @@ -1,66 +0,0 @@
384 ---- linux-ftpd-0.17/ftpd/popen.c
385 -+++ linux-ftpd-0.17/ftpd/popen.c
386 -@@ -169,8 +169,13 @@
387 - * XXX: this doesn't seem right... and shouldn't
388 - * we initgroups, or at least setgroups(0,0)?
389 - */
390 -- setgid(getegid());
391 -- setuid(i);
392 -+
393 -+/*
394 -+ * PSz 25 Aug 06 Must check the return status of these setgid/setuid calls,
395 -+ * see http://www.bress.net/blog/archives/34-setuid-madness.html
396 -+ */
397 -+ if ( setgid(getegid()) != 0 ) _exit(1);
398 -+ if ( setuid(i) != 0 ) _exit(1);
399 -
400 - #ifndef __linux__
401 - /*
402 ---- linux-ftpd-0.17/ftpd/ftpd.c
403 -+++ linux-ftpd-0.17/ftpd/ftpd.c
404 -@@ -1159,6 +1159,13 @@
405 - }
406 - strcpy(pw->pw_dir, "/");
407 - setenv("HOME", "/", 1);
408 -+ }
409 -+ /* PSz 25 Aug 06 chdir for real users done after setting UID */
410 -+ if (seteuid((uid_t)pw->pw_uid) < 0) {
411 -+ reply(550, "Can't set uid.");
412 -+ goto bad;
413 -+ }
414 -+ if (guest || dochroot) { /* do nothing, handled above */
415 - } else if (chdir(pw->pw_dir) < 0) {
416 - if (chdir("/") < 0) {
417 - reply(530, "User %s: can't change directory to %s.",
418 -@@ -1167,10 +1174,7 @@
419 - } else
420 - lreply(230, "No directory! Logging in with home=/");
421 - }
422 -- if (seteuid((uid_t)pw->pw_uid) < 0) {
423 -- reply(550, "Can't set uid.");
424 -- goto bad;
425 -- }
426 -+
427 - sigfillset(&allsigs);
428 - sigprocmask(SIG_UNBLOCK,&allsigs,NULL);
429 -
430 -@@ -1408,7 +1412,8 @@
431 - goto bad;
432 - sleep(tries);
433 - }
434 -- (void) seteuid((uid_t)pw->pw_uid);
435 -+/* PSz 25 Aug 06 Check return status */
436 -+ if (seteuid((uid_t)pw->pw_uid) != 0) _exit(1);
437 - sigfillset(&allsigs);
438 - sigprocmask (SIG_UNBLOCK, &allsigs, NULL);
439 -
440 -@@ -1440,7 +1445,8 @@
441 - bad:
442 - /* Return the real value of errno (close may change it) */
443 - t = errno;
444 -- (void) seteuid((uid_t)pw->pw_uid);
445 -+/* PSz 25 Aug 06 Check return status */
446 -+ if (seteuid((uid_t)pw->pw_uid) != 0) _exit(1);
447 - sigfillset (&allsigs);
448 - sigprocmask (SIG_UNBLOCK, &allsigs, NULL);
449 - (void) close(s);
450
451 diff --git a/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-shadowfix.patch b/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-shadowfix.patch
452 deleted file mode 100644
453 index 79a241ff9c5..00000000000
454 --- a/net-ftp/netkit-ftpd/files/netkit-ftpd-0.17-shadowfix.patch
455 +++ /dev/null
456 @@ -1,28 +0,0 @@
457 ---- linux-ftpd-0.17/ftpd/Makefile
458 -+++ linux-ftpd-0.17-patched/ftpd/Makefile
459 -@@ -19,7 +19,11 @@
460 - all: ftpd
461 -
462 - %.o: %.c
463 -+ ifdef USE_SHADOW
464 -+ $(CC) $(CFLAGS) -DUSE_SHADOW -DHASSETPROCTITLE $< -c
465 -+ else
466 - $(CC) $(CFLAGS) -DHASSETPROCTITLE $< -c
467 -+ endif
468 -
469 - ftpcmd.c: %.c: %.y
470 - $(YACC) $<
471 ---- linux-ftpd-0.17/support/Makefile
472 -+++ linux-ftpd-0.17-patched/support/Makefile
473 -@@ -5,7 +5,11 @@
474 - all: libsupport.a
475 -
476 - %.o: %.c
477 -+ ifdef USE_SHADOW
478 -+ $(CC) $(CFLAGS) -DUSE_SHADOW -DHASSETPROCTITLE $< -c
479 -+ else
480 - $(CC) $(CFLAGS) -DHASSETPROCTITLE $< -c
481 -+ endif
482 -
483 - libsupport.a: $(OBJS)
484 - ar -cruv $@ $^
485
486 diff --git a/net-ftp/netkit-ftpd/metadata.xml b/net-ftp/netkit-ftpd/metadata.xml
487 deleted file mode 100644
488 index 56c12441305..00000000000
489 --- a/net-ftp/netkit-ftpd/metadata.xml
490 +++ /dev/null
491 @@ -1,8 +0,0 @@
492 -<?xml version="1.0" encoding="UTF-8"?>
493 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
494 -<pkgmetadata>
495 -<maintainer type="project">
496 - <email>base-system@g.o</email>
497 - <name>Gentoo Base System</name>
498 -</maintainer>
499 -</pkgmetadata>
500
501 diff --git a/net-ftp/netkit-ftpd/netkit-ftpd-0.17-r9.ebuild b/net-ftp/netkit-ftpd/netkit-ftpd-0.17-r9.ebuild
502 deleted file mode 100644
503 index f5466dcc513..00000000000
504 --- a/net-ftp/netkit-ftpd/netkit-ftpd-0.17-r9.ebuild
505 +++ /dev/null
506 @@ -1,72 +0,0 @@
507 -# Copyright 1999-2016 Gentoo Foundation
508 -# Distributed under the terms of the GNU General Public License v2
509 -
510 -EAPI=6
511 -
512 -inherit eutils ssl-cert toolchain-funcs
513 -
514 -MY_P="linux-ftpd-${PV}"
515 -DESCRIPTION="The netkit FTP server with optional SSL support"
516 -HOMEPAGE="http://www.hcs.harvard.edu/~dholland/computers/netkit.html"
517 -SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${MY_P}.tar.gz
518 - mirror://gentoo/${MY_P}-ssl.patch"
519 -
520 -LICENSE="BSD"
521 -SLOT="0"
522 -KEYWORDS="alpha amd64 arm ia64 ppc ~ppc64 s390 sh sparc x86"
523 -IUSE="libressl ssl"
524 -
525 -DEPEND="ssl? (
526 - !libressl? ( dev-libs/openssl:0= )
527 - libressl? ( dev-libs/libressl:0= ) )
528 -"
529 -RDEPEND="${DEPEND}
530 - virtual/inetd
531 - !www-servers/publicfile"
532 -
533 -S=${WORKDIR}/${MY_P}
534 -
535 -src_prepare() {
536 - default
537 -
538 - cd "${S}" || die
539 - if use ssl; then
540 - epatch "${DISTDIR}"/${MY_P}-ssl.patch
541 - epatch "${FILESDIR}"/${P}-cleanup-ssl.patch
542 - epatch "${FILESDIR}"/${P}-fclose-CVE-2007-6263.patch #199206
543 - fi
544 -
545 - epatch "${FILESDIR}"/${P}-cleanup.patch
546 - epatch "${FILESDIR}"/${P}-build.patch
547 - epatch "${FILESDIR}"/${P}-shadowfix.patch
548 - epatch "${FILESDIR}"/${P}-gcc41.patch
549 - epatch "${FILESDIR}"/${P}-setguid.patch
550 - epatch "${FILESDIR}"/${P}-cross.patch
551 - epatch "${FILESDIR}"/${P}-CVE-2008-4247.patch #239047
552 -}
553 -
554 -src_configure() {
555 - tc-export CC
556 - ./configure --prefix=/usr || die
557 -}
558 -
559 -src_compile() {
560 - emake
561 -}
562 -
563 -src_install() {
564 - dobin ftpd/ftpd
565 - doman ftpd/ftpd.8
566 - dodoc README ChangeLog
567 - insinto /etc/xinetd.d
568 - newins "${FILESDIR}"/ftp.xinetd ftp
569 -}
570 -
571 -pkg_postinst() {
572 - if use ssl; then
573 - install_cert /etc/ssl/certs/ftpd
574 - elog "In order to start the server with SSL support"
575 - elog "You need a certificate /etc/ssl/certs/ftpd.pem."
576 - elog "A temporary certificiate has been created."
577 - fi
578 -}
579
580 diff --git a/profiles/package.mask b/profiles/package.mask
581 index 418e00da37a..991342f3baf 100644
582 --- a/profiles/package.mask
583 +++ b/profiles/package.mask
584 @@ -616,7 +616,6 @@ x11-libs/hippo-canvas
585 # net-analyzer/ffp: #674244, dead homepage, current version added 2005
586 # net-analyzer/nodebrain: #674796, last commits in 2015
587 # net-analyzer/postal: #677478, last release in 2012
588 -# net-ftp/netkit-ftpd: #676000, last rel in 2000, also #236290, #540330
589 #
590 # Removal in 30 days.
591 app-crypt/keynote
592 @@ -630,7 +629,6 @@ net-analyzer/bro
593 net-analyzer/ffp
594 net-analyzer/nodebrain
595 net-analyzer/postal
596 -net-ftp/netkit-ftpd
597
598 # Miroslav Šulc <fordfrog@g.o> (19 Mar 2019)
599 # Depends on >=virtual/{jdk,jre}-11 which is masked