From e22a8df9af3084bd4d0ff57d1e1af597a047e91e Mon Sep 17 00:00:00 2001 From: R4SAS Date: Fri, 7 Sep 2018 05:21:12 +0300 Subject: [PATCH] update i2pd package nuspec and script --- i2pd/i2pd.nuspec | 140 +++++++++++++------------------ i2pd/tools/ChocolateyInstall.ps1 | 31 ++++++- 2 files changed, 84 insertions(+), 87 deletions(-) diff --git a/i2pd/i2pd.nuspec b/i2pd/i2pd.nuspec index 90bf7a2..f531589 100644 --- a/i2pd/i2pd.nuspec +++ b/i2pd/i2pd.nuspec @@ -1,68 +1,52 @@  - - - - - - - - - - - i2pd - - - 2.20.0 - - - - - - + https://github.com/r4sas/chocolatey-packages/tree/master/i2pd/ + r4sas I2P Daemon PurpleI2P - - https://github.com/PurpleI2P/i2pd - http://i2pd.website/images/favicon.png - - - - - - - - i2pd admin network encryption + https://i2pd.website/ + https://i2pd.website/images/favicon.png + © PurpleI2P team + https://github.com/PurpleI2P/i2pd/blob/openssl/LICENSE + true + https://github.com/PurpleI2P/i2pd + https://i2pd.readthedocs.io/en/latest/ + https://github.com/PurpleI2P/i2pd/issues + i2pd admin network encryption privacy security Full C++ implementation of I2P client i2pd ==== [Русская версия](https://github.com/PurpleI2P/i2pd_docs_ru/blob/master/README.md) -i2pd (I2P Daemon) is a full-featured C++ implementation of I2P client. +i2pd (I2P Daemon) is a full-featured C++ implementation of I2P client. -I2P (Invisible Internet Protocol) is a universal anonymous network layer. +I2P (Invisible Internet Protocol) is a universal anonymous network layer. All communications over I2P are anonymous and end-to-end encrypted, participants -don't reveal their real IP addresses. +don't reveal their real IP addresses. -I2P client is a software used for building and using anonymous I2P -networks. Such networks are commonly used for anonymous peer-to-peer -applications (filesharing, cryptocurrencies) and anonymous client-server -applications (websites, instant messengers, chat-servers). +I2P client is a software used for building and using anonymous I2P +networks. Such networks are commonly used for anonymous peer-to-peer +applications (filesharing, cryptocurrencies) and anonymous client-server +applications (websites, instant messengers, chat-servers). I2P allows people from all around the world to communicate and share information -without restrictions. +without restrictions. + +Features +-------- + +* Distributed anonymous networking framework +* End-to-end encrypted communications +* Small footprint, simple dependencies, fast performance +* Rich set of APIs for developers of secure applications + +Resources +--------- * [Website](http://i2pd.website) * [Documentation](https://i2pd.readthedocs.io/en/latest/) @@ -74,34 +58,46 @@ without restrictions. Installing ---------- -The easiest way to install i2pd is by using -[precompiled binaries](https://github.com/PurpleI2P/i2pd/releases/latest). -See [documentation](https://i2pd.readthedocs.io/en/latest/) for how to build -i2pd from source on your OS. +The easiest way to install i2pd is by using +[precompiled binaries](https://github.com/PurpleI2P/i2pd/releases/latest). +See [documentation](https://i2pd.readthedocs.io/en/latest/) for how to build +i2pd from source on your OS. + + +Build instructions: + +* [unix](https://i2pd.readthedocs.io/en/latest/devs/building/unix/) +* [windows](https://i2pd.readthedocs.io/en/latest/devs/building/windows/) +* [iOS](https://i2pd.readthedocs.io/en/latest/devs/building/ios/) +* [android](https://i2pd.readthedocs.io/en/latest/devs/building/android/) + **Supported systems:** -* Linux x86/x64 - [![Build Status](https://travis-ci.org/PurpleI2P/i2pd.svg?branch=openssl)](https://travis-ci.org/PurpleI2P/i2pd) -* Windows - [![Build status](https://ci.appveyor.com/api/projects/status/1908qe4p48ff1x23?svg=true)](https://ci.appveyor.com/project/PurpleI2P/i2pd) -* Mac OS X +* GNU/Linux x86/x64 - [![Build Status](https://travis-ci.org/PurpleI2P/i2pd.svg?branch=openssl)](https://travis-ci.org/PurpleI2P/i2pd) +* Windows - [![Build status](https://ci.appveyor.com/api/projects/status/1908qe4p48ff1x23?svg=true)](https://ci.appveyor.com/project/PurpleI2P/i2pd) +* Mac OS X - [![Build Status](https://travis-ci.org/PurpleI2P/i2pd.svg?branch=openssl)](https://travis-ci.org/PurpleI2P/i2pd) +* CentOS / Fedora - [![Build Status](https://copr.fedorainfracloud.org/coprs/supervillain/i2pd/package/i2pd-git/status_image/last_build.png)](https://copr.fedorainfracloud.org/coprs/supervillain/i2pd/package/i2pd-git/) +* Docker image - [![Build Status](https://dockerbuildbadges.quelltext.eu/status.svg?organization=meeh&repository=i2pd)](https://hub.docker.com/r/meeh/i2pd/builds/) * FreeBSD -* Android +* Android * iOS Using i2pd ---------- -See [documentation](https://i2pd.readthedocs.io/en/latest/usage.html) and -[example config file](https://github.com/PurpleI2P/i2pd/blob/openssl/docs/i2pd.conf). +See [documentation](https://i2pd.readthedocs.io/en/latest/user-guide/run/) and +[example config file](https://github.com/PurpleI2P/i2pd/blob/openssl/contrib/i2pd.conf). Donations --------- -BTC: 1K7Ds6KUeR8ya287UC4rYTjvC96vXyZbDY -DASH: Xw8YUrQpYzP9tZBmbjqxS3M97Q7v3vJKUF +BTC: 3MDoGJW9TLMTCDGrR9bLgWXfm6sjmgy86f LTC: LKQirrYrDeTuAPnpYq5y7LVKtywfkkHi59 -ANC: AQJYweYYUqM1nVfLqfoSMpUMfzxvS4Xd7z -DOGE: DNXLQKziRPAsD9H3DFNjk4fLQrdaSX893Y +ETH: 0x9e5bac70d20d1079ceaa111127f4fb3bccce379d +DASH: Xw8YUrQpYzP9tZBmbjqxS3M97Q7v3vJKUF +ZEC: t1cTckLuXsr1dwVrK4NDzfhehss4NvMadAJ +GST: GbD2JSQHBHCKLa9WTHmigJRpyFgmBj4woG License ------- @@ -109,37 +105,13 @@ License This project is licensed under the BSD 3-clause license, which can be found in the file LICENSE in the root of the project source code. - - - - - - - - - chantisnake - https://github.com/PurpleI2P/i2pd/wikis 1. Full implementation of NTCP2 2. Provide assets for android 3. Single apk for arm7 and x86 android builds 4. Some fix in web console 5. Don't add address in RouterInfo if transport is disabled in config - https://github.com/chantisnake/chocolateyPackage - true - https://github.com/PurpleI2P/i2pd/blob/openssl/LICENSE - https://github.com/PurpleI2P/i2pd/issues - https://github.com/PurpleI2P/i2pd - - \ No newline at end of file diff --git a/i2pd/tools/ChocolateyInstall.ps1 b/i2pd/tools/ChocolateyInstall.ps1 index 8762ed1..e2d592f 100644 --- a/i2pd/tools/ChocolateyInstall.ps1 +++ b/i2pd/tools/ChocolateyInstall.ps1 @@ -1,4 +1,29 @@ - -$ErrorActionPreference = 'Stop'; # stop on all errors +$ErrorActionPreference = 'Stop'; # stop on all errors +$packagename = 'i2pd' +$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" +$url = 'https://github.com/PurpleI2P/i2pd/releases/download/2.20.0/i2pd_2.20.0_win32_mingw.zip' +$checksum = 'AD9A910A50F42598E7425DF137A0FEDFF929E91F095FC284F055F2E4BB38258A' +$checksumType = 'sha256' +$url64 = 'https://github.com/PurpleI2P/i2pd/releases/download/2.20.0/i2pd_2.20.0_win64_mingw.zip' +$checksum64 = 'B819B5F2C390E04C6CB4B5619498B5C0B2E948CEB4FE22FBAF3E0DB3A5EBC422' +$checksumType64 = 'sha256' -Install-ChocolateyZipPackage -packageName 'i2pd' -UnzipLocation $(Split-Path -Parent $MyInvocation.MyCommand.Definition) -Url 'https://github.com/PurpleI2P/i2pd/releases/download/2.20.0/i2pd_2.20.0_win32_mingw.zip' -checksum 'AD9A910A50F42598E7425DF137A0FEDFF929E91F095FC284F055F2E4BB38258A' -checksumType 'sha256'-Url64 'https://github.com/PurpleI2P/i2pd/releases/download/2.20.0/i2pd_2.20.0_win64_mingw.zip' -checksum64 'B819B5F2C390E04C6CB4B5619498B5C0B2E948CEB4FE22FBAF3E0DB3A5EBC422' -checksumType64 'sha256' +Install-ChocolateyZipPackage -packageName "$packagename" ` + -UnzipLocation "$toolsDir" ` + -Url "$url" ` + -checksum "$checksum" ` + -checksumType "$checksumType" ` + -Url64 "$url64" ` + -checksum64 "$checksum64" ` + -checksumType64 "$checksumType64" + +# Install configs and certificates if i2pd dir not available, otherwise just update certificates +$dataDir = Join-Path $Env:APPDATA 'i2pd' +if (Test-Path -Path $dataDir) { + Write-Host "Updating i2pd certificates" + Remove-Item $dataDir\certificates -Recurse + Copy-Item $toolsDir\contrib\certificates -Destination $dataDir\certificates -Recurse +} else { + Write-Host "Copying default configs and certificates" + Copy-Item $toolsDir\contrib -Destination $dataDir -Recurse +}