From: "Marek Szuba" <marecki@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/syncthing/
Date: Sat, 7 Oct 2017 21:37:00 +0000 (UTC) [thread overview]
Message-ID: <1507412212.60560a5f21525c2b35f34a35512f8f7137a25407.marecki@gentoo> (raw)
commit: 60560a5f21525c2b35f34a35512f8f7137a25407
Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 7 21:35:51 2017 +0000
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Sat Oct 7 21:36:52 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60560a5f
net-p2p/syncthing: bump to 0.14.38
Package-Manager: Portage-2.3.8, Repoman-2.3.1
net-p2p/syncthing/Manifest | 1 +
net-p2p/syncthing/syncthing-0.14.38.ebuild | 123 +++++++++++++++++++++++++++++
2 files changed, 124 insertions(+)
diff --git a/net-p2p/syncthing/Manifest b/net-p2p/syncthing/Manifest
index 320318280fb..dbd2015b181 100644
--- a/net-p2p/syncthing/Manifest
+++ b/net-p2p/syncthing/Manifest
@@ -1 +1,2 @@
DIST syncthing-0.14.35.tar.gz 8235883 SHA256 58509294a150d137fbd005b5629d2859cce661d25e8063505813c4e7faa62fae SHA512 2a3de76e7118be6e91b8bc6bc69b10e250755836b378fa762e0feaed280bb2206d2e4552f09fd230d51e246633108fd8cff343ac355742ebb1bd06c2145fe086 WHIRLPOOL bdc971896378fe04576273cab23432f3dfdd96f77d464c0ea0bc8143771a40a15520d20ce2e76ccd790e78c04421f92e31ce1af04f66760a4f101b8b67b6c852
+DIST syncthing-0.14.38.tar.gz 8246629 SHA256 76c1dab5873d6f3b9799ad3e5dcab4c17fb0f5a699fe845bd081f162d96f4477 SHA512 be5f7527d63e8db427705c34b26d783d9abd7cb5727d3dcf08ee62b1ace5454b7dfed4f030ec53e847a34f560cf349460f68c859a1008c5105aef65ef42c5cc5 WHIRLPOOL c71799207eaa6dfac7839ead25dd551c76f00823f70d9bfc1bc72409ef410dbdb28cf9df3742a97a56f12cf0c705262299eec164313a027118be177ce6b5458f
diff --git a/net-p2p/syncthing/syncthing-0.14.38.ebuild b/net-p2p/syncthing/syncthing-0.14.38.ebuild
new file mode 100644
index 00000000000..27a867b3aba
--- /dev/null
+++ b/net-p2p/syncthing/syncthing-0.14.38.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGO_PN="github.com/${PN}/${PN}"
+
+inherit golang-vcs-snapshot systemd user versionator
+
+DESCRIPTION="Open Source Continuous File Synchronization"
+HOMEPAGE="https://syncthing.net"
+SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~arm"
+IUSE="selinux tools"
+
+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 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() {
+ 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 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}/strelaysrv.logrotate" strelaysrv
+ fi
+}
+
+pkg_postinst() {
+ local v
+ for v in ${REPLACING_VERSIONS}; do
+ if [[ $(get_version_component_range 2) -gt \
+ $(get_version_component_range 2 ${v}) ]]; 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
+ ewarn "Syncthing OpenRC init script now uses the upstream default of"
+ ewarn ""
+ ewarn " /var/lib/${PN}/.config/${PN}"
+ ewarn ""
+ ewarn "as its configuration directory. Please set SYNCTHING_HOMEDIR"
+ ewarn "to /var/lib/${PN} in /etc/conf.d/${PN} if you wish to continue"
+ ewarn "using the old Gentoo default. Systemd users are not affected."
+ done
+
+ # check if user syncthing-relaysrv exists
+ # if yes, warn that it has been moved to strelaysrv
+ if [[ -n "$(egetent passwd syncthing-relaysrv 2>/dev/null)" ]]; then
+ ewarn
+ ewarn "The user and group for the relay server have been changed"
+ ewarn "from syncthing-relaysrv to strelaysrv"
+ ewarn "The old user and group are not deleted automatically. Delete them by running:"
+ ewarn " userdel -r syncthing-relaysrv"
+ ewarn " groupdel syncthing-relaysrv"
+ fi
+}
next reply other threads:[~2017-10-07 21:37 UTC|newest]
Thread overview: 313+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-07 21:37 Marek Szuba [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-10-25 5:46 [gentoo-commits] repo/gentoo:master commit in: net-p2p/syncthing/ Arthur Zamarin
2024-10-25 5:46 Arthur Zamarin
2024-09-29 19:21 Marc Schiffbauer
2024-09-29 19:17 Marc Schiffbauer
2024-09-20 7:36 Arthur Zamarin
2024-09-20 7:35 Arthur Zamarin
2024-09-20 7:35 Arthur Zamarin
2024-08-16 16:44 Marc Schiffbauer
2024-08-16 13:58 Sam James
2024-08-14 9:50 Sam James
2024-08-14 9:50 Sam James
2024-07-25 11:41 Sam James
2024-07-25 11:38 Sam James
2024-07-25 0:47 Jakov Smolić
2024-07-09 13:54 Marc Schiffbauer
2024-07-01 8:24 Sam James
2024-07-01 8:24 Sam James
2024-07-01 8:24 Sam James
2024-06-28 22:33 Marc Schiffbauer
2024-06-14 13:33 Marek Szuba
2024-04-10 10:37 Marek Szuba
2024-03-25 10:37 Marek Szuba
2024-01-15 15:32 Marek Szuba
2024-01-15 14:01 Sam James
2024-01-15 14:01 Sam James
2024-01-14 14:36 Sam James
2024-01-14 14:16 Sam James
2024-01-14 14:16 Sam James
2024-01-14 12:41 Marek Szuba
2023-12-27 15:29 Marek Szuba
2023-12-26 21:26 Sam James
2023-12-26 19:25 Arthur Zamarin
2023-12-26 18:45 Arthur Zamarin
2023-12-26 18:45 Arthur Zamarin
2023-12-24 21:07 Marek Szuba
2023-11-21 10:05 Marek Szuba
2023-10-22 11:03 Marek Szuba
2023-10-22 11:03 Marek Szuba
2023-10-19 13:37 Sam James
2023-10-09 21:45 Sam James
2023-10-09 20:30 Sam James
2023-10-09 20:02 Sam James
2023-10-09 19:13 Sam James
2023-10-09 19:13 Sam James
2023-09-07 9:27 Marek Szuba
2023-08-22 21:35 Marek Szuba
2023-08-22 11:16 Sam James
2023-08-22 10:33 Sam James
2023-08-21 17:49 Sam James
2023-08-21 17:43 Sam James
2023-08-21 17:43 Sam James
2023-08-12 21:07 Marek Szuba
2023-08-12 21:07 Marek Szuba
2023-07-10 23:04 Marek Szuba
2023-06-08 13:16 Marek Szuba
2023-06-08 12:23 Arthur Zamarin
2023-06-08 12:23 Arthur Zamarin
2023-06-08 12:23 Arthur Zamarin
2023-06-08 12:23 Arthur Zamarin
2023-06-08 12:23 Arthur Zamarin
2023-06-07 21:59 Marek Szuba
2023-05-09 13:38 Marek Szuba
2023-05-05 9:35 Arthur Zamarin
2023-05-04 19:09 Jakov Smolić
2023-05-04 18:53 Arthur Zamarin
2023-05-04 18:41 Arthur Zamarin
2023-05-04 15:24 Arthur Zamarin
2023-05-04 14:08 Marek Szuba
2023-04-16 19:36 Marek Szuba
2023-04-11 18:24 Arthur Zamarin
2023-04-11 18:17 Arthur Zamarin
2023-04-10 10:51 Sam James
2023-04-10 10:40 Sam James
2023-04-10 10:37 Sam James
2023-04-05 21:20 Marek Szuba
2023-03-25 21:55 Marek Szuba
2023-02-03 6:08 William Hubbs
2023-01-19 10:38 Marek Szuba
2022-12-17 6:41 WANG Xuerui
2022-12-12 22:53 Marek Szuba
2022-11-05 0:24 Marek Szuba
2022-10-11 9:18 Marek Szuba
2022-10-10 7:02 Agostino Sarubbo
2022-10-09 8:55 Agostino Sarubbo
2022-10-09 8:52 Agostino Sarubbo
2022-10-08 23:10 Sam James
2022-10-08 23:10 Sam James
2022-10-04 12:50 Marek Szuba
2022-10-04 0:53 Marek Szuba
2022-09-07 12:26 Marek Szuba
2022-09-01 15:34 Marek Szuba
2022-08-24 15:36 Marek Szuba
2022-08-04 14:05 Marek Szuba
2022-07-12 15:39 Marek Szuba
2022-06-08 22:38 Marek Szuba
2022-05-16 8:49 Marek Szuba
2022-05-15 19:03 Jakov Smolić
2022-05-15 16:06 Jakov Smolić
2022-05-15 11:52 Jakov Smolić
2022-05-15 11:40 Jakov Smolić
2022-05-15 11:40 Jakov Smolić
2022-05-08 20:51 Marek Szuba
2022-04-09 23:35 Marek Szuba
2022-04-06 21:44 Marek Szuba
2022-03-22 13:32 Marek Szuba
2022-03-01 16:47 Marek Szuba
2022-01-13 18:42 Arthur Zamarin
2022-01-13 18:40 Arthur Zamarin
2022-01-13 10:54 Marek Szuba
2022-01-13 0:33 Sam James
2022-01-13 0:32 Sam James
2022-01-12 21:52 Marek Szuba
2022-01-12 17:08 Jakov Smolić
2022-01-11 18:38 Marek Szuba
2021-12-16 10:16 Marek Szuba
2021-12-15 17:30 Arthur Zamarin
2021-12-15 16:46 Arthur Zamarin
2021-12-15 14:46 Jakov Smolić
2021-12-15 13:40 Jakov Smolić
2021-12-09 12:03 Marek Szuba
2021-11-10 17:33 Marek Szuba
2021-11-10 17:33 Marek Szuba
2021-10-05 16:08 Marek Szuba
2021-10-04 12:03 Marek Szuba
2021-10-01 23:42 Sam James
2021-09-26 5:01 Sam James
2021-09-24 15:37 Sam James
2021-09-22 20:09 Marek Szuba
2021-09-22 6:55 Agostino Sarubbo
2021-09-09 11:20 Marek Szuba
2021-08-03 15:42 Marek Szuba
2021-07-09 6:26 Agostino Sarubbo
2021-07-09 1:36 Sam James
2021-07-07 10:19 Marek Szuba
2021-06-22 10:22 Marek Szuba
2021-06-02 22:25 Marek Szuba
2021-05-07 12:15 Marek Szuba
2021-04-12 16:59 Marek Szuba
2021-04-12 1:27 Sam James
2021-04-11 15:49 Sam James
2021-04-10 7:47 Sam James
2021-04-10 0:34 Sam James
2021-04-09 22:22 Sam James
2021-04-07 8:08 Marek Szuba
2021-04-07 8:08 Marek Szuba
2021-03-15 6:32 Sam James
2021-03-14 22:03 Sam James
2021-03-12 15:30 Sam James
2021-03-12 15:28 Sam James
2021-03-12 15:25 Sam James
2021-03-04 14:47 Marek Szuba
2021-03-04 14:47 Marek Szuba
2021-02-08 14:54 Marek Szuba
2021-01-19 14:09 Marek Szuba
2021-01-19 12:15 Marek Szuba
2021-01-19 12:15 Marek Szuba
2020-12-09 11:30 Marek Szuba
2020-11-14 1:06 Georgy Yakovlev
2020-11-12 0:35 Thomas Deutschmann
2020-11-07 0:36 Sam James
2020-11-05 16:10 Marek Szuba
2020-11-05 16:10 Marek Szuba
2020-11-03 13:35 Sam James
2020-11-03 13:35 Sam James
2020-10-12 18:39 Marek Szuba
2020-10-07 16:54 Marek Szuba
2020-09-09 22:02 Marek Szuba
2020-09-05 19:44 Marek Szuba
2020-09-05 7:42 Sergei Trofimovich
2020-09-01 22:44 Sam James
2020-08-30 17:40 William Hubbs
2020-08-30 17:14 Thomas Deutschmann
2020-08-29 20:05 Sam James
2020-08-29 2:06 Sam James
2020-08-27 18:26 Marek Szuba
2020-08-27 18:26 Marek Szuba
2020-08-24 17:19 Marek Szuba
2020-07-13 12:15 Marek Szuba
2020-07-10 9:52 Marek Szuba
2020-06-18 17:34 Marek Szuba
2020-05-14 17:05 Marek Szuba
2020-04-28 19:23 Mart Raudsepp
2020-04-23 6:26 Agostino Sarubbo
2020-04-17 17:58 Marek Szuba
2020-04-14 12:32 Agostino Sarubbo
2020-04-11 15:58 Agostino Sarubbo
2020-04-10 14:39 Agostino Sarubbo
2020-04-09 17:51 Marek Szuba
2020-03-20 17:39 Marek Szuba
2020-03-09 12:43 Marek Szuba
2020-03-09 12:43 Marek Szuba
2020-02-10 13:12 Marek Szuba
2019-12-22 0:25 Georgy Yakovlev
2019-12-19 15:18 Marek Szuba
2019-12-19 15:18 Marek Szuba
2019-11-07 12:26 Marek Szuba
2019-11-07 10:52 Marek Szuba
2019-11-05 12:37 Marek Szuba
2019-10-08 14:57 Marek Szuba
2019-10-08 14:57 Marek Szuba
2019-09-20 8:54 Marek Szuba
2019-09-20 8:54 Marek Szuba
2019-08-05 11:21 Marek Szuba
2019-08-05 11:21 Marek Szuba
2019-07-29 10:43 Mikle Kolyada
2019-07-17 15:24 Agostino Sarubbo
2019-07-12 13:33 Agostino Sarubbo
2019-07-03 11:09 Marek Szuba
2019-06-11 14:58 Marek Szuba
2019-05-24 11:13 Marek Szuba
2019-03-27 17:51 Marek Szuba
2019-03-15 10:53 Marek Szuba
2019-03-15 10:53 Marek Szuba
2019-03-12 10:22 Marek Szuba
2019-03-12 10:22 Marek Szuba
2019-02-10 17:13 Mikle Kolyada
2019-01-09 11:42 Marek Szuba
2018-12-13 15:43 Mikle Kolyada
2018-12-07 2:41 Thomas Deutschmann
2018-11-07 14:32 Marek Szuba
2018-11-07 14:32 Marek Szuba
2018-10-03 9:35 Marek Szuba
2018-07-26 10:13 Marek Szuba
2018-05-02 10:04 Marek Szuba
2018-05-02 10:04 Marek Szuba
2018-04-18 13:06 Marek Szuba
2018-04-16 21:48 Mikle Kolyada
2018-02-16 9:47 Marek Szuba
2017-12-15 8:18 Jason Zaman
2017-11-08 7:48 Marek Szuba
2017-11-08 7:48 Marek Szuba
2017-08-09 15:10 Marek Szuba
2017-08-09 15:10 Marek Szuba
2017-07-25 14:20 Marek Szuba
2017-06-13 14:34 Marek Szuba
2017-05-22 10:36 Marek Szuba
2017-04-28 9:59 Marek Szuba
2017-04-27 19:59 Dirkjan Ochtman
2017-04-27 14:02 Marek Szuba
2017-04-27 10:52 Dirkjan Ochtman
2017-04-27 10:52 Dirkjan Ochtman
2017-04-27 10:52 Dirkjan Ochtman
2017-04-27 10:52 Dirkjan Ochtman
2017-03-08 9:18 David Seifert
2017-03-08 9:18 David Seifert
2017-02-11 10:55 Michael Palimaka
2017-02-11 10:55 Michael Palimaka
2017-01-26 22:40 David Seifert
2017-01-26 22:40 David Seifert
2017-01-12 14:06 Patrice Clement
2017-01-12 14:06 Patrice Clement
2016-12-18 19:11 Göktürk Yüksek
2016-12-17 22:02 Patrice Clement
2016-12-17 22:02 Patrice Clement
2016-12-04 0:51 Patrice Clement
2016-12-04 0:51 Patrice Clement
2016-11-26 12:06 David Seifert
2016-11-26 12:06 David Seifert
2016-11-16 22:01 David Seifert
2016-11-16 22:01 David Seifert
2016-11-02 16:19 Göktürk Yüksek
2016-11-02 16:19 Göktürk Yüksek
2016-10-18 12:31 Patrice Clement
2016-10-18 12:31 Patrice Clement
2016-09-24 8:54 Dirkjan Ochtman
2016-09-24 8:54 Dirkjan Ochtman
2016-09-08 1:28 Göktürk Yüksek
2016-09-08 1:28 Göktürk Yüksek
2016-08-26 9:24 Dirkjan Ochtman
2016-08-26 9:24 Dirkjan Ochtman
2016-08-11 17:48 Dirkjan Ochtman
2016-08-11 17:48 Dirkjan Ochtman
2016-07-29 14:53 Dirkjan Ochtman
2016-07-29 14:53 Dirkjan Ochtman
2016-07-29 14:50 Dirkjan Ochtman
2016-07-24 6:04 Patrick Lauer
2016-07-23 21:09 Patrice Clement
2016-07-23 21:09 Patrice Clement
2016-07-23 21:09 Patrice Clement
2016-07-05 18:24 Dirkjan Ochtman
2016-07-05 18:24 Dirkjan Ochtman
2016-06-27 15:20 Göktürk Yüksek
2016-06-14 18:19 Dirkjan Ochtman
2016-06-14 18:19 Dirkjan Ochtman
2016-06-03 19:32 Dirkjan Ochtman
2016-06-03 19:32 Dirkjan Ochtman
2016-05-29 8:32 Dirkjan Ochtman
2016-05-22 6:31 Dirkjan Ochtman
2016-05-21 18:16 Dirkjan Ochtman
2016-05-21 18:16 Dirkjan Ochtman
2016-05-13 13:46 Dirkjan Ochtman
2016-05-13 13:46 Dirkjan Ochtman
2016-05-07 6:28 Dirkjan Ochtman
2016-05-07 6:28 Dirkjan Ochtman
2016-04-13 13:49 Dirkjan Ochtman
2016-04-13 13:49 Dirkjan Ochtman
2016-03-23 20:03 Dirkjan Ochtman
2016-03-23 20:03 Dirkjan Ochtman
2016-03-07 8:07 Ian Delaney
2016-03-07 8:07 Ian Delaney
2016-02-24 21:06 Patrice Clement
2016-02-19 9:52 Patrice Clement
2016-02-17 20:43 Dirkjan Ochtman
2016-02-17 20:43 Dirkjan Ochtman
2016-02-17 20:43 Dirkjan Ochtman
2016-02-14 10:35 Dirkjan Ochtman
2016-02-10 21:51 Dirkjan Ochtman
2016-02-10 18:13 Dirkjan Ochtman
2016-02-10 18:13 Dirkjan Ochtman
2016-02-10 18:13 Dirkjan Ochtman
2016-02-08 8:35 Dirkjan Ochtman
2016-02-07 18:11 Dirkjan Ochtman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1507412212.60560a5f21525c2b35f34a35512f8f7137a25407.marecki@gentoo \
--to=marecki@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox