From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0DEAF138334 for ; Fri, 24 May 2019 11:13:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CD34DE08CA; Fri, 24 May 2019 11:13:09 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A10C8E08CA for ; Fri, 24 May 2019 11:13:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C90B2344F63 for ; Fri, 24 May 2019 11:13:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0D5E95EB for ; Fri, 24 May 2019 11:13:05 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1558696370.7efbe881898b2af546dd19e1701501225b0c2893.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/syncthing/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-p2p/syncthing/Manifest net-p2p/syncthing/syncthing-1.1.3.ebuild X-VCS-Directories: net-p2p/syncthing/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 7efbe881898b2af546dd19e1701501225b0c2893 X-VCS-Branch: master Date: Fri, 24 May 2019 11:13:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 30473fdd-f397-4af4-accd-b8c59b9f9aff X-Archives-Hash: 12634bd5476afa7d05af124cf840b39b commit: 7efbe881898b2af546dd19e1701501225b0c2893 Author: Marek Szuba gentoo org> AuthorDate: Fri May 24 11:12:41 2019 +0000 Commit: Marek Szuba gentoo org> CommitDate: Fri May 24 11:12:50 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7efbe881 net-p2p/syncthing: bump to 1.1.3 Signed-off-by: Marek Szuba gentoo.org> Package-Manager: Portage-2.3.62, Repoman-2.3.11 net-p2p/syncthing/Manifest | 1 + net-p2p/syncthing/syncthing-1.1.3.ebuild | 163 +++++++++++++++++++++++++++++++ 2 files changed, 164 insertions(+) diff --git a/net-p2p/syncthing/Manifest b/net-p2p/syncthing/Manifest index 493ba6ea166..82f201c1266 100644 --- a/net-p2p/syncthing/Manifest +++ b/net-p2p/syncthing/Manifest @@ -51,3 +51,4 @@ DIST github.com-vitrun-qart-bf64b92db6b05651d6c25a3dabf2d543b360c0aa.tar.gz 2397 DIST syncthing-0.14.52.tar.gz 10583112 BLAKE2B cceaf0aba9dff96df0551d7aab855cb716be3d252fd677b82e20560f0a2e9eabf513ca7c7acdf4f1a3b4d3d8f6409692df7d2e92b86b1be1753bdd8913e06952 SHA512 cff48ea1d1286c8b1fe971b00423ad64ef10c9b0555f0cae6e008efc07a21698d54d402fe1a0ac3161c0b5180e5ca0099a0a302fd7e7c5da0f227bdb7e2853ce DIST syncthing-1.0.1.tar.gz 7114455 BLAKE2B 71c80afaab5a546551e8e72e63272ab277df33645d4de19005376de599d8fe0bad9d4a1e7758321d116f8c46cd73067a770f641a0c736ad678a09579716f44a8 SHA512 7f9fd48e00fae2f0913eb9eeddadaad1d5d7559164a24020706e70411f8ec43420192c4c9422699be6faa1641a382d5b8627038ca9a5dad38ee0e189970efbb7 DIST syncthing-1.1.0.tar.gz 4658059 BLAKE2B 7b145d0299eada05662f500269d15bee078d00a16ea1cd621fcae0179e6ffc0180741867be33b3736392bb850bf82770a245002d735ba518a48574a11c5c2c07 SHA512 9fd3b7b29fc5842ec0764a274d8695772c1dc23d9c971c4741ea4fba93f93afbdc0df6e743345ebe83a26556e2a693b808a409190d6cc6c61d8d6b9850e5e998 +DIST syncthing-1.1.3.tar.gz 4686497 BLAKE2B d80718bc084212657cb7f1c3a4b5c41f22e43ddbba6923d1daf20328789135fcfca8a0f40adaedd68c1a3c29b891eaed39b0fac2099777999a1e2ed3f980c676 SHA512 43dff52336c19a9a8ce39413a9288d0f500d633589e0f3ff3989ad38d9c6fe6af5b01b27b3143e6beb0841e1e6bc6c590f4859530720e2730cdf214130c99a3a diff --git a/net-p2p/syncthing/syncthing-1.1.3.ebuild b/net-p2p/syncthing/syncthing-1.1.3.ebuild new file mode 100644 index 00000000000..b03fd9fcd02 --- /dev/null +++ b/net-p2p/syncthing/syncthing-1.1.3.ebuild @@ -0,0 +1,163 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +EGO_PN="github.com/${PN}/${PN}" + +EGO_VENDOR=( + "github.com/AudriusButkevicius/go-nat-pmp 452c97607362b2ab5a7839b8d1704f0396b640ca" + "github.com/AudriusButkevicius/recli v0.0.5" + "github.com/bkaradzic/go-lz4 7224d8d8f27ef618c0a95f1ae69dbb0488abc33a" + "github.com/calmh/du v1.0.1" + "github.com/calmh/xdr v1.1.0" + "github.com/chmduquesne/rollinghash a60f8e7142b536ea61bb5d84014171189eeaaa81" + "github.com/d4l3k/messagediff v1.2.1" + "github.com/davecgh/go-spew v1.1.1" + "github.com/flynn-archive/go-shlex 3f9db97f856818214da2e1057f8ad84803971cff" + "github.com/gobwas/glob 51eb1ee00b6d931c66d229ceeb7c31b985563420" + "github.com/gogo/protobuf v1.2.0" + "github.com/golang/groupcache 84a468cf14b4376def5d68c722b139b881c450a4" + "github.com/golang/snappy 553a641470496b2327abcac10b36396bd98e45c9" + "github.com/jackpal/gateway 5795ac81146e01d3fab7bcf21c043c3d6a32b006" + "github.com/kballard/go-shellquote cd60e84ee657ff3dc51de0b4f55dd299a3e136f2" + "github.com/kr/pretty v0.1.0" + "github.com/lib/pq v1.0.0" + "github.com/mattn/go-isatty v0.0.4" + "github.com/minio/sha256-simd cc1980cb03383b1d46f518232672584432d7532d" + "github.com/onsi/ginkgo 6c46eb8334b30dc55b42f1a1c725d5ce97375390" + "github.com/onsi/gomega ba3724c94e4dd5d5690d37c190f1c54b2c1b4e64" + "github.com/oschwald/geoip2-golang v1.1.0" + "github.com/oschwald/maxminddb-golang 26fe5ace1c706491c2936119e1dc69c1a9c04d7f" + "github.com/petermattis/goid 3db12ebb2a599ba4a96bea1c17b61c2f78a40e02" + "github.com/pkg/errors v0.8.1" + "github.com/pmezard/go-difflib v1.0.0" + "github.com/prometheus/client_golang v0.9.2" + "github.com/rcrowley/go-metrics e181e095bae94582363434144c61a9653aff6e50" + "github.com/sasha-s/go-deadlock v0.2.0" + "github.com/stretchr/testify v1.2.2" + "github.com/syncthing/notify 4e389ea6c0d84e6195eb585ffaf62c8c143306ae" + "github.com/syndtr/goleveldb 34011bf325bce385408353a30b101fe5e923eb6e" + "github.com/thejerf/suture v3.0.2" + "github.com/urfave/cli v1.20.0" + "github.com/vitrun/qart bf64b92db6b05651d6c25a3dabf2d543b360c0aa" + "golang.org/x/crypto 0fcca4842a8d74bfddc2c96a073bd2a4d2a7a2e8 github.com/golang/crypto" + "golang.org/x/net 351d144fa1fc0bd934e2408202be0c29f25e35a0 github.com/golang/net" + "golang.org/x/sys 4d1cda033e0619309c606fc686de3adcf599539e github.com/golang/sys" + "golang.org/x/text e19ae1496984b1c655b8044a65c0300a3c878dd3 github.com/golang/text" + "golang.org/x/time 6dc17368e09b0e8634d71cac8168d853e869a0c7 github.com/golang/time" + "gopkg.in/asn1-ber.v1 v1.2 github.com/go-asn1-ber/asn1-ber" + "gopkg.in/check.v1 788fd78401277ebd861206a03c884797c6ec5541 github.com/go-check/check" + "gopkg.in/ldap.v2 v2.5.1 github.com/go-ldap/ldap" + "gopkg.in/yaml.v2 v2.0.0 github.com/go-yaml/yaml" + # These are only used by the test suite but conditional vendoring is messy + "github.com/beorn7/perks 3a771d992973f24aa725d07868b467d1ddfceafb" + "github.com/golang/protobuf v1.2.0" + "github.com/matttproud/golang_protobuf_extensions v1.0.1" + "github.com/prometheus/client_model 5c3871d89910bfb32f5fcab2aa4b9ec68e65a99f" + "github.com/prometheus/common v0.1.0" + "github.com/prometheus/procfs 1dc9a6cbc91aacc3e8b2d63db4d2e957a5394ac4" +) + +inherit golang-vcs-snapshot systemd user xdg-utils + +DESCRIPTION="Open Source Continuous File Synchronization" +HOMEPAGE="https://syncthing.net" +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + ${EGO_VENDOR_URI}" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="selinux tools" + +BDEPEND=">=dev-lang/go-1.12" +RDEPEND="selinux? ( sec-policy/selinux-syncthing )" + +DOCS=( README.md AUTHORS CONTRIBUTING.md ) + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 /var/lib/${PN} ${PN} + + if use tools ; then + # separate user for the discovery server + enewgroup stdiscosrv + enewuser stdiscosrv -1 -1 /var/lib/stdiscosrv stdiscosrv + keepdir /var/lib/stdiscosrv + fowners stdiscosrv:stdiscosrv /var/lib/stdiscosrv + + # separate user for the relay server + enewgroup strelaysrv + enewuser strelaysrv -1 -1 /var/lib/strelaysrv strelaysrv + # and his home folder + keepdir /var/lib/strelaysrv + fowners strelaysrv:strelaysrv /var/lib/strelaysrv + fi +} + +src_prepare() { + # Bug #679280 + xdg_environment_reset + + default + sed -i \ + 's|^ExecStart=.*|ExecStart=/usr/libexec/syncthing/strelaysrv|' \ + src/${EGO_PN}/cmd/strelaysrv/etc/linux-systemd/strelaysrv.service \ + || die +} + +src_compile() { + export GOPATH="${S}:$(get_golibdir_gopath)" + cd src/${EGO_PN} || die + go run build.go -version "v${PV}" -no-upgrade install \ + $(usex tools "all" "") || die "build failed" +} + +src_test() { + cd src/${EGO_PN} || die + go run build.go test || die "test failed" +} + +src_install() { + pushd src/${EGO_PN} >& /dev/null || die + doman man/*.[157] + einstalldocs + + dobin bin/syncthing + if use tools ; then + exeinto /usr/libexec/syncthing + local exe + for exe in bin/* ; do + [[ "${exe}" == "bin/syncthing" ]] || doexe "${exe}" + done + fi + popd >& /dev/null || die + + # openrc and systemd service files + systemd_dounit src/${EGO_PN}/etc/linux-systemd/system/${PN}{@,-resume}.service + systemd_douserunit src/${EGO_PN}/etc/linux-systemd/user/${PN}.service + newconfd "${FILESDIR}/${PN}.confd" ${PN} + newinitd "${FILESDIR}/${PN}.initd" ${PN} + + keepdir /var/{lib,log}/${PN} + fowners ${PN}:${PN} /var/{lib,log}/${PN} + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotate" ${PN} + + if use tools ; then + # openrc and systemd service files + + systemd_dounit "${FILESDIR}/stdiscosrv.service" + newconfd "${FILESDIR}/stdiscosrv.confd" stdiscosrv + newinitd "${FILESDIR}/stdiscosrv.initd" stdiscosrv + + systemd_dounit src/${EGO_PN}/cmd/strelaysrv/etc/linux-systemd/strelaysrv.service + newconfd "${FILESDIR}/strelaysrv.confd" strelaysrv + newinitd "${FILESDIR}/strelaysrv.initd" strelaysrv + + insinto /etc/logrotate.d + newins "${FILESDIR}/stdiscosrv.logrotate" strelaysrv + newins "${FILESDIR}/strelaysrv.logrotate" strelaysrv + fi +}