diff --git a/automatic/OpenSSL.Light/OpenSSL.Light.nuspec b/automatic/OpenSSL.Light/OpenSSL.Light.nuspec index dfcaa1032e2..c5f5bc9f312 100644 --- a/automatic/OpenSSL.Light/OpenSSL.Light.nuspec +++ b/automatic/OpenSSL.Light/OpenSSL.Light.nuspec @@ -1,27 +1,32 @@ - + - {{PackageName}} - OpenSSL – The Open Source SSL and TLS toolkit + OpenSSL.Light + 1.1.0.20170216 + https://github.com/Chocolatey/chocolatey-coreteampackages/tree/master/automatic/OpenSSL.Light chocolatey - {{PackageVersion}} + OpenSSL – The Open Source SSL and TLS toolkit Shining Light Productions + https://slproweb.com/products/Win32OpenSSL.html + https://cdn.rawgit.com/chocolatey/chocolatey-coreteampackages/ff58a020fa163df8a14004b9802a3cb455a76eac/icons/openssl.png + Ⓒ 2000-2003 Shining Light Productions + https://www.openssl.org/source/license.html + false + openssl-light openssl ssl tls pfx pem key rsa admin foss cross-platform Open Source SSL v2/v3 and TLS v1 toolkit The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a full-strength general purpose cryptography library. The project is managed by a worldwide community of volunteers that use the Internet to communicate, plan, and develop the OpenSSL toolkit and its related documentation. The Win32 OpenSSL Installation Project is dedicated to providing a simple installation of OpenSSL. It is easy to set up and easy to use through the simple, effective installer. No need to compile anything or jump through any hoops, just click a few times and it is installed, leaving you to doing real work. Download it today! Note that these are default builds of OpenSSL and subject to local and state laws. More information can be found in the legal agreement of the installation. - - https://slproweb.com/products/Win32OpenSSL.html - openssl SSL TLS pfx pem key RSA admin - https://www.openssl.org/source/license.html - false - https://cdn.rawgit.com/chocolatey/chocolatey-coreteampackages/4e02a790f2396cfe0cc3343775338901e2072f5c/icons/openssl.png - - https://github.com/chocolatey/chocolatey-coreteampackages + + + + + + diff --git a/automatic/OpenSSL.Light/Readme.md b/automatic/OpenSSL.Light/Readme.md new file mode 100644 index 00000000000..adea4ff31e7 --- /dev/null +++ b/automatic/OpenSSL.Light/Readme.md @@ -0,0 +1,5 @@ +# [ OpenSSL.Light](https://chocolatey.org/packages/OpenSSL.Light) + +The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a full-strength general purpose cryptography library. The project is managed by a worldwide community of volunteers that use the Internet to communicate, plan, and develop the OpenSSL toolkit and its related documentation. + +The Win32 OpenSSL Installation Project is dedicated to providing a simple installation of OpenSSL. It is easy to set up and easy to use through the simple, effective installer. No need to compile anything or jump through any hoops, just click a few times and it is installed, leaving you to doing real work. Download it today! Note that these are default builds of OpenSSL and subject to local and state laws. More information can be found in the legal agreement of the installation. diff --git a/automatic/OpenSSL.Light/legal/LICENSE.txt b/automatic/OpenSSL.Light/legal/LICENSE.txt new file mode 100644 index 00000000000..8fbabd8af40 --- /dev/null +++ b/automatic/OpenSSL.Light/legal/LICENSE.txt @@ -0,0 +1,125 @@ + + LICENSE ISSUES + ============== + + The OpenSSL toolkit stays under a double license, i.e. both the conditions of + the OpenSSL License and the original SSLeay license apply to the toolkit. + See below for the actual license texts. + + OpenSSL License + --------------- + +/* ==================================================================== + * Copyright (c) 1998-2017 The OpenSSL Project. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. All advertising materials mentioning features or use of this + * software must display the following acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" + * + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to + * endorse or promote products derived from this software without + * prior written permission. For written permission, please contact + * openssl-core@openssl.org. + * + * 5. Products derived from this software may not be called "OpenSSL" + * nor may "OpenSSL" appear in their names without prior written + * permission of the OpenSSL Project. + * + * 6. Redistributions of any form whatsoever must retain the following + * acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit (http://www.openssl.org/)" + * + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * ==================================================================== + * + * This product includes cryptographic software written by Eric Young + * (eay@cryptsoft.com). This product includes software written by Tim + * Hudson (tjh@cryptsoft.com). + * + */ + + Original SSLeay License + ----------------------- + +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ + diff --git a/automatic/OpenSSL.Light/legal/VERIFICATION.txt b/automatic/OpenSSL.Light/legal/VERIFICATION.txt new file mode 100644 index 00000000000..a14e2d6d920 --- /dev/null +++ b/automatic/OpenSSL.Light/legal/VERIFICATION.txt @@ -0,0 +1,21 @@ +VERIFICATION +Verification is intended to assist the Chocolatey moderators and community +in verifying that this package's contents are trustworthy. + +The embedded software have been downloaded from the listed download +location on +and can be verified by doing the following: + +1. Download the following: + 32-Bit software: + 64-Bit software: +2. Get the checksum using one of the following methods: + - Using powershell function 'Get-FileHash' + - Use chocolatey utility 'checksum.exe' +3. The checksums should match the following: + + checksum type: sha256 + checksum32: B8C7754496D228CC52F63E5D4D98185C44DED85D2C10341202C7F493B5D7DED8 + checksum64: 539AE73F8A19B5A01199126782DC2B8D1720403B6C89EDB59E5D80077784F4B6 + +The file 'LICENSE.txt' has been obtained from diff --git a/automatic/OpenSSL.Light/tools/chocolateyInstall.ps1 b/automatic/OpenSSL.Light/tools/chocolateyInstall.ps1 index a162ba5dbf6..8f0c7ca4242 100644 --- a/automatic/OpenSSL.Light/tools/chocolateyInstall.ps1 +++ b/automatic/OpenSSL.Light/tools/chocolateyInstall.ps1 @@ -1,29 +1,17 @@ -$packageId = '{{PackageName}}' +$ErrorActionPreference = 'Stop'; -#default is to plop in c:\ -- yuck! -$installDir = Join-Path $Env:ProgramFiles 'OpenSSL' +$toolsPath = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" -$params = @{ - packageName = $packageId; - fileType = 'exe'; - #InnoSetup - http://unattended.sourceforge.net/InnoSetup_Switches_ExitCodes.html - silentArgs = '/silent', '/verysilent', '/sp-', '/suppressmsgboxes', - "/DIR=`"$installDir`""; - url = '{{DownloadUrl}}' - url64bit = '{{DownloadUrlx64}}' +$packageArgs = @{ + packageName = 'OpenSSL.Light' + fileType = 'exe' + file = "$toolsPath\Win32OpenSSL_Light-1_1_0e.exe" + file64 = "$toolsPath\Win64OpenSSL_Light-1_1_0e.exe" + softwareName = '' + silentArgs = '/silent' + validExitCodes = @(0) } -Install-ChocolateyPackage @params +Install-ChocolateyInstallPackage @packageArgs -if (!$Env:OPENSSL_CONF) -{ - $configPath = Join-Path $installDir 'bin\openssl.cfg' - - if (Test-Path $configPath) - { - [Environment]::SetEnvironmentVariable( - 'OPENSSL_CONF', $configPath, 'User') - - Write-Output "Configured OPENSSL_CONF variable as $configPath" - } -} +Remove-Item -Force -ea 0 "$toolsPath\*.exe","$toolsPath\*.ignore" diff --git a/automatic/OpenSSL.Light/update.ps1 b/automatic/OpenSSL.Light/update.ps1 new file mode 100644 index 00000000000..e9a928cfdb8 --- /dev/null +++ b/automatic/OpenSSL.Light/update.ps1 @@ -0,0 +1,61 @@ +Import-Module AU +Import-Module "$PSScriptRoot\..\..\scripts\au_extensions.psm1" + +$domain = 'https://slproweb.com' +$releases = "$domain/products/Win32OpenSSL.html" + +$padUnderVersion = '1.1.1' + +function global:au_BeforeUpdate { Get-RemoteFiles -Purge -NoSuffix } + +function global:au_AfterUpdate { Set-DescriptionFromReadme -SkipFirst 1 } + +function global:au_SearchReplace { + @{ + ".\legal\VERIFICATION.txt" = @{ + "(?i)(^\s*location on\:?\s*)\<.*\>" = "`${1}<$releases>" + "(?i)(\s*32\-Bit Software.*)\<.*\>" = "`${1}<$($Latest.URL32)>" + "(?i)(\s*64\-Bit Software.*)\<.*\>" = "`${1}<$($Latest.URL64)>" + "(?i)(^\s*checksum\s*type\:).*" = "`${1} $($Latest.ChecksumType32)" + "(?i)(^\s*checksum(32)?\:).*" = "`${1} $($Latest.Checksum32)" + "(?i)(^\s*checksum64\:).*" = "`${1} $($Latest.Checksum64)" + } + ".\tools\chocolateyInstall.ps1" = @{ + "(?i)(^\s*file\s*=\s*`"[$]toolsPath\\).*`"" = "`${1}$($Latest.FileName32)`"" + "(?i)(^\s*file64\s*=\s*`"[$]toolsPath\\).*`"" = "`${1}$($Latest.FileName64)`"" + } + } +} +function global:au_GetLatest { + $download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing + + $re = 'Win32.*Light.*\.exe$' + $url32 = $domain + ($download_page.Links | ? href -match $re | select -first 1 -expand href) + + $re = 'Win64.*Light.*\.exe$' + $url64 = $domain + ($download_page.links | ? href -match $re | select -first 1 -expand href) + + $verRe = '[\-]|\.exe' + $version32 = ($url32 -split "$verRe" | select -last 1 -skip 1) -replace '_','.' + $version64 = ($url64 -split "$verRe" | select -last 1 -skip 1) -replace '_','.' + if ($version32 -ne $version64) { + throw "32bit version do not match the 64bit version" + } + $rev = ([byte][char]$version32[$version32.Length - 1]) - 97 + $version32 = $version32 -replace '[a-z]+$',".$rev" + + if ([version]$version32 -lt [version]'1.1.1') { + # Because previous package updates used dates, we need a number that ends up being larger + $revisionLen = '8' # Will end up with version '1.1.0.40000000' + } else { + $revisionLen = '4' + } + + @{ + URL32 = $url32 + URL64 = $url64 + Version = Get-PaddedVersion $version32 -OnlyBelowVersion $padUnderVersion -RevisionLength $revisionLen + } +} + +update -ChecksumFor none diff --git a/icons/openssl.png b/icons/openssl.png index 275dac6d220..7d6fa4fd3b2 100644 Binary files a/icons/openssl.png and b/icons/openssl.png differ diff --git a/ketarin/OpenSSL.Light.ketarin.xml b/ketarin/OpenSSL.Light.ketarin.xml deleted file mode 100644 index 923b1e416f7..00000000000 --- a/ketarin/OpenSSL.Light.ketarin.xml +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - - - Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19 - - 384846 - 2012-05-23T02:09:37.7748325 - false - Default - - false - - true - false - false - - - - - - version - - - - false - StartEnd - - - <TABLE cellspacing ="1" cellpadding ="6" border = "0"> - <TR> - <TH class="Title" align="center" width=90>7-Zip - <BR> - - version - - - - - - url64 - - - - false - Textual - - "" - url64 - - - - - - - Batch - Batch - - FixedUrl - - true - true - - 2012-05-23T02:09:37.7748325 - C:\Chocolatey\_work\ - - - -]]> - - Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19 - - 2051981 - 2015-01-16T04:14:27+01:00 - false - Default - - false - - true - false - false - - - - - - url64 - - - - false - Textual - - https://slproweb.com/download/Win64OpenSSL_Light-{urlVersion}.exe - url64 - - - - - - urlVersion - - - - false - StartEnd - - https://slproweb.com/products/Win32OpenSSL.html - ><a href="/download/Win32OpenSSL_Light- - .exe"> - urlVersion - - - - - - realVersion - - - - false - RegularExpression - <a href="/download/Win32OpenSSL_Light-[\d_a-z]+\.exe">Win32 OpenSSL v([\d\.a-z]+) Light</a> - https://slproweb.com/products/Win32OpenSSL.html - realVersion - - - - - - version - - - - false - Textual - - {realVersion:regexreplace:(.+)[a-z]:$1.{yyyy}{MM}{dd}} - version - - - - - - - Batch - Batch - - FixedUrl - C:\Chocolatey\_work\Win32OpenSSL_Light-1_0_1L.exe - true - true - - 2015-02-09T21:11:00.8535462+01:00 - C:\Chocolatey\_work\ - https://slproweb.com/download/Win32OpenSSL_Light-{urlVersion}.exe - OpenSSL.Light - - \ No newline at end of file