1 |
commit: 4eefc231b50b23b2b19af344630f0844ba856716 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 4 07:48:03 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 4 07:54:44 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4eefc231 |
7 |
|
8 |
net-misc/netsed: Bump to 0.01c |
9 |
|
10 |
Closes: https://bugs.gentoo.org/692220 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
net-misc/netsed/Manifest | 1 + |
14 |
net-misc/netsed/files/netsed-0.01c-man.patch | 79 ++++++++++++++++++++++++++++ |
15 |
net-misc/netsed/netsed-0.01c.ebuild | 29 ++++++++++ |
16 |
3 files changed, 109 insertions(+) |
17 |
|
18 |
diff --git a/net-misc/netsed/Manifest b/net-misc/netsed/Manifest |
19 |
index e8a114c09dc..f70f0907f00 100644 |
20 |
--- a/net-misc/netsed/Manifest |
21 |
+++ b/net-misc/netsed/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST netsed-0.01b.tgz 6352 BLAKE2B 0aa8ed9f282f32d139e50af1a1c8d1aae118ff6e892475774125b45c229707c40544199ea70708827636a50e43b8f652138b244cb2f3857c854d49018b996fb7 SHA512 edef6ef6e39a17a46a3b4d8019ba2e742b2b5852f804df5e952461a792e3ba7a49fcc33353abf7e532e51586927f28f4b7c6da4f4fbd34a32cdf093f26163dd7 |
24 |
+DIST netsed-0.01c.tgz 12987 BLAKE2B 9d31a2cde79adc944f69cc2bf522a615201fd48dd1b46152b39368f36657ebebbfa5dbdecd91c965fb63d6e06a2a37317e005483a0c60be30a3ad178157418c2 SHA512 de1a1f38698cdcfa3b39975eb7b701abb97fd5035e306b63a6d5a459e4180cf8bb49dc2430acf4767e6d9f9c673f3e1e83040edfb8f331b9b1e10b0036058c57 |
25 |
DIST netsed_0.01c-2.diff.gz 3140 BLAKE2B 211c7f71a76b74fc47cc32dbd5e9ad05a2c7c67bd95de73b0bdb09249f245ab8b0190ee79b51cf1d2f2bc99cc0b7fdf8d358851fddafb2815adc640260122c77 SHA512 5a729e9800051449f7f52989cb65232e262ac6023f21b8ec688f3ce33ed4be79f9d00993aed7773d83dbe109927a5fc6c64e4775d4958136e5c891b6b82e6b83 |
26 |
|
27 |
diff --git a/net-misc/netsed/files/netsed-0.01c-man.patch b/net-misc/netsed/files/netsed-0.01c-man.patch |
28 |
new file mode 100644 |
29 |
index 00000000000..a35a88b87b0 |
30 |
--- /dev/null |
31 |
+++ b/net-misc/netsed/files/netsed-0.01c-man.patch |
32 |
@@ -0,0 +1,79 @@ |
33 |
+--- netsed-0.01c.orig/debian/netsed.1 |
34 |
++++ netsed-0.01c/debian/netsed.1 |
35 |
+@@ -0,0 +1,76 @@ |
36 |
++.TH NETSED 1 "June 23, 2001" NETSED |
37 |
++.SH NAME |
38 |
++netsed \- network packet stream editor |
39 |
++.SH SYNOPSIS |
40 |
++.B netsed |
41 |
++.I proto lport rhost rport rule1 |
42 |
++.RI [ rule2 ] " " ... |
43 |
++.SH DESCRIPTION |
44 |
++NetSED is small and handful utility designed to alter the contents of |
45 |
++packets forwarded thru your network in real time. It is really useful |
46 |
++for network hackers in following applications: |
47 |
++.TP |
48 |
++.B black\-box protocol auditing |
49 |
++whenever there are two or more propertiary boxes communicating over |
50 |
++undocumented protocol (by enforcing changes in ongoing transmissions, |
51 |
++you will be able to test if tested application is secure) |
52 |
++.TP |
53 |
++.B fuzz\-alike experiments, integrity tests |
54 |
++whenever you want to test stability of the application and see how it |
55 |
++ensures data integrity, |
56 |
++.TP |
57 |
++.B other common applications |
58 |
++fooling other people, content filtering, etc etc \- choose whatever |
59 |
++you want to. |
60 |
++.LP |
61 |
++It perfectly fits netgrep, netcat and tcpdump tools suite :P |
62 |
++.SH OPTIONS |
63 |
++.TP |
64 |
++.B proto |
65 |
++protocol specification (tcp or udp) |
66 |
++.TP |
67 |
++.B lport |
68 |
++local port to listen on (see README for transparent traffic intercepting |
69 |
++on some systems) |
70 |
++.TP |
71 |
++.B rhost |
72 |
++where connection should be forwarded (0 = use destination address of |
73 |
++incoming connection, see README) |
74 |
++.TP |
75 |
++.B rport |
76 |
++destination port (0 = dst port of incoming connection) |
77 |
++.TP |
78 |
++.B rule\fIN\fR |
79 |
++replacement rules (see below) |
80 |
++.LP |
81 |
++General replacement rules syntax: s/\fBpat1\fR/\fBpat2\fR\fI[/expire]\fR |
82 |
++ |
83 |
++This will replace all occurences of \fBpat1\fR with \fBpat2\fR in matching |
84 |
++packets. Additional parameter (count) can be used to expire rule after 'count' |
85 |
++succesful substitutions. Eight\-bit characters, including NULL and '/', can |
86 |
++be passed using HTTP\-alike hex escape sequences (eg. %0a%0d). Single '%' |
87 |
++can be reached by using '%%'. Examples: |
88 |
++.TP |
89 |
++.B 's/andrew/mike/1' |
90 |
++replace 'andrew' with 'mike' (once) |
91 |
++.TP |
92 |
++.B 's/andrew/mike' |
93 |
++replace all occurences of 'andrew' with 'mike' |
94 |
++.TP |
95 |
++.B 's/andrew/mike%00' |
96 |
++replace 'andrew' with 'mike\\x00\\x00' (to keep orig. size) |
97 |
++.TP |
98 |
++.B 's/%%/%2f/20' |
99 |
++replace '%' with '/' in first 20 packets |
100 |
++.LP |
101 |
++Rules are not working on cross\-packet boundaries and are evaluated from |
102 |
++first to last not expired rule. |
103 |
++.SH SEE ALSO |
104 |
++.BR ngrep (8), |
105 |
++.BR nc (1), |
106 |
++ |
107 |
++.BR /usr/share/doc/netsed/README.gz |
108 |
++.SH AUTHOR |
109 |
++\fBnetsed\fR was written by Michal Zalewski <lcamtuf@×××.pl>. |
110 |
++ |
111 |
++This manual page was written by Gergely Nagy <algernon@××××××.org>. |
112 |
|
113 |
diff --git a/net-misc/netsed/netsed-0.01c.ebuild b/net-misc/netsed/netsed-0.01c.ebuild |
114 |
new file mode 100644 |
115 |
index 00000000000..979b23a2ae4 |
116 |
--- /dev/null |
117 |
+++ b/net-misc/netsed/netsed-0.01c.ebuild |
118 |
@@ -0,0 +1,29 @@ |
119 |
+# Copyright 1999-2019 Gentoo Authors |
120 |
+# Distributed under the terms of the GNU General Public License v2 |
121 |
+ |
122 |
+EAPI=7 |
123 |
+ |
124 |
+DESCRIPTION="Small tool for altering forwarded network data in real time" |
125 |
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" |
126 |
+SRC_URI="http://lcamtuf.coredump.cx/soft/obsolete/netsed.tgz -> ${P}.tgz" |
127 |
+ |
128 |
+LICENSE="LGPL-2" |
129 |
+SLOT="0" |
130 |
+KEYWORDS="~amd64 ~x86" |
131 |
+IUSE="" |
132 |
+ |
133 |
+S=${WORKDIR}/${PN} |
134 |
+ |
135 |
+PATCHES=( |
136 |
+ "${FILESDIR}/${P}-man.patch" |
137 |
+) |
138 |
+ |
139 |
+src_compile() { |
140 |
+ emake CFLAGS="${CFLAGS}" |
141 |
+} |
142 |
+ |
143 |
+src_install() { |
144 |
+ dobin netsed |
145 |
+ doman debian/netsed.1 |
146 |
+ dodoc README |
147 |
+} |