Skip to content

Commit 8a85c4e

Browse files
committed
fix build failure
0 parents  commit 8a85c4e

35 files changed

+5216
-0
lines changed

Build.PL

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
2+
# This file was automatically generated by Dist::Zilla::Plugin::ModuleBuild v6.020.
3+
use strict;
4+
use warnings;
5+
6+
use Module::Build 0.28;
7+
8+
9+
my %module_build_args = (
10+
"build_requires" => {
11+
"Module::Build" => "0.28"
12+
},
13+
"configure_requires" => {
14+
"ExtUtils::MakeMaker" => 0,
15+
"Module::Build" => "0.28"
16+
},
17+
"dist_abstract" => "the asynchronous, non-blocking shadowsocks client and server. ",
18+
"dist_author" => [
19+
"Li ZHOU <lzh\@cpan.org>"
20+
],
21+
"dist_name" => "Net-Shadowsocks",
22+
"dist_version" => "0.9.3.4",
23+
"license" => "artistic_2",
24+
"module_name" => "Net::Shadowsocks",
25+
"recursive_test_files" => 1,
26+
"requires" => {
27+
"AnyEvent" => "4.45",
28+
"AnyEvent::Handle" => 0,
29+
"AnyEvent::Log" => 0,
30+
"AnyEvent::Socket" => 0,
31+
"Carp" => 0,
32+
"Crypt::AuthEnc::GCM" => 0,
33+
"Crypt::Cipher::AES" => 0,
34+
"Crypt::Cipher::Camellia" => 0,
35+
"Crypt::Cipher::RC6" => 0,
36+
"Crypt::KeyDerivation" => 0,
37+
"Crypt::Mode::CFB" => 0,
38+
"Crypt::Mode::CTR" => 0,
39+
"Crypt::Mode::OFB" => 0,
40+
"Crypt::PRNG" => 0,
41+
"Crypt::RC4::XS" => "0.02",
42+
"Crypt::Spritz" => "1.02",
43+
"Digest::MD5" => "2.55",
44+
"Getopt::Std" => 0,
45+
"IO::Socket::Socks" => "0.73",
46+
"JSON" => "2.90",
47+
"Socket" => "2.021",
48+
"perl" => "5.006",
49+
"strict" => 0,
50+
"warnings" => 0
51+
},
52+
"script_files" => [
53+
"bin/ssclient.pl",
54+
"bin/ssserver.pl"
55+
],
56+
"test_requires" => {
57+
"Alien::Base::ModuleBuild" => "1.00",
58+
"AnyEvent" => "4.45",
59+
"Crypt::NaCl::Sodium" => "v1.0.6",
60+
"Crypt::RC4::XS" => "0.02",
61+
"Crypt::Spritz" => "1.02",
62+
"CryptX" => "0.070",
63+
"Digest::MD5" => "2.55",
64+
"ExtUtils::MakeMaker" => "6.3",
65+
"File::Spec" => 0,
66+
"IO::Handle" => 0,
67+
"IO::Socket::Socks" => "0.73",
68+
"IPC::Open3" => 0,
69+
"JSON" => "2.90",
70+
"Pod::Coverage::TrustPod" => 0,
71+
"Socket" => "2.021",
72+
"Test::CPAN::Meta" => 0,
73+
"Test::CheckDeps" => "0.010",
74+
"Test::More" => "0.94",
75+
"Test::Pod::Coverage" => 0
76+
}
77+
);
78+
79+
80+
my %fallback_build_requires = (
81+
"Alien::Base::ModuleBuild" => "1.00",
82+
"AnyEvent" => "4.45",
83+
"Crypt::NaCl::Sodium" => "v1.0.6",
84+
"Crypt::RC4::XS" => "0.02",
85+
"Crypt::Spritz" => "1.02",
86+
"CryptX" => "0.070",
87+
"Digest::MD5" => "2.55",
88+
"ExtUtils::MakeMaker" => "6.3",
89+
"File::Spec" => 0,
90+
"IO::Handle" => 0,
91+
"IO::Socket::Socks" => "0.73",
92+
"IPC::Open3" => 0,
93+
"JSON" => "2.90",
94+
"Module::Build" => "0.28",
95+
"Pod::Coverage::TrustPod" => 0,
96+
"Socket" => "2.021",
97+
"Test::CPAN::Meta" => 0,
98+
"Test::CheckDeps" => "0.010",
99+
"Test::More" => "0.94",
100+
"Test::Pod::Coverage" => 0
101+
);
102+
103+
104+
unless ( eval { Module::Build->VERSION(0.4004) } ) {
105+
delete $module_build_args{test_requires};
106+
$module_build_args{build_requires} = \%fallback_build_requires;
107+
}
108+
109+
my $build = Module::Build->new(%module_build_args);
110+
111+
112+
$build->create_build_script;

