diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-09-21 15:43:52 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-09-21 15:43:52 +0000 |
commit | 7f81d50024bbb3d434e864796cdb5047306e5174 (patch) | |
tree | 57226a3f533bd73e5bae5656aac530d2e36156f2 /testing | |
parent | fba03989a367e7853bc236b7213d72a8465dd30c (diff) | |
download | aports-7f81d50024bbb3d434e864796cdb5047306e5174.tar.bz2 aports-7f81d50024bbb3d434e864796cdb5047306e5174.tar.xz |
testing/sos: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/sos/APKBUILD | 40 | ||||
-rw-r--r-- | testing/sos/Gopkg.lock | 45 | ||||
-rw-r--r-- | testing/sos/Gopkg.toml | 42 |
3 files changed, 127 insertions, 0 deletions
diff --git a/testing/sos/APKBUILD b/testing/sos/APKBUILD new file mode 100644 index 0000000000..264ed23140 --- /dev/null +++ b/testing/sos/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org> +# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org> +pkgname=sos +pkgver=0.8 +pkgrel=0 +pkgdesc="Simple Object Storage" +url="https://github.com/skx/sos" +arch="all" +license="GPL-2.0" +options="!check" # has no check +makedepends="go dep" +source="sos-$pkgver.tar.gz::https://github.com/skx/sos/archive/release-$pkgver.tar.gz + Gopkg.lock + Gopkg.toml + " +builddir="$srcdir/src/github.com/skx/$pkgname" + +prepare() { + mkdir -p ${builddir%/*} + mv "$srcdir"/$pkgname-release-$pkgver "$builddir"/ + cd "$builddir" + cp $srcdir/Gopkg.* "$builddir"/ + GOPATH="$srcdir" dep ensure + default_prepare +} + +build() { + cd "$builddir" + GOPATH="$srcdir" go build -v -x -ldflags="-X main.version=$pkgver" \ + -o ./bin/sos +} + +package() { + cd "$builddir" + install -Dm755 bin/sos "$pkgdir"/usr/bin/sos +} + +sha512sums="c2b69ec5d945725a4d3ae765622c97a3f5dfecf0550309593e33b68b842855746711f74254d8a70e0754ee66a6dd7a279f5ac414274697086e086ba78d2b9c83 sos-0.8.tar.gz +ab3cf64fb1c39aee91873b95e12daeecd8b8017c3524182289cc7eafa38b05c6e428e10f12da27abab2e0b25040a57ee9c2caa85f7dfa6584f6d899c74118965 Gopkg.lock +881455b622e905d00e11b8d888b565900c4de5377360fd6982e88b8833548b42480e9447f22da428ecb2c95784e624db376e08c163577c8996c5f43e6aa22aae Gopkg.toml" diff --git a/testing/sos/Gopkg.lock b/testing/sos/Gopkg.lock new file mode 100644 index 0000000000..27fcd9c156 --- /dev/null +++ b/testing/sos/Gopkg.lock @@ -0,0 +1,45 @@ +# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. + + +[[projects]] + digest = "1:5abd6a22805b1919f6a6bca0ae58b13cef1f3412812f38569978f43ef02743d4" + name = "github.com/go-ini/ini" + packages = ["."] + pruneopts = "UT" + revision = "5cf292cae48347c2490ac1a58fe36735fb78df7e" + version = "v1.38.2" + +[[projects]] + branch = "master" + digest = "1:b264547c40314ec7619d2cf264e2621953843be7242c140efe1e3119f93877f4" + name = "github.com/google/subcommands" + packages = ["."] + pruneopts = "UT" + revision = "5bae204cdfb2d92dcc333d56014bae6a2f6c58b1" + +[[projects]] + digest = "1:c79fb010be38a59d657c48c6ba1d003a8aa651fa56b579d959d74573b7dff8e1" + name = "github.com/gorilla/context" + packages = ["."] + pruneopts = "UT" + revision = "08b5f424b9271eedf6f9f0ce86cb9396ed337a42" + version = "v1.1.1" + +[[projects]] + digest = "1:e73f5b0152105f18bc131fba127d9949305c8693f8a762588a82a48f61756f5f" + name = "github.com/gorilla/mux" + packages = ["."] + pruneopts = "UT" + revision = "e3702bed27f0d39777b0b37b664b6280e8ef8fbf" + version = "v1.6.2" + +[solve-meta] + analyzer-name = "dep" + analyzer-version = 1 + input-imports = [ + "github.com/go-ini/ini", + "github.com/google/subcommands", + "github.com/gorilla/mux", + ] + solver-name = "gps-cdcl" + solver-version = 1 diff --git a/testing/sos/Gopkg.toml b/testing/sos/Gopkg.toml new file mode 100644 index 0000000000..4e9ad735d1 --- /dev/null +++ b/testing/sos/Gopkg.toml @@ -0,0 +1,42 @@ +# Gopkg.toml example +# +# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html +# for detailed Gopkg.toml documentation. +# +# required = ["github.com/user/thing/cmd/thing"] +# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] +# +# [[constraint]] +# name = "github.com/user/project" +# version = "1.0.0" +# +# [[constraint]] +# name = "github.com/user/project2" +# branch = "dev" +# source = "github.com/myfork/project2" +# +# [[override]] +# name = "github.com/x/y" +# version = "2.4.0" +# +# [prune] +# non-go = false +# go-tests = true +# unused-packages = true + + +[[constraint]] + name = "github.com/go-ini/ini" + version = "1.38.2" + +[[constraint]] + branch = "master" + name = "github.com/google/subcommands" + +[[constraint]] + name = "github.com/gorilla/mux" + version = "1.6.2" + +[prune] + go-tests = true + unused-packages = true |