parlay

yet another gentoo overlay
git clone https://git.parazyd.org/parlay
Log | Files | Refs | README

commit 5f58546ef4d9f5292834730b43a176bc0d1b8472
parent 97dc030893922bc830313ddd980156285dc30937
Author: parazyd <parazyd@dyne.org>
Date:   Fri, 27 Oct 2017 00:42:55 +0200

Remove unused packages.

Diffstat:
Dapp-admin/doas/Manifest | 1-
Dapp-admin/doas/doas-6.0.ebuild | 40----------------------------------------
Dapp-admin/doas/metadata.xml | 7-------
Dnet-analyzer/openbsd-netcat/Manifest | 2--
Dnet-analyzer/openbsd-netcat/files/openbsd-netcat-1.105-base64.patch | 347-------------------------------------------------------------------------------
Dnet-analyzer/openbsd-netcat/files/openbsd-netcat-1.105-darwin.patch | 86-------------------------------------------------------------------------------
Dnet-analyzer/openbsd-netcat/metadata.xml | 7-------
Dnet-analyzer/openbsd-netcat/openbsd-netcat-1.105-r99.ebuild | 60------------------------------------------------------------
Dnet-analyzer/thc-ipv6/Manifest | 2--
Dnet-analyzer/thc-ipv6/files/thc-ipv6-2.1-Makefile.patch | 24------------------------
Dnet-analyzer/thc-ipv6/files/thc-ipv6-3.0-Makefile.patch | 11-----------
Dnet-analyzer/thc-ipv6/metadata.xml | 7-------
Dnet-analyzer/thc-ipv6/thc-ipv6-2.7-r1.ebuild | 40----------------------------------------
Dnet-analyzer/thc-ipv6/thc-ipv6-3.0.ebuild | 57---------------------------------------------------------
Dnet-misc/bridge-utils/Manifest | 1-
Dnet-misc/bridge-utils/bridge-utils-1.5-r99.ebuild | 50--------------------------------------------------
Dnet-misc/bridge-utils/files/bridge-utils-1.5-linux-3.8.patch | 18------------------
Dnet-misc/bridge-utils/files/musl-headers.patch | 54------------------------------------------------------
Dnet-misc/bridge-utils/metadata.xml | 7-------
Dnet-misc/telnet-bsd/Manifest | 1-
Dnet-misc/telnet-bsd/files/fix-musl-build.patch | 517-------------------------------------------------------------------------------
Dnet-misc/telnet-bsd/files/telnet-bsd-1.2-fbsd.patch | 105-------------------------------------------------------------------------------
Dnet-misc/telnet-bsd/files/telnetd.xinetd | 10----------
Dnet-misc/telnet-bsd/metadata.xml | 7-------
Dnet-misc/telnet-bsd/telnet-bsd-1.2-r99.ebuild | 48------------------------------------------------
Dnet-wireless/aircrack-ng/Manifest | 1-
Dnet-wireless/aircrack-ng/aircrack-ng-1.2_rc4-r2.ebuild | 119-------------------------------------------------------------------------------
Dnet-wireless/aircrack-ng/files/aircrack-ng-1.2_rc4-libressl.patch | 49-------------------------------------------------
Dnet-wireless/aircrack-ng/metadata.xml | 18------------------
Dnet-wireless/pixiewps/Manifest | 1-
Dnet-wireless/pixiewps/metadata.xml | 7-------
Dnet-wireless/pixiewps/pixiewps-1.2.2.ebuild | 30------------------------------
Dnet-wireless/pixiewps/pixiewps-9999.ebuild | 32--------------------------------
Dnet-wireless/reaver-wps-fork-t6x/Manifest | 1-
Dnet-wireless/reaver-wps-fork-t6x/files/0100-Include-sys-types.h-for-definition-of-u_char.patch | 27---------------------------
Dnet-wireless/reaver-wps-fork-t6x/metadata.xml | 7-------
Dnet-wireless/reaver-wps-fork-t6x/reaver-wps-fork-t6x-1.5.2.ebuild | 51---------------------------------------------------
Dnet-wireless/reaver-wps-fork-t6x/reaver-wps-fork-t6x-9999.ebuild | 52----------------------------------------------------
Dx11-misc/lemonbar/Manifest | 1-
Dx11-misc/lemonbar/lemonbar-1.2.ebuild | 22----------------------
Dx11-misc/lemonbar/metadata.xml | 7-------
41 files changed, 0 insertions(+), 1934 deletions(-)

