1 |
commit: c42fe4a7a668a79575ddf49438ff7719bc653d9f |
2 |
Author: Dirkjan Ochtman <djc <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 29 08:32:16 2016 +0000 |
4 |
Commit: Dirkjan Ochtman <djc <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 29 08:32:33 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c42fe4a7 |
7 |
|
8 |
net-p2p/syncthing: version bump to 0.13.4 |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
net-p2p/syncthing/Manifest | 1 + |
13 |
net-p2p/syncthing/syncthing-0.13.4.ebuild | 64 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 65 insertions(+) |
15 |
|
16 |
diff --git a/net-p2p/syncthing/Manifest b/net-p2p/syncthing/Manifest |
17 |
index 1ac84dd..b6f9857 100644 |
18 |
--- a/net-p2p/syncthing/Manifest |
19 |
+++ b/net-p2p/syncthing/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST syncthing-0.12.25.tar.gz 4469275 SHA256 0374721434d0cb8bdd9464f63ff9705fe0ca14ab1e20d916780cb6347c91e72d SHA512 5bdb03ae5f76faddd54304994e04683f2a950419c8b4902553ea83d623976039bc05195f77fe59e2ef19615e91da308adc93b05061265e485a9dc941f2b750d4 WHIRLPOOL e6a10d1142dca73174bd9514526ad8f8357c930aa02fb2a2940adbd690fd209bcad15c3397daabd77052c5962d320665362a86fcafca3d19513ca6d06adcfd37 |
22 |
DIST syncthing-0.13.2.tar.gz 3928871 SHA256 98dac8cf182222967f96e213dc307ede3ed5c6407bd66faeb81e904de4011e89 SHA512 84a751c6eecd7753a1c52effd3074cb9b75f82050833ce1f1b5070711b21897d0fde3a8bed98b61bcf92ba45aa5fe38c4339a2c9d0908982ca6f25ff6ac8368a WHIRLPOOL b80ed15c954bfec64114958bb57b0f68ff70967877a1be21210e9cb97a9bf72868a47467188ba30478515c1ccebb040a81f6de0ab4b7861db2cc817712b1a5c5 |
23 |
+DIST syncthing-0.13.4.tar.gz 3937983 SHA256 c7ecb7ace4837295a03fc72d0b133d2ec149e412bd998d9247d7d4504ef0f64b SHA512 e7ffaa2f72e81e19ebe190db5384a72e19aae531c0ea7f9603f0683b9adae48ea2c637d0aaa86550b1b6e8f1543576caf9bec69be6264b460a91422cdd9df7df WHIRLPOOL 87c82f8abd5edd3e8e08e5525fcd272db13226577a07478fedb8dd28280468e0862e37119d51eb663e501ce79d97c705ae337d55e35dae562d53dce59e4f8cfd |
24 |
|
25 |
diff --git a/net-p2p/syncthing/syncthing-0.13.4.ebuild b/net-p2p/syncthing/syncthing-0.13.4.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000..79d5258 |
28 |
--- /dev/null |
29 |
+++ b/net-p2p/syncthing/syncthing-0.13.4.ebuild |
30 |
@@ -0,0 +1,64 @@ |
31 |
+# Copyright 1999-2016 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+EGO_PN="github.com/syncthing/syncthing" |
38 |
+EGIT_COMMIT=v${PV} |
39 |
+ |
40 |
+inherit golang-vcs-snapshot systemd user versionator |
41 |
+ |
42 |
+DESCRIPTION="Open Source Continuous File Synchronization" |
43 |
+HOMEPAGE="https://syncthing.net" |
44 |
+SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="MPL-2.0" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~x86 ~arm" |
49 |
+IUSE="" |
50 |
+ |
51 |
+DEPEND="" |
52 |
+RDEPEND="" |
53 |
+ |
54 |
+pkg_setup() { |
55 |
+ enewgroup ${PN} |
56 |
+ enewuser ${PN} -1 -1 /var/lib/${PN} ${PN} |
57 |
+} |
58 |
+ |
59 |
+src_compile() { |
60 |
+ export GOPATH="${S}:$(get_golibdir_gopath)" |
61 |
+ cd src/${EGO_PN} |
62 |
+ go run build.go -version "v${PV}" -no-upgrade || die "build failed" |
63 |
+} |
64 |
+ |
65 |
+src_test() { |
66 |
+ cd src/${EGO_PN} |
67 |
+ go run build.go test || die "test failed" |
68 |
+} |
69 |
+ |
70 |
+src_install() { |
71 |
+ cd src/${EGO_PN} |
72 |
+ doman man/*.[157] |
73 |
+ dobin bin/* |
74 |
+ dodoc README.md AUTHORS CONTRIBUTING.md |
75 |
+ systemd_dounit "${S}"/src/${EGO_PN}/etc/linux-systemd/system/${PN}@.service \ |
76 |
+ "${S}"/src/${EGO_PN}/etc/linux-systemd/system/${PN}-resume.service |
77 |
+ systemd_douserunit "${S}"/src/${EGO_PN}/etc/linux-systemd/user/${PN}.service |
78 |
+ newconfd "${FILESDIR}/${PN}.confd" ${PN} |
79 |
+ newinitd "${FILESDIR}/${PN}.initd" ${PN} |
80 |
+ keepdir /var/{lib,log}/${PN} |
81 |
+ fowners ${PN}:${PN} /var/{lib,log}/${PN} |
82 |
+ insinto /etc/logrotate.d |
83 |
+ newins "${FILESDIR}/${PN}.logrotate" ${PN} |
84 |
+} |
85 |
+ |
86 |
+pkg_postinst() { |
87 |
+ if [[ $(get_version_component_range 2) -gt \ |
88 |
+ $(get_version_component_range 2 ${REPLACING_VERSIONS}) ]]; then |
89 |
+ ewarn "Version ${PV} is not protocol-compatible with version" \ |
90 |
+ "0.$(($(get_version_component_range 2) - 1)).x or lower." |
91 |
+ ewarn "Make sure all your devices are running at least version" \ |
92 |
+ "0.$(get_version_component_range 2).0." |
93 |
+ fi |
94 |
+} |