From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-882774-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id D7674138262
	for <garchives@archives.gentoo.org>; Sun, 22 May 2016 06:31:11 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id F35AC141C9;
	Sun, 22 May 2016 06:31:10 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 8A3D4141C9
	for <gentoo-commits@lists.gentoo.org>; Sun, 22 May 2016 06:31:10 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id C8587340B25
	for <gentoo-commits@lists.gentoo.org>; Sun, 22 May 2016 06:31:08 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 2E41B968
	for <gentoo-commits@lists.gentoo.org>; Sun, 22 May 2016 06:31:06 +0000 (UTC)
From: "Dirkjan Ochtman" <djc@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Dirkjan Ochtman" <djc@gentoo.org>
Message-ID: <1463898641.f7986ed8222ddbb5e9b107d5d358a132b4e0b48a.djc@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-0.13.2.ebuild
X-VCS-Directories: net-p2p/syncthing/
X-VCS-Committer: djc
X-VCS-Committer-Name: Dirkjan Ochtman
X-VCS-Revision: f7986ed8222ddbb5e9b107d5d358a132b4e0b48a
X-VCS-Branch: master
Date: Sun, 22 May 2016 06:31:06 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: f1e2cf2c-6dbf-4cc0-81c6-2003a750aad8
X-Archives-Hash: 0081304004467e876292afea4a97d5e2

commit:     f7986ed8222ddbb5e9b107d5d358a132b4e0b48a
Author:     Louis Sautier <sautier.louis <AT> gmail <DOT> com>
AuthorDate: Sun May 22 01:44:31 2016 +0000
Commit:     Dirkjan Ochtman <djc <AT> gentoo <DOT> org>
CommitDate: Sun May 22 06:30:41 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7986ed8

net-p2p/syncthing: bump to 0.13.2

Gentoo-Bug: 583666

Package-Manager: portage-2.3.0_rc1

 net-p2p/syncthing/Manifest                |  1 +
 net-p2p/syncthing/syncthing-0.13.2.ebuild | 64 +++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)

diff --git a/net-p2p/syncthing/Manifest b/net-p2p/syncthing/Manifest
index 1cf62c1..1ac84dd 100644
--- a/net-p2p/syncthing/Manifest
+++ b/net-p2p/syncthing/Manifest
@@ -1 +1,2 @@
 DIST syncthing-0.12.25.tar.gz 4469275 SHA256 0374721434d0cb8bdd9464f63ff9705fe0ca14ab1e20d916780cb6347c91e72d SHA512 5bdb03ae5f76faddd54304994e04683f2a950419c8b4902553ea83d623976039bc05195f77fe59e2ef19615e91da308adc93b05061265e485a9dc941f2b750d4 WHIRLPOOL e6a10d1142dca73174bd9514526ad8f8357c930aa02fb2a2940adbd690fd209bcad15c3397daabd77052c5962d320665362a86fcafca3d19513ca6d06adcfd37
+DIST syncthing-0.13.2.tar.gz 3928871 SHA256 98dac8cf182222967f96e213dc307ede3ed5c6407bd66faeb81e904de4011e89 SHA512 84a751c6eecd7753a1c52effd3074cb9b75f82050833ce1f1b5070711b21897d0fde3a8bed98b61bcf92ba45aa5fe38c4339a2c9d0908982ca6f25ff6ac8368a WHIRLPOOL b80ed15c954bfec64114958bb57b0f68ff70967877a1be21210e9cb97a9bf72868a47467188ba30478515c1ccebb040a81f6de0ab4b7861db2cc817712b1a5c5

diff --git a/net-p2p/syncthing/syncthing-0.13.2.ebuild b/net-p2p/syncthing/syncthing-0.13.2.ebuild
new file mode 100644
index 0000000..79d5258
--- /dev/null
+++ b/net-p2p/syncthing/syncthing-0.13.2.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+EGO_PN="github.com/syncthing/syncthing"
+EGIT_COMMIT=v${PV}
+
+inherit golang-vcs-snapshot systemd user versionator
+
+DESCRIPTION="Open Source Continuous File Synchronization"
+HOMEPAGE="https://syncthing.net"
+SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~arm"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+pkg_setup() {
+	enewgroup ${PN}
+	enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
+}
+
+src_compile() {
+	export GOPATH="${S}:$(get_golibdir_gopath)"
+	cd src/${EGO_PN}
+	go run build.go -version "v${PV}" -no-upgrade || die "build failed"
+}
+
+src_test() {
+	cd src/${EGO_PN}
+	go run build.go test || die "test failed"
+}
+
+src_install() {
+	cd src/${EGO_PN}
+	doman man/*.[157]
+	dobin bin/*
+	dodoc README.md AUTHORS CONTRIBUTING.md
+	systemd_dounit "${S}"/src/${EGO_PN}/etc/linux-systemd/system/${PN}@.service \
+		"${S}"/src/${EGO_PN}/etc/linux-systemd/system/${PN}-resume.service
+	systemd_douserunit "${S}"/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}
+}
+
+pkg_postinst() {
+	if [[ $(get_version_component_range 2) -gt \
+			$(get_version_component_range 2 ${REPLACING_VERSIONS}) ]]; then
+		ewarn "Version ${PV} is not protocol-compatible with version" \
+			"0.$(($(get_version_component_range 2) - 1)).x or lower."
+		ewarn "Make sure all your devices are running at least version" \
+			"0.$(get_version_component_range 2).0."
+	fi
+}