Changes

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
Revision history for Net-Shadowsocks
2+
3+
0.5.1 01-30-2017/20:35(GMT+8)
4+
First version, released on an unsuspecting world.
5+
0.6.0 02-05-2017/23:01(GMT+8)
6+
add server module,update pod.
7+
0.6.1 02-06-2017/23:44(GMT+8)
8+
add des-cfb encryption method support
9+
0.6.2 2017-02-08 22:50:01+08:00 Asia/Shanghai
10+
add cpanfile
11+
0.6.3
12+
add aes-128-cfb support
13+
0.7.0 2017-02-13 00:35:51+08:00 Asia/Shanghai
14+
major release with full support of RC4-MD5 RC4-SHA AES-128-CBC AES-128-CFB AES-128-OFB AES-256-CBC AES-256-CFB AES-256-OFB
15+
DES supoort removed
16+
make RC4-MD5 the default cipher
17+
experimental support of RC6 added
18+
experimental server support of TCP Fast Open added
19+
Split into 3 modules
20+
Better pod docuemnt
21+
0.7.1 2017-02-13 17:40:11+08:00 Asia/Shanghai
22+
fix _initilize_cipher()causing compile errors,
23+
RC6 encryption method fully working
24+
fix pod,lower prereqs.
25+
0.8.0 2017-02-14 23:18:24+08:00 Asia/Shanghai
26+
supports 28 encryption methods
27+
fix pod errors
28+
0.8.1 2017-02-17 16:58:44+08:00 Asia/Shanghai
29+
add ssclient.pl and ssserver.pl
30+
fix _initialize_cipher()
31+
0.8.2 2017-02-18 15:21:13+08:00 Asia/Shanghai
32+
many small fixes and enhancements
33+
0.9.0 2017-02-24 23:04:22+08:00 Asia/Shanghai
34+
add aead ciphers support
35+
0.9.1 2017-03-11 14:39:45+08:00 Asia/Shanghai
36+
remove rc4 support, add support for rabbit and spritz ciphers
37+
add travis-ci and docker support
38+
0.9.2 2017-03-28 23:48:27+08:00 Asia/Taipei
39+
supports rc4-md5 again
40+
remove Net::SSLeay dependency
41+
replace Crypt::Random with Crypt::PRNG
42+
disable rabbit cipher because it cause build fail with clang
43+
0.9.3 2017-04-14 19:31:53+08:00 Asia/Taipei
44+
correct chacha20-ietf en/decryption
45+
0.9.3.1 2017-04-19 23:16:14+08:00 Asia/Taipei
46+
fix bugs in gcm mode
47+
0.9.3.2 2017-04-22 12:34:16+08:00 Asia/Shanghai
48+
fix --version output
49+
0.9.3.3 2018-02-15 12:07:54+08:00 Asia/Taipei
50+
add Alien::Base::ModuleBuild as test time requirment
51+
remove Dist::Zilla::Plugin::Prereqs::Floor
52+
remove Dist::Zilla::Plugin::OSPrereqs
53+
use Dist::Zilla::Plugin::EnsurePrereqsInstalled
54+
0.9.3.4 2021-06-23 14:03:20+08:00 Asia/Taipei
55+
fix compilation failure by setting required CryptX version to 0.070

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM perl:5.22
2+
ARG VCS_REF
3+
LABEL org.label-schema.vcs-ref=$VCS_REF \
4+
org.label-schema.vcs-url="https://github.com/zhou0/shadowsocks-perl"
5+
MAINTAINER Li ZHOU [email protected]
6+
RUN cpan -T AnyEvent::AIO Crypt::NaCl::Sodium EV IO::AIO Net::Shadowsocks
7+
EXPOSE 1491
8+
CMD ssserver.pl -s localhost -p 1491 -k fuckgfw -m chacha20-ietf

