1 |
commit: 2c6f085a6241ba3e01fc48bb3f37447a1c5693c2 |
2 |
Author: Louis Sautier <sautier.louis <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Mar 7 00:32:36 2016 +0000 |
4 |
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 7 08:06:46 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c6f085a |
7 |
|
8 |
net-p2p/syncthing: bump to 0.12.20, EAPI=6, re-enable tests |
9 |
|
10 |
This release introduces a new systemd unit: syncthing-resume |
11 |
|
12 |
Package-Manager: portage-2.2.27 |
13 |
|
14 |
net-p2p/syncthing/Manifest | 1 + |
15 |
net-p2p/syncthing/syncthing-0.12.20.ebuild | 54 ++++++++++++++++++++++++++++++ |
16 |
2 files changed, 55 insertions(+) |
17 |
|
18 |
diff --git a/net-p2p/syncthing/Manifest b/net-p2p/syncthing/Manifest |
19 |
index 68a84f5..c0f809e 100644 |
20 |
--- a/net-p2p/syncthing/Manifest |
21 |
+++ b/net-p2p/syncthing/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST syncthing-0.12.18.tar.gz 4046127 SHA256 e0d1af4f29c9e2325507a7daf4bf97098c87c321a7e075125b66ddaa34b37eb4 SHA512 2f2351a983b3d384e9fe65c87d67b81f20fc20b7b43b8d2fab882131bd4e4119f0cf099571d617f22f0125c43224c653e93329392204f3e0ff6c6a3bba7d8263 WHIRLPOOL cfe491241e9ef4ebd19042a3cc3188771cf64d67c0faa29feda7da5980f86a38c1e284938074271e25bbfb881eca1ca56f237bf81a61be4d836287cbfab27eb2 |
24 |
DIST syncthing-0.12.19.tar.gz 4047476 SHA256 5a7035029974fe0fb496d9f8af880a50bcc8499ff5eef7ee4ef48f08df37820e SHA512 89d2b34c5bb9772bcaad84caa03794cdcfeade8fef0b8abaeea6a1cccdc09167a690aa8b1dfadac81d9ac0e8a07c9be112af7f2e56f12f589b906c518c49a686 WHIRLPOOL c0589a5e6a4f090dee9f79bb199c901b3f0e75cf0f92c12851a9713cdf7e813c8a5564ce475000529d2a5edafb9861d1b820858cb6fa3bb5bf082ff5586da9b3 |
25 |
+DIST syncthing-0.12.20.tar.gz 4047350 SHA256 89dc46ebbe8b114467abe0171fd03a76408a9cf4fe44308db2b6d60eee233006 SHA512 1df45f4f778b1f2784f0787695bf5f94796747bc103d032b07e4cdb1108211a5debcfb5a10c0284bee43f896e011e29264e49216216570efe563822efce4907c WHIRLPOOL 8614a87d4b03737dc69e966933314925efa4f2ccd9966af4d44930244a87d2819397c059cec2af2544161c9ab0df41ce7e578d156c4ca0cb911975e10a230aad |
26 |
|
27 |
diff --git a/net-p2p/syncthing/syncthing-0.12.20.ebuild b/net-p2p/syncthing/syncthing-0.12.20.ebuild |
28 |
new file mode 100644 |
29 |
index 0000000..761b96c |
30 |
--- /dev/null |
31 |
+++ b/net-p2p/syncthing/syncthing-0.12.20.ebuild |
32 |
@@ -0,0 +1,54 @@ |
33 |
+# Copyright 1999-2016 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+# $Id$ |
36 |
+ |
37 |
+EAPI=6 |
38 |
+ |
39 |
+EGO_PN="github.com/syncthing/syncthing" |
40 |
+EGIT_COMMIT=v${PV} |
41 |
+ |
42 |
+inherit golang-vcs-snapshot systemd user |
43 |
+ |
44 |
+DESCRIPTION="Open Source Continuous File Synchronization" |
45 |
+HOMEPAGE="https://syncthing.net" |
46 |
+SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="MPL-2.0" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~x86 ~arm" |
51 |
+IUSE="" |
52 |
+ |
53 |
+DEPEND="" |
54 |
+RDEPEND="" |
55 |
+ |
56 |
+pkg_setup() { |
57 |
+ enewgroup ${PN} |
58 |
+ enewuser ${PN} -1 -1 /var/lib/${PN} ${PN} |
59 |
+} |
60 |
+ |
61 |
+src_compile() { |
62 |
+ export GOPATH="${S}:$(get_golibdir_gopath)" |
63 |
+ cd src/${EGO_PN} |
64 |
+ go run build.go -version "v${PV}" -no-upgrade || die "build failed" |
65 |
+} |
66 |
+ |
67 |
+src_test() { |
68 |
+ cd src/${EGO_PN} |
69 |
+ go run build.go test || die "test failed" |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ cd src/${EGO_PN} |
74 |
+ doman man/*.[157] || die |
75 |
+ dobin bin/* |
76 |
+ dodoc README.md AUTHORS CONTRIBUTING.md |
77 |
+ systemd_dounit "${S}"/src/${EGO_PN}/etc/linux-systemd/system/${PN}@.service \ |
78 |
+ "${S}"/src/${EGO_PN}/etc/linux-systemd/system/${PN}-resume.service |
79 |
+ systemd_douserunit "${S}"/src/${EGO_PN}/etc/linux-systemd/user/${PN}.service |
80 |
+ newconfd "${FILESDIR}/${PN}.confd" ${PN} |
81 |
+ newinitd "${FILESDIR}/${PN}.initd" ${PN} |
82 |
+ keepdir /var/{lib,log}/${PN} |
83 |
+ fowners ${PN}:${PN} /var/{lib,log}/${PN} |
84 |
+ insinto /etc/logrotate.d |
85 |
+ newins "${FILESDIR}/${PN}.logrotate" ${PN} |
86 |
+} |