diff --git a/app-admin/doas/Manifest b/app-admin/doas/Manifest @@ -1 +0,0 @@ -DIST OpenDoas-6.0.tar.gz 28482 SHA256 59b5ce734591e0e5142f9cb27aaa56a4d5ce470d1f7ad85e9679cd91d2dd2058 SHA512 2bf5e00895a45d87785e7a494a1506844afd843ef5375e0b0e3795ebc24712bb941c6feeb87e426e41a240d40aca9b4c099f77220745bb7142a7a4b303441f60 WHIRLPOOL 037154c8aa81dd33a253a7d8837183d9cd4652ad1a333c1a8771a31cb31fc4721fdcdfc29c786c4bb9f011a61ef978b8e04e75336ea4628673405a68b3a2b839 diff --git a/app-admin/doas/doas-6.0.ebuild b/app-admin/doas/doas-6.0.ebuild @@ -1,40 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit toolchain-funcs - -DESCRIPTION="Run commands as super user or another user, alternative to sudo from OpenBSD" - -MY_PN=OpenDoas -MY_P=${MY_PN}-${PV} -HOMEPAGE="https://github.com/Duncaen/OpenDoas" -SRC_URI="https://github.com/Duncaen/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz" -S="${WORKDIR}"/${MY_P} - -LICENSE="ISC" -SLOT="0" -KEYWORDS="~amd64 ~arm" -IUSE="pam static" - -RDEPEND="pam? ( virtual/pam )" -DEPEND="${RDEPEND} - virtual/yacc" - -src_prepare() -{ - default - sed -i 's/-Werror //' Makefile || die -} - -src_configure() -{ - tc-export CC AR - ./configure \ - --prefix="${EPREFIX}"/usr \ - --sysconfdir="${EPREFIX}"/etc \ - $(use_enable static) \ - $(use_with pam) \ - || die -} diff --git a/app-admin/doas/metadata.xml b/app-admin/doas/metadata.xml @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<maintainer type="person"> - <email>parazyd@dyne.org</email> -</maintainer> -</pkgmetadata> diff --git a/net-analyzer/openbsd-netcat/Manifest b/net-analyzer/openbsd-netcat/Manifest @@ -1,2 +0,0 @@ -DIST netcat-openbsd_1.105-7.debian.tar.gz 31843 SHA256 eee759327ffea293e81d0dde67921b7fcfcad279ffd7a2c9d037bbc8f882b363 SHA512 ec507c858a9f0e75f5a8d6ee8e60eef5200428e55091e831a7acba6c61d70f97af01103c9b65354b0ce773214b0758d957852af793debb70be8aab5b5900b3f6 WHIRLPOOL 62878c51077b26578626f45e1282f2c1f16ae869714b355ef1797ec2911b8773ef07c81468e35bae02087f9f061b828be39200333c204e77b0bdb1ac9eceb957 -DIST netcat-openbsd_1.105.orig.tar.gz 14891 SHA256 40653fe66c1516876b61b07e093d826e2a5463c5d994f1b7e6ce328f3edb211e SHA512 1e515b5af83a12c6f270d6e8bede6406cc7c9f83ca0e316816508dfe2e2c49cda3fffb6b24a3922bf9908dc8b70d540eb8cc49e9cbfe867e49133c004d3f4703 WHIRLPOOL 7e80dde953575b5fc21399ef1d1d40c8cd6b40a5d6cd81d8a606d14b35ce8432c304d3e1bdaf9fb4697cf6dffc017b565cd60033ec0700d2442bc3ea3ca6aa9a diff --git a/net-analyzer/openbsd-netcat/files/openbsd-netcat-1.105-base64.patch b/net-analyzer/openbsd-netcat/files/openbsd-netcat-1.105-base64.patch @@ -1,347 +0,0 @@ -From 6e369bfe1330cca97e30d8eef075777399418c65 Mon Sep 17 00:00:00 2001 -From: parazyd <parazyd@dyne.org> -Date: Mon, 24 Oct 2016 22:11:11 +0200 -Subject: [PATCH] patch for musl - ---- - base64.c | 315 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - socks.c | 1 + - 2 files changed, 316 insertions(+) - create mode 100644 base64.c - -diff --git a/base64.c b/base64.c -new file mode 100644 -index 0000000..e90696d ---- /dev/null -+++ b/base64.c -@@ -0,0 +1,315 @@ -+/* $OpenBSD: base64.c,v 1.8 2015/01/16 16:48:51 deraadt Exp $ */ -+ -+/* -+ * Copyright (c) 1996 by Internet Software Consortium. -+ * -+ * Permission to use, copy, modify, and distribute this software for any -+ * purpose with or without fee is hereby granted, provided that the above -+ * copyright notice and this permission notice appear in all copies. -+ * -+ * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS -+ * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES -+ * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE -+ * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL -+ * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR -+ * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS -+ * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS -+ * SOFTWARE. -+ */ -+ -+/* -+ * Portions Copyright (c) 1995 by International Business Machines, Inc. -+ * -+ * International Business Machines, Inc. (hereinafter called IBM) grants -+ * permission under its copyrights to use, copy, modify, and distribute this -+ * Software with or without fee, provided that the above copyright notice and -+ * all paragraphs of this notice appear in all copies, and that the name of IBM -+ * not be used in connection with the marketing of any product incorporating -+ * the Software or modifications thereof, without specific, written prior -+ * permission. -+ * -+ * To the extent it has a right to do so, IBM grants an immunity from suit -+ * under its patents, if any, for the use, sale or manufacture of products to -+ * the extent that such products are used for performing Domain Name System -+ * dynamic updates in TCP/IP networks by means of the Software. No immunity is -+ * granted for any product per se or for any other function of any product. -+ * -+ * THE SOFTWARE IS PROVIDED "AS IS", AND IBM DISCLAIMS ALL WARRANTIES, -+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A -+ * PARTICULAR PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, -+ * DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER ARISING -+ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE, EVEN -+ * IF IBM IS APPRISED OF THE POSSIBILITY OF SUCH DAMAGES. -+ */ -+ -+#include <sys/types.h> -+#include <sys/socket.h> -+#include <netinet/in.h> -+#include <arpa/inet.h> -+#include <arpa/nameser.h> -+ -+#include <ctype.h> -+#include <resolv.h> -+#include <stdio.h> -+ -+#include <stdlib.h> -+#include <string.h> -+ -+static const char Base64[] = -+ "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; -+static const char Pad64 = '='; -+ -+/* (From RFC1521 and draft-ietf-dnssec-secext-03.txt) -+ The following encoding technique is taken from RFC 1521 by Borenstein -+ and Freed. It is reproduced here in a slightly edited form for -+ convenience. -+ -+ A 65-character subset of US-ASCII is used, enabling 6 bits to be -+ represented per printable character. (The extra 65th character, "=", -+ is used to signify a special processing function.) -+ -+ The encoding process represents 24-bit groups of input bits as output -+ strings of 4 encoded characters. Proceeding from left to right, a -+ 24-bit input group is formed by concatenating 3 8-bit input groups. -+ These 24 bits are then treated as 4 concatenated 6-bit groups, each -+ of which is translated into a single digit in the base64 alphabet. -+ -+ Each 6-bit group is used as an index into an array of 64 printable -+ characters. The character referenced by the index is placed in the -+ output string. -+ -+ Table 1: The Base64 Alphabet -+ -+ Value Encoding Value Encoding Value Encoding Value Encoding -+ 0 A 17 R 34 i 51 z -+ 1 B 18 S 35 j 52 0 -+ 2 C 19 T 36 k 53 1 -+ 3 D 20 U 37 l 54 2 -+ 4 E 21 V 38 m 55 3 -+ 5 F 22 W 39 n 56 4 -+ 6 G 23 X 40 o 57 5 -+ 7 H 24 Y 41 p 58 6 -+ 8 I 25 Z 42 q 59 7 -+ 9 J 26 a 43 r 60 8 -+ 10 K 27 b 44 s 61 9 -+ 11 L 28 c 45 t 62 + -+ 12 M 29 d 46 u 63 / -+ 13 N 30 e 47 v -+ 14 O 31 f 48 w (pad) = -+ 15 P 32 g 49 x -+ 16 Q 33 h 50 y -+ -+ Special processing is performed if fewer than 24 bits are available -+ at the end of the data being encoded. A full encoding quantum is -+ always completed at the end of a quantity. When fewer than 24 input -+ bits are available in an input group, zero bits are added (on the -+ right) to form an integral number of 6-bit groups. Padding at the -+ end of the data is performed using the '=' character. -+ -+ Since all base64 input is an integral number of octets, only the -+ ------------------------------------------------- -+ following cases can arise: -+ -+ (1) the final quantum of encoding input is an integral -+ multiple of 24 bits; here, the final unit of encoded -+ output will be an integral multiple of 4 characters -+ with no "=" padding, -+ (2) the final quantum of encoding input is exactly 8 bits; -+ here, the final unit of encoded output will be two -+ characters followed by two "=" padding characters, or -+ (3) the final quantum of encoding input is exactly 16 bits; -+ here, the final unit of encoded output will be three -+ characters followed by one "=" padding character. -+ */ -+ -+int -+b64_ntop(src, srclength, target, targsize) -+ u_char const *src; -+ size_t srclength; -+ char *target; -+ size_t targsize; -+{ -+ size_t datalength = 0; -+ u_char input[3]; -+ u_char output[4]; -+ int i; -+ -+ while (2 < srclength) { -+ input[0] = *src++; -+ input[1] = *src++; -+ input[2] = *src++; -+ srclength -= 3; -+ -+ output[0] = input[0] >> 2; -+ output[1] = ((input[0] & 0x03) << 4) + (input[1] >> 4); -+ output[2] = ((input[1] & 0x0f) << 2) + (input[2] >> 6); -+ output[3] = input[2] & 0x3f; -+ -+ if (datalength + 4 > targsize) -+ return (-1); -+ target[datalength++] = Base64[output[0]]; -+ target[datalength++] = Base64[output[1]]; -+ target[datalength++] = Base64[output[2]]; -+ target[datalength++] = Base64[output[3]]; -+ } -+ -+ /* Now we worry about padding. */ -+ if (0 != srclength) { -+ /* Get what's left. */ -+ input[0] = input[1] = input[2] = '\0'; -+ for (i = 0; i < srclength; i++) -+ input[i] = *src++; -+ -+ output[0] = input[0] >> 2; -+ output[1] = ((input[0] & 0x03) << 4) + (input[1] >> 4); -+ output[2] = ((input[1] & 0x0f) << 2) + (input[2] >> 6); -+ -+ if (datalength + 4 > targsize) -+ return (-1); -+ target[datalength++] = Base64[output[0]]; -+ target[datalength++] = Base64[output[1]]; -+ if (srclength == 1) -+ target[datalength++] = Pad64; -+ else -+ target[datalength++] = Base64[output[2]]; -+ target[datalength++] = Pad64; -+ } -+ if (datalength >= targsize) -+ return (-1); -+ target[datalength] = '\0'; /* Returned value doesn't count \0. */ -+ return (datalength); -+} -+ -+/* skips all whitespace anywhere. -+ converts characters, four at a time, starting at (or after) -+ src from base - 64 numbers into three 8 bit bytes in the target area. -+ it returns the number of data bytes stored at the target, or -1 on error. -+ */ -+ -+int -+b64_pton(src, target, targsize) -+ char const *src; -+ u_char *target; -+ size_t targsize; -+{ -+ int tarindex, state, ch; -+ u_char nextbyte; -+ char *pos; -+ -+ state = 0; -+ tarindex = 0; -+ -+ while ((ch = (unsigned char)*src++) != '\0') { -+ if (isspace(ch)) /* Skip whitespace anywhere. */ -+ continue; -+ -+ if (ch == Pad64) -+ break; -+ -+ pos = strchr(Base64, ch); -+ if (pos == 0) /* A non-base64 character. */ -+ return (-1); -+ -+ switch (state) { -+ case 0: -+ if (target) { -+ if (tarindex >= targsize) -+ return (-1); -+ target[tarindex] = (pos - Base64) << 2; -+ } -+ state = 1; -+ break; -+ case 1: -+ if (target) { -+ if (tarindex >= targsize) -+ return (-1); -+ target[tarindex] |= (pos - Base64) >> 4; -+ nextbyte = ((pos - Base64) & 0x0f) << 4; -+ if (tarindex + 1 < targsize) -+ target[tarindex+1] = nextbyte; -+ else if (nextbyte) -+ return (-1); -+ } -+ tarindex++; -+ state = 2; -+ break; -+ case 2: -+ if (target) { -+ if (tarindex >= targsize) -+ return (-1); -+ target[tarindex] |= (pos - Base64) >> 2; -+ nextbyte = ((pos - Base64) & 0x03) << 6; -+ if (tarindex + 1 < targsize) -+ target[tarindex+1] = nextbyte; -+ else if (nextbyte) -+ return (-1); -+ } -+ tarindex++; -+ state = 3; -+ break; -+ case 3: -+ if (target) { -+ if (tarindex >= targsize) -+ return (-1); -+ target[tarindex] |= (pos - Base64); -+ } -+ tarindex++; -+ state = 0; -+ break; -+ } -+ } -+ -+ /* -+ * We are done decoding Base-64 chars. Let's see if we ended -+ * on a byte boundary, and/or with erroneous trailing characters. -+ */ -+ -+ if (ch == Pad64) { /* We got a pad char. */ -+ ch = (unsigned char)*src++; /* Skip it, get next. */ -+ switch (state) { -+ case 0: /* Invalid = in first position */ -+ case 1: /* Invalid = in second position */ -+ return (-1); -+ -+ case 2: /* Valid, means one byte of info */ -+ /* Skip any number of spaces. */ -+ for (; ch != '\0'; ch = (unsigned char)*src++) -+ if (!isspace(ch)) -+ break; -+ /* Make sure there is another trailing = sign. */ -+ if (ch != Pad64) -+ return (-1); -+ ch = (unsigned char)*src++; /* Skip the = */ -+ /* Fall through to "single trailing =" case. */ -+ /* FALLTHROUGH */ -+ -+ case 3: /* Valid, means two bytes of info */ -+ /* -+ * We know this char is an =. Is there anything but -+ * whitespace after it? -+ */ -+ for (; ch != '\0'; ch = (unsigned char)*src++) -+ if (!isspace(ch)) -+ return (-1); -+ -+ /* -+ * Now make sure for cases 2 and 3 that the "extra" -+ * bits that slopped past the last full byte were -+ * zeros. If we don't check them, they become a -+ * subliminal channel. -+ */ -+ if (target && tarindex < targsize && -+ target[tarindex] != 0) -+ return (-1); -+ } -+ } else { -+ /* -+ * We ended by seeing the end of the string. Make sure we -+ * have no partial bytes lying around. -+ */ -+ if (state != 0) -+ return (-1); -+ } -+ -+ return (tarindex); -+} -diff --git a/socks.c b/socks.c -index befd0a9..700b6af 100644 ---- a/socks.c -+++ b/socks.c -@@ -40,6 +40,7 @@ - #include <resolv.h> - #include <bsd/readpassphrase.h> - #include "atomicio.h" -+#include "base64.c" - - #define SOCKS_PORT "1080" - #define HTTP_PROXY_PORT "3128" --- -2.7.3 - diff --git a/net-analyzer/openbsd-netcat/files/openbsd-netcat-1.105-darwin.patch b/net-analyzer/openbsd-netcat/files/openbsd-netcat-1.105-darwin.patch @@ -1,86 +0,0 @@ -Allow compilation on Darwin - ---- netcat.c -+++ netcat.c -@@ -43,11 +43,13 @@ - #include <arpa/telnet.h> - #include <arpa/inet.h> - -+#ifndef IPTOS_LOWCOST -+# define IPTOS_LOWCOST 0x02 -+#endif - #ifndef IPTOS_LOWDELAY - # define IPTOS_LOWDELAY 0x10 - # define IPTOS_THROUGHPUT 0x08 - # define IPTOS_RELIABILITY 0x04 --# define IPTOS_LOWCOST 0x02 - # define IPTOS_MINCOST IPTOS_LOWCOST - #endif /* IPTOS_LOWDELAY */ - -@@ -96,8 +98,9 @@ - #include <unistd.h> - #include <fcntl.h> - #include <limits.h> --#include <bsd/stdlib.h> --#include <bsd/string.h> -+#include <stdlib.h> -+#include <string.h> -+#include <ctype.h> - #include "atomicio.h" - - #ifndef SUN_LEN -@@ -169,6 +172,43 @@ - socklen_t salen, int ctimeout); - static void quit(); - -+static char* strtonumerrs[] = { -+ "too large", -+ "too small", -+ "invalid" -+}; -+ -+static long long -+strtonum( -+ const char *nptr, -+ long long minval, -+ long long maxval, -+ const char **errstr) -+{ -+ long long val; -+ -+ while (*nptr != '\0' && isspace(*nptr)) -+ nptr++; -+ if (*nptr == '\0') { -+ if (errstr != NULL) -+ *errstr = strtonumerrs[2]; -+ return 0; -+ } -+ val = atoll(nptr); -+ if (val < minval) { -+ if (errstr != NULL) -+ *errstr = strtonumerrs[1]; -+ return 0; -+ } -+ if (val > maxval) { -+ if (errstr != NULL) -+ *errstr = strtonumerrs[0]; -+ return 0; -+ } -+ *errstr = NULL; -+ return val; -+} -+ - int - main(int argc, char *argv[]) - { ---- socks.c -+++ socks.c -@@ -38,7 +38,7 @@ - #include <string.h> - #include <unistd.h> - #include <resolv.h> --#include <bsd/readpassphrase.h> -+#include <readpassphrase.h> - #include "atomicio.h" - - #define SOCKS_PORT "1080" diff --git a/net-analyzer/openbsd-netcat/metadata.xml b/net-analyzer/openbsd-netcat/metadata.xml @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<maintainer type="person"> - <email>parazyd@dyne.org</email> -</maintainer> -</pkgmetadata> diff --git a/net-analyzer/openbsd-netcat/openbsd-netcat-1.105-r99.ebuild b/net-analyzer/openbsd-netcat/openbsd-netcat-1.105-r99.ebuild @@ -1,60 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit toolchain-funcs eutils - -DESCRIPTION="The OpenBSD network swiss army knife" -HOMEPAGE="http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/nc/" -SRC_URI="http://http.debian.net/debian/pool/main/n/netcat-openbsd/netcat-openbsd_${PV}.orig.tar.gz - http://http.debian.net/debian/pool/main/n/netcat-openbsd/netcat-openbsd_${PV}-7.debian.tar.gz" -LICENSE="BSD" -SLOT="0" -IUSE="elibc_Darwin static" - -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x64-macos" - -DEPEND="virtual/pkgconfig" -RDEPEND="!elibc_Darwin? ( dev-libs/libbsd ) - !net-analyzer/netcat - !net-analyzer/netcat6 -" - -S=${WORKDIR}/netcat-openbsd-${PV} - -PATCHES=( "${WORKDIR}/debian/patches" ) - -src_prepare() { - default - if [[ ${CHOST} == *-darwin* ]] ; then - # this undoes some of the Debian/Linux changes - epatch "${FILESDIR}"/${P}-darwin.patch - fi - # base64 musl fix - epatch "${FILESDIR}"/${P}-base64.patch -} - -src_compile() { - if use static; then - CFLAGS="${CFLAGS} -static" - LDFLAGS="${LDFLAGS} -static" - fi - emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die -} - -src_install() { - dobin nc - doman nc.1 - cd "${WORKDIR}/debian" - newdoc netcat-openbsd.README.Debian README - dodoc -r examples -} - -pkg_postinst() { - if [[ ${KERNEL} = "linux" ]]; then - ewarn "FO_REUSEPORT is introduced in linux 3.9. If your running kernel is older" - ewarn "and kernel header is newer, nc will not listen correctly. Matching the header" - ewarn "to the running kernel will do. See bug #490246 for details." - fi -} diff --git a/net-analyzer/thc-ipv6/Manifest b/net-analyzer/thc-ipv6/Manifest @@ -1,2 +0,0 @@ -DIST thc-ipv6-2.7.tar.gz 661592 SHA256 440a3ae98b57100c397ec4f8634468dbbb0c3b48788c6b74af2a597a90544a96 SHA512 0863ff36109e048a45ec220b98f0e2cf62b7214edcab4afa27a89fc5c0e41469f7e5733efeb56ed0d00cffcf57ceed3d7d32d813e8081d39f1a21e2646e0a0f3 WHIRLPOOL 3c84be3bdb184cc059aabbd13032e6a0b83369f77eda4702277a79cafdadda1f29e43b8613b56e357d1c0e368f1e4df489b7ad3ee18ca6d5796c6a5098726f65 -DIST thc-ipv6-3.0.tar.gz 667859 SHA256 cec2db604e3fe59f26ddc42632d858f53660ef5d6e25d6a7e90ed927f6826102 SHA512 969ebbf4da4514cb83e3abcff637f7ba301c4f072f1f983b3cd3cfd3b0643b55af6eacca3c76e39e11ea9ef6e465be03dfa7ce1d6c988cabbd42cdd95d1e2552 WHIRLPOOL 73ceec5c8c6dc995225cecf4c12d083e5fb13fc3f09138ba716089bd97f662f726902c711852f9bb69cc01adb4a8aa6500d9a7be1d6af3daf38d787bae4137cd diff --git a/net-analyzer/thc-ipv6/files/thc-ipv6-2.1-Makefile.patch b/net-analyzer/thc-ipv6/files/thc-ipv6-2.1-Makefile.patch @@ -1,24 +0,0 @@ ---- thc-ipv6-2.1/Makefile -+++ thc-ipv6-2.1/Makefile -@@ -4,7 +4,7 @@ - - CC=gcc - #CFLAGS=-g --CFLAGS=-O2 -+CFLAGS?=-O2 - CFLAGS+=$(if $(HAVE_SSL),-D_HAVE_SSL,) - LDFLAGS+=-lpcap $(if $(HAVE_SSL),-lssl -lcrypto,) - PROGRAMS=parasite6 dos-new-ip6 detect-new-ip6 fake_router6 fake_advertise6 fake_solicitate6 fake_mld6 fake_mld26 fake_mldrouter6 flood_mldrouter6 fake_mipv6 redir6 smurf6 alive6 toobig6 rsmurf6 implementation6 implementation6d sendpees6 sendpeesmp6 randicmp6 fuzz_ip6 flood_mld6 flood_mld26 flood_router6 flood_advertise6 flood_solicitate6 trace6 exploit6 denial6 fake_dhcps6 flood_dhcpc6 fake_dns6d fragmentation6 kill_router6 fake_dnsupdate6 ndpexhaust6 detect_sniffer6 dump_router6 fake_router26 flood_router26 passive_discovery6 dnsrevenum6 inverse_lookup6 node_query6 address6 covert_send6 covert_send6d inject_alive6 firewall6 ndpexhaust26 fake_pim6 -@@ -17,10 +17,10 @@ - all: $(LIBS) $(PROGRAMS) dnssecwalk dnsdict6 thcping6 - - dnssecwalk: dnssecwalk.c -- $(CC) $(CFLAGS) -o $@ $^ -+ $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) - - dnsdict6: dnsdict6.c -- $(CC) $(CFLAGS) -o $@ $^ -lpthread -lresolv -+ $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) -lpthread -lresolv - - thcping6: thcping6.c $(LIBS) - $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) -lrt diff --git a/net-analyzer/thc-ipv6/files/thc-ipv6-3.0-Makefile.patch b/net-analyzer/thc-ipv6/files/thc-ipv6-3.0-Makefile.patch @@ -1,11 +0,0 @@ -diff -Nuar thc-ipv6-3.0.orig/Makefile thc-ipv6-3.0/Makefile ---- thc-ipv6-3.0.orig/Makefile 2015-10-13 20:17:34.000000000 -0700 -+++ thc-ipv6-3.0/Makefile 2016-11-18 15:57:57.577946828 -0800 -@@ -19,5 +19,5 @@ - dnssecwalk: dnssecwalk.c -- $(CC) $(CFLAGS) $(STATIC) -o $@ $^ -+ $(CC) $(CFLAGS) $(STATIC) -o $@ $^ $(LDFLAGS) - - dnsdict6: dnsdict6.c -- $(CC) $(CFLAGS) $(STATIC) -o $@ $^ -lpthread -lresolv -+ $(CC) $(CFLAGS) $(STATIC) -o $@ $^ $(LDFLAGS) -lpthread -lresolv diff --git a/net-analyzer/thc-ipv6/metadata.xml b/net-analyzer/thc-ipv6/metadata.xml @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<maintainer type="person"> - <email>parazyd@dyne.org</email> -</maintainer> -</pkgmetadata> diff --git a/net-analyzer/thc-ipv6/thc-ipv6-2.7-r1.ebuild b/net-analyzer/thc-ipv6/thc-ipv6-2.7-r1.ebuild @@ -1,40 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=4 - -inherit eutils toolchain-funcs - -DESCRIPTION="complete tool set to attack the inherent protocol weaknesses of IPV6 and ICMP6" -HOMEPAGE="http://freeworld.thc.org/thc-ipv6/" -SRC_URI="http://freeworld.thc.org/releases/${P}.tar.gz" - -LICENSE="AGPL-3 openssl" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="ssl libressl" - -DEPEND="net-libs/libpcap - ssl? ( - !libressl? ( dev-libs/openssl ) - libressl? ( dev-libs/libressl ) - ) -" -RDEPEND="${DEPEND}" - -src_prepare() { - epatch "${FILESDIR}"/${PN}-2.1-Makefile.patch - if ! use ssl ; then - sed -e '/^HAVE_SSL/s:^:#:' \ - -i Makefile - fi -} - -src_compile() { - emake CC="$(tc-getCC)" -} - -src_install() { - emake DESTDIR="${D}" PREFIX="/usr" STRIP="true" install - dodoc CHANGES HOWTO-INJECT README -} diff --git a/net-analyzer/thc-ipv6/thc-ipv6-3.0.ebuild b/net-analyzer/thc-ipv6/thc-ipv6-3.0.ebuild @@ -1,57 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -[[ ${PV} == *9999 ]] && SCM="git-r3" -EGIT_REPO_URI="https://github.com/vanhauser-thc/thc-ipv6.git" -EGIT_BRANCH=master - -inherit eutils toolchain-funcs ${SCM} - -DESCRIPTION="complete tool set to attack the inherent protocol weaknesses of IPV6 and ICMP6" -HOMEPAGE="https://www.thc.org/thc-ipv6/" -LICENSE="AGPL-3 openssl" -SLOT="0" -IUSE="ssl libressl" - -if [[ ${PV} != *9999 ]]; then - SRC_URI="http://www.thc.org/releases/${P}.tar.gz" - KEYWORDS="~amd64 ~x86" -fi - -DEPEND="net-libs/libpcap - net-libs/libnetfilter_queue - ssl? ( - !libressl? ( dev-libs/openssl:* ) - libressl? ( dev-libs/libressl:* ) - )" -RDEPEND="${DEPEND}" - -src_unpack() { - if [[ ${PV} != *9999 ]]; then - default_src_unpack - else - git-r3_src_unpack - fi -} - -src_prepare() { - epatch "${FILESDIR}"/${PN}-3.0-Makefile.patch - sed -i \ - -e '/^CFLAGS=/s,CFLAGS=,CFLAGS?=,' \ - Makefile - if ! use ssl ; then - sed -e '/^HAVE_SSL/s:^:#:' \ - -i Makefile - fi - eapply_user -} - -src_compile() { - emake CC="$(tc-getCC)" -} - -src_install() { - emake DESTDIR="${D}" PREFIX="/usr" STRIP="true" install - dodoc CHANGES HOWTO-INJECT README -} diff --git a/net-misc/bridge-utils/Manifest b/net-misc/bridge-utils/Manifest @@ -1 +0,0 @@ -DIST bridge-utils-1.5.tar.gz 33243 SHA256 42f9e5fb8f6c52e63a98a43b81bd281c227c529f194913e1c51ec48a393b6688 SHA512 4e525fbd3defb509664ef3b728d9e5edfb92beaebdb5d7733d8203fb38cb3f4bb54d02dc1e28813889a2ee19c78b9b47da6d99c8032481a7fd7f104658dea7c3 WHIRLPOOL f11eb95ae9b562cb301bb1f657d87878f0a0729a2129b90fa5957747f078f3afe2ebdadd1eb7ea4a59e544acc8194cf1744126db9ba3f3704210bc18ee3480fa diff --git a/net-misc/bridge-utils/bridge-utils-1.5-r99.ebuild b/net-misc/bridge-utils/bridge-utils-1.5-r99.ebuild @@ -1,50 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="5" - -inherit autotools eutils linux-info toolchain-funcs - -DESCRIPTION="Tools for configuring the Linux kernel 802.1d Ethernet Bridge" -HOMEPAGE="http://bridge.sourceforge.net/" -SRC_URI="mirror://sourceforge/bridge/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86" -IUSE="selinux" - -DEPEND="virtual/os-headers" -RDEPEND="selinux? ( sec-policy/selinux-brctl )" - -CONFIG_CHECK="~BRIDGE" -WARNING_BRIDGE="CONFIG_BRIDGE is required to get bridge devices in the kernel" - -get_headers() { - CTARGET=${CTARGET:-${CHOST}} - dir=/usr/include - tc-is-cross-compiler && dir=/usr/${CTARGET}/usr/include - echo "${dir}" -} - -src_prepare() { - epatch "${FILESDIR}"/${P}-linux-3.8.patch - epatch "${FILESDIR}"/musl-headers.patch - eautoreconf -} - -src_configure() { - # use santitized headers and not headers from /usr/src - econf \ - --prefix=/ \ - --libdir=/usr/$(get_libdir) \ - --includedir=/usr/include \ - --with-linux-headers="$(get_headers)" -} - -src_install () { - emake install DESTDIR="${D}" - dodoc AUTHORS ChangeLog README THANKS TODO \ - doc/{FAQ,FIREWALL,HOWTO,PROJECTS,RPM-GPG-KEY,SMPNOTES,WISHLIST} - [ -f "${D}"/sbin/brctl ] || die "upstream makefile failed to install binary" -} diff --git a/net-misc/bridge-utils/files/bridge-utils-1.5-linux-3.8.patch b/net-misc/bridge-utils/files/bridge-utils-1.5-linux-3.8.patch @@ -1,18 +0,0 @@ -unfortunately if_bridge.h from Linux 3.8+ is not self-contained and the struct -for ip6 is missing - -http://bugs.gentoo.org/460262 - -this is not unheard of with Linux headers, for example, <linux/cdrom.h> needs -<limits.h> to get INT_MAX - ---- libbridge/libbridge.h -+++ libbridge/libbridge.h -@@ -20,6 +20,7 @@ - #define _LIBBRIDGE_H - - #include <sys/socket.h> -+#include <netinet/ip6.h> - #include <linux/if.h> - #include <linux/if_bridge.h> - diff --git a/net-misc/bridge-utils/files/musl-headers.patch b/net-misc/bridge-utils/files/musl-headers.patch @@ -1,54 +0,0 @@ -diff --git a/brctl/brctl.c b/brctl/brctl.c -index 454b8dd..8a7f095 100644 ---- a/brctl/brctl.c -+++ b/brctl/brctl.c -@@ -19,7 +19,7 @@ - #include <stdio.h> - #include <stdlib.h> - #include <string.h> --#include <sys/errno.h> -+#include <errno.h> - #include <getopt.h> - - #include "libbridge.h" -diff --git a/libbridge/libbridge.h b/libbridge/libbridge.h -index 39964f2..73de4fb 100644 ---- a/libbridge/libbridge.h -+++ b/libbridge/libbridge.h -@@ -23,6 +23,9 @@ - #include <linux/if.h> - #include <linux/if_bridge.h> - -+#include <sys/types.h> -+#include <sys/time.h> -+ - /* defined in net/if.h but that conflicts with linux/if.h... */ - extern unsigned int if_nametoindex (const char *__ifname); - extern char *if_indextoname (unsigned int __ifindex, char *__ifname); -diff --git a/libbridge/libbridge_devif.c b/libbridge/libbridge_devif.c -index aa8bc36..1da3549 100644 ---- a/libbridge/libbridge_devif.c -+++ b/libbridge/libbridge_devif.c -@@ -23,7 +23,7 @@ - #include <errno.h> - #include <string.h> - #include <dirent.h> --#include <sys/fcntl.h> -+#include <fcntl.h> - - #include "libbridge.h" - #include "libbridge_private.h" -diff --git a/libbridge/libbridge_if.c b/libbridge/libbridge_if.c -index 77d3f8a..9cf4bac 100644 ---- a/libbridge/libbridge_if.c -+++ b/libbridge/libbridge_if.c -@@ -20,7 +20,7 @@ - #include <stdlib.h> - #include <errno.h> - #include <string.h> --#include <sys/fcntl.h> -+#include <fcntl.h> - #include <sys/ioctl.h> - - #include "libbridge.h" - diff --git a/net-misc/bridge-utils/metadata.xml b/net-misc/bridge-utils/metadata.xml @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<maintainer type="person"> - <email>parazyd@dyne.org</email> -</maintainer> -</pkgmetadata> diff --git a/net-misc/telnet-bsd/Manifest b/net-misc/telnet-bsd/Manifest @@ -1 +0,0 @@ -DIST telnet-bsd-1.2.tar.bz2 194518 SHA256 d6a9d26740ef75565cb1ed8ff11e327d240e6734748b2d1d2e96c126849e4733 SHA512 e3867362e1a2bc46779bcbc7631ccf08a0bfae84b71653e39099dc2db42995e5fcd39a978595006053e688430445db7ebb7a7bfbbb02a8e4dba209acbf66a69d WHIRLPOOL 673a5178f7c2305c9ad1ece9151d8d6c874ace147640f2d0e02a39f2641935af02fe42861c9ccc17b9f84e328c7e821f93ecf37dc3a86a9d1cf49700e7527f20 diff --git a/net-misc/telnet-bsd/files/fix-musl-build.patch b/net-misc/telnet-bsd/files/fix-musl-build.patch @@ -1,517 +0,0 @@ -From 8f9ccf8f891e25a9180a35c1942e4f4f7dec4260 Mon Sep 17 00:00:00 2001 -From: parazyd <parazyd@dyne.org> -Date: Mon, 24 Oct 2016 23:47:29 +0200 -Subject: [PATCH] fix musl build - ---- - telnet/misc-proto.h | 2 +- - telnet/ring.h | 2 +- - telnet/sys-cdefs.h | 26 +++++++++++ - telnetd/logout.h | 79 +++++++++++++++++++++++++++++++++ - telnetd/logwtmp.h | 61 ++++++++++++++++++++++++++ - telnetd/sys-cdefs.h | 26 +++++++++++ - telnetd/sys_term.c | 3 ++ - telnetd/time32.h | 99 +++++++++++++++++++++++++++++++++++++++++ - telnetd/util.h | 124 ++++++++++++++++++++++++++++++++++++++++++++++++++++ - 9 files changed, 420 insertions(+), 2 deletions(-) - create mode 100644 telnet/sys-cdefs.h - create mode 100644 telnetd/logout.h - create mode 100644 telnetd/logwtmp.h - create mode 100644 telnetd/sys-cdefs.h - create mode 100644 telnetd/time32.h - create mode 100644 telnetd/util.h - -diff --git a/telnet/misc-proto.h b/telnet/misc-proto.h -index 5845751..d7d6652 100644 ---- a/telnet/misc-proto.h -+++ b/telnet/misc-proto.h -@@ -63,7 +63,7 @@ - #ifndef __MISC_PROTO__ - #define __MISC_PROTO__ - --#include <sys/cdefs.h> -+#include "sys-cdefs.h" - - void auth_encrypt_init __P((char *, char *, char *, int)); - void auth_encrypt_user __P((char *)); -diff --git a/telnet/ring.h b/telnet/ring.h -index 9ef8fb8..7f9b23c 100644 ---- a/telnet/ring.h -+++ b/telnet/ring.h -@@ -28,7 +28,7 @@ - * - */ - --#include <sys/cdefs.h> -+#include "sys-cdefs.h" - #include <sys/types.h> - #define P __P - -diff --git a/telnet/sys-cdefs.h b/telnet/sys-cdefs.h -new file mode 100644 -index 0000000..209a623 ---- /dev/null -+++ b/telnet/sys-cdefs.h -@@ -0,0 +1,26 @@ -+#warning usage of non-standard #include <sys/cdefs.h> is deprecated -+ -+#undef __P -+#undef __PMT -+ -+#define __P(args) args -+#define __PMT(args) args -+ -+#define __CONCAT(x,y) x ## y -+#define __STRING(x) #x -+ -+#ifdef __cplusplus -+# define __BEGIN_DECLS extern "C" { -+# define __END_DECLS } -+#else -+# define __BEGIN_DECLS -+# define __END_DECLS -+#endif -+ -+#if defined(__GNUC__) && !defined(__cplusplus) -+# define __THROW __attribute__ ((__nothrow__)) -+# define __NTH(fct) __attribute__ ((__nothrow__)) fct -+#else -+# define __THROW -+# define __NTH(fct) fct -+#endif -diff --git a/telnetd/logout.h b/telnetd/logout.h -new file mode 100644 -index 0000000..11fa743 ---- /dev/null -+++ b/telnetd/logout.h -@@ -0,0 +1,79 @@ -+/*- -+ * Copyright (c) 1988, 1993 -+ * The Regents of the University of California. All rights reserved. -+ * -+ * Redistribution and use in source and binary forms, with or without -+ * modification, are permitted provided that the following conditions -+ * are met: -+ * 1. Redistributions of source code must retain the above copyright -+ * notice, this list of conditions and the following disclaimer. -+ * 2. Redistributions in binary form must reproduce the above copyright -+ * notice, this list of conditions and the following disclaimer in the -+ * documentation and/or other materials provided with the distribution. -+ * 3. All advertising materials mentioning features or use of this software -+ * must display the following acknowledgement: -+ * This product includes software developed by the University of -+ * California, Berkeley and its contributors. -+ * 4. Neither the name of the University nor the names of its contributors -+ * may be used to endorse or promote products derived from this software -+ * without specific prior written permission. -+ * -+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -+ * SUCH DAMAGE. -+ */ -+ -+#include "sys-cdefs.h" -+ -+#if defined(LIBC_SCCS) && !defined(lint) -+#if 0 -+static char sccsid[] = "@(#)logout.c 8.1 (Berkeley) 6/4/93"; -+#endif -+#endif /* LIBC_SCCS and not lint */ -+ -+#include <sys/types.h> -+#include <sys/time.h> -+ -+#include <fcntl.h> -+#include <bsd/libutil.h> -+#include <stdlib.h> -+#include <string.h> -+#include <bsd/timeconv.h> -+#include <unistd.h> -+#include <utmp.h> -+ -+#include "time32.h" -+ -+typedef struct utmp UTMP; -+ -+int -+logout(const char *line) -+{ -+ int fd; -+ UTMP ut; -+ int rval; -+ -+ if ((fd = open(_PATH_UTMP, O_RDWR, 0)) < 0) -+ return(0); -+ rval = 0; -+ while (read(fd, &ut, sizeof(UTMP)) == sizeof(UTMP)) { -+ if (!ut.ut_name[0] || strncmp(ut.ut_line, line, UT_LINESIZE)) -+ continue; -+ bzero(ut.ut_name, UT_NAMESIZE); -+ bzero(ut.ut_host, UT_HOSTSIZE); -+ ut.ut_time = _time_to_time32(time(NULL)); -+ (void)lseek(fd, -(off_t)sizeof(UTMP), L_INCR); -+ (void)write(fd, &ut, sizeof(UTMP)); -+ rval = 1; -+ } -+ (void)close(fd); -+ return(rval); -+} -diff --git a/telnetd/logwtmp.h b/telnetd/logwtmp.h -new file mode 100644 -index 0000000..470194a ---- /dev/null -+++ b/telnetd/logwtmp.h -@@ -0,0 +1,61 @@ -+/* $OpenBSD: logwtmp.c,v 1.9 2005/08/02 21:46:23 espie Exp $ */ -+/* -+ * Copyright (c) 1988, 1993 -+ * The Regents of the University of California. All rights reserved. -+ * -+ * Redistribution and use in source and binary forms, with or without -+ * modification, are permitted provided that the following conditions -+ * are met: -+ * 1. Redistributions of source code must retain the above copyright -+ * notice, this list of conditions and the following disclaimer. -+ * 2. Redistributions in binary form must reproduce the above copyright -+ * notice, this list of conditions and the following disclaimer in the -+ * documentation and/or other materials provided with the distribution. -+ * 3. Neither the name of the University nor the names of its contributors -+ * may be used to endorse or promote products derived from this software -+ * without specific prior written permission. -+ * -+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -+ * SUCH DAMAGE. -+ */ -+ -+#include <sys/types.h> -+#include <sys/time.h> -+#include <sys/stat.h> -+ -+#include <fcntl.h> -+#include <string.h> -+#include <unistd.h> -+#include <utmp.h> -+ -+#include <bsd/libutil.h> -+ -+void -+logwtmp(const char *line, const char *name, const char *host) -+{ -+ struct stat buf; -+ struct utmp ut; -+ int fd; -+ -+ if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) < 0) -+ return; -+ if (fstat(fd, &buf) == 0) { -+ (void) strncpy(ut.ut_line, line, sizeof(ut.ut_line)); -+ (void) strncpy(ut.ut_name, name, sizeof(ut.ut_name)); -+ (void) strncpy(ut.ut_host, host, sizeof(ut.ut_host)); -+ (void) time(&ut.ut_time); -+ if (write(fd, &ut, sizeof(struct utmp)) != -+ sizeof(struct utmp)) -+ (void) ftruncate(fd, buf.st_size); -+ } -+ (void) close(fd); -+} -diff --git a/telnetd/sys-cdefs.h b/telnetd/sys-cdefs.h -new file mode 100644 -index 0000000..209a623 ---- /dev/null -+++ b/telnetd/sys-cdefs.h -@@ -0,0 +1,26 @@ -+#warning usage of non-standard #include <sys/cdefs.h> is deprecated -+ -+#undef __P -+#undef __PMT -+ -+#define __P(args) args -+#define __PMT(args) args -+ -+#define __CONCAT(x,y) x ## y -+#define __STRING(x) #x -+ -+#ifdef __cplusplus -+# define __BEGIN_DECLS extern "C" { -+# define __END_DECLS } -+#else -+# define __BEGIN_DECLS -+# define __END_DECLS -+#endif -+ -+#if defined(__GNUC__) && !defined(__cplusplus) -+# define __THROW __attribute__ ((__nothrow__)) -+# define __NTH(fct) __attribute__ ((__nothrow__)) fct -+#else -+# define __THROW -+# define __NTH(fct) fct -+#endif -diff --git a/telnetd/sys_term.c b/telnetd/sys_term.c -index 31897d8..381577f 100644 ---- a/telnetd/sys_term.c -+++ b/telnetd/sys_term.c -@@ -40,6 +40,9 @@ - #include "telnetd.h" - #include "pathnames.h" - -+#include "logout.h" -+#include "logwtmp.h" -+ - static struct termios termbuf, termbuf2; /* pty control structure */ - - /* -diff --git a/telnetd/time32.h b/telnetd/time32.h -new file mode 100644 -index 0000000..5037ef0 ---- /dev/null -+++ b/telnetd/time32.h -@@ -0,0 +1,99 @@ -+/*- -+ * Copyright (c) 2001 FreeBSD Inc. -+ * All rights reserved. -+ * -+ * These routines are for converting time_t to fixed-bit representations -+ * for use in protocols or storage. When converting time to a larger -+ * representation of time_t these routines are expected to assume temporal -+ * locality and use the 50-year rule to properly set the msb bits. XXX -+ * -+ * Redistribution and use under the terms of the COPYRIGHT file at the -+ * base of the source tree. -+ */ -+ -+#include "sys-cdefs.h" -+ -+#include <sys/types.h> -+#include <bsd/timeconv.h> -+ -+/* -+ * Convert a 32 bit representation of time_t into time_t. XXX needs to -+ * implement the 50-year rule to handle post-2038 conversions. -+ */ -+time_t -+_time32_to_time(int32_t t32) -+{ -+ return((time_t)t32); -+} -+ -+/* -+ * Convert time_t to a 32 bit representation. If time_t is 64 bits we can -+ * simply chop it down. The resulting 32 bit representation can be -+ * converted back to a temporally local 64 bit time_t using time32_to_time. -+ */ -+int32_t -+_time_to_time32(time_t t) -+{ -+ return((int32_t)t); -+} -+ -+/* -+ * Convert a 64 bit representation of time_t into time_t. If time_t is -+ * represented as 32 bits we can simply chop it and not support times -+ * past 2038. -+ */ -+time_t -+_time64_to_time(int64_t t64) -+{ -+ return((time_t)t64); -+} -+ -+/* -+ * Convert time_t to a 64 bit representation. If time_t is represented -+ * as 32 bits we simply sign-extend and do not support times past 2038. -+ */ -+int64_t -+_time_to_time64(time_t t) -+{ -+ return((int64_t)t); -+} -+ -+/* -+ * Convert to/from 'long'. Depending on the sizeof(long) this may or -+ * may not require using the 50-year rule. -+ */ -+long -+_time_to_long(time_t t) -+{ -+ if (sizeof(long) == sizeof(int64_t)) -+ return(_time_to_time64(t)); -+ return((long)t); -+} -+ -+time_t -+_long_to_time(long tlong) -+{ -+ if (sizeof(long) == sizeof(int32_t)) -+ return(_time32_to_time(tlong)); -+ return((time_t)tlong); -+} -+ -+/* -+ * Convert to/from 'int'. Depending on the sizeof(int) this may or -+ * may not require using the 50-year rule. -+ */ -+int -+_time_to_int(time_t t) -+{ -+ if (sizeof(int) == sizeof(int64_t)) -+ return(_time_to_time64(t)); -+ return((int)t); -+} -+ -+time_t -+_int_to_time(int tint) -+{ -+ if (sizeof(int) == sizeof(int32_t)) -+ return(_time32_to_time(tint)); -+ return((time_t)tint); -+} -diff --git a/telnetd/util.h b/telnetd/util.h -new file mode 100644 -index 0000000..a50dbd0 ---- /dev/null -+++ b/telnetd/util.h -@@ -0,0 +1,124 @@ -+/* $OpenBSD: util.h,v 1.27 2006/06/14 02:14:25 krw Exp $ */ -+/* $NetBSD: util.h,v 1.2 1996/05/16 07:00:22 thorpej Exp $ */ -+ -+/*- -+ * Copyright (c) 1995 -+ * The Regents of the University of California. All rights reserved. -+ * Portions Copyright (c) 1996, Jason Downs. All rights reserved. -+ * -+ * Redistribution and use in source and binary forms, with or without -+ * modification, are permitted provided that the following conditions -+ * are met: -+ * 1. Redistributions of source code must retain the above copyright -+ * notice, this list of conditions and the following disclaimer. -+ * 2. Redistributions in binary form must reproduce the above copyright -+ * notice, this list of conditions and the following disclaimer in the -+ * documentation and/or other materials provided with the distribution. -+ * 3. Neither the name of the University nor the names of its contributors -+ * may be used to endorse or promote products derived from this software -+ * without specific prior written permission. -+ * -+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -+ * SUCH DAMAGE. -+ */ -+ -+#ifndef _UTIL_H_ -+#define _UTIL_H_ -+ -+// #include "sys-cdefs.h" -+#include <sys/types.h> -+ -+/* -+ * fparseln() specific operation flags. -+ */ -+#define FPARSELN_UNESCESC 0x01 -+#define FPARSELN_UNESCCONT 0x02 -+#define FPARSELN_UNESCCOMM 0x04 -+#define FPARSELN_UNESCREST 0x08 -+#define FPARSELN_UNESCALL 0x0f -+ -+/* -+ * opendev() specific operation flags. -+ */ -+#define OPENDEV_PART 0x01 /* Try to open the raw partition. */ -+#define OPENDEV_BLCK 0x04 /* Open block, not character device. */ -+ -+/* -+ * uucplock(3) specific flags. -+ */ -+#define UU_LOCK_INUSE (1) -+#define UU_LOCK_OK (0) -+#define UU_LOCK_OPEN_ERR (-1) -+#define UU_LOCK_READ_ERR (-2) -+#define UU_LOCK_CREAT_ERR (-3) -+#define UU_LOCK_WRITE_ERR (-4) -+#define UU_LOCK_LINK_ERR (-5) -+#define UU_LOCK_TRY_ERR (-6) -+#define UU_LOCK_OWNER_ERR (-7) -+ -+/* -+ * fmt_scaled(3) specific flags. -+ */ -+#define FMT_SCALED_STRSIZE 7 /* minus sign, 4 digits, suffix, null byte */ -+ -+/* -+ * stub struct definitions. -+ */ -+struct __sFILE; -+struct login_cap; -+struct passwd; -+struct termios; -+struct utmp; -+struct winsize; -+ -+#ifdef __cplusplus -+extern "C" { -+#endif -+ -+char *fparseln(struct __sFILE *, size_t *, size_t *, const char[3], int); -+void login(struct utmp *); -+int login_tty(int); -+int logout(const char *); -+void logwtmp(const char *, const char *, const char *); -+int opendev(char *, int, int, char **); -+int pidfile(const char *); -+void pw_setdir(const char *); -+char *pw_file(const char *); -+int pw_lock(int retries); -+int pw_mkdb(char *, int); -+int pw_abort(void); -+void pw_init(void); -+void pw_edit(int, const char *); -+void pw_prompt(void); -+void pw_copy(int, int, const struct passwd *, const struct passwd *); -+int pw_scan(char *, struct passwd *, int *); -+void pw_error(const char *, int, int); -+int openpty(int *, int *, char *, struct termios *, struct winsize *); -+int opendisk(const char *path, int flags, char *buf, size_t buflen, -+ int iscooked); -+pid_t forkpty(int *, char *, struct termios *, struct winsize *); -+int getmaxpartitions(void); -+int getrawpartition(void); -+void login_fbtab(const char *, uid_t, gid_t); -+int login_check_expire(struct __sFILE *, struct passwd *, char *, int); -+char *readlabelfs(char *, int); -+const char *uu_lockerr(int _uu_lockresult); -+int uu_lock(const char *_ttyname); -+int uu_lock_txfr(const char *_ttyname, pid_t _pid); -+int uu_unlock(const char *_ttyname); -+int fmt_scaled(long long number, char *result); -+int scan_scaled(char *scaled, long long *result); -+#ifdef __cplusplus -+} -+#endif -+ -+#endif /* !_UTIL_H_ */ --- -2.10.1 - diff --git a/net-misc/telnet-bsd/files/telnet-bsd-1.2-fbsd.patch b/net-misc/telnet-bsd/files/telnet-bsd-1.2-fbsd.patch @@ -1,105 +0,0 @@ -diff --git a/configure.in b/configure.in -index 1547e9b..eda5fb1 100644 ---- a/configure.in -+++ b/configure.in -@@ -12,6 +12,8 @@ ALL_LINGUAS="de" - AC_SUBST(PACKAGE) - AC_SUBST(VERSION) - -+AC_CHECK_HEADERS([pty.h utmp.h]) -+ - if test x"$ac_default_prefix" = x"/usr" - then - if test x"${mandir}" = x'${prefix}/man' -diff --git a/telnet/commands.c b/telnet/commands.c -index c0d349c..fa2cf8a 100644 ---- a/telnet/commands.c -+++ b/telnet/commands.c -@@ -29,11 +29,13 @@ - - #include "telnet_locl.h" - #include <err.h> -+#include <unistd.h> - - #if defined(IPPROTO_IP) && defined(IP_TOS) - int tos = -1; - #endif /* defined(IPPROTO_IP) && defined(IP_TOS) */ - -+extern char **environ; - char *hostname; - - typedef int (*intrtn_t) __P ((int, char **)); -diff --git a/telnet/ring.h b/telnet/ring.h -index 66f7191..9ef8fb8 100644 ---- a/telnet/ring.h -+++ b/telnet/ring.h -@@ -29,6 +29,7 @@ - */ - - #include <sys/cdefs.h> -+#include <sys/types.h> - #define P __P - - /* -diff --git a/telnetd/setproctitle.c b/telnetd/setproctitle.c -index f332277..b2adc92 100644 ---- a/telnetd/setproctitle.c -+++ b/telnetd/setproctitle.c -@@ -72,6 +72,7 @@ char setproctitle_rcsid[] = - static char **Argv = NULL; /* pointer to argument vector */ - static char *LastArgv = NULL; /* end of argv */ - static char Argv0[128]; /* program name */ -+extern char **environ; - - void - initsetproctitle(int argc, char **argv, char **envp) -@@ -86,10 +87,10 @@ initsetproctitle(int argc, char **argv, char **envp) - - for (i = 0; envp[i] != NULL; i++) - continue; -- __environ = (char **) malloc(sizeof (char *) * (i + 1)); -+ environ = (char **) malloc(sizeof (char *) * (i + 1)); - for (i = 0; envp[i] != NULL; i++) -- __environ[i] = strdup(envp[i]); -- __environ[i] = NULL; -+ environ[i] = strdup(envp[i]); -+ environ[i] = NULL; - - /* - ** Save start and extent of argv for setproctitle. -diff --git a/telnetd/sys_term.c b/telnetd/sys_term.c -index 1235428..6fcc601 100644 ---- a/telnetd/sys_term.c -+++ b/telnetd/sys_term.c -@@ -27,8 +27,15 @@ - * SUCH DAMAGE. - */ - -+#include <config.h> -+ -+#include <sys/types.h> -+#ifdef HAVE_UTMP_H - #include <utmp.h> -+#endif -+#ifdef HAVE_PTY_H - #include <pty.h> -+#endif - - #include "telnetd.h" - #include "pathnames.h" -@@ -820,6 +827,7 @@ addarg (struct argv_stuff *avs, const char *val) - void - cleanup (int sig) - { -+#if !defined(__FreeBSD__) || __FreeBSD__ < 9 - sigset_t sigset; - char *p; - (void) sig; -@@ -847,6 +855,7 @@ cleanup (int sig) - *p = 'p'; - chmod (line, 0666); - chown (line, 0, 0); -+#endif - shutdown (net, 2); - exit (1); - } diff --git a/net-misc/telnet-bsd/files/telnetd.xinetd b/net-misc/telnet-bsd/files/telnetd.xinetd @@ -1,10 +0,0 @@ -service telnet -{ - flags = REUSE - socket_type = stream - wait = no - user = root - server = /usr/sbin/in.telnetd - log_on_failure += USERID - disable = yes -} diff --git a/net-misc/telnet-bsd/metadata.xml b/net-misc/telnet-bsd/metadata.xml @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<maintainer type="person"> - <email>parazyd@dyne.org</email> -</maintainer> -</pkgmetadata> diff --git a/net-misc/telnet-bsd/telnet-bsd-1.2-r99.ebuild b/net-misc/telnet-bsd/telnet-bsd-1.2-r99.ebuild @@ -1,48 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -inherit eutils autotools toolchain-funcs - -DESCRIPTION="Telnet and telnetd ported from OpenBSD with IPv6 support" -HOMEPAGE="ftp://ftp.suse.com/pub/people/kukuk/ipv6/" -SRC_URI="ftp://ftp.suse.com/pub/people/kukuk/ipv6/${P}.tar.bz2" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 m68k ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos" -IUSE="nls xinetd" - -RDEPEND="sys-libs/ncurses:=" -DEPEND="${RDEPEND} - !net-misc/netkit-telnetd - xinetd? ( sys-apps/xinetd ) - virtual/pkgconfig" - -src_prepare() { - epatch "${FILESDIR}"/${P}-fbsd.patch - epatch "${FILESDIR}"/fix-musl-build.patch - eaclocal - eautoreconf -} - -src_configure() { - # FreeBSD doesn't seem to support PIE neither does hppa - if use kernel_FreeBSD; then - export libc_cv_fpie="no" - fi - - econf - emake LIBS="$("$(tc-getPKG_CONFIG)" --libs ncurses)" -} - -src_install() { - emake DESTDIR="${D}" install - - if use xinetd ; then - insinto /etc/xinetd.d - newins "${FILESDIR}"/telnetd.xinetd telnetd - fi - - dodoc README THANKS NEWS AUTHORS ChangeLog INSTALL -} diff --git a/net-wireless/aircrack-ng/Manifest b/net-wireless/aircrack-ng/Manifest @@ -1 +0,0 @@ -DIST aircrack-ng-1.2-rc4.tar.gz 4379880 SHA256 d93ac16aade5b4d37ab8cdf6ce4b855835096ccf83deb65ffdeff6d666eaff36 SHA512 f1e1d465813a5f00fd8f8b287353033ea30b657a4c3a9fe81281ab2546d3238690f0659076bff53703fbc796ba40efb16115804d21f8516adca2c774fefea20c WHIRLPOOL f06d87911492e83c48ea062c8451c2380a8d721795aa875133076e8b81d6a88d68aba354a4150890db3bf1b41d56f9715b595c2eb71f2b7232061be4a9ffd815 diff --git a/net-wireless/aircrack-ng/aircrack-ng-1.2_rc4-r2.ebuild b/net-wireless/aircrack-ng/aircrack-ng-1.2_rc4-r2.ebuild @@ -1,119 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -PYTHON_COMPAT=( python2_7 ) -DISTUTILS_OPTIONAL=1 - -inherit toolchain-funcs distutils-r1 flag-o-matic - -DESCRIPTION="WLAN tools for breaking 802.11 WEP/WPA keys" -HOMEPAGE="http://www.aircrack-ng.org" - -MY_PV=${PV/_/-} -SRC_URI="http://download.${PN}.org/${PN}-${MY_PV}.tar.gz" -KEYWORDS="~amd64 ~arm ~ppc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" - -LICENSE="GPL-2" -SLOT="0" - -IUSE="+airdrop-ng +airgraph-ng kernel_linux kernel_FreeBSD +netlink +pcre +sqlite +experimental libressl" - -DEPEND="net-libs/libpcap - !libressl? ( dev-libs/openssl:0= ) - libressl? ( dev-libs/libressl:0= ) - netlink? ( dev-libs/libnl:3 ) - pcre? ( dev-libs/libpcre ) - airdrop-ng? ( ${PYTHON_DEPS} ) - airgraph-ng? ( ${PYTHON_DEPS} ) - experimental? ( sys-libs/zlib ) - sqlite? ( >=dev-db/sqlite-3.4 )" -RDEPEND="${DEPEND} - kernel_linux? ( - net-wireless/iw - net-wireless/wireless-tools - sys-apps/ethtool - sys-apps/usbutils - sys-apps/pciutils ) - sys-apps/hwids - airdrop-ng? ( net-wireless/lorcon[python,${PYTHON_USEDEP}] )" - -REQUIRED_USE="airdrop-ng? ( ${PYTHON_REQUIRED_USE} ) - airgraph-ng? ( ${PYTHON_REQUIRED_USE} )" - -PATCHES=( - "${FILESDIR}/${P}-libressl.patch" -) - -S="${WORKDIR}/${PN}-${MY_PV}" - -pkg_setup() { - MAKE_COMMON=( - CC="$(tc-getCC)" \ - CXX="$(tc-getCXX)" \ - AR="$(tc-getAR)" \ - LD="$(tc-getLD)" \ - RANLIB="$(tc-getRANLIB)" \ - libnl=$(usex netlink true false) \ - pcre=$(usex pcre true false) \ - sqlite=$(usex sqlite true false) \ - experimental=$(usex experimental true false) - prefix="${ED}/usr" \ - ) -} - -src_compile() { - if [[ $($(tc-getCC) --version) == clang* ]] ; then - #https://bugs.gentoo.org/show_bug.cgi?id=472890 - filter-flags -frecord-gcc-switches - fi - - emake "${MAKE_COMMON[@]}" - - if use airgraph-ng; then - cd "${S}/scripts/airgraph-ng" - distutils-r1_src_compile - fi - if use airdrop-ng; then - cd "${S}/scripts/airdrop-ng" - distutils-r1_src_compile - fi -} - -src_test() { - emake "${MAKE_COMMON[@]}" check -} - -src_install() { - emake "${MAKE_COMMON[@]}" install - - dodoc AUTHORS ChangeLog INSTALLING README - - if use airgraph-ng; then - cd "${S}/scripts/airgraph-ng" - distutils-r1_src_install - fi - if use airdrop-ng; then - cd "${S}/scripts/airdrop-ng" - distutils-r1_src_install - fi - - #we don't need aircrack-ng's oui updater, we have our own - rm "${ED}"/usr/sbin/airodump-ng-oui-update -} - -pkg_postinst() { - # Message is (c) FreeBSD - # http://www.freebsd.org/cgi/cvsweb.cgi/ports/net-mgmt/aircrack-ng/files/pkg-message.in?rev=1.5 - if use kernel_FreeBSD ; then - einfo "Contrary to Linux, it is not necessary to use airmon-ng to enable the monitor" - einfo "mode of your wireless card. So do not care about what the manpages say about" - einfo "airmon-ng, airodump-ng sets monitor mode automatically." - echo - einfo "To return from monitor mode, issue the following command:" - einfo " ifconfig \${INTERFACE} -mediaopt monitor" - einfo - einfo "For aireplay-ng you need FreeBSD >= 7.0." - fi -} diff --git a/net-wireless/aircrack-ng/files/aircrack-ng-1.2_rc4-libressl.patch b/net-wireless/aircrack-ng/files/aircrack-ng-1.2_rc4-libressl.patch @@ -1,49 +0,0 @@ -Index: a/src/crypto.c -=================================================================== ---- a/src/crypto.c (revision 2881) -+++ b/src/crypto.c (revision 2882) -@@ -288,7 +288,15 @@ - void calc_mic (struct AP_info *ap, unsigned char pmk[32], unsigned char ptk[80], unsigned char mic[20]) { - int i; - unsigned char pke[100]; -+ #if defined(USE_GCRYPT) || OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) -+ #define HMAC_USE_NO_PTR -+ #endif -+ -+ #ifdef HMAC_USE_NO_PTR - HMAC_CTX ctx; -+ #else -+ HMAC_CTX * ctx; -+ #endif - - memcpy( pke, "Pairwise key expansion", 23 ); - -@@ -314,6 +322,7 @@ - memcpy( pke + 67, ap->wpa.snonce, 32 ); - } - -+ #ifdef HMAC_USE_NO_PTR - HMAC_CTX_init(&ctx); - HMAC_Init_ex(&ctx, pmk, 32, EVP_sha1(), NULL); - for(i = 0; i < 4; i++ ) -@@ -325,6 +334,20 @@ - HMAC_Final(&ctx, ptk + i*20, NULL); - } - HMAC_CTX_cleanup(&ctx); -+ #else -+ ctx = HMAC_CTX_new(); -+ HMAC_Init_ex(ctx, pmk, 32, EVP_sha1(), NULL); -+ for(i = 0; i < 4; i++ ) -+ { -+ pke[99] = i; -+ //HMAC(EVP_sha1(), values[0], 32, pke, 100, ptk + i * 20, NULL); -+ HMAC_Init_ex(ctx, 0, 0, 0, 0); -+ HMAC_Update(ctx, pke, 100); -+ HMAC_Final(ctx, ptk + i*20, NULL); -+ } -+ HMAC_CTX_free(ctx); -+ #endif -+ #undef HMAC_USE_NO_PTR - - if( ap->wpa.keyver == 1 ) - { diff --git a/net-wireless/aircrack-ng/metadata.xml b/net-wireless/aircrack-ng/metadata.xml @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<maintainer type="person"> - <email>parazyd@dyne.org</email> -</maintainer> -<longdescription> - aircrack is a set of tools for auditing wireless networks. - aircrack-ng is the next generation of aircrack with lots of new features. - (from http://www.aircrack-ng.org) -</longdescription> -<use> - <flag name="airdrop-ng">Build airdrop-ng</flag> - <flag name="airgraph-ng">Build airgraph-ng</flag> - <flag name="experimental">Build the "experimental" tools which may randomly fail to run properly</flag> - <flag name="netlink">Use netlink for channel control instead of WEXT</flag> -</use> -</pkgmetadata> diff --git a/net-wireless/pixiewps/Manifest b/net-wireless/pixiewps/Manifest @@ -1 +0,0 @@ -DIST v1.2.2.tar.gz 38778 SHA256 6da09b8ac67cd556b901606e5a72548174cd1e6a89cc52a246d49e0a5ff83db8 SHA512 096d9f9e50aede2a77d70b6a7bcbc6ee3559d65f70577a4669076f1d8f3d153f18ceb7ea1cbfec09d20d76ebffb189ef1f8e5047362f33ff787be20e46d3e33e WHIRLPOOL 70b239397c3ecf9ba8da734c901e0b980237907a3d75a8059d48aaf5ff9b5b7ffcc7c0e728b2c58e928975050aad81dfe153049ee8cc91be5fd1ab46d0304640 diff --git a/net-wireless/pixiewps/metadata.xml b/net-wireless/pixiewps/metadata.xml @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<maintainer type="person"> - <email>parazyd@dyne.org</email> -</maintainer> -</pkgmetadata> diff --git a/net-wireless/pixiewps/pixiewps-1.2.2.ebuild b/net-wireless/pixiewps/pixiewps-1.2.2.ebuild @@ -1,30 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -DESCRIPTION="Bruteforce offline the WPS pin exploiting the low or non-existing entropy" -HOMEPAGE="https://github.com/wiire/pixiewps" -SRC_URI="https://github.com/wiire/pixiewps/archive/v${PV}.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="libressl" - -DEPEND=" - !libressl? ( dev-libs/openssl:0 ) - libressl? ( dev-libs/libressl:0 )" -RDEPEND="${DEPEND}" - -S="${WORKDIR}/${P}/src" - -src_prepare() { - eapply_user - sed -i -e 's|/usr/local|/usr|' Makefile -} - -src_install() { - dobin pixiewps - dodoc ../README.md -} diff --git a/net-wireless/pixiewps/pixiewps-9999.ebuild b/net-wireless/pixiewps/pixiewps-9999.ebuild @@ -1,32 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit git-r3 - -DESCRIPTION="Bruteforce offline the WPS pin exploiting the low or non-existing entropy" -HOMEPAGE="https://github.com/wiire/pixiewps" -EGIT_REPO_URI="https://github.com/wiire/pixiewps.git" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="" -IUSE="libressl" - -DEPEND=" - !libressl? ( dev-libs/openssl:0 ) - libressl? ( dev-libs/libressl:0 )" -RDEPEND="${DEPEND}" - -S="${WORKDIR}/${P}/src" - -src_prepare() { - eapply_user - sed -i -e 's|/usr/local|/usr|' Makefile -} - -src_install() { - dobin pixiewps - dodoc ../README.md -} diff --git a/net-wireless/reaver-wps-fork-t6x/Manifest b/net-wireless/reaver-wps-fork-t6x/Manifest @@ -1 +0,0 @@ -DIST v1.5.2.tar.gz 708727 SHA256 b68d988ba7546949b74f3d89ebf9efbd745806906b717f3db7644ea4b12c63b6 SHA512 76c2b5b5f77c52a58ff8e8a3ef651ff52696f90ec9e0cdc2e49e009c59267bc16baec4127bf9b3fc1bab8a9d71d4ab8e1a0eb0328494d5f3aebc79538997629f WHIRLPOOL 7e28b09f36951752815f4103d1b8639930a9348b911db1a2107f8e590a385c74f1c40e886819b772a6a677ceabc4f2a739be74cf45964f0cbd1a601f4bf4ffce diff --git a/net-wireless/reaver-wps-fork-t6x/files/0100-Include-sys-types.h-for-definition-of-u_char.patch b/net-wireless/reaver-wps-fork-t6x/files/0100-Include-sys-types.h-for-definition-of-u_char.patch @@ -1,27 +0,0 @@ -From 811f5c0b0a226edfbf5aa2f316e083f30ec3cd8d Mon Sep 17 00:00:00 2001 -From: Yousong Zhou <yszhou4tech@gmail.com> -Date: Tue, 18 Aug 2015 14:34:26 +0800 -Subject: [PATCH] Include <sys/types.h> for definition of u_char. - -Fixes build with musl-libc. - -Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> ---- - src/libwps/libwps.h | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/src/libwps/libwps.h b/src/libwps/libwps.h -index b04dd8b..bdd7b9a 100755 ---- a/src/libwps/libwps.h -+++ b/src/libwps/libwps.h -@@ -17,6 +17,7 @@ - #include <stdio.h> - #include <string.h> - #include <arpa/inet.h> -+#include <sys/types.h> - - #define LIBWPS_MAX_STR_LEN 256 - --- -1.7.10.4 - diff --git a/net-wireless/reaver-wps-fork-t6x/metadata.xml b/net-wireless/reaver-wps-fork-t6x/metadata.xml @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<maintainer type="person"> - <email>parazyd@dyne.org</email> -</maintainer> -</pkgmetadata> diff --git a/net-wireless/reaver-wps-fork-t6x/reaver-wps-fork-t6x-1.5.2.ebuild b/net-wireless/reaver-wps-fork-t6x/reaver-wps-fork-t6x-1.5.2.ebuild @@ -1,51 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -# AUTOTOOLS_IN_SOURCE_BUILD="1" -# inherit autotools-utils eutils - -DESCRIPTION="Utilise Pixie Dust Attack to find the correct WPS PIN." -HOMEPAGE="https://github.com/t6x/reaver-wps-fork-t6x" -SRC_URI="https://github.com/t6x/reaver-wps-fork-t6x/archive/v${PV}.tar.gz" - -ECONF_SOURCE="${S}/src" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -DEPEND=" - !net-wireless/reaver - net-libs/libpcap - net-wireless/pixiewps - net-wireless/aircrack-ng - dev-db/sqlite:3 -" -RDEPEND="${DEPEND}" - -#S="${WORKDIR}/${P}/src" - -ECONF_SOURCE="${S}/src" - -#these patches need to be verified and pushed upstream -src_prepare() { -# epatch "${FILESDIR}" /000[1-4]*.patch - #http://code.google.com/p/reaver-wps/issues/detail?id=420 -# epatch "${FILESDIR}" /0005-soreau-show-status-r2.patch - - epatch "${FILESDIR}"/0100-Include-sys-types.h-for-definition-of-u_char.patch -} - -src_install() { - cd src - dobin wash reaver - - insinto "/etc/reaver" - doins reaver.db - - doman ../docs/reaver.1.gz - dodoc ../docs/README ../docs/README.REAVER ../docs/README.WASH -} diff --git a/net-wireless/reaver-wps-fork-t6x/reaver-wps-fork-t6x-9999.ebuild b/net-wireless/reaver-wps-fork-t6x/reaver-wps-fork-t6x-9999.ebuild @@ -1,52 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -# AUTOTOOLS_IN_SOURCE_BUILD="1" -# inherit autotools-utils eutils git-r3 - -DESCRIPTION="Utilise Pixie Dust Attack to find the correct WPS PIN." -HOMEPAGE="https://github.com/t6x/reaver-wps-fork-t6x" -EGIT_REPO_URI="https://github.com/t6x/reaver-wps-fork-t6x.git" -#EGIT_COMMIT="6e60ee25e86ec798de2e23971b029d555e9dc398" - -ECONF_SOURCE="${S}/src" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="" -IUSE="" - -DEPEND=" - !net-wireless/reaver - net-libs/libpcap - net-wireless/pixiewps - net-wireless/aircrack-ng - dev-db/sqlite:3 -" -RDEPEND="${DEPEND}" - -#S="${WORKDIR}/${P}/src" - -ECONF_SOURCE="${S}/src" - -#these patches need to be verified and pushed upstream -src_prepare() { -# epatch "${FILESDIR}" /000[1-4]*.patch - #http://code.google.com/p/reaver-wps/issues/detail?id=420 -# epatch "${FILESDIR}" /0005-soreau-show-status-r2.patch - - epatch "${FILESDIR}"/0100-Include-sys-types.h-for-definition-of-u_char.patch -} - -src_install() { - cd src - dobin wash reaver - - #insinto "/etc/reaver" - #doins reaver.db - - doman ../docs/reaver.1.gz - dodoc ../docs/README ../docs/README.REAVER ../docs/README.WASH -} diff --git a/x11-misc/lemonbar/Manifest b/x11-misc/lemonbar/Manifest @@ -1 +0,0 @@ -DIST v1.2.tar.gz 14845 SHA256 b846d8451f9065cdcb94f48a8bd80c074cf1073da0664a94597681912045bfea SHA512 0734f13515fdb2fab17ca8784efe5d01b7dec9f63794c8bf5d5b693bed014853d9bdb5b55c43648ff2f44f961fb8ec563a2288ef4de5b467df14065dba0e7622 WHIRLPOOL bdbb665c6dd41488d8d7c54b8fc904742ab225f26cd8bfa71aec3e8415e4b3dcea2fbd0a7c17404cea51de67f4c1d5bf2b780364f8d991e26bf63989c9afd866 diff --git a/x11-misc/lemonbar/lemonbar-1.2.ebuild b/x11-misc/lemonbar/lemonbar-1.2.ebuild @@ -1,22 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -DESCRIPTION="A featherweight, lemon-scented, bar based on xcb" -HOMEPAGE="https://github.com/LemonBoy/bar" -SRC_URI="https://github.com/LemonBoy/bar/archive/v${PV}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -DEPEND=" - x11-libs/libXinerama - x11-libs/libXrandr - x11-libs/libxcb -" -RDEPEND="${DEPEND}" - -S="${WORKDIR}/bar-${PV}" diff --git a/x11-misc/lemonbar/metadata.xml b/x11-misc/lemonbar/metadata.xml @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<maintainer type="person"> - <email>parazyd@dyne.org</email> -</maintainer> -</pkgmetadata>