Compare commits
101 Commits
Author | SHA1 | Date | |
---|---|---|---|
d2e1de19c7 | |||
018bf3adf9 | |||
fb2a6d71c8 | |||
4de29ffcd9 | |||
|
e79ee14f61 | ||
|
63c510e372 | ||
|
e65cddfce7 | ||
|
b4de31018e | ||
|
2e98d89a8f | ||
|
819e9786cf | ||
|
3bfdec9e16 | ||
|
362080eb15 | ||
|
a27d103ffe | ||
|
0b16970dcf | ||
|
b26ef37f36 | ||
|
bd91dc0431 | ||
|
ea2b1a5b72 | ||
|
05bee4b2c6 | ||
|
8522b20aaa | ||
|
b658baad9d | ||
|
9771dddb7d | ||
|
4d17b34b04 | ||
|
29b5036872 | ||
|
25713d1c97 | ||
|
00d2b818b9 | ||
|
a24b3e9ef7 | ||
|
661c134e51 | ||
|
496758a237 | ||
|
a568809360 | ||
|
653973c7c1 | ||
|
57c387fb91 | ||
|
5cb289644b | ||
|
7de0b068c6 | ||
|
22dd74383e | ||
|
4ae7c65743 | ||
|
900b5dd7ad | ||
|
c7c2df5dd2 | ||
|
2297d46670 | ||
|
28fb2de62a | ||
|
afb5c7a4d9 | ||
|
7c7055f58e | ||
|
41ba075162 | ||
|
832c878d25 | ||
|
f10d551fb9 | ||
|
5525ad80ec | ||
|
7eed37616b | ||
|
defb4e5cfa | ||
|
39102f1628 | ||
|
658528c15d | ||
|
18c8ac7c3f | ||
|
8a45176513 | ||
|
497dda697b | ||
|
bf0cc0d033 | ||
|
1fa2d5d89e | ||
|
38fcf1e7c9 | ||
|
f9fd6be0b9 | ||
|
836ae1adf6 | ||
|
6855ad3f67 | ||
|
e7abf019b0 | ||
|
152610a415 | ||
|
9e500b98ce | ||
|
fdc968d95c | ||
|
38556eff85 | ||
|
cb8d758299 | ||
|
b1fd304e74 | ||
|
64a9c2528d | ||
|
55ac3f92c1 | ||
|
77d1a8cd4d | ||
|
c1151e041c | ||
|
610b05edfd | ||
|
3238d79246 | ||
|
2a79f919ca | ||
|
f3cc043901 | ||
|
17f5e02a55 | ||
|
7dedde97df | ||
|
aad8fa3719 | ||
|
744d7bd3c9 | ||
|
0cb270db82 | ||
|
41210dadd6 | ||
|
a032357ab5 | ||
|
3dfafbce9b | ||
|
3340269913 | ||
|
f48e64f653 | ||
|
7ed469370e | ||
|
ae32561391 | ||
|
5da8a85583 | ||
|
7898a48f8f | ||
|
dfdef3b966 | ||
|
c8c8bffc49 | ||
|
7be65b1099 | ||
|
1b27c2a582 | ||
|
fb07c83e3c | ||
|
c0ad87c124 | ||
|
8e48740ca9 | ||
|
c0704b6f5f | ||
|
a4cf434a80 | ||
|
9e4a2fda72 | ||
|
56f38776e8 | ||
|
7bd7ad0657 | ||
|
dbaafe531f | ||
|
434849a5c1 |
339
LICENSE.txt
Normal file
339
LICENSE.txt
Normal file
@ -0,0 +1,339 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License.
|
79
README.md
Normal file → Executable file
79
README.md
Normal file → Executable file
@ -1,38 +1,51 @@
|
||||
aria2 static builds for GNU/Linux & Windows
|
||||
===========================================
|
||||
aria2 static builds for GNU/Linux & Windows.
|
||||
============================================
|
||||
|
||||
### aria2 1.19.2 builds (with OpenSSL):
|
||||
### aria2 1.37.0 builds (with OpenSSL):
|
||||
|
||||
* **GNU/Linux downloads:**
|
||||
* [aria2-1.19.2-linux-gnu-32bit-build1.tar.bz2](https://github.com/clamsawd/aria2-static-builds/releases/download/v1.19.2/aria2-1.19.2-linux-gnu-32bit-build1.tar.bz2)
|
||||
* [aria2-1.19.2-linux-gnu-64bit-build1.tar.bz2](https://github.com/clamsawd/aria2-static-builds/releases/download/v1.19.2/aria2-1.19.2-linux-gnu-64bit-build1.tar.bz2)
|
||||
* **`GNU/Linux downloads:`**
|
||||
* [aria2-1.37.0-linux-gnu-32bit-build1.tar.bz2](https://drive.proton.me/urls/QKY2M7X7TC#b6YBf4Tl5QiR) (Generic Linux x86)
|
||||
* [aria2-1.37.0-linux-gnu-64bit-build1.tar.bz2](https://drive.proton.me/urls/QKY2M7X7TC#b6YBf4Tl5QiR) (Generic Linux x86_64)
|
||||
* [aria2-1.37.0-linux-gnu-arm-rbpi-build1.tar.bz2](https://drive.proton.me/urls/QKY2M7X7TC#b6YBf4Tl5QiR) (Generic Linux ARM32)
|
||||
* [aria2-1.37.0-linux-gnu-32bit-build1.deb](https://drive.proton.me/urls/QKY2M7X7TC#b6YBf4Tl5QiR) (Debian/Ubuntu x86)
|
||||
* [aria2-1.37.0-linux-gnu-64bit-build1.deb](https://drive.proton.me/urls/QKY2M7X7TC#b6YBf4Tl5QiR) (Debian/Ubuntu x86_64)
|
||||
* [aria2-1.37.0-linux-gnu-arm-rbpi-build1.deb](https://drive.proton.me/urls/QKY2M7X7TC#b6YBf4Tl5QiR) (Debian/Ubuntu ARM32)
|
||||
* [aria2-1.37.0-linux-gnu-32bit-build1.rpm](https://drive.proton.me/urls/QKY2M7X7TC#b6YBf4Tl5QiR) (RedHat/Fedora x86)
|
||||
* [aria2-1.37.0-linux-gnu-64bit-build1.rpm](https://drive.proton.me/urls/QKY2M7X7TC#b6YBf4Tl5QiR) (RedHat/Fedora x86_64)
|
||||
|
||||
* **Windows downloads:**
|
||||
* [aria2-1.19.2-win-32bit-build1.7z](https://github.com/clamsawd/aria2-static-builds/releases/download/v1.19.2/aria2-1.19.2-win-32bit-build1.7z)
|
||||
* [aria2-1.19.2-win-64bit-build1.7z](https://github.com/clamsawd/aria2-static-builds/releases/download/v1.19.2/aria2-1.19.2-win-64bit-build1.7z)
|
||||
* [aria2-1.19.2-win-xp-build1.7z](https://github.com/clamsawd/aria2-static-builds/releases/download/v1.19.2/aria2-1.19.2-win-xp-build1.7z)
|
||||
* **`Windows downloads:`**
|
||||
* [aria2-1.37.0-win-32bit-build1.7z](https://drive.proton.me/urls/QKY2M7X7TC#b6YBf4Tl5QiR)
|
||||
* [aria2-1.37.0-win-64bit-build1.7z](https://drive.proton.me/urls/QKY2M7X7TC#b6YBf4Tl5QiR)
|
||||
|
||||
* **CA-Certificates:**
|
||||
* [ca-certificates.crt](https://github.com/clamsawd/aria2-static-builds/releases/download/v1.19.2/ca-certificates.crt)
|
||||
* **`CA-Certificates:`**
|
||||
* [ca-certificates.crt](https://drive.proton.me/urls/QKY2M7X7TC#b6YBf4Tl5QiR)
|
||||
|
||||
* **Source code:**
|
||||
* [aria2-1.19.2.tar.bz2](https://github.com/tatsuhiro-t/aria2/releases/download/release-1.19.2/aria2-1.19.2.tar.bz2)
|
||||
* [aria2-1.19.2.tar.gz](https://github.com/tatsuhiro-t/aria2/releases/download/release-1.19.2/aria2-1.19.2.tar.gz)
|
||||
* [aria2-1.19.2.tar.xz](https://github.com/tatsuhiro-t/aria2/releases/download/release-1.19.2/aria2-1.19.2.tar.xz)
|
||||
* **`Source code:`**
|
||||
* [aria2-1.37.0.tar.bz2](https://github.com/tatsuhiro-t/aria2/releases/download/release-1.37.0/aria2-1.37.0.tar.bz2)
|
||||
* [aria2-1.37.0.tar.gz](https://github.com/tatsuhiro-t/aria2/releases/download/release-1.37.0/aria2-1.37.0.tar.gz)
|
||||
* [aria2-1.37.0.tar.xz](https://github.com/tatsuhiro-t/aria2/releases/download/release-1.37.0/aria2-1.37.0.tar.xz)
|
||||
|
||||
_Note: To prevent the error with bcrypt.dll library, the SFTP support for Windows XP builds has been disabled._
|
||||
_Note: The error with `bcrypt.dll` library on `Windows XP` has been fixed._
|
||||
|
||||
_Info: In this version, the Windows builds include manifest for Windows 10 (Contributed by [eladkarako](https://github.com/eladkarako))_
|
||||
|
||||
### How to install:
|
||||
|
||||
* **GNU/Linux instructions:**
|
||||
* Open the terminal as root.
|
||||
* Type the command: `tar jxvf aria2-1.19.2-linux-gnu-[arch]-build1.tar.bz2 -C /`
|
||||
* Finally, change the permissions: `chmod +x /usr/bin/aria2c`
|
||||
|
||||
* Open the terminal and type the following commands:
|
||||
|
||||
```shell
|
||||
$ tar jxvf aria2-1.37.0-linux-gnu-[arch]-build1.tar.bz2
|
||||
$ cd aria2-1.37.0-linux-gnu-[arch]-build1
|
||||
$ sudo make install
|
||||
````
|
||||
|
||||
* **Windows instruccions:**
|
||||
* **Windows instructions:**
|
||||
|
||||
* Unzip the package with [7-zip](http://www.7-zip.org/) or [Winrar](http://www.rarlab.com/).
|
||||
* Copy the files to a folder. For example: `C:\Program Files\aria2`
|
||||
* Add the folder to [PATH](https://www.google.es/search?q=add+folder+to+PATH+on+Windows) variable
|
||||
* Add the folder to [PATH](https://www.google.es/search?q=add+folder+to+PATH+on+Windows) variable.
|
||||
|
||||
### CA Certificates on Windows (HTTPS):
|
||||
|
||||
@ -40,27 +53,33 @@ To perform downloads using **HTTPS**, is necessary the ca-certificates. For defa
|
||||
|
||||
You can define the path of the certificates permanently using `aria2.conf` located on `C:\Users\<user>\.aria2\`. If you use Windows XP, the file is located on `C:\Documents and settings\<user>\.aria2\`. For example, you just have to add the following line:
|
||||
|
||||
`ca-certificate=C:\Program Files\aria2\certs\ca-certificates.crt`
|
||||
```shell
|
||||
ca-certificate=C:\Program Files\aria2\certs\ca-certificates.crt
|
||||
```
|
||||
|
||||
If you prefer load the certificates manually, you can use the following command:
|
||||
|
||||
`C:\PATH\> aria2c --ca-certificate=<PATH-TO-CERTIFICATE> <URL>`
|
||||
```shell
|
||||
C:\PATH\> aria2c --ca-certificate=<PATH-TO-CERTIFICATE> <URL>
|
||||
```
|
||||
|
||||
Also, is possible disable the use of certificates with the following command:
|
||||
|
||||
`C:\PATH\> aria2c --check-certificate=false <URL>`
|
||||
```shell
|
||||
C:\PATH\> aria2c --check-certificate=false <URL>
|
||||
```
|
||||
|
||||
### Used external libraries:
|
||||
|
||||
* http://www.zlib.net/
|
||||
* http://expat.sourceforge.net/
|
||||
* http://c-ares.haxx.se/
|
||||
* https://libexpat.github.io/
|
||||
* https://c-ares.org/
|
||||
* http://www.sqlite.org/
|
||||
* http://www.openssl.org/
|
||||
* http://www.libssh2.org/
|
||||
|
||||
### External links:
|
||||
|
||||
* [aria2 homepage](http://aria2.sourceforge.net/)
|
||||
* [aria2 documentation](http://aria2.sourceforge.net/manual/en/html/index.html)
|
||||
* [aria2 source code (Github)](https://github.com/tatsuhiro-t/aria2)
|
||||
* [aria2 homepage](https://aria2.github.io/)
|
||||
* [aria2 documentation](https://aria2.github.io/manual/en/html/)
|
||||
* [aria2 source code (Github)](https://github.com/aria2/aria2)
|
||||
|
@ -0,0 +1,114 @@
|
||||
#!/bin/bash
|
||||
|
||||
# In this configuration, the following dependent libraries are compiled:
|
||||
#
|
||||
# * zlib
|
||||
# * c-ares
|
||||
# * expat
|
||||
# * sqlite3
|
||||
# * openSSL
|
||||
# * libssh2
|
||||
|
||||
#CHECK TOOL FOR DOWNLOAD
|
||||
aria2c --help > /dev/null
|
||||
if [ "$?" -eq 0 ] ; then
|
||||
DOWNLOADER="aria2c --check-certificate=false"
|
||||
else
|
||||
DOWNLOADER="wget -c"
|
||||
fi
|
||||
|
||||
## DEPENDENCES ##
|
||||
ZLIB=https://www.zlib.net/zlib-1.3.tar.gz
|
||||
OPENSSL=https://www.openssl.org/source/openssl-1.1.1w.tar.gz
|
||||
EXPAT=https://github.com/libexpat/libexpat/releases/download/R_2_5_0/expat-2.5.0.tar.bz2
|
||||
SQLITE3=https://www.sqlite.org/2023/sqlite-autoconf-3440200.tar.gz
|
||||
C_ARES=https://c-ares.org/download/c-ares-1.24.0.tar.gz
|
||||
SSH2=https://libssh2.org/download/libssh2-1.11.0.tar.gz
|
||||
|
||||
## CONFIG ##
|
||||
ARCH="armhf"
|
||||
HOST="arm-linux-gnueabihf"
|
||||
PREFIX="/opt/aria2-arm-rbpi/build_libs"
|
||||
LOCAL_DIR="/opt/aria2-arm-rbpi/build_libs"
|
||||
|
||||
TOOL_BIN_DIR="/opt/aria2-arm-rbpi/tools/arm-bcm2708/gcc-linaro-$HOST-raspbian/bin"
|
||||
PATH=${TOOL_BIN_DIR}:$PATH
|
||||
|
||||
CFLAGS="-march=armv7-a -mtune=cortex-a9"
|
||||
DEST="/opt/aria2-arm-rbpi/build_libs"
|
||||
CC=$HOST-gcc
|
||||
CXX=$HOST-g++
|
||||
LDFLAGS="-L$DEST/lib"
|
||||
CPPFLAGS="-I$DEST/include"
|
||||
CXXFLAGS=$CFLAGS
|
||||
MAKE="make -j`nproc`"
|
||||
CONFIGURE="./configure --prefix=${LOCAL_DIR} --host=$HOST"
|
||||
BUILD_DIRECTORY=/tmp/
|
||||
|
||||
## BUILD ##
|
||||
cd $BUILD_DIRECTORY
|
||||
#
|
||||
# zlib build
|
||||
$DOWNLOADER $ZLIB
|
||||
tar zxvf zlib-1.3.tar.gz
|
||||
cd zlib-1.3/
|
||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC=$HOST-gcc STRIP=$HOST-strip RANLIB=$HOST-ranlib CXX=$HOST-g++ AR=$HOST-ar LD=$HOST-ld ./configure --prefix=$PREFIX --static
|
||||
make
|
||||
make install
|
||||
#
|
||||
# expat build
|
||||
cd ..
|
||||
$DOWNLOADER $EXPAT
|
||||
tar jxvf expat-2.5.0.tar.bz2
|
||||
cd expat-2.5.0/
|
||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC=$HOST-gcc CXX=$HOST-g++ ./configure --host=$HOST --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` --prefix=$PREFIX --enable-static=yes --enable-shared=no
|
||||
make
|
||||
make install
|
||||
#
|
||||
# c-ares build
|
||||
cd ..
|
||||
$DOWNLOADER $C_ARES
|
||||
tar zxvf c-ares-1.24.0.tar.gz
|
||||
cd c-ares-1.24.0/
|
||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC=$HOST-gcc CXX=$HOST-g++ ./configure --host=$HOST --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` --prefix=$PREFIX --disable-tests --enable-static --disable-shared
|
||||
make
|
||||
make install
|
||||
#
|
||||
# Openssl build
|
||||
cd ..
|
||||
$DOWNLOADER $OPENSSL
|
||||
tar zxvf openssl-1.1.1w.tar.gz
|
||||
cd openssl-1.1.1w/
|
||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC=$HOST-gcc CXX=$HOST-g++ ./Configure linux-armv4 $CFLAGS --prefix=$PREFIX shared zlib zlib-dynamic -D_GNU_SOURCE -D_BSD_SOURCE --with-zlib-lib=$LOCAL_DIR/lib --with-zlib-include=$LOCAL_DIR/include
|
||||
make CC=$CC
|
||||
make CC=$CC install INSTALLTOP=$DEST OPENSSLDIR=$DEST/ssl
|
||||
#
|
||||
# sqlite3
|
||||
cd ..
|
||||
$DOWNLOADER $SQLITE3
|
||||
tar zxvf sqlite-autoconf-3440200.tar.gz
|
||||
cd sqlite-autoconf-3440200/
|
||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC=$HOST-gcc CXX=$HOST-g++ ./configure --host=$HOST --prefix=$PREFIX --enable-static --enable-shared --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE`
|
||||
make
|
||||
make install
|
||||
#
|
||||
# libssh2
|
||||
cd ..
|
||||
$DOWNLOADER $SSH2
|
||||
tar zxvf libssh2-1.11.0.tar.gz
|
||||
cd libssh2-1.11.0/
|
||||
rm -rf $PREFIX/lib/pkgconfig/libssh2.pc
|
||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --host=$HOST --without-libgcrypt --with-openssl --without-wincng --prefix=$PREFIX --enable-static --disable-shared
|
||||
make
|
||||
make install
|
||||
#
|
||||
#cleaning
|
||||
cd ..
|
||||
rm -rf c-ares*
|
||||
rm -rf sqlite-autoconf*
|
||||
rm -rf zlib-*
|
||||
rm -rf expat-*
|
||||
rm -rf openssl-*
|
||||
rm -rf libssh2-*
|
||||
#
|
||||
echo "finished!"
|
@ -0,0 +1,46 @@
|
||||
#!/bin/bash
|
||||
|
||||
# In this configuration, the following dependent libraries are used:
|
||||
#
|
||||
# * zlib
|
||||
# * c-ares
|
||||
# * expat
|
||||
# * sqlite3
|
||||
# * openSSL
|
||||
# * libssh2
|
||||
|
||||
## CONFIG ##
|
||||
ARCH="armhf"
|
||||
HOST="arm-linux-gnueabihf"
|
||||
PREFIX="/opt/aria2-arm-rbpi"
|
||||
LOCAL_DIR="/opt/aria2-arm-rbpi/build_libs"
|
||||
|
||||
TOOL_BIN_DIR="/opt/aria2-arm-rbpi/tools/arm-bcm2708/gcc-linaro-$HOST-raspbian/bin"
|
||||
PATH=${TOOL_BIN_DIR}:$PATH
|
||||
|
||||
CFLAGS="-march=armv7-a -mtune=cortex-a9"
|
||||
DEST="/opt/aria2-arm-rbpi/build_libs"
|
||||
CC=$HOST-gcc
|
||||
CXX=$HOST-g++
|
||||
LDFLAGS="-L$DEST/lib"
|
||||
CPPFLAGS="-I$DEST/include"
|
||||
CXXFLAGS=$CFLAGS
|
||||
MAKE="make -j`nproc`"
|
||||
CONFIGURE="./configure --prefix=${LOCAL_DIR} --host=$HOST"
|
||||
|
||||
./configure \
|
||||
--host=$HOST \
|
||||
--build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` \
|
||||
--prefix=$PREFIX \
|
||||
--disable-nls \
|
||||
--without-gnutls \
|
||||
--with-openssl \
|
||||
--without-libxml2 \
|
||||
--with-libz --with-libz-prefix=${LOCAL_DIR} \
|
||||
--with-libexpat --with-libexpat-prefix=${LOCAL_DIR} \
|
||||
--with-slite3 --with-sqlite3-prefix=${LOCAL_DIR} \
|
||||
--with-libcares --with-libcares-prefix=${LOCAL_DIR} \
|
||||
--with-ca-bundle='/etc/ssl/certs/ca-certificates.crt' \
|
||||
LDFLAGS="-L$LOCAL_DIR/lib" \
|
||||
PKG_CONFIG_PATH="$LOCAL_DIR/lib/pkgconfig" \
|
||||
ARIA2_STATIC=yes
|
28
build-scripts/gnu-linux-arm-rbpi-config/aria2-arm-rbpi-gnu-linux-cross-tools
Executable file
28
build-scripts/gnu-linux-arm-rbpi-config/aria2-arm-rbpi-gnu-linux-cross-tools
Executable file
@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
#IMPORTANT: Require install make binutils autoconf automake autotools-dev
|
||||
# libtool pkg-config git curl dpkg-dev autopoint libcppunit-dev
|
||||
# libxml2-dev libgcrypt11-dev lzip wget unzip
|
||||
|
||||
#COMPILER AND PATH
|
||||
PREFIX=/opt/aria2-i386/build_libs
|
||||
C_COMPILER="gcc"
|
||||
CXX_COMPILER="g++"
|
||||
|
||||
#CHECK TOOL FOR DOWNLOAD
|
||||
aria2c --help > /dev/null
|
||||
if [ "$?" -eq 0 ] ; then
|
||||
DOWNLOADER="aria2c --check-certificate=false -o tools-master.zip"
|
||||
else
|
||||
DOWNLOADER="wget -c -O tools-master.zip"
|
||||
fi
|
||||
|
||||
#BUILD TOOLS FOR RASPBERRY
|
||||
|
||||
mkdir -p /opt/aria2-arm-rbpi/tools
|
||||
cd /tmp/
|
||||
$DOWNLOADER https://codeload.github.com/raspberrypi/tools/zip/master
|
||||
unzip tools-master.zip
|
||||
mv tools-master/arm-bcm2708 /opt/aria2-arm-rbpi/tools
|
||||
rm -rf tools-master
|
||||
rm tools-master.zip
|
@ -7,92 +7,91 @@
|
||||
# * expat
|
||||
# * sqlite3
|
||||
# * openSSL
|
||||
# * libgcrypt
|
||||
# * libssh2
|
||||
|
||||
#IMPORTANT: Require install gcc-multilib g++-multilib libc6-dev-i386
|
||||
|
||||
#COMPILER AND PATH
|
||||
PREFIX=/opt/aria2-i386/build_libs
|
||||
C_COMPILER="gcc"
|
||||
CXX_COMPILER="g++"
|
||||
|
||||
#CHECK TOOL FOR DOWNLOAD
|
||||
aria2c --help > /dev/null
|
||||
if [ "$?" -eq 0 ] ; then
|
||||
DOWNLOADER="aria2c --check-certificate=false"
|
||||
else
|
||||
DOWNLOADER="wget -c"
|
||||
fi
|
||||
|
||||
## DEPENDENCES ##
|
||||
ZLIB=http://sourceforge.net/projects/libpng/files/zlib/1.2.8/zlib-1.2.8.tar.gz
|
||||
OPENSSL=http://www.openssl.org/source/openssl-1.0.2d.tar.gz
|
||||
EXPAT=http://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0.tar.gz
|
||||
SQLITE3=https://www.sqlite.org/2015/sqlite-autoconf-3081101.tar.gz
|
||||
C_ARES=http://c-ares.haxx.se/download/c-ares-1.10.0.tar.gz
|
||||
SSH2=http://www.libssh2.org/download/libssh2-1.6.0.tar.gz
|
||||
GCRYPT=ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.6.3.tar.gz
|
||||
ZLIB=https://www.zlib.net/zlib-1.3.tar.gz
|
||||
OPENSSL=https://www.openssl.org/source/openssl-1.1.1w.tar.gz
|
||||
EXPAT=https://github.com/libexpat/libexpat/releases/download/R_2_5_0/expat-2.5.0.tar.bz2
|
||||
SQLITE3=https://www.sqlite.org/2023/sqlite-autoconf-3440200.tar.gz
|
||||
C_ARES=https://c-ares.org/download/c-ares-1.24.0.tar.gz
|
||||
SSH2=https://libssh2.org/download/libssh2-1.11.0.tar.gz
|
||||
|
||||
## CONFIG ##
|
||||
BUILD_DIRECTORY=/tmp/
|
||||
|
||||
## BUILD ##
|
||||
cd $BUILD_DIRECTORY
|
||||
export CFLAGS="-m32"
|
||||
export CFLAGS="-m32"
|
||||
export CXXFLAGS="-m32"
|
||||
export LDFLAGS="-m32"
|
||||
#
|
||||
# zlib build
|
||||
wget -c $ZLIB
|
||||
tar zxvf zlib-1.2.8.tar.gz
|
||||
cd zlib-1.2.8/
|
||||
$DOWNLOADER $ZLIB
|
||||
tar zxvf zlib-1.3.tar.gz
|
||||
cd zlib-1.3/
|
||||
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --prefix=$PREFIX --static
|
||||
make
|
||||
make install
|
||||
#
|
||||
#
|
||||
# expat build
|
||||
cd ..
|
||||
wget -c $EXPAT
|
||||
tar zxvf expat-2.1.0.tar.gz
|
||||
cd expat-2.1.0/
|
||||
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --prefix=$PREFIX --enable-static --disable-shared
|
||||
$DOWNLOADER $EXPAT
|
||||
tar jxvf expat-2.5.0.tar.bz2
|
||||
cd expat-2.5.0/
|
||||
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --prefix=$PREFIX --enable-static --enable-shared
|
||||
make
|
||||
make install
|
||||
#
|
||||
# c-ares build
|
||||
cd ..
|
||||
wget -c $C_ARES
|
||||
tar zxvf c-ares-1.10.0.tar.gz
|
||||
cd c-ares-1.10.0/
|
||||
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --prefix=$PREFIX --enable-static --disable-shared
|
||||
$DOWNLOADER $C_ARES
|
||||
tar zxvf c-ares-1.24.0.tar.gz
|
||||
cd c-ares-1.24.0/
|
||||
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --prefix=$PREFIX --disable-tests --enable-static --disable-shared
|
||||
make
|
||||
make install
|
||||
#
|
||||
# Openssl build
|
||||
cd ..
|
||||
wget -c $OPENSSL
|
||||
tar zxvf openssl-1.0.2d.tar.gz
|
||||
cd openssl-1.0.2d/
|
||||
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./Configure --prefix=$PREFIX linux-elf
|
||||
$DOWNLOADER $OPENSSL
|
||||
tar zxvf openssl-1.1.1w.tar.gz
|
||||
cd openssl-1.1.1w/
|
||||
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./Configure --prefix=$PREFIX linux-elf shared
|
||||
make
|
||||
make install
|
||||
#
|
||||
# sqlite3
|
||||
cd ..
|
||||
wget -c $SQLITE3
|
||||
tar zxvf sqlite-autoconf-3081101.tar.gz
|
||||
cd sqlite-autoconf-3081101/
|
||||
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --prefix=$PREFIX --enable-static --disable-shared
|
||||
make
|
||||
make install
|
||||
#
|
||||
# libgcrypt
|
||||
cd ..
|
||||
wget -c $GCRYPT
|
||||
tar zxvf libgcrypt-1.6.3.tar.gz
|
||||
cd libgcrypt-1.6.3/
|
||||
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --host=i386-unknown-linux-gnu --prefix=$PREFIX --enable-static --disable-shared
|
||||
$DOWNLOADER $SQLITE3
|
||||
tar zxvf sqlite-autoconf-3440200.tar.gz
|
||||
cd sqlite-autoconf-3440200/
|
||||
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --prefix=$PREFIX --enable-static --enable-shared
|
||||
make
|
||||
make install
|
||||
#
|
||||
# libssh2
|
||||
cd ..
|
||||
wget -c $SSH2
|
||||
tar zxvf libssh2-1.6.0.tar.gz
|
||||
cd libssh2-1.6.0/
|
||||
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --with-libgcrypt -without-openssl --prefix=$PREFIX --enable-static --disable-shared
|
||||
$DOWNLOADER $SSH2
|
||||
tar zxvf libssh2-1.11.0.tar.gz
|
||||
cd libssh2-1.11.0/
|
||||
rm -rf $PREFIX/lib/pkgconfig/libssh2.pc
|
||||
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --without-libgcrypt --with-openssl --without-wincng --prefix=$PREFIX --enable-static --disable-shared
|
||||
make
|
||||
make install
|
||||
#
|
||||
@ -104,6 +103,5 @@ export LDFLAGS="-m32"
|
||||
rm -rf expat-*
|
||||
rm -rf openssl-*
|
||||
rm -rf libssh2-*
|
||||
rm -rf libgcrypt-*
|
||||
#
|
||||
echo "finished!"
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
#IMPORTANT: Require install gcc-multilib g++-multilib libc6-dev-i386
|
||||
#COMPILER AND PATH
|
||||
PREFIX=/opt/aria2-i386
|
||||
PREFIX=/usr
|
||||
C_COMPILER="gcc"
|
||||
CXX_COMPILER="g++"
|
||||
|
||||
@ -20,6 +20,23 @@ export CFLAGS="-m32"
|
||||
export CXXFLAGS="-m32"
|
||||
export LDFLAGS="-m32"
|
||||
|
||||
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=/opt/aria2-i386/build_libs/lib/pkgconfig/ LD_LIBRARY_PATH=/opt/aria2-i386/build_libs/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --prefix=$PREFIX --without-libxml2 --without-libgcrypt --with-openssl --without-libnettle --without-gnutls --with-libssh2 --without-libgmp --with-sqlite3 --with-ca-bundle='/etc/ssl/certs/ca-certificates.crt' ARIA2_STATIC=yes --enable-shared=no
|
||||
|
||||
|
||||
CFLAGS="-m32" \
|
||||
CXXFLAGS="-m32" \
|
||||
LDFLAGS="-m32" \
|
||||
PKG_CONFIG_PATH=/opt/aria2-i386/build_libs/lib/pkgconfig/ \
|
||||
LD_LIBRARY_PATH=/opt/aria2-i386/build_libs/lib/ \
|
||||
CC="$C_COMPILER -m32" \
|
||||
CXX="$CXX_COMPILER -m32" \
|
||||
./configure \
|
||||
--prefix=$PREFIX \
|
||||
--without-libxml2 \
|
||||
--without-libgcrypt \
|
||||
--with-openssl \
|
||||
--without-libnettle \
|
||||
--without-gnutls \
|
||||
--with-libssh2 \
|
||||
--without-libgmp \
|
||||
--with-sqlite3 \
|
||||
--with-ca-bundle='/etc/ssl/certs/ca-certificates.crt' \
|
||||
ARIA2_STATIC=yes \
|
||||
--enable-shared=no
|
||||
|
@ -7,22 +7,30 @@
|
||||
# * expat
|
||||
# * sqlite3
|
||||
# * openSSL
|
||||
# * libgcrypt
|
||||
# * libssh2
|
||||
|
||||
#IMPORTANT: Require install gcc make
|
||||
|
||||
#COMPILER AND PATH
|
||||
PREFIX=/opt/aria2/build_libs
|
||||
C_COMPILER="gcc"
|
||||
CXX_COMPILER="g++"
|
||||
|
||||
#CHECK TOOL FOR DOWNLOAD
|
||||
aria2c --help > /dev/null
|
||||
if [ "$?" -eq 0 ] ; then
|
||||
DOWNLOADER="aria2c --check-certificate=false"
|
||||
else
|
||||
DOWNLOADER="wget -c"
|
||||
fi
|
||||
|
||||
## DEPENDENCES ##
|
||||
ZLIB=http://sourceforge.net/projects/libpng/files/zlib/1.2.8/zlib-1.2.8.tar.gz
|
||||
OPENSSL=http://www.openssl.org/source/openssl-1.0.2d.tar.gz
|
||||
EXPAT=http://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0.tar.gz
|
||||
SQLITE3=https://www.sqlite.org/2015/sqlite-autoconf-3081101.tar.gz
|
||||
C_ARES=http://c-ares.haxx.se/download/c-ares-1.10.0.tar.gz
|
||||
SSH2=http://www.libssh2.org/download/libssh2-1.6.0.tar.gz
|
||||
GCRYPT=ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.6.3.tar.gz
|
||||
ZLIB=https://www.zlib.net/zlib-1.3.tar.gz
|
||||
OPENSSL=https://www.openssl.org/source/openssl-1.1.1w.tar.gz
|
||||
EXPAT=https://github.com/libexpat/libexpat/releases/download/R_2_5_0/expat-2.5.0.tar.bz2
|
||||
SQLITE3=https://www.sqlite.org/2023/sqlite-autoconf-3440200.tar.gz
|
||||
C_ARES=https://c-ares.org/download/c-ares-1.24.0.tar.gz
|
||||
SSH2=https://libssh2.org/download/libssh2-1.11.0.tar.gz
|
||||
|
||||
## CONFIG ##
|
||||
BUILD_DIRECTORY=/tmp/
|
||||
@ -31,64 +39,56 @@ BUILD_DIRECTORY=/tmp/
|
||||
cd $BUILD_DIRECTORY
|
||||
#
|
||||
# zlib build
|
||||
wget -c $ZLIB
|
||||
tar zxvf zlib-1.2.8.tar.gz
|
||||
cd zlib-1.2.8/
|
||||
$DOWNLOADER $ZLIB
|
||||
tar zxvf zlib-1.3.tar.gz
|
||||
cd zlib-1.3/
|
||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --static
|
||||
make
|
||||
make install
|
||||
#
|
||||
#
|
||||
# expat build
|
||||
cd ..
|
||||
wget -c $EXPAT
|
||||
tar zxvf expat-2.1.0.tar.gz
|
||||
cd expat-2.1.0/
|
||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --enable-static --disable-shared
|
||||
$DOWNLOADER $EXPAT
|
||||
tar jxvf expat-2.5.0.tar.bz2
|
||||
cd expat-2.5.0/
|
||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --enable-static --enable-shared
|
||||
make
|
||||
make install
|
||||
#
|
||||
# c-ares build
|
||||
cd ..
|
||||
wget -c $C_ARES
|
||||
tar zxvf c-ares-1.10.0.tar.gz
|
||||
cd c-ares-1.10.0/
|
||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --enable-static --disable-shared
|
||||
$DOWNLOADER $C_ARES
|
||||
tar zxvf c-ares-1.24.0.tar.gz
|
||||
cd c-ares-1.24.0/
|
||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --disable-tests --enable-static --disable-shared
|
||||
make
|
||||
make install
|
||||
#
|
||||
# Openssl build
|
||||
cd ..
|
||||
wget -c $OPENSSL
|
||||
tar zxvf openssl-1.0.2d.tar.gz
|
||||
cd openssl-1.0.2d/
|
||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./Configure --prefix=$PREFIX linux-x86_64
|
||||
$DOWNLOADER $OPENSSL
|
||||
tar zxvf openssl-1.1.1w.tar.gz
|
||||
cd openssl-1.1.1w/
|
||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./Configure --prefix=$PREFIX linux-x86_64 shared
|
||||
make
|
||||
make install
|
||||
#
|
||||
# sqlite3
|
||||
cd ..
|
||||
wget -c $SQLITE3
|
||||
tar zxvf sqlite-autoconf-3081101.tar.gz
|
||||
cd sqlite-autoconf-3081101/
|
||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --enable-static --disable-shared
|
||||
make
|
||||
make install
|
||||
#
|
||||
# libgcrypt
|
||||
cd ..
|
||||
wget -c $GCRYPT
|
||||
tar zxvf libgcrypt-1.6.3.tar.gz
|
||||
cd libgcrypt-1.6.3/
|
||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --enable-static --disable-shared
|
||||
$DOWNLOADER $SQLITE3
|
||||
tar zxvf sqlite-autoconf-3440200.tar.gz
|
||||
cd sqlite-autoconf-3440200/
|
||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --enable-static --enable-shared
|
||||
make
|
||||
make install
|
||||
#
|
||||
# libssh2
|
||||
cd ..
|
||||
wget -c $SSH2
|
||||
tar zxvf libssh2-1.6.0.tar.gz
|
||||
cd libssh2-1.6.0/
|
||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --with-libgcrypt -without-openssl --prefix=$PREFIX --enable-static --disable-shared
|
||||
$DOWNLOADER $SSH2
|
||||
tar zxvf libssh2-1.11.0.tar.gz
|
||||
cd libssh2-1.11.0/
|
||||
rm -rf $PREFIX/lib/pkgconfig/libssh2.pc
|
||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --without-libgcrypt --with-openssl --without-wincng --prefix=$PREFIX --enable-static --disable-shared
|
||||
make
|
||||
make install
|
||||
#
|
||||
@ -100,6 +100,5 @@ cd $BUILD_DIRECTORY
|
||||
rm -rf expat-*
|
||||
rm -rf openssl-*
|
||||
rm -rf libssh2-*
|
||||
rm -rf libgcrypt-*
|
||||
#
|
||||
echo "finished!"
|
||||
|
@ -10,11 +10,25 @@
|
||||
# * libssh2
|
||||
|
||||
#COMPILER AND PATH
|
||||
PREFIX=/opt/aria2
|
||||
PREFIX=/usr
|
||||
C_COMPILER="gcc"
|
||||
CXX_COMPILER="g++"
|
||||
|
||||
## BUILD ##
|
||||
PKG_CONFIG_PATH=/opt/aria2/build_libs/lib/pkgconfig/ LD_LIBRARY_PATH=/opt/aria2/build_libs/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --without-libxml2 --without-libgcrypt --with-openssl --without-libnettle --without-gnutls --without-libgmp --with-libssh2 --with-sqlite3 --with-ca-bundle='/etc/ssl/certs/ca-certificates.crt' ARIA2_STATIC=yes --enable-shared=no
|
||||
|
||||
|
||||
PKG_CONFIG_PATH=/opt/aria2/build_libs/lib/pkgconfig/ \
|
||||
LD_LIBRARY_PATH=/opt/aria2/build_libs/lib/ \
|
||||
CC="$C_COMPILER" \
|
||||
CXX="$CXX_COMPILER" \
|
||||
./configure \
|
||||
--prefix=$PREFIX \
|
||||
--without-libxml2 \
|
||||
--without-libgcrypt \
|
||||
--with-openssl \
|
||||
--without-libnettle \
|
||||
--without-gnutls \
|
||||
--without-libgmp \
|
||||
--with-libssh2 \
|
||||
--with-sqlite3 \
|
||||
--with-ca-bundle='/etc/ssl/certs/ca-certificates.crt' \
|
||||
ARIA2_STATIC=yes \
|
||||
--enable-shared=no
|
||||
|
@ -9,15 +9,25 @@
|
||||
# * openSSL
|
||||
# * libssh2
|
||||
|
||||
#IMPORTANT: Require install gcc-mingw-w64-i686 g++-mingw-w64-i686
|
||||
# cp -rfv /usr/lib32/libdl.a /usr/i686-w64-mingw32/lib/libdl.a
|
||||
|
||||
#CHECK TOOL FOR DOWNLOAD
|
||||
aria2c --help > /dev/null
|
||||
if [ "$?" -eq 0 ] ; then
|
||||
DOWNLOADER="aria2c --check-certificate=false"
|
||||
else
|
||||
DOWNLOADER="wget -c"
|
||||
fi
|
||||
|
||||
## DEPENDENCES ##
|
||||
ZLIB=http://sourceforge.net/projects/libpng/files/zlib/1.2.8/zlib-1.2.8.tar.gz
|
||||
OPENSSL=http://www.openssl.org/source/openssl-1.0.2d.tar.gz
|
||||
#GMPLIB=https://gmplib.org/download/gmp/gmp-6.0.0a.tar.bz2
|
||||
EXPAT=http://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0.tar.gz
|
||||
SQLITE3=https://www.sqlite.org/2015/sqlite-autoconf-3081101.tar.gz
|
||||
C_ARES=http://c-ares.haxx.se/download/c-ares-1.10.0.tar.gz
|
||||
#CPPUNIT=http://dev-www.libreoffice.org/src/cppunit-1.13.2.tar.gz
|
||||
SSH2=http://www.libssh2.org/download/libssh2-1.6.0.tar.gz
|
||||
ZLIB=https://www.zlib.net/zlib-1.3.tar.gz
|
||||
OPENSSL=https://www.openssl.org/source/openssl-1.1.1w.tar.gz
|
||||
EXPAT=https://github.com/libexpat/libexpat/releases/download/R_2_5_0/expat-2.5.0.tar.bz2
|
||||
SQLITE3=https://www.sqlite.org/2023/sqlite-autoconf-3440200.tar.gz
|
||||
C_ARES=https://c-ares.org/download/c-ares-1.24.0.tar.gz
|
||||
SSH2=https://libssh2.org/download/libssh2-1.11.0.tar.gz
|
||||
GPG_ERROR=https://www.gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.47.tar.bz2
|
||||
|
||||
## CONFIG ##
|
||||
BUILD_DIRECTORY=/tmp/
|
||||
@ -28,73 +38,66 @@ PREFIX=/usr/i686-w64-mingw32
|
||||
cd $BUILD_DIRECTORY
|
||||
#
|
||||
# zlib build
|
||||
wget -c $ZLIB
|
||||
tar zxvf zlib-1.2.8.tar.gz
|
||||
cd zlib-1.2.8/
|
||||
$DOWNLOADER $ZLIB
|
||||
tar zxvf zlib-1.3.tar.gz
|
||||
cd zlib-1.3/
|
||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --static
|
||||
make
|
||||
make install
|
||||
#
|
||||
#
|
||||
# expat build
|
||||
cd ..
|
||||
wget -c $EXPAT
|
||||
tar zxvf expat-2.1.0.tar.gz
|
||||
cd expat-2.1.0/
|
||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
|
||||
$DOWNLOADER $EXPAT
|
||||
tar jxvf expat-2.5.0.tar.bz2
|
||||
cd expat-2.5.0/
|
||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --enable-shared
|
||||
make
|
||||
make install
|
||||
#
|
||||
# cppunit build
|
||||
#cd ..
|
||||
#wget -c $CPPUNIT
|
||||
#tar zxvf cppunit-1.13.2.tar.gz
|
||||
#cd cppunit-1.13.2/
|
||||
#CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
|
||||
#make
|
||||
#make install
|
||||
#
|
||||
# c-ares build
|
||||
cd ..
|
||||
wget -c $C_ARES
|
||||
tar zxvf c-ares-1.10.0.tar.gz
|
||||
cd c-ares-1.10.0/
|
||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
|
||||
$DOWNLOADER $C_ARES
|
||||
tar zxvf c-ares-1.24.0.tar.gz
|
||||
cd c-ares-1.24.0/
|
||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --disable-tests --enable-static --disable-shared
|
||||
make
|
||||
make install
|
||||
#
|
||||
# GMPlib build
|
||||
#cd ..
|
||||
#wget -c $GMPLIB
|
||||
#tar jxvf gmp-6.0.0a.tar.bz2
|
||||
#cd gmp-6.0.0/
|
||||
#CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
|
||||
#make
|
||||
#make install
|
||||
#
|
||||
# Openssl build
|
||||
cd ..
|
||||
wget -c $OPENSSL
|
||||
tar zxvf openssl-1.0.2d.tar.gz
|
||||
cd openssl-1.0.2d/
|
||||
./Configure mingw --cross-compile-prefix=$HOST- --prefix=$PREFIX
|
||||
$DOWNLOADER $OPENSSL
|
||||
tar zxvf openssl-1.1.1w.tar.gz
|
||||
cd openssl-1.1.1w/
|
||||
./Configure mingw --cross-compile-prefix=$HOST- --prefix=$PREFIX shared
|
||||
make
|
||||
make install
|
||||
#
|
||||
# sqlite3
|
||||
cd ..
|
||||
wget -c $SQLITE3
|
||||
tar zxvf sqlite-autoconf-3081101.tar.gz
|
||||
cd sqlite-autoconf-3081101/
|
||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
|
||||
$DOWNLOADER $SQLITE3
|
||||
tar zxvf sqlite-autoconf-3440200.tar.gz
|
||||
cd sqlite-autoconf-3440200/
|
||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --enable-shared
|
||||
make
|
||||
make install
|
||||
#
|
||||
# libssh2
|
||||
cd ..
|
||||
wget -c $SSH2
|
||||
tar zxvf libssh2-1.6.0.tar.gz
|
||||
cd libssh2-1.6.0/
|
||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
|
||||
$DOWNLOADER $SSH2
|
||||
tar zxvf libssh2-1.11.0.tar.gz
|
||||
cd libssh2-1.11.0/
|
||||
rm -rf $PREFIX/lib/pkgconfig/libssh2.pc
|
||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --without-libgcrypt --with-openssl --without-wincng --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
|
||||
make
|
||||
make install
|
||||
#
|
||||
# gpg-error
|
||||
cd ..
|
||||
$DOWNLOADER $GPG_ERROR
|
||||
tar jxvf libgpg-error-1.47.tar.bz2
|
||||
cd libgpg-error-1.47/
|
||||
rm -rf $PREFIX/lib/pkgconfig/gpg-error.pc
|
||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --host=$HOST --prefix=$PREFIX --enable-static
|
||||
make
|
||||
make install
|
||||
#
|
||||
@ -104,9 +107,9 @@ cd $BUILD_DIRECTORY
|
||||
rm -rf sqlite-autoconf*
|
||||
rm -rf zlib-*
|
||||
rm -rf expat-*
|
||||
rm -rf gmp-*
|
||||
rm -rf openssl-*
|
||||
rm -rf libssh2-*
|
||||
rm -rf cppunit-*
|
||||
rm -rf libgpg-error*
|
||||
|
||||
#
|
||||
echo "finished!"
|
||||
|
||||
|
@ -17,7 +17,6 @@ PREFIX=/usr/i686-w64-mingw32
|
||||
--prefix=$PREFIX \
|
||||
--without-included-gettext \
|
||||
--disable-nls \
|
||||
--with-libcares \
|
||||
--without-gnutls \
|
||||
--without-wintls \
|
||||
--with-openssl \
|
||||
|
@ -1,35 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# In this configuration, the following dependent libraries are used:
|
||||
#
|
||||
# * zlib
|
||||
# * c-ares
|
||||
# * expat
|
||||
# * sqlite3
|
||||
# * openSSL
|
||||
|
||||
HOST=i686-w64-mingw32
|
||||
PREFIX=/usr/i686-w64-mingw32
|
||||
|
||||
./configure \
|
||||
--host=$HOST \
|
||||
--prefix=$PREFIX \
|
||||
--without-included-gettext \
|
||||
--disable-nls \
|
||||
--with-libcares \
|
||||
--without-gnutls \
|
||||
--without-wintls \
|
||||
--with-openssl \
|
||||
--with-sqlite3 \
|
||||
--without-libxml2 \
|
||||
--with-libexpat \
|
||||
--with-libz \
|
||||
--without-libgmp \
|
||||
--without-libssh2 \
|
||||
--without-libgcrypt \
|
||||
--without-libnettle \
|
||||
--with-cppunit-prefix=$PREFIX \
|
||||
ARIA2_STATIC=yes \
|
||||
CPPFLAGS="-I$PREFIX/include" \
|
||||
LDFLAGS="-L$PREFIX/lib" \
|
||||
PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig"
|
@ -9,15 +9,25 @@
|
||||
# * openSSL
|
||||
# * libssh2
|
||||
|
||||
#IMPORTANT: Require install gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64
|
||||
# cp -rfv /usr/lib/x86_64-linux-gnu/libdl.a /usr/x86_64-w64-mingw32/lib/
|
||||
|
||||
#CHECK TOOL FOR DOWNLOAD
|
||||
aria2c --help > /dev/null
|
||||
if [ "$?" -eq 0 ] ; then
|
||||
DOWNLOADER="aria2c --check-certificate=false"
|
||||
else
|
||||
DOWNLOADER="wget -c"
|
||||
fi
|
||||
|
||||
## DEPENDENCES ##
|
||||
ZLIB=http://sourceforge.net/projects/libpng/files/zlib/1.2.8/zlib-1.2.8.tar.gz
|
||||
OPENSSL=http://www.openssl.org/source/openssl-1.0.2d.tar.gz
|
||||
#GMPLIB=https://gmplib.org/download/gmp/gmp-6.0.0a.tar.bz2
|
||||
EXPAT=http://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0.tar.gz
|
||||
SQLITE3=https://www.sqlite.org/2015/sqlite-autoconf-3081101.tar.gz
|
||||
C_ARES=http://c-ares.haxx.se/download/c-ares-1.10.0.tar.gz
|
||||
#CPPUNIT=http://dev-www.libreoffice.org/src/cppunit-1.13.2.tar.gz
|
||||
SSH2=http://www.libssh2.org/download/libssh2-1.6.0.tar.gz
|
||||
ZLIB=https://www.zlib.net/zlib-1.3.tar.gz
|
||||
OPENSSL=https://www.openssl.org/source/openssl-1.1.1w.tar.gz
|
||||
EXPAT=https://github.com/libexpat/libexpat/releases/download/R_2_5_0/expat-2.5.0.tar.bz2
|
||||
SQLITE3=https://www.sqlite.org/2023/sqlite-autoconf-3440200.tar.gz
|
||||
C_ARES=https://c-ares.org/download/c-ares-1.24.0.tar.gz
|
||||
SSH2=https://libssh2.org/download/libssh2-1.11.0.tar.gz
|
||||
GPG_ERROR=https://www.gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.47.tar.bz2
|
||||
|
||||
## CONFIG ##
|
||||
BUILD_DIRECTORY=/tmp/
|
||||
@ -28,75 +38,68 @@ PREFIX=/usr/x86_64-w64-mingw32
|
||||
cd $BUILD_DIRECTORY
|
||||
#
|
||||
# zlib build
|
||||
wget -c $ZLIB
|
||||
tar zxvf zlib-1.2.8.tar.gz
|
||||
cd zlib-1.2.8/
|
||||
$DOWNLOADER $ZLIB
|
||||
tar zxvf zlib-1.3.tar.gz
|
||||
cd zlib-1.3/
|
||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --static
|
||||
make
|
||||
make install
|
||||
#
|
||||
#
|
||||
# expat build
|
||||
cd ..
|
||||
wget -c $EXPAT
|
||||
tar zxvf expat-2.1.0.tar.gz
|
||||
cd expat-2.1.0/
|
||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
|
||||
$DOWNLOADER $EXPAT
|
||||
tar jxvf expat-2.5.0.tar.bz2
|
||||
cd expat-2.5.0/
|
||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --enable-shared
|
||||
make
|
||||
make install
|
||||
#
|
||||
# cppunit build
|
||||
#cd ..
|
||||
#wget -c $CPPUNIT
|
||||
#tar zxvf cppunit-1.13.2.tar.gz
|
||||
#cd cppunit-1.13.2/
|
||||
#CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
|
||||
#make
|
||||
#make install
|
||||
#
|
||||
# c-ares build
|
||||
cd ..
|
||||
wget -c $C_ARES
|
||||
tar zxvf c-ares-1.10.0.tar.gz
|
||||
cd c-ares-1.10.0/
|
||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
|
||||
$DOWNLOADER $C_ARES
|
||||
tar zxvf c-ares-1.24.0.tar.gz
|
||||
cd c-ares-1.24.0/
|
||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --disable-tests --enable-static --disable-shared
|
||||
make
|
||||
make install
|
||||
#
|
||||
# GMPlib build
|
||||
#cd ..
|
||||
#wget -c $GMPLIB
|
||||
#tar jxvf gmp-6.0.0a.tar.bz2
|
||||
#cd gmp-6.0.0/
|
||||
#CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
|
||||
#make
|
||||
#make install
|
||||
#
|
||||
# Openssl build
|
||||
cd ..
|
||||
wget -c $OPENSSL
|
||||
tar zxvf openssl-1.0.2d.tar.gz
|
||||
cd openssl-1.0.2d/
|
||||
./Configure mingw64 --cross-compile-prefix=$HOST- --prefix=$PREFIX
|
||||
$DOWNLOADER $OPENSSL
|
||||
tar zxvf openssl-1.1.1w.tar.gz
|
||||
cd openssl-1.1.1w/
|
||||
./Configure mingw64 --cross-compile-prefix=$HOST- --prefix=$PREFIX shared
|
||||
make
|
||||
make install
|
||||
#
|
||||
# sqlite3
|
||||
cd ..
|
||||
wget -c $SQLITE3
|
||||
tar zxvf sqlite-autoconf-3081101.tar.gz
|
||||
cd sqlite-autoconf-3081101/
|
||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
|
||||
$DOWNLOADER $SQLITE3
|
||||
tar zxvf sqlite-autoconf-3440200.tar.gz
|
||||
cd sqlite-autoconf-3440200/
|
||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --enable-shared
|
||||
make
|
||||
make install
|
||||
#
|
||||
# libssh2
|
||||
cd ..
|
||||
wget -c $SSH2
|
||||
tar zxvf libssh2-1.6.0.tar.gz
|
||||
cd libssh2-1.6.0/
|
||||
$DOWNLOADER $SSH2
|
||||
tar zxvf libssh2-1.11.0.tar.gz
|
||||
cd libssh2-1.11.0/
|
||||
rm -rf $PREFIX/lib/pkgconfig/libssh2.pc
|
||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
|
||||
make
|
||||
make install
|
||||
#
|
||||
# gpg-error
|
||||
cd ..
|
||||
$DOWNLOADER $GPG_ERROR
|
||||
tar jxvf libgpg-error-1.47.tar.bz2
|
||||
cd libgpg-error-1.47/
|
||||
rm -rf $PREFIX/lib/pkgconfig/gpg-error.pc
|
||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --host=$HOST --prefix=$PREFIX --enable-static
|
||||
make
|
||||
make install
|
||||
#
|
||||
#cleaning
|
||||
cd ..
|
||||
@ -104,8 +107,8 @@ cd $BUILD_DIRECTORY
|
||||
rm -rf sqlite-autoconf*
|
||||
rm -rf zlib-*
|
||||
rm -rf expat-*
|
||||
rm -rf gmp-*
|
||||
rm -rf openssl-*
|
||||
rm -rf libssh2-*
|
||||
rm -rf cppunit-*
|
||||
rm -rf libgpg-error*
|
||||
#
|
||||
echo "finished!"
|
||||
|
@ -17,7 +17,6 @@ PREFIX=/usr/x86_64-w64-mingw32
|
||||
--prefix=$PREFIX \
|
||||
--without-included-gettext \
|
||||
--disable-nls \
|
||||
--with-libcares \
|
||||
--without-gnutls \
|
||||
--without-wintls \
|
||||
--with-openssl \
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,252 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# aria2 script for bittorrent downloads.
|
||||
# http://aria2.sourceforge.net/
|
||||
# Created by clamsawd (clamsawd@openmailbox.org)
|
||||
# Licensed by GPL v.2
|
||||
# Last update: 03-10-2015
|
||||
# --------------------------------------
|
||||
VERSION=7.1
|
||||
|
||||
#Check if exist .aria2 folder.
|
||||
if [ -d $HOME/.aria2 ] ; then
|
||||
echo "$HOME/.aria2 exists"
|
||||
else
|
||||
mkdir $HOME/.aria2
|
||||
fi
|
||||
|
||||
#Check if exist config file and create it.
|
||||
CONFIG_FILE=$HOME/.aria2/aria2bt.conf
|
||||
|
||||
if [ -f $CONFIG_FILE ] ; then
|
||||
source $CONFIG_FILE
|
||||
else
|
||||
echo "# DEFAULT ARIA2BT SCRIPT CONFIG." > $CONFIG_FILE
|
||||
echo "" >> $CONFIG_FILE
|
||||
echo "TORRENT_FOLDER=/opt/Torrent" >> $CONFIG_FILE
|
||||
echo "TORRENT_FILES=/opt/Torrent/Files" >> $CONFIG_FILE
|
||||
echo "MAX_SPEED_DOWNLOAD=300K" >> $CONFIG_FILE
|
||||
echo "MAX_SPEED_UPLOAD=5K" >> $CONFIG_FILE
|
||||
echo "BT_MAX_PEERS=25" >> $CONFIG_FILE
|
||||
echo "MAX_DOWNLOADS=25" >> $CONFIG_FILE
|
||||
echo "ENCRYPTION=yes" >> $CONFIG_FILE
|
||||
echo "RPC=yes" >> $CONFIG_FILE
|
||||
echo "RPC_PORT=6800" >> $CONFIG_FILE
|
||||
echo "SEEDING=yes" >> $CONFIG_FILE
|
||||
echo "SEED_RATIO=0.0" >> $CONFIG_FILE
|
||||
echo "DEBUG=no" >> $CONFIG_FILE
|
||||
echo "DEBUG_LEVEL=info" >> $CONFIG_FILE
|
||||
echo "FILE_ALLOCATION=none" >> $CONFIG_FILE
|
||||
echo "CA_CERTIFICATE=no" >> $CONFIG_FILE
|
||||
echo "CA_CERTIFICATE_FILE=/etc/ssl/certs/ca-certificates.crt" >> $CONFIG_FILE
|
||||
source $CONFIG_FILE
|
||||
fi
|
||||
|
||||
#VARIABLES
|
||||
SPEED_OPTIONS="--max-overall-download-limit=$MAX_SPEED_DOWNLOAD --max-overall-upload-limit=$MAX_SPEED_UPLOAD"
|
||||
PEER_OPTIONS="--bt-max-peers=$BT_MAX_PEERS"
|
||||
if [ "$CA_CERTIFICATE" == "no" ] ; then
|
||||
OTHER_OPTIONS="-V -j $MAX_DOWNLOADS --file-allocation=$FILE_ALLOCATION --auto-file-renaming=false --allow-overwrite=false"
|
||||
elif [ "$CA_CERTIFICATE" == "yes" ] ; then
|
||||
OTHER_OPTIONS="-V -j $MAX_DOWNLOADS --file-allocation=$FILE_ALLOCATION --auto-file-renaming=false --allow-overwrite=false --ca-certificate=$CA_CERTIFICATE_FILE"
|
||||
fi
|
||||
|
||||
#check aria2 on system.
|
||||
aria2c -h > /dev/null
|
||||
if [ "$?" -eq 0 ] ; then
|
||||
echo "Everything OK"
|
||||
else
|
||||
clear
|
||||
echo ""
|
||||
echo "Error: 'aria2' is not installed!"
|
||||
echo "Help: http://aria2.sourceforge.net/"
|
||||
echo ""
|
||||
exit
|
||||
fi
|
||||
|
||||
#Define command from variables of config file.
|
||||
if [ "$ENCRYPTION" == "no" ] ; then
|
||||
TORRENT_OPTIONS="--bt-require-crypto=false"
|
||||
elif [ "$ENCRYPTION" == "yes" ] ; then
|
||||
TORRENT_OPTIONS="--bt-min-crypto-level=arc4 --bt-require-crypto=true"
|
||||
fi
|
||||
|
||||
if [ "$RPC" == "no" ] ; then
|
||||
RPC_OPTIONS="--rpc-listen-all=false"
|
||||
elif [ "$RPC" == "yes" ] ; then
|
||||
RPC_OPTIONS="--enable-rpc --rpc-listen-all=true --rpc-allow-origin-all --rpc-listen-port=$RPC_PORT"
|
||||
fi
|
||||
|
||||
if [ "$SEEDING" == "no" ] ; then
|
||||
SEED_OPTIONS="--seed-time=0"
|
||||
elif [ "$SEEDING" == "yes" ] ; then
|
||||
SEED_OPTIONS="--seed-ratio=$SEED_RATIO"
|
||||
fi
|
||||
|
||||
if [ "$DEBUG" == "no" ] ; then
|
||||
ALL_OPTIONS="$TORRENT_OPTIONS $SPEED_OPTIONS $PEER_OPTIONS $RPC_OPTIONS $SEED_OPTIONS"
|
||||
elif [ "$DEBUG" == "yes" ] ; then
|
||||
ALL_OPTIONS="$TORRENT_OPTIONS $SPEED_OPTIONS $PEER_OPTIONS $RPC_OPTIONS $SEED_OPTIONS --console-log-level=$DEBUG_LEVEL"
|
||||
fi
|
||||
|
||||
#Show help
|
||||
if [ "$1" == "--help" ] ; then
|
||||
clear
|
||||
echo ""
|
||||
echo "** aria2 bittorrent script v.$VERSION **"
|
||||
echo ""
|
||||
echo "USAGE:"
|
||||
echo ""
|
||||
echo "$0 [parameter | file.torrent]"
|
||||
echo ""
|
||||
echo "AVAILABLE PARAMETERS:"
|
||||
echo ""
|
||||
echo "--help - Show help"
|
||||
echo "--now - Run immediately the script without menu"
|
||||
echo ""
|
||||
echo "Note: If you run the script without parameters,"
|
||||
echo " this will show a menu with all options."
|
||||
echo ""
|
||||
exit
|
||||
fi
|
||||
|
||||
#Run immediately the script without menu
|
||||
if [ "$1" == "--now" ] ; then
|
||||
echo ""
|
||||
echo "** aria2 bittorrent script v.$VERSION **"
|
||||
echo ""
|
||||
aria2c $OTHER_OPTIONS "$TORRENT_FILES"/*.torrent $ALL_OPTIONS -d "$TORRENT_FOLDER"
|
||||
fi
|
||||
|
||||
#Check input file.
|
||||
if [ -f "$1" ] ; then
|
||||
|
||||
CHECK_TORRENT=`echo $1 | grep ".torrent"`
|
||||
if [ "$CHECK_TORRENT" == "$1" ] ; then
|
||||
clear
|
||||
echo ""
|
||||
echo "* Detected torrent file!"
|
||||
echo ""
|
||||
echo "- Do you want to copy this file in '$TORRENT_FILES' directory"
|
||||
echo -n "and run aria2? (y/n): " ; read LOAD
|
||||
|
||||
if [ "$LOAD" == "y" ] ; then
|
||||
cp "$1" "$TORRENT_FILES"
|
||||
cp -rf "$1" "$TORRENT_FILES"
|
||||
elif [ "$LOAD" == "n" ] ; then
|
||||
echo "Exiting..."
|
||||
exit
|
||||
else
|
||||
cp "$1" "$TORRENT_FILES"
|
||||
cp -rf "$1" "$TORRENT_FILES"
|
||||
fi
|
||||
else
|
||||
clear
|
||||
echo ""
|
||||
echo "This file is not a torrent!"
|
||||
echo ""
|
||||
echo -n "Press 'ENTER' to exit "
|
||||
read notoption
|
||||
echo "Exiting..."
|
||||
exit
|
||||
fi
|
||||
|
||||
else
|
||||
echo "No input file"
|
||||
fi
|
||||
|
||||
MENU_VARIABLE=1
|
||||
while [ $MENU_VARIABLE -le 2 ] ; do
|
||||
#Show menu
|
||||
clear
|
||||
echo ""
|
||||
echo "** aria2 bittorrent script v.$VERSION **"
|
||||
echo "- http://aria2.sourceforge.net/"
|
||||
echo ""
|
||||
echo "- aria2 config:"
|
||||
echo ""
|
||||
echo " * Config.file: $CONFIG_FILE"
|
||||
echo ""
|
||||
echo " * Download directory: $TORRENT_FOLDER"
|
||||
echo " * Torrent directory: $TORRENT_FILES/*.torrent"
|
||||
echo " * Download speed: $MAX_SPEED_DOWNLOAD | Upload speed: $MAX_SPEED_UPLOAD"
|
||||
echo " * Encryption: $ENCRYPTION | RPC: $RPC (Port: $RPC_PORT)"
|
||||
echo " * Max.peers: $BT_MAX_PEERS | Max.downloads: $MAX_DOWNLOADS"
|
||||
echo " * Seeding: $SEEDING | Seed ratio: $SEED_RATIO"
|
||||
echo " * Debugging: $DEBUG | Debug.level: $DEBUG_LEVEL"
|
||||
echo " * CA-Certificate: $CA_CERTIFICATE ($CA_CERTIFICATE_FILE)"
|
||||
echo " * File allocation: $FILE_ALLOCATION"
|
||||
echo ""
|
||||
echo -n "- run(r) | list(l) | magnet(m) | urls(u) | quit(q): " ; read RUN
|
||||
|
||||
if [ "$RUN" == "r" ] ; then
|
||||
|
||||
clear
|
||||
aria2c $OTHER_OPTIONS "$TORRENT_FILES"/*.torrent $ALL_OPTIONS -d "$TORRENT_FOLDER"
|
||||
echo "Exiting..."
|
||||
|
||||
elif [ "$RUN" == "q" ] ; then
|
||||
|
||||
echo "Exiting..."
|
||||
MENU_VARIABLE=3
|
||||
|
||||
elif [ "$RUN" == "l" ] ; then
|
||||
|
||||
clear
|
||||
echo ""
|
||||
echo "* List of torrents that will be loaded:"
|
||||
echo ""
|
||||
ls "$TORRENT_FILES" | grep ".torrent"
|
||||
echo ""
|
||||
echo "* List of incomplete downloads:"
|
||||
echo ""
|
||||
ls "$TORRENT_FOLDER" | grep ".aria2"
|
||||
echo ""
|
||||
echo -n "Press 'ENTER' to return "
|
||||
read notoption
|
||||
|
||||
elif [ "$RUN" == "m" ] ; then
|
||||
|
||||
clear
|
||||
echo ""
|
||||
echo "* Make torrent file from Magnet-link"
|
||||
echo ""
|
||||
echo -n "- Type the Magnet-link: " ; read MAGNET
|
||||
echo ""
|
||||
aria2c --bt-metadata-only=true --bt-save-metadata=true "$MAGNET" -d "$TORRENT_FILES"
|
||||
echo ""
|
||||
echo -n "Press 'ENTER' to return "
|
||||
read notoption
|
||||
|
||||
elif [ "$RUN" == "u" ] ; then
|
||||
|
||||
URLS_FILE="$TORRENT_FILES"/urls.txt
|
||||
if [ -f "$URLS_FILE" ] ; then
|
||||
echo "$URLS_FILE" detected
|
||||
else
|
||||
echo -n > "$URLS_FILE"
|
||||
fi
|
||||
clear
|
||||
echo ""
|
||||
echo "* List URLs ($URLS_FILE):"
|
||||
echo ""
|
||||
cat "$URLS_FILE"
|
||||
echo ""
|
||||
echo -n "- Load URLs? (y/n): " ; read LOAD_URLS
|
||||
if [ "$LOAD_URLS" == "y" ] ; then
|
||||
clear
|
||||
aria2c $OTHER_OPTIONS -i "$URLS_FILE" $ALL_OPTIONS -d "$TORRENT_FOLDER"
|
||||
echo "Exiting..."
|
||||
else
|
||||
echo "Returning..."
|
||||
fi
|
||||
|
||||
else
|
||||
clear
|
||||
echo ""
|
||||
echo "Invalid option, please, choose any available option"
|
||||
echo ""
|
||||
echo -n "Press 'ENTER' to return "
|
||||
read notoption
|
||||
fi
|
||||
done
|
@ -1,242 +0,0 @@
|
||||
@echo off
|
||||
|
||||
rem # aria2 script for bittorrent downloads.
|
||||
rem # http://aria2.sourceforge.net/
|
||||
rem # Created by clamsawd (clamsawd@openmailbox.org)
|
||||
rem # Licensed by GPL v.2
|
||||
rem # Last update: 03-10-2015
|
||||
rem # --------------------------------------
|
||||
set VERSION=7.1
|
||||
|
||||
set COMMAND_TEST=aria2c -v
|
||||
set ARIA2_PATH=%USERPROFILE%\aria2
|
||||
set CONFIG_FILE=%ARIA2_PATH%\aria2bt-conf.cmd
|
||||
|
||||
if not exist %ARIA2_PATH% mkdir %ARIA2_PATH%
|
||||
if exist %CONFIG_FILE% goto load_config_file
|
||||
if not exist %CONFIG_FILE% goto create_config_file
|
||||
|
||||
:create_config_file
|
||||
echo rem # DEFAULT ARIA2BT SCRIPT CONFIG > %CONFIG_FILE%
|
||||
echo. >> %CONFIG_FILE%
|
||||
echo set DISC_FILES=C:>> %CONFIG_FILE%
|
||||
echo set TORRENT_FOLDER=C:\Torrent>> %CONFIG_FILE%
|
||||
echo set TORRENT_FILES=C:\Torrent\Files>> %CONFIG_FILE%
|
||||
echo set MAX_SPEED_DOWNLOAD=300K>> %CONFIG_FILE%
|
||||
echo set MAX_SPEED_UPLOAD=5K>> %CONFIG_FILE%
|
||||
echo set BT_MAX_PEERS=25>> %CONFIG_FILE%
|
||||
echo set MAX_DOWNLOADS=25>> %CONFIG_FILE%
|
||||
echo set ENCRYPTION=yes>> %CONFIG_FILE%
|
||||
echo set RPC=yes>> %CONFIG_FILE%
|
||||
echo set RPC_PORT=6800>> %CONFIG_FILE%
|
||||
echo set DEBUG=no>> %CONFIG_FILE%
|
||||
echo set SEEDING=yes>> %CONFIG_FILE%
|
||||
echo set SEED_RATIO=0.0>> %CONFIG_FILE%
|
||||
echo set DEBUG_LEVEL=info>> %CONFIG_FILE%
|
||||
echo set FILE_ALLOCATION=none>> %CONFIG_FILE%
|
||||
echo set CA_CERTIFICATE=no>> %CONFIG_FILE%
|
||||
echo set CA_CERTIFICATE_FILE=C:\Program Files\aria2\certs\ca-certificates.crt>> %CONFIG_FILE%
|
||||
call %CONFIG_FILE%
|
||||
|
||||
:load_config_file
|
||||
|
||||
call %CONFIG_FILE%
|
||||
|
||||
rem # VARIABLES
|
||||
set SPEED_OPTIONS=--max-overall-download-limit=%MAX_SPEED_DOWNLOAD% --max-overall-upload-limit=%MAX_SPEED_UPLOAD%
|
||||
set PEER_OPTIONS=--bt-max-peers=%BT_MAX_PEERS%
|
||||
if %CA_CERTIFICATE%==no set OTHER_OPTIONS=-V -j %MAX_DOWNLOADS% --file-allocation=%FILE_ALLOCATION% --auto-file-renaming=false --allow-overwrite=false
|
||||
if %CA_CERTIFICATE%==yes set OTHER_OPTIONS=-V -j %MAX_DOWNLOADS% --file-allocation=%FILE_ALLOCATION% --auto-file-renaming=false --allow-overwrite=false --ca-certificate="%CA_CERTIFICATE_FILE%"
|
||||
set TEMP_FILE=aria2-list.txt
|
||||
|
||||
if %ENCRYPTION%==yes set TORRENT_OPTIONS=--bt-min-crypto-level=arc4 --bt-require-crypto=true
|
||||
if %RPC%==yes set RPC_OPTIONS=--enable-rpc --rpc-listen-all=true --rpc-allow-origin-all --rpc-listen-port=%RPC_PORT%
|
||||
if %ENCRYPTION%==no set TORRENT_OPTIONS=--bt-require-crypto=false
|
||||
if %RPC%==no set RPC_OPTIONS=--rpc-listen-all=false
|
||||
if %SEEDING%==no set SEED_OPTIONS=--seed-time=0
|
||||
if %SEEDING%==yes set SEED_OPTIONS=--seed-ratio=%SEED_RATIO%
|
||||
|
||||
set ALL_OPTIONS=%TORRENT_OPTIONS% %SPEED_OPTIONS% %PEER_OPTIONS% %RPC_OPTIONS% %SEED_OPTIONS%
|
||||
|
||||
:check_aria2_system
|
||||
%COMMAND_TEST%
|
||||
if %ERRORLEVEL%==0 goto check_input
|
||||
cls
|
||||
echo.
|
||||
echo Error: 'aria2' is not installed!
|
||||
echo Help: http://aria2.sourceforge.net/
|
||||
echo.
|
||||
echo Press 'ENTER' to exit
|
||||
pause > nul
|
||||
exit
|
||||
|
||||
:check_input
|
||||
|
||||
if exist "%1" goto input_file
|
||||
if "%1"=="--help" goto show_help
|
||||
if "%1"=="--now" goto run_now
|
||||
if not exist "%1" goto aria2_run
|
||||
|
||||
:show_help
|
||||
cls
|
||||
echo.
|
||||
echo ** aria2 bittorrent script v.%VERSION% **
|
||||
echo.
|
||||
echo USAGE:
|
||||
echo.
|
||||
echo aria2bt.cmd [parameter / file.torrent]
|
||||
echo.
|
||||
echo AVAILABLE PARAMETERS:
|
||||
echo.
|
||||
echo --help - Show help
|
||||
echo --now - Run immediately the script without menu
|
||||
echo.
|
||||
echo Note: If you run the script without parameters,
|
||||
echo this will show a menu with all options.
|
||||
echo.
|
||||
goto exit_aria2_script
|
||||
|
||||
:run_now
|
||||
cls
|
||||
echo.
|
||||
echo ** aria2 bittorrent script v.%VERSION% **
|
||||
echo.
|
||||
%DISC_FILES%
|
||||
cd %TORRENT_FILES%
|
||||
dir /B | find ".torrent" > %TEMP_FILE%
|
||||
if %DEBUG%==yes (
|
||||
aria2c %OTHER_OPTIONS% -i %TEMP_FILE% %ALL_OPTIONS% -d %TORRENT_FOLDER% --console-log-level=%DEBUG_LEVEL%)
|
||||
if %DEBUG%==no (
|
||||
aria2c %OTHER_OPTIONS% -i %TEMP_FILE% %ALL_OPTIONS% -d %TORRENT_FOLDER%)
|
||||
goto aria2_run
|
||||
|
||||
:input_file
|
||||
cls
|
||||
echo.
|
||||
echo * File detected: "%1"
|
||||
echo.
|
||||
echo - Do you want to copy file to "%TORRENT_FILES%" directory
|
||||
set /p LOAD=and run aria2 (y/n):
|
||||
if %LOAD%==* goto copy_input_file
|
||||
if %LOAD%==y goto copy_input_file
|
||||
if %LOAD%==n goto exit_aria2_script
|
||||
|
||||
:copy_input_file
|
||||
|
||||
copy /Y "%1" "%TORRENT_FILES%"
|
||||
xcopy /Y "%1" "%TORRENT_FILES%"
|
||||
goto aria2_run
|
||||
|
||||
:aria2_run
|
||||
cls
|
||||
echo.
|
||||
echo ** aria2 bittorrent script v.%VERSION% **
|
||||
echo - http://aria2.sourceforge.net/
|
||||
echo.
|
||||
echo - aria2 config:
|
||||
echo.
|
||||
echo * Config.file: %CONFIG_FILE%
|
||||
echo.
|
||||
echo * Download directory: %TORRENT_FOLDER%
|
||||
echo * Torrent directory: %TORRENT_FILES%\*.torrent (%DISC_FILES%)
|
||||
echo * Download speed: %MAX_SPEED_DOWNLOAD% / Upload speed: %MAX_SPEED_UPLOAD%
|
||||
echo * Encryption: %ENCRYPTION% / RPC: %RPC% (Port: %RPC_PORT%)
|
||||
echo * Max.peers: %BT_MAX_PEERS% / Max.downloads: %MAX_DOWNLOADS%
|
||||
echo * Seeding: %SEEDING% / Seed ratio: %SEED_RATIO%
|
||||
echo * Debugging: %DEBUG% / Debug.level: %DEBUG_LEVEL%
|
||||
echo * CA-Certificate: %CA_CERTIFICATE% (%CA_CERTIFICATE_FILE%)
|
||||
echo * File allocation: %FILE_ALLOCATION%
|
||||
echo.
|
||||
set /p RUN=- run(r) / list(l) / magnet(m) / urls(u) / quit(q):
|
||||
|
||||
if %RUN%==* goto error_msg
|
||||
if %RUN%==r goto aria2_command
|
||||
if %RUN%==run goto aria2_command
|
||||
if %RUN%==q goto exit_aria2_script
|
||||
if %RUN%==quit goto exit_aria2_script
|
||||
if %RUN%==l goto list_torrent
|
||||
if %RUN%==list goto list_torrent
|
||||
if %RUN%==m goto magnet_link
|
||||
if %RUN%==magnet goto magnet_link
|
||||
if %RUN%==urls goto load_urls
|
||||
if %RUN%==u goto load_urls
|
||||
|
||||
:aria2_command
|
||||
cls
|
||||
%DISC_FILES%
|
||||
cd %TORRENT_FILES%
|
||||
dir /B | find ".torrent" > %TEMP_FILE%
|
||||
if %DEBUG%==yes (
|
||||
aria2c %OTHER_OPTIONS% -i %TEMP_FILE% %ALL_OPTIONS% -d %TORRENT_FOLDER% --console-log-level=%DEBUG_LEVEL%)
|
||||
if %DEBUG%==no (
|
||||
aria2c %OTHER_OPTIONS% -i %TEMP_FILE% %ALL_OPTIONS% -d %TORRENT_FOLDER%)
|
||||
|
||||
del %TEMP_FILE%
|
||||
goto aria2_run
|
||||
|
||||
:list_torrent
|
||||
cls
|
||||
%DISC_FILES%
|
||||
cd %TORRENT_FILES%
|
||||
dir /B | find ".torrent" > %TEMP_FILE%
|
||||
cls
|
||||
echo.
|
||||
echo * List of torrents that will be loaded:
|
||||
echo.
|
||||
type %TEMP_FILE%
|
||||
echo.
|
||||
echo * List of incomplete downloads:
|
||||
echo.
|
||||
dir /B %TORRENT_FOLDER% | find ".aria2"
|
||||
echo.
|
||||
echo Press 'ENTER' to return
|
||||
pause > nul
|
||||
del %TEMP_FILE%
|
||||
goto aria2_run
|
||||
|
||||
:magnet_link
|
||||
cls
|
||||
echo.
|
||||
echo * Make torrent file from Magnet-link
|
||||
echo.
|
||||
set /p MAGNET=- Type the Magnet-link:
|
||||
echo.
|
||||
aria2c --bt-metadata-only=true --bt-save-metadata=true "%MAGNET%" -d %TORRENT_FILES%
|
||||
echo.
|
||||
echo Press 'ENTER' to return
|
||||
pause > nul
|
||||
goto aria2_run
|
||||
|
||||
:load_urls
|
||||
set URLS_FILE=%TORRENT_FILES%\urls.txt
|
||||
if not exist %URLS_FILE% echo.> %URLS_FILE%
|
||||
cls
|
||||
echo.
|
||||
echo * List URLs (%URLS_FILE%):
|
||||
echo.
|
||||
type %URLS_FILE%
|
||||
echo.
|
||||
set /p LOAD_URLS=- Load URLs? (y/n):
|
||||
if %LOAD_URLS%==* goto init_load_urls
|
||||
if %LOAD_URLS%==y goto init_load_urls
|
||||
if %LOAD_URLS%==n goto aria2_run
|
||||
|
||||
:init_load_urls
|
||||
cls
|
||||
if %DEBUG%==yes (
|
||||
aria2c %OTHER_OPTIONS% -i "%URLS_FILE%" %ALL_OPTIONS% -d %TORRENT_FOLDER% --console-log-level=%DEBUG_LEVEL%)
|
||||
if %DEBUG%==no (
|
||||
aria2c %OTHER_OPTIONS% -i "%URLS_FILE%" %ALL_OPTIONS% -d %TORRENT_FOLDER%)
|
||||
goto aria2_run
|
||||
|
||||
:error_msg
|
||||
cls
|
||||
echo.
|
||||
echo Invalid option, please, choose any available option
|
||||
echo.
|
||||
echo Press 'ENTER' to return
|
||||
pause > nul
|
||||
goto aria2_run
|
||||
|
||||
:exit_aria2_script
|
||||
echo Exiting...
|
@ -1,256 +0,0 @@
|
||||
#!/bin/csh
|
||||
|
||||
# aria2 script for bittorrent downloads.
|
||||
# http://aria2.sourceforge.net/
|
||||
# Created by clamsawd (clamsawd@openmailbox.org)
|
||||
# Licensed by GPL v.2
|
||||
# Last update: 03-10-2015
|
||||
# --------------------------------------
|
||||
set VERSION=7.1
|
||||
|
||||
#Check if exist .aria2 folder.
|
||||
if ( -d $HOME/.aria2 ) then
|
||||
echo "$HOME/.aria2 exists"
|
||||
else
|
||||
mkdir $HOME/.aria2
|
||||
endif
|
||||
|
||||
#Check if exist config file and create it.
|
||||
set CONFIG_FILE=$HOME/.aria2/aria2bt.conf
|
||||
|
||||
if ( -f $CONFIG_FILE ) then
|
||||
source $CONFIG_FILE
|
||||
else
|
||||
echo "# DEFAULT ARIA2BT SCRIPT CONFIG." > $CONFIG_FILE
|
||||
echo "" >> $CONFIG_FILE
|
||||
echo "set TORRENT_FOLDER=/opt/Torrent" >> $CONFIG_FILE
|
||||
echo "set TORRENT_FILES=/opt/Torrent/Files" >> $CONFIG_FILE
|
||||
echo "set MAX_SPEED_DOWNLOAD=300K" >> $CONFIG_FILE
|
||||
echo "set MAX_SPEED_UPLOAD=5K" >> $CONFIG_FILE
|
||||
echo "set BT_MAX_PEERS=25" >> $CONFIG_FILE
|
||||
echo "set MAX_DOWNLOADS=25" >> $CONFIG_FILE
|
||||
echo "set ENCRYPTION=yes" >> $CONFIG_FILE
|
||||
echo "set RPC=yes" >> $CONFIG_FILE
|
||||
echo "set RPC_PORT=6800" >> $CONFIG_FILE
|
||||
echo "set SEEDING=yes" >> $CONFIG_FILE
|
||||
echo "set SEED_RATIO=0.0" >> $CONFIG_FILE
|
||||
echo "set DEBUG=no" >> $CONFIG_FILE
|
||||
echo "set DEBUG_LEVEL=info" >> $CONFIG_FILE
|
||||
echo "set FILE_ALLOCATION=none" >> $CONFIG_FILE
|
||||
echo "set CA_CERTIFICATE=no" >> $CONFIG_FILE
|
||||
echo "set CA_CERTIFICATE_FILE=/etc/ssl/certs/ca-certificates.crt" >> $CONFIG_FILE
|
||||
source $CONFIG_FILE
|
||||
endif
|
||||
|
||||
# VARIABLES
|
||||
set SPEED_OPTIONS="--max-overall-download-limit=$MAX_SPEED_DOWNLOAD --max-overall-upload-limit=$MAX_SPEED_UPLOAD"
|
||||
set PEER_OPTIONS="--bt-max-peers=$BT_MAX_PEERS"
|
||||
if ( "$CA_CERTIFICATE" == "no" ) then
|
||||
set OTHER_OPTIONS="-V -j $MAX_DOWNLOADS --file-allocation=$FILE_ALLOCATION --auto-file-renaming=false --allow-overwrite=false"
|
||||
else if ( "$ENCRYPTION" == "yes" ) then
|
||||
set OTHER_OPTIONS="-V -j $MAX_DOWNLOADS --file-allocation=$FILE_ALLOCATION --auto-file-renaming=false --allow-overwrite=false --ca-certificate=$CA_CERTIFICATE_FILE"
|
||||
endif
|
||||
|
||||
#check aria2 on system.
|
||||
aria2c -h > /dev/null
|
||||
if ( $status == 0 ) then
|
||||
echo "Everything OK"
|
||||
else
|
||||
clear
|
||||
echo ""
|
||||
echo "Error: 'aria2' is not installed!"
|
||||
echo "Help: http://aria2.sourceforge.net/"
|
||||
echo ""
|
||||
exit
|
||||
endif
|
||||
|
||||
#Define command from variables of config file.
|
||||
if ( "$ENCRYPTION" == "no" ) then
|
||||
set TORRENT_OPTIONS="--bt-require-crypto=false"
|
||||
else if ( "$ENCRYPTION" == "yes" ) then
|
||||
set TORRENT_OPTIONS="--bt-min-crypto-level=arc4 --bt-require-crypto=true"
|
||||
endif
|
||||
|
||||
if ( "$RPC" == "no" ) then
|
||||
set RPC_OPTIONS="--rpc-listen-all=false"
|
||||
else if ( "$RPC" == "yes" ) then
|
||||
set RPC_OPTIONS="--enable-rpc --rpc-listen-all=true --rpc-allow-origin-all --rpc-listen-port=$RPC_PORT"
|
||||
endif
|
||||
|
||||
if ( "$SEEDING" == "no" ) then
|
||||
set SEED_OPTIONS="--seed-time=0"
|
||||
else if ( "$SEEDING" == "yes" ) then
|
||||
set SEED_OPTIONS="--seed-ratio=$SEED_RATIO"
|
||||
endif
|
||||
|
||||
if ( "$DEBUG" == "no" ) then
|
||||
set ALL_OPTIONS="$TORRENT_OPTIONS $SPEED_OPTIONS $PEER_OPTIONS $RPC_OPTIONS $SEED_OPTIONS"
|
||||
else if ( "$DEBUG" == "yes" ) then
|
||||
set ALL_OPTIONS="$TORRENT_OPTIONS $SPEED_OPTIONS $PEER_OPTIONS $RPC_OPTIONS $SEED_OPTIONS --console-log-level=$DEBUG_LEVEL"
|
||||
endif
|
||||
|
||||
#Show help
|
||||
if ( "$1" == "--help" ) then
|
||||
clear
|
||||
echo ""
|
||||
echo "** aria2 bittorrent script v.$VERSION **"
|
||||
echo ""
|
||||
echo "USAGE:"
|
||||
echo ""
|
||||
echo "$0 [parameter | file.torrent]"
|
||||
echo ""
|
||||
echo "AVAILABLE PARAMETERS:"
|
||||
echo ""
|
||||
echo "--help - Show help"
|
||||
echo "--now - Run immediately the script without menu"
|
||||
echo ""
|
||||
echo "Note: If you run the script without parameters,"
|
||||
echo " this will show a menu with all options."
|
||||
echo ""
|
||||
exit
|
||||
endif
|
||||
|
||||
#Run immediately the script without menu
|
||||
if ( "$1" == "--now" ) then
|
||||
echo ""
|
||||
echo "** aria2 bittorrent script v.$VERSION **"
|
||||
echo ""
|
||||
aria2c $OTHER_OPTIONS "$TORRENT_FILES"/*.torrent $ALL_OPTIONS -d "$TORRENT_FOLDER"
|
||||
endif
|
||||
|
||||
# Check input file.
|
||||
if ( -f "$1" ) then
|
||||
|
||||
set CHECK_TORRENT=`echo $1 | grep ".torrent"`
|
||||
if ( "$CHECK_TORRENT" == "$1" ) then
|
||||
clear
|
||||
echo ""
|
||||
echo "* Detected torrent file!"
|
||||
echo ""
|
||||
echo "- Do you want to copy this file in '$TORRENT_FILES' directory"
|
||||
echo -n "and run aria2? (y/n); "
|
||||
set LOAD="$<"
|
||||
|
||||
if ( "$LOAD" == "y" ) then
|
||||
cp "$1" "$TORRENT_FILES"
|
||||
cp -rf "$1" "$TORRENT_FILES"
|
||||
else if ( "$LOAD" == "n" ) then
|
||||
echo "Exiting..."
|
||||
exit
|
||||
else
|
||||
cp "$1" "$TORRENT_FILES"
|
||||
cp -rf "$1" "$TORRENT_FILES"
|
||||
endif
|
||||
else
|
||||
clear
|
||||
echo ""
|
||||
echo "This file is not a torrent!"
|
||||
echo ""
|
||||
echo -n "Press 'ENTER' to exit "
|
||||
set NOOPTION="$<"
|
||||
echo "Exiting..."
|
||||
exit
|
||||
endif
|
||||
|
||||
else
|
||||
echo "No input file"
|
||||
endif
|
||||
|
||||
set MENU_VARIABLE=1
|
||||
|
||||
while ( $MENU_VARIABLE <= 2 )
|
||||
#Show menu
|
||||
clear
|
||||
echo ""
|
||||
echo "** aria2 bittorrent script v.$VERSION **"
|
||||
echo "- http://aria2.sourceforge.net/"
|
||||
echo ""
|
||||
echo "- aria2 config:"
|
||||
echo ""
|
||||
echo " * Config.file: $CONFIG_FILE"
|
||||
echo ""
|
||||
echo " * Download directory: $TORRENT_FOLDER"
|
||||
echo " * Torrent directory: $TORRENT_FILES/*.torrent"
|
||||
echo " * Download speed: $MAX_SPEED_DOWNLOAD | Upload speed: $MAX_SPEED_UPLOAD"
|
||||
echo " * Encryption: $ENCRYPTION | RPC: $RPC (Port: $RPC_PORT)"
|
||||
echo " * Max.peers: $BT_MAX_PEERS | Max.downloads: $MAX_DOWNLOADS"
|
||||
echo " * Seeding: $SEEDING | Seed ratio: $SEED_RATIO"
|
||||
echo " * Debugging: $DEBUG | Debug.level: $DEBUG_LEVEL"
|
||||
echo " * CA-Certificate: $CA_CERTIFICATE ($CA_CERTIFICATE_FILE)"
|
||||
echo " * File allocation: $FILE_ALLOCATION"
|
||||
echo ""
|
||||
echo -n "- run(r) | list(l) | magnet(m) | urls(u) | quit(q): "
|
||||
set RUN="$<"
|
||||
|
||||
if ( "$RUN" == "r" ) then
|
||||
|
||||
clear
|
||||
aria2c $OTHER_OPTIONS "$TORRENT_FILES"/*.torrent $ALL_OPTIONS -d "$TORRENT_FOLDER"
|
||||
|
||||
else if ( "$RUN" == "q" ) then
|
||||
|
||||
set MENU_VARIABLE=3
|
||||
echo "Exiting..."
|
||||
|
||||
else if ( "$RUN" == "l" ) then
|
||||
|
||||
clear
|
||||
echo ""
|
||||
echo "* List of torrents that will be loaded:"
|
||||
echo ""
|
||||
ls "$TORRENT_FILES" | grep ".torrent"
|
||||
echo ""
|
||||
echo "* List of incomplete downloads:"
|
||||
echo ""
|
||||
ls "$TORRENT_FOLDER" | grep ".aria2"
|
||||
echo ""
|
||||
echo -n "Press 'ENTER' to return "
|
||||
set NOOPTION="$<"
|
||||
|
||||
else if ( "$RUN" == "m" ) then
|
||||
|
||||
clear
|
||||
echo ""
|
||||
echo "* Make torrent file from Magnet-link"
|
||||
echo ""
|
||||
echo -n "- Type the Magnet-link: "
|
||||
set MAGNET="$<"
|
||||
echo ""
|
||||
aria2c --bt-metadata-only=true --bt-save-metadata=true "$MAGNET" -d "$TORRENT_FILES"
|
||||
echo ""
|
||||
echo -n "Press 'ENTER' to return "
|
||||
set NOOPTION="$<"
|
||||
|
||||
else if ( "$RUN" == "u" ) then
|
||||
|
||||
set URLS_FILE="$TORRENT_FILES"/urls.txt
|
||||
if ( -f "$URLS_FILE" ) then
|
||||
echo "$URLS_FILE" detected
|
||||
else
|
||||
echo -n > "$URLS_FILE"
|
||||
endif
|
||||
clear
|
||||
echo ""
|
||||
echo "* List URLs ($URLS_FILE):"
|
||||
echo ""
|
||||
cat "$URLS_FILE"
|
||||
echo ""
|
||||
echo -n "- Load URLS? (y/n): "
|
||||
set LOAD_URLS="$<"
|
||||
if ( "$LOAD_URLS" == "y" ) then
|
||||
clear
|
||||
aria2c $OTHER_OPTIONS -i "$URLS_FILE" $ALL_OPTIONS -d "$TORRENT_FOLDER"
|
||||
echo "Exiting..."
|
||||
else
|
||||
echo "Returning..."
|
||||
endif
|
||||
|
||||
else
|
||||
clear
|
||||
echo ""
|
||||
echo "Invalid option, please, choose any available option"
|
||||
echo ""
|
||||
echo -n "Press 'ENTER' to return "
|
||||
set NOOPTION="$<"
|
||||
endif
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user