diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2017-01-06 16:00:52 +0100 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2017-01-06 16:01:41 +0100 |
commit | 6336b6fd20b724363bc8e3cc9e7bcf4ad1d6b328 (patch) | |
tree | b7045e9ad90846b1c15166eed282ae9eb49d0e54 /net-fs | |
parent | app-admin/lib_users: Mark ~ppc64 (bug #604504). (diff) | |
download | gentoo-6336b6fd20b724363bc8e3cc9e7bcf4ad1d6b328.tar.gz gentoo-6336b6fd20b724363bc8e3cc9e7bcf4ad1d6b328.tar.bz2 gentoo-6336b6fd20b724363bc8e3cc9e7bcf4ad1d6b328.zip |
net-fs/docker-volume-netshare: Initial version
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'net-fs')
5 files changed, 104 insertions, 0 deletions
diff --git a/net-fs/docker-volume-netshare/Manifest b/net-fs/docker-volume-netshare/Manifest new file mode 100644 index 000000000000..93dcdd6c48e1 --- /dev/null +++ b/net-fs/docker-volume-netshare/Manifest @@ -0,0 +1,12 @@ +DIST Sirupsen-logrus-3ec0642a7fb6488f65b06f9040adc67e3990296a.tar.gz 23879 SHA256 4a2a3f0a6b979d4e3886e51a2672d91a9c34c23e13039f618739994ef8d059cd SHA512 8d5a2ca82b45c583ebb3d0101c5452966c282d3657761a7c8e7a9c225cd8cc03f5cbb2eac69bb0ec1a4cb5c20ce77cc3405f3fe1b830d95e5013003c4bc9b31a WHIRLPOOL 40796877fbd0877e28c3cf0d401600b76548af3a07174acc4cf329ad0ad6acab945b9917a62bae5a575245bd0025e48706b412ab67cd628ca8e6a5593b154d65 +DIST coreos-go-systemd-7c9533367ef925dc1078d75e5b7141e10da2c4e8.tar.gz 51668 SHA256 1f2b7b30e3c1ce51bd1ee7a0cd8c463e140f2788ab420141ae085c2bfc8d9af6 SHA512 3183da823535c45ef0305aa8fa4935631d8fbbfc0d8a8239364784af8dfef6261665025bf7ab6390c83370420eeda73d56309b0561bfc0720f62d95e40696fd1 WHIRLPOOL f14dcf5897d590bc3637266e9884a8636a582972e815d8816f7ee6430864cf46b7eeaade1e2e068b85309788d1b651aef6e8e3cd9b7ee8b5a610340a488816eb +DIST coreos-pkg-447b7ec906e523386d9c53be15b55a8ae86ea944.tar.gz 31059 SHA256 9aebda581ce48b7293ff6487f5037226a9df368373861b5add2ae91ab0510ca4 SHA512 0ff9c77f4a45b9ce8dc3f80c2a101c40e62c24c3f48c644a373f374bcaae68b5d6926f747a15ea7554f8cc014812f247d58ae9aca67ab825e8b77b12e19a7442 WHIRLPOOL 6747a489e9368de4724d0d323a8975ee2d726d75e92c618a2c4134f485c3379443da6d6ceb6fdbca8a8fafc437a2d7378ed1e325233c7739df2c5aff6aff187d +DIST dickeyxxx-netrc-3acf1b3de25d89c7688c63bb45f6b07f566555ec.tar.gz 5252 SHA256 2ded9d58248330ad399d6bd79cf97a4ce322f90a910f02a9ce4d53a81df25620 SHA512 f513f94b180743a3bf447ee79648c067f7908a1877201919794ad7c387fbe8ef4c4513c2def45e24e1d1d7f15c272ecbf3667219071e8aa3922c1fc69aa254e1 WHIRLPOOL 22688185138a0ec98d8836a50d8c786f6b876369528c3cb5dadd1d4906e73256be4ef5910fd7d3fbd8c85164da2d9e27e8304416dda64a8a5a8d726b7a2aca93 +DIST docker-go-connections-988efe982fdecb46f01d53465878ff1f2ff411ce.tar.gz 21629 SHA256 0ca0c5e62528d9ab4b5a15fdffdff9c24129ff6893ee461a7525d86a34146459 SHA512 14a9b92be80e9e6c769f9c62cc59d5421ca61caad7e962141cc5f80418bc4d55a0f4846ca5cef9ebbfe88eaf71455e65faf866bc2f171a3cefd838c2434e7cbc WHIRLPOOL 10d415e4121671d590a8a1bad309a4911344a9fd64d37aa8a1b2e3b75e9c06af3f27f9ba270b0003dc64213afc5aa481ef05bdc29315f7e1f272b953fbf2d281 +DIST docker-go-plugins-helpers-8a0198e77ac4e4ee167222caf6894cb32386c5fc.tar.gz 21175 SHA256 2b75fb4ab662b9e22debe110aff4f52b302d2891dbc7f4899542e2faaf86019a SHA512 bdab2c2811e615a4519d67d9d89678bcc570ecab3ef5182fa5f43c36091ec3045b7cc3134eb28ad4378639fb80d67e373479cc58f793ba0a0c3923a569fd296c WHIRLPOOL ff67510dd90d8ada2682e05cd93fe8c4b86cd27e9240436b950ec3da18dd320f06c2d8e0a7ff1a027f8318d3e1f684815b8f6f924a8455335e70e5903b34049b +DIST docker-volume-netshare-0.32_p20161024.tar.gz 18011 SHA256 8f7433b64e3eaa2a003c218f6d0d0344ab6959e621208cdb1aefa3e965603345 SHA512 9ab416ea2a051a5fe88bf86df59bff624c642e7873ef8ee64cef0d38ceaf0cf4c1efad6ad17cec3354966e602cd4cc2e79af8abd115fc80d54c04c062fd533ba WHIRLPOOL de7e698ad3c9d13fe37281e777835bbd0cc8d7566ac02f442b1d1b97cc3c8ead967e57226bacc50bea42eee6d251538c0d21e4abfc48416a1e4f8627c1c89d04 +DIST golang-net-905989bd20b7c354fd28a61074eed1c8f49ebc89.tar.gz 832545 SHA256 03d549cfbc63f77a381f1108c47300d130aa5a2376cffd4841201ef8490d9c43 SHA512 f1fca71ffc3284da357a2c2cb6f20ae617f0fe96403ee3e37cdef26f31ed73c4eb08f3fbd7a0d14ce113e0b565c4aa1862d757a53df629cacf8d7c51b6c983ca WHIRLPOOL bfcf35f6589ce2632d3c68d2210de7a399b76229383077e1612909fe054663ce4e0473ea3da268a18cdeba1804d9456f29faf556f8f3e9240455e7a2dfa3505a +DIST miekg-dns-58f52c57ce9df13460ac68200cef30a008b9c468.tar.gz 170163 SHA256 615088fcab96891123bf1b64033f31b653e598bc359e252fa9c20aa4fd8950dd SHA512 8c915a49781330fea2a8033d58b3e8c83da469116f4055db112483d32bda973d764c131939fc0f41a43562c8dd1e6d384d29f25885fb0c5c5623ef60637ce72a WHIRLPOOL cd8495a4309e676efa098cf27b7449424506cc4466bcef3747d3ed7e3fe2b4c26554cc289e7552c8ec8f773130a556d3c369545d3c8abcc31c4b87d1fc9a72ee +DIST opencontainers-runc-1a9dd2678d2d6ad574f05cb7b9ae46ce65586725.tar.gz 574673 SHA256 93d6e6fdd70c816fc8d321615b7e5bee1f3f8fdb321881468552c0777643645f SHA512 77287d98d7b3f0859d05459883425b21669fa3590b6249b73854cee08ea1eeea6e550772b4177e0cef7ba763598ca0b520b98e4dacddd6b000290c613e8d58f6 WHIRLPOOL 3392b63f33101b08410953f002de3ccf8cab1e499b18ecbe21d8d24c9b66255d7d370961c7fd23af2f4cc17127445d4c552a94b5626aafe1031c658b33497c15 +DIST spf13-cobra-856b96dcb49d6427babe192998a35190a12c2230.tar.gz 72112 SHA256 99961f2105f663d4ed7db00628b6dd89c16d634479b5259db725f5201a617a4c SHA512 f677096152e2f69a21a8fe2e9fa7a3c28cf0cba4b0cd9d677980281b3aa559a8d55956c67575d4502eb97d951a9580e68e9342b375fd57f95c58cf338f1b3202 WHIRLPOOL 0df47f20b054c7d12310e2f1c4fc2a34a575f84438a48f5dbfb7f9bf752a07d505a0785318b9b5f1d907ab6d5e9c5efabad2aa51905678f8abcb87544e5b8a47 +DIST spf13-pflag-dabebe21bf790f782ea4c7bbd2efc430de182afd.tar.gz 32209 SHA256 87db12a403e2c56941a1fed1f3d6ab88a47d18cbdf65e4136b8e6f230d3c8515 SHA512 f44dd01e64eae594c0f6ce01f69ac38b3ecb08e65baa941b7f9939c6e86a277a24d40b58d626213a73fc860fe0d19c9400c3e33c97dc99c0041a4191b91c758a WHIRLPOOL 1919f655e4a8ef5a386fe7ca6736712c892704866d61dd68ae639c1d83dcca9d40cc6905bf6e9c3e63567dbe9d65f376d9ac2a83d960fe0b86994c54aad552a0 diff --git a/net-fs/docker-volume-netshare/docker-volume-netshare-0.32_p20161024.ebuild b/net-fs/docker-volume-netshare/docker-volume-netshare-0.32_p20161024.ebuild new file mode 100644 index 000000000000..b66606792e5b --- /dev/null +++ b/net-fs/docker-volume-netshare/docker-volume-netshare-0.32_p20161024.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit golang-vcs-snapshot systemd user + +KEYWORDS="~amd64" +EGO_PN="github.com/ContainX/docker-volume-netshare/..." +EGIT_COMMIT="07ecbb79beb37b05f5a292cc45c28c1b2d251c70" +SRC_URI="https://${EGO_PN%/*}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz + https://github.com/Sirupsen/logrus/archive/3ec0642a7fb6488f65b06f9040adc67e3990296a.tar.gz -> Sirupsen-logrus-3ec0642a7fb6488f65b06f9040adc67e3990296a.tar.gz + https://github.com/dickeyxxx/netrc/archive/3acf1b3de25d89c7688c63bb45f6b07f566555ec.tar.gz -> dickeyxxx-netrc-3acf1b3de25d89c7688c63bb45f6b07f566555ec.tar.gz + https://github.com/docker/go-plugins-helpers/archive/8a0198e77ac4e4ee167222caf6894cb32386c5fc.tar.gz -> docker-go-plugins-helpers-8a0198e77ac4e4ee167222caf6894cb32386c5fc.tar.gz + https://github.com/coreos/go-systemd/archive/7c9533367ef925dc1078d75e5b7141e10da2c4e8.tar.gz -> coreos-go-systemd-7c9533367ef925dc1078d75e5b7141e10da2c4e8.tar.gz + https://github.com/coreos/pkg/archive/447b7ec906e523386d9c53be15b55a8ae86ea944.tar.gz -> coreos-pkg-447b7ec906e523386d9c53be15b55a8ae86ea944.tar.gz + https://github.com/docker/go-connections/archive/988efe982fdecb46f01d53465878ff1f2ff411ce.tar.gz -> docker-go-connections-988efe982fdecb46f01d53465878ff1f2ff411ce.tar.gz + https://github.com/opencontainers/runc/archive/1a9dd2678d2d6ad574f05cb7b9ae46ce65586725.tar.gz -> opencontainers-runc-1a9dd2678d2d6ad574f05cb7b9ae46ce65586725.tar.gz + https://github.com/miekg/dns/archive/58f52c57ce9df13460ac68200cef30a008b9c468.tar.gz -> miekg-dns-58f52c57ce9df13460ac68200cef30a008b9c468.tar.gz + https://github.com/spf13/cobra/archive/856b96dcb49d6427babe192998a35190a12c2230.tar.gz -> spf13-cobra-856b96dcb49d6427babe192998a35190a12c2230.tar.gz + https://github.com/spf13/pflag/archive/dabebe21bf790f782ea4c7bbd2efc430de182afd.tar.gz -> spf13-pflag-dabebe21bf790f782ea4c7bbd2efc430de182afd.tar.gz + https://github.com/golang/net/archive/905989bd20b7c354fd28a61074eed1c8f49ebc89.tar.gz -> golang-net-905989bd20b7c354fd28a61074eed1c8f49ebc89.tar.gz" +DESCRIPTION="Docker NFS, AWS EFS, Ceph & Samba/CIFS Volume Plugin" +HOMEPAGE="https://github.com/ContainX/docker-volume-netshare" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +_golang-include-src() { + local VENDORPN=$1 TARBALL=$2 + mkdir -p "${WORKDIR}/${P}/src/${VENDORPN}" || die + tar -C "${WORKDIR}/${P}/src/${VENDORPN}" -x --strip-components 1\ + -f "${DISTDIR}"/${TARBALL} || die +} + +src_unpack() { + golang-vcs-snapshot_src_unpack + _golang-include-src github.com/Sirupsen/logrus Sirupsen-logrus-*.tar.gz + _golang-include-src github.com/dickeyxxx/netrc dickeyxxx-netrc-*.tar.gz + _golang-include-src github.com/docker/go-plugins-helpers docker-go-plugins-helpers-*.tar.gz + _golang-include-src github.com/coreos/go-systemd coreos-go-systemd-*.tar.gz + _golang-include-src github.com/coreos/pkg coreos-pkg-*.tar.gz + _golang-include-src github.com/docker/go-connections docker-go-connections-*.tar.gz + _golang-include-src github.com/miekg/dns miekg-dns-*.tar.gz + _golang-include-src github.com/opencontainers/runc opencontainers-runc-*.tar.gz + _golang-include-src github.com/spf13/cobra spf13-cobra-*.tar.gz + _golang-include-src github.com/spf13/pflag spf13-pflag-*.tar.gz + _golang-include-src golang.org/x/net golang-net-*.tar.gz +} + +src_prepare() { + default + sed -i -e "s/VERSION string = \"\"/VERSION string =\"${PV}\"/" src/${EGO_PN%/*}/main.go || die +} + +src_compile() { + CGO_LDFLAGS="-fno-PIC" GOPATH="${S}" go install -v -work "${EGO_PN}" || die +} + +src_install() { + dobin bin/${PN} + pushd src/${EGO_PN%/*} || die + dodoc README.md + popd || die + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +} diff --git a/net-fs/docker-volume-netshare/files/docker-volume-netshare.confd b/net-fs/docker-volume-netshare/files/docker-volume-netshare.confd new file mode 100644 index 000000000000..a8a88debb293 --- /dev/null +++ b/net-fs/docker-volume-netshare/files/docker-volume-netshare.confd @@ -0,0 +1,2 @@ +# arguments for docker-volume-netshare plugin +command_args="nfs -o nolock" diff --git a/net-fs/docker-volume-netshare/files/docker-volume-netshare.initd b/net-fs/docker-volume-netshare/files/docker-volume-netshare.initd new file mode 100644 index 000000000000..eba0e49a50a8 --- /dev/null +++ b/net-fs/docker-volume-netshare/files/docker-volume-netshare.initd @@ -0,0 +1,12 @@ +#!/sbin/openrc-run +# Copyright 2016-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +description="Docker Volume Netshare plugin" +pidfile=${pidfile:-"/run/${SVCNAME}.pid"} +command="/usr/bin/docker-volume-netshare" +command_args="${command_args:nfs}" +command_background="true" +start_stop_daemon_args="--stdout /var/log/${SVCNAME}.log \ + --stderr /var/log/${SVCNAME}.log" diff --git a/net-fs/docker-volume-netshare/metadata.xml b/net-fs/docker-volume-netshare/metadata.xml new file mode 100644 index 000000000000..26c8455b4c5e --- /dev/null +++ b/net-fs/docker-volume-netshare/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <name>Manuel Rüger</name> + <email>mrueg@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="github">ContainX/docker-volume-netshare</remote-id> + </upstream> +</pkgmetadata> |