summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Gribov2018-03-28 19:39:44 +0300
committerKonstantin Gribov2018-03-28 19:39:44 +0300
commitb1ce3c88612fb2f3354b2f33f2338d8da09cf60b (patch)
tree999eac68a65e4378c8756deb28314095652492c7
parented5bbf31d407c83394c9e2daf48d0ff2c3a1835a (diff)
downloadaur-b1ce3c88612fb2f3354b2f33f2338d8da09cf60b.tar.gz
Migrated from prebuilt binary and updated to 1.3.2
-rw-r--r--.SRCINFO41
-rw-r--r--LICENSE24
-rw-r--r--PKGBUILD65
3 files changed, 31 insertions, 99 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 14d7c2a066d0..9f737486aa9b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,48 +1,15 @@
-# Generated by mksrcinfo v8
-# Tue Jul 19 18:01:24 UTC 2016
pkgbase = cfssl
pkgdesc = CloudFlare PKI and TLS toolkit
- pkgver = 1.2.0
+ pkgver = 1.3.2
pkgrel = 1
url = https://cfssl.org/
arch = i686
arch = x86_64
license = BSD
+ makedepends = go
depends = glibc
- source = LICENSE::https://raw.githubusercontent.com/cloudflare/cfssl/1.2.0/LICENSE
- sha256sums = dc439285c60b63ec585769cf151a03345654a78271cdfd56250f59f1175fba88
- source_i686 = cfssl::https://pkg.cfssl.org/R1.2/cfssl_linux-386
- source_i686 = cfssljson::https://pkg.cfssl.org/R1.2/cfssljson_linux-386
- source_i686 = cfssl_mkbundle::https://pkg.cfssl.org/R1.2/mkbundle_linux-386
- source_i686 = cfssl_multirootca::https://pkg.cfssl.org/R1.2/multirootca_linux-386
- source_i686 = cfssl-bundle::https://pkg.cfssl.org/R1.2/cfssl-bundle_linux-386
- source_i686 = cfssl-certinfo::https://pkg.cfssl.org/R1.2/cfssl-certinfo_linux-386
- source_i686 = cfssl-newkey::https://pkg.cfssl.org/R1.2/cfssl-newkey_linux-386
- source_i686 = cfssl-scan::https://pkg.cfssl.org/R1.2/cfssl-scan_linux-386
- sha256sums_i686 = b968f3c2aedff9557f80102293f34fea262c7d7b53bec057b3f138ca456c6ed5
- sha256sums_i686 = 5ad9be85ea5e4371fcfedb5abbf31302de0860ed4b53adc6251227c6792a1a9a
- sha256sums_i686 = 86f2a93bf32eace855036835466400c8cc1934bf26a27f38d7a4c0a0062c1c99
- sha256sums_i686 = a1cf390ac42006fe659e25587c7ba74ea63c7d27a557d733efecdd7e4fd7f25f
- sha256sums_i686 = 0eb68020b0be3b540450543b7d7484fb3a68f036cc3525060e1f41dc2378af49
- sha256sums_i686 = b9336fabec0413e9dd5a95ab43583bfe328eaee238ceb445cbafb27947d4fcd4
- sha256sums_i686 = 2475fc8761546e6bb61fa4f6be32828c7778f0d9faf137db475aebb25da2a91a
- sha256sums_i686 = 07142231c17645275b3b5461ce1b61f6a8cbc0c245767796123950f2c0d2b924
- source_x86_64 = cfssl::https://pkg.cfssl.org/R1.2/cfssl_linux-amd64
- source_x86_64 = cfssljson::https://pkg.cfssl.org/R1.2/cfssljson_linux-amd64
- source_x86_64 = cfssl_mkbundle::https://pkg.cfssl.org/R1.2/mkbundle_linux-amd64
- source_x86_64 = cfssl_multirootca::https://pkg.cfssl.org/R1.2/multirootca_linux-amd64
- source_x86_64 = cfssl-bundle::https://pkg.cfssl.org/R1.2/cfssl-bundle_linux-amd64
- source_x86_64 = cfssl-certinfo::https://pkg.cfssl.org/R1.2/cfssl-certinfo_linux-amd64
- source_x86_64 = cfssl-newkey::https://pkg.cfssl.org/R1.2/cfssl-newkey_linux-amd64
- source_x86_64 = cfssl-scan::https://pkg.cfssl.org/R1.2/cfssl-scan_linux-amd64
- sha256sums_x86_64 = eb34ab2179e0b67c29fd55f52422a94fe751527b06a403a79325fed7cf0145bd
- sha256sums_x86_64 = 1c9e628c3b86c3f2f8af56415d474c9ed4c8f9246630bd21c3418dbe5bf6401e
- sha256sums_x86_64 = 88f90fa9120662c3acdbbedd22306f4cf7ae71e9708838a6d5c8f1652b5bf747
- sha256sums_x86_64 = 7b7884ae113eb7693591194399d424bd39902252c3198d6dea075ac98b3f275d
- sha256sums_x86_64 = c0ad5348ede0b8038872bf06bab1f81657b710392371c5db10bd8372336ebd0f
- sha256sums_x86_64 = ad395c35824bdff343189188658f15810d137c230463810026c6f04f3f78f08f
- sha256sums_x86_64 = eb58dfa8c8115b59f28d8444b1007c7be169814d24b8702d34dace3b208b3b20
- sha256sums_x86_64 = 1eb88a7898ac9006584fc689ff8c29f1ad9837d9fbf794fa7c62976fd8b490a3
+ source = cfssl-1.3.2.tar.gz::https://github.com/cloudflare/cfssl/archive/1.3.2.tar.gz
+ sha256sums = 69ddddb25beebe65e6fe316b9ab3472eae1cd21b2f377447ddc104624233e419
pkgname = cfssl
diff --git a/LICENSE b/LICENSE
deleted file mode 100644
index bc5841fa5597..000000000000
--- a/LICENSE
+++ /dev/null
@@ -1,24 +0,0 @@
-Copyright (c) 2014 CloudFlare Inc.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
-Redistributions of source code must retain the above copyright notice,
-this list of conditions and the following disclaimer.
-
-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.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"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 COPYRIGHT
-HOLDER 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.
diff --git a/PKGBUILD b/PKGBUILD
index ece2cca91e0d..5438ea3bdda5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,53 +1,42 @@
# Maintainer: Konstantin Gribov <grossws@gmail.com>
pkgname=cfssl
-_pkgver=1.2
-pkgver=${_pkgver}.0
+pkgver=1.3.2
pkgrel=1
pkgdesc="CloudFlare PKI and TLS toolkit"
arch=('i686' 'x86_64')
url="https://cfssl.org/"
license=('BSD')
depends=('glibc')
+makedepends=('go')
-source_x86_64=("cfssl::https://pkg.cfssl.org/R${_pkgver}/cfssl_linux-amd64"
- "cfssljson::https://pkg.cfssl.org/R${_pkgver}/cfssljson_linux-amd64"
- "cfssl_mkbundle::https://pkg.cfssl.org/R${_pkgver}/mkbundle_linux-amd64"
- "cfssl_multirootca::https://pkg.cfssl.org/R${_pkgver}/multirootca_linux-amd64"
- "cfssl-bundle::https://pkg.cfssl.org/R${_pkgver}/cfssl-bundle_linux-amd64"
- "cfssl-certinfo::https://pkg.cfssl.org/R${_pkgver}/cfssl-certinfo_linux-amd64"
- "cfssl-newkey::https://pkg.cfssl.org/R${_pkgver}/cfssl-newkey_linux-amd64"
- "cfssl-scan::https://pkg.cfssl.org/R${_pkgver}/cfssl-scan_linux-amd64")
-source_i686=("cfssl::https://pkg.cfssl.org/R${_pkgver}/cfssl_linux-386"
- "cfssljson::https://pkg.cfssl.org/R${_pkgver}/cfssljson_linux-386"
- "cfssl_mkbundle::https://pkg.cfssl.org/R${_pkgver}/mkbundle_linux-386"
- "cfssl_multirootca::https://pkg.cfssl.org/R${_pkgver}/multirootca_linux-386"
- "cfssl-bundle::https://pkg.cfssl.org/R${_pkgver}/cfssl-bundle_linux-386"
- "cfssl-certinfo::https://pkg.cfssl.org/R${_pkgver}/cfssl-certinfo_linux-386"
- "cfssl-newkey::https://pkg.cfssl.org/R${_pkgver}/cfssl-newkey_linux-386"
- "cfssl-scan::https://pkg.cfssl.org/R${_pkgver}/cfssl-scan_linux-386")
-source=("LICENSE::https://raw.githubusercontent.com/cloudflare/${pkgname}/${pkgver}/LICENSE")
-sha256sums_x86_64=('eb34ab2179e0b67c29fd55f52422a94fe751527b06a403a79325fed7cf0145bd'
- '1c9e628c3b86c3f2f8af56415d474c9ed4c8f9246630bd21c3418dbe5bf6401e'
- '88f90fa9120662c3acdbbedd22306f4cf7ae71e9708838a6d5c8f1652b5bf747'
- '7b7884ae113eb7693591194399d424bd39902252c3198d6dea075ac98b3f275d'
- 'c0ad5348ede0b8038872bf06bab1f81657b710392371c5db10bd8372336ebd0f'
- 'ad395c35824bdff343189188658f15810d137c230463810026c6f04f3f78f08f'
- 'eb58dfa8c8115b59f28d8444b1007c7be169814d24b8702d34dace3b208b3b20'
- '1eb88a7898ac9006584fc689ff8c29f1ad9837d9fbf794fa7c62976fd8b490a3')
-sha256sums_i686=('b968f3c2aedff9557f80102293f34fea262c7d7b53bec057b3f138ca456c6ed5'
- '5ad9be85ea5e4371fcfedb5abbf31302de0860ed4b53adc6251227c6792a1a9a'
- '86f2a93bf32eace855036835466400c8cc1934bf26a27f38d7a4c0a0062c1c99'
- 'a1cf390ac42006fe659e25587c7ba74ea63c7d27a557d733efecdd7e4fd7f25f'
- '0eb68020b0be3b540450543b7d7484fb3a68f036cc3525060e1f41dc2378af49'
- 'b9336fabec0413e9dd5a95ab43583bfe328eaee238ceb445cbafb27947d4fcd4'
- '2475fc8761546e6bb61fa4f6be32828c7778f0d9faf137db475aebb25da2a91a'
- '07142231c17645275b3b5461ce1b61f6a8cbc0c245767796123950f2c0d2b924')
-sha256sums=('dc439285c60b63ec585769cf151a03345654a78271cdfd56250f59f1175fba88')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/cloudflare/${pkgname}/archive/${pkgver}.tar.gz")
+sha256sums=('69ddddb25beebe65e6fe316b9ab3472eae1cd21b2f377447ddc104624233e419')
+
+_prefix=github.com/cloudflare/${pkgname}
+_binaries=(cfssl cfssljson cfssl-bundle cfssl-certinfo cfssl-newkey cfssl-scan mkbundle multirootca)
+
+prepare () {
+ export GOPATH="${srcdir}"
+ export PATH="$GOPATH/bin:$PATH"
+ mkdir -p src/github.com/cloudflare/
+ rm -rf src/${_prefix}
+ mv "${pkgname}-${pkgver}" src/${_prefix}
+}
+
+build() {
+ for bin in ${_binaries[@]} ; do
+ echo "building $bin"
+ go install ${_prefix}/cmd/${bin}
+ done
+}
package() {
- install -m755 -D -t "${pkgdir}/usr/bin/" cfssl cfssljson cfssl_mkbundle cfssl_multirootca cfssl-bundle cfssl-certinfo cfssl-newkey cfssl-scan
- install -m644 -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ for bin in ${_binaries[@]} ; do
+ install -m755 -D -t "${pkgdir}/usr/bin/" ${srcdir}/bin/${bin}
+ done
+
+ install -m644 -D ${srcdir}/src/${_prefix}/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim: et: sw=2: sts=2: