1 |
commit: 90938bfdf79a99184d64f004acaf30f69afe1a12 |
2 |
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com> |
3 |
AuthorDate: Wed Aug 5 21:15:22 2020 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 5 21:15:22 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90938bfd |
7 |
|
8 |
net-proxy/miniproxuy: New package |
9 |
|
10 |
Copyright: Sony Interactive Entertainment Inc. |
11 |
Package-Manager: Portage-3.0.1, Repoman-2.3.23 |
12 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
13 |
|
14 |
net-proxy/microsocks/Manifest | 1 + |
15 |
net-proxy/microsocks/files/microsocks.confd | 4 +++ |
16 |
net-proxy/microsocks/files/microsocks.initd | 14 ++++++++++ |
17 |
net-proxy/microsocks/metadata.xml | 8 ++++++ |
18 |
.../microsocks/microsocks-1.0.1_p20200805.ebuild | 32 ++++++++++++++++++++++ |
19 |
5 files changed, 59 insertions(+) |
20 |
|
21 |
diff --git a/net-proxy/microsocks/Manifest b/net-proxy/microsocks/Manifest |
22 |
new file mode 100644 |
23 |
index 00000000000..db62609b747 |
24 |
--- /dev/null |
25 |
+++ b/net-proxy/microsocks/Manifest |
26 |
@@ -0,0 +1 @@ |
27 |
+DIST microsocks-1.0.1_p20200805.tar.gz 9119 BLAKE2B e998dcb6f109e6bdfd8580ae316e3d61cba0a47b42206bf7482821a06f4fa3b4c56a42fae3948783d2a99bc70f8b60603699a1afba215b45fafe509396c59ec9 SHA512 966df1d654e0eb759f3aca9988dc9f28fa105c3c8586c3e221e3ebdd6f750cb0f1e2d3f544367e5b469203bfe372e9e8451eac8187408bc1618d68dd00236175 |
28 |
|
29 |
diff --git a/net-proxy/microsocks/files/microsocks.confd b/net-proxy/microsocks/files/microsocks.confd |
30 |
new file mode 100644 |
31 |
index 00000000000..1c9387fb09c |
32 |
--- /dev/null |
33 |
+++ b/net-proxy/microsocks/files/microsocks.confd |
34 |
@@ -0,0 +1,4 @@ |
35 |
+# /etc/conf.d/microsocks - config for microsocks |
36 |
+# |
37 |
+# see README.md or --help for possible parameters |
38 |
+microsocks_args="" |
39 |
|
40 |
diff --git a/net-proxy/microsocks/files/microsocks.initd b/net-proxy/microsocks/files/microsocks.initd |
41 |
new file mode 100644 |
42 |
index 00000000000..a520e94920c |
43 |
--- /dev/null |
44 |
+++ b/net-proxy/microsocks/files/microsocks.initd |
45 |
@@ -0,0 +1,14 @@ |
46 |
+#!/sbin/openrc-run |
47 |
+# Copyright 2020 Gentoo Authors |
48 |
+# Distributed under the terms of the GNU General Public License v2 |
49 |
+ |
50 |
+name="microsocks daemon" |
51 |
+description="Multithreaded, small, efficient SOCKS5 server" |
52 |
+pidfile="/run/${RC_SVCNAME}.pid" |
53 |
+command=/usr/bin/microsocks |
54 |
+command_args="${microsocks_args}" |
55 |
+command_background=1 |
56 |
+ |
57 |
+depend() { |
58 |
+ need net |
59 |
+} |
60 |
|
61 |
diff --git a/net-proxy/microsocks/metadata.xml b/net-proxy/microsocks/metadata.xml |
62 |
new file mode 100644 |
63 |
index 00000000000..cee379b1540 |
64 |
--- /dev/null |
65 |
+++ b/net-proxy/microsocks/metadata.xml |
66 |
@@ -0,0 +1,8 @@ |
67 |
+<?xml version="1.0" encoding="UTF-8"?> |
68 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
69 |
+<pkgmetadata> |
70 |
+ <maintainer type="person"> |
71 |
+ <email>chutzpah@g.o</email> |
72 |
+ <name>Patrick McLean</name> |
73 |
+ </maintainer> |
74 |
+</pkgmetadata> |
75 |
|
76 |
diff --git a/net-proxy/microsocks/microsocks-1.0.1_p20200805.ebuild b/net-proxy/microsocks/microsocks-1.0.1_p20200805.ebuild |
77 |
new file mode 100644 |
78 |
index 00000000000..ed8fd541226 |
79 |
--- /dev/null |
80 |
+++ b/net-proxy/microsocks/microsocks-1.0.1_p20200805.ebuild |
81 |
@@ -0,0 +1,32 @@ |
82 |
+# Copyright 2020 Gentoo Authors |
83 |
+# Distributed under the terms of the GNU General Public License v2 |
84 |
+ |
85 |
+EAPI=7 |
86 |
+ |
87 |
+inherit toolchain-funcs |
88 |
+ |
89 |
+COMMIT_HASH="de2d746862e1ec78688500955e15706f173a1151" |
90 |
+DESCRIPTION="Multithreaded, small, efficient SOCKS5 server" |
91 |
+HOMEPAGE="https://github.com/rofl0r/microsocks" |
92 |
+SRC_URI="https://github.com/rofl0r/microsocks/archive/${COMMIT_HASH}.tar.gz -> ${P}.tar.gz" |
93 |
+S="${WORKDIR}/${PN}-${COMMIT_HASH}" |
94 |
+ |
95 |
+LICENSE="MIT" |
96 |
+SLOT="0" |
97 |
+KEYWORDS="~amd64 ~x86" |
98 |
+ |
99 |
+src_prepare() { |
100 |
+ default |
101 |
+ sed -r -e 's:/usr/local:/usr:' -i Makefile || die |
102 |
+} |
103 |
+ |
104 |
+src_compile() { |
105 |
+ emake CC="$(tc-getCC)" |
106 |
+} |
107 |
+ |
108 |
+src_install() { |
109 |
+ default |
110 |
+ |
111 |
+ newinitd "${FILESDIR}/${PN}.initd" ${PN} |
112 |
+ newconfd "${FILESDIR}/${PN}.confd" ${PN} |
113 |
+} |