LICENSE

Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,207 @@
1+
This software is Copyright (c) 2018 by Li ZHOU.
2+
3+
This is free software, licensed under:
4+
5+
The Artistic License 2.0 (GPL Compatible)
6+
7+
The Artistic License 2.0
8+
9+
Copyright (c) 2000-2006, The Perl Foundation.
10+
11+
Everyone is permitted to copy and distribute verbatim copies
12+
of this license document, but changing it is not allowed.
13+
14+
Preamble
15+
16+
This license establishes the terms under which a given free software
17+
Package may be copied, modified, distributed, and/or redistributed.
18+
The intent is that the Copyright Holder maintains some artistic
19+
control over the development of that Package while still keeping the
20+
Package available as open source and free software.
21+
22+
You are always permitted to make arrangements wholly outside of this
23+
license directly with the Copyright Holder of a given Package. If the
24+
terms of this license do not permit the full use that you propose to
25+
make of the Package, you should contact the Copyright Holder and seek
26+
a different licensing arrangement.
27+
28+
Definitions
29+
30+
"Copyright Holder" means the individual(s) or organization(s)
31+
named in the copyright notice for the entire Package.
32+
33+
"Contributor" means any party that has contributed code or other
34+
material to the Package, in accordance with the Copyright Holder's
35+
procedures.
36+
37+
"You" and "your" means any person who would like to copy,
38+
distribute, or modify the Package.
39+
40+
"Package" means the collection of files distributed by the
41+
Copyright Holder, and derivatives of that collection and/or of
42+
those files. A given Package may consist of either the Standard
43+
Version, or a Modified Version.
44+
45+
"Distribute" means providing a copy of the Package or making it
46+
accessible to anyone else, or in the case of a company or
47+
organization, to others outside of your company or organization.
48+
49+
"Distributor Fee" means any fee that you charge for Distributing
50+
this Package or providing support for this Package to another
51+
party. It does not mean licensing fees.
52+
53+
"Standard Version" refers to the Package if it has not been
54+
modified, or has been modified only in ways explicitly requested
55+
by the Copyright Holder.
56+
57+
"Modified Version" means the Package, if it has been changed, and
58+
such changes were not explicitly requested by the Copyright
59+
Holder.
60+
61+
"Original License" means this Artistic License as Distributed with
62+
the Standard Version of the Package, in its current version or as
63+
it may be modified by The Perl Foundation in the future.
64+
65+
"Source" form means the source code, documentation source, and
66+
configuration files for the Package.
67+
68+
"Compiled" form means the compiled bytecode, object code, binary,
69+
or any other form resulting from mechanical transformation or
70+
translation of the Source form.
71+
72+
73+
Permission for Use and Modification Without Distribution
74+
75+
(1) You are permitted to use the Standard Version and create and use
76+
Modified Versions for any purpose without restriction, provided that
77+
you do not Distribute the Modified Version.
78+
79+
80+
Permissions for Redistribution of the Standard Version
81+
82+
(2) You may Distribute verbatim copies of the Source form of the
83+
Standard Version of this Package in any medium without restriction,
84+
either gratis or for a Distributor Fee, provided that you duplicate
85+
all of the original copyright notices and associated disclaimers. At
86+
your discretion, such verbatim copies may or may not include a
87+
Compiled form of the Package.
88+
89+
(3) You may apply any bug fixes, portability changes, and other
90+
modifications made available from the Copyright Holder. The resulting
91+
Package will still be considered the Standard Version, and as such
92+
will be subject to the Original License.
93+
94+
95+
Distribution of Modified Versions of the Package as Source
96+
97+
(4) You may Distribute your Modified Version as Source (either gratis
98+
or for a Distributor Fee, and with or without a Compiled form of the
99+
Modified Version) provided that you clearly document how it differs
100+
from the Standard Version, including, but not limited to, documenting
101+
any non-standard features, executables, or modules, and provided that
102+
you do at least ONE of the following:
103+
104+
(a) make the Modified Version available to the Copyright Holder
105+
of the Standard Version, under the Original License, so that the
106+
Copyright Holder may include your modifications in the Standard
107+
Version.
108+
109+
(b) ensure that installation of your Modified Version does not
110+
prevent the user installing or running the Standard Version. In
111+
addition, the Modified Version must bear a name that is different
112+
from the name of the Standard Version.
113+
114+
(c) allow anyone who receives a copy of the Modified Version to
115+
make the Source form of the Modified Version available to others
116+
under
117+
118+
(i) the Original License or
119+
120+
(ii) a license that permits the licensee to freely copy,
121+
modify and redistribute the Modified Version using the same
122+
licensing terms that apply to the copy that the licensee
123+
received, and requires that the Source form of the Modified
124+
Version, and of any works derived from it, be made freely
125+
available in that license fees are prohibited but Distributor
126+
Fees are allowed.
127+
128+
129+
Distribution of Compiled Forms of the Standard Version
130+
or Modified Versions without the Source
131+
132+
(5) You may Distribute Compiled forms of the Standard Version without
133+
the Source, provided that you include complete instructions on how to
134+
get the Source of the Standard Version. Such instructions must be
135+
valid at the time of your distribution. If these instructions, at any
136+
time while you are carrying out such distribution, become invalid, you
137+
must provide new instructions on demand or cease further distribution.
138+
If you provide valid instructions or cease distribution within thirty
139+
days after you become aware that the instructions are invalid, then
140+
you do not forfeit any of your rights under this license.
141+
142+
(6) You may Distribute a Modified Version in Compiled form without
143+
the Source, provided that you comply with Section 4 with respect to
144+
the Source of the Modified Version.
145+
146+
147+
Aggregating or Linking the Package
148+
149+
(7) You may aggregate the Package (either the Standard Version or
150+
Modified Version) with other packages and Distribute the resulting
151+
aggregation provided that you do not charge a licensing fee for the
152+
Package. Distributor Fees are permitted, and licensing fees for other
153+
components in the aggregation are permitted. The terms of this license
154+
apply to the use and Distribution of the Standard or Modified Versions
155+
as included in the aggregation.
156+
157+
(8) You are permitted to link Modified and Standard Versions with
158+
other works, to embed the Package in a larger work of your own, or to
159+
build stand-alone binary or bytecode versions of applications that
160+
include the Package, and Distribute the result without restriction,
161+
provided the result does not expose a direct interface to the Package.
162+
163+
164+
Items That are Not Considered Part of a Modified Version
165+
166+
(9) Works (including, but not limited to, modules and scripts) that
167+
merely extend or make use of the Package, do not, by themselves, cause
168+
the Package to be a Modified Version. In addition, such works are not
169+
considered parts of the Package itself, and are not subject to the
170+
terms of this license.
171+
172+
173+
General Provisions
174+
175+
(10) Any use, modification, and distribution of the Standard or
176+
Modified Versions is governed by this Artistic License. By using,
177+
modifying or distributing the Package, you accept this license. Do not
178+
use, modify, or distribute the Package, if you do not accept this
179+
license.
180+
181+
(11) If your Modified Version has been derived from a Modified
182+
Version made by someone other than you, you are nevertheless required
183+
to ensure that your Modified Version complies with the requirements of
184+
this license.
185+
186+
(12) This license does not grant you the right to use any trademark,
187+
service mark, tradename, or logo of the Copyright Holder.
188+
189+
(13) This license includes the non-exclusive, worldwide,
190+
free-of-charge patent license to make, have made, use, offer to sell,
191+
sell, import and otherwise transfer the Package with respect to any
192+
patent claims licensable by the Copyright Holder that are necessarily
193+
infringed by the Package. If you institute patent litigation
194+
(including a cross-claim or counterclaim) against any party alleging
195+
that the Package constitutes direct or contributory patent
196+
infringement, then this Artistic License to you shall terminate on the
197+
date that such litigation is filed.
198+
199+
(14) Disclaimer of Warranty:
200+
THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS
201+
IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED
202+
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
203+
NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL
204+
LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL
205+
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
206+
DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF
207+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)