Gentoo Archives: gentoo-commits

From: Dirkjan Ochtman <djc@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/syncthing/
Date: Tue, 05 Jul 2016 18:24:43
Message-Id: 1467743065.027ae4da83c05f58104e401cc53b786b79d79cb4.djc@gentoo
1 commit: 027ae4da83c05f58104e401cc53b786b79d79cb4
2 Author: Louis Sautier <sautier.louis <AT> gmail <DOT> com>
3 AuthorDate: Tue Jul 5 17:44:51 2016 +0000
4 Commit: Dirkjan Ochtman <djc <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 5 18:24:25 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=027ae4da
7
8 net-p2p/syncthing: remove old
9
10 Package-Manager: portage-2.3.0
11
12 net-p2p/syncthing/syncthing-0.13.7.ebuild | 64 -------------------------------
13 1 file changed, 64 deletions(-)
14
15 diff --git a/net-p2p/syncthing/syncthing-0.13.7.ebuild b/net-p2p/syncthing/syncthing-0.13.7.ebuild
16 deleted file mode 100644
17 index 79d5258..0000000
18 --- a/net-p2p/syncthing/syncthing-0.13.7.ebuild
19 +++ /dev/null
20 @@ -1,64 +0,0 @@
21 -# Copyright 1999-2016 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -# $Id$
24 -
25 -EAPI=6
26 -
27 -EGO_PN="github.com/syncthing/syncthing"
28 -EGIT_COMMIT=v${PV}
29 -
30 -inherit golang-vcs-snapshot systemd user versionator
31 -
32 -DESCRIPTION="Open Source Continuous File Synchronization"
33 -HOMEPAGE="https://syncthing.net"
34 -SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
35 -
36 -LICENSE="MPL-2.0"
37 -SLOT="0"
38 -KEYWORDS="~amd64 ~x86 ~arm"
39 -IUSE=""
40 -
41 -DEPEND=""
42 -RDEPEND=""
43 -
44 -pkg_setup() {
45 - enewgroup ${PN}
46 - enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
47 -}
48 -
49 -src_compile() {
50 - export GOPATH="${S}:$(get_golibdir_gopath)"
51 - cd src/${EGO_PN}
52 - go run build.go -version "v${PV}" -no-upgrade || die "build failed"
53 -}
54 -
55 -src_test() {
56 - cd src/${EGO_PN}
57 - go run build.go test || die "test failed"
58 -}
59 -
60 -src_install() {
61 - cd src/${EGO_PN}
62 - doman man/*.[157]
63 - dobin bin/*
64 - dodoc README.md AUTHORS CONTRIBUTING.md
65 - systemd_dounit "${S}"/src/${EGO_PN}/etc/linux-systemd/system/${PN}@.service \
66 - "${S}"/src/${EGO_PN}/etc/linux-systemd/system/${PN}-resume.service
67 - systemd_douserunit "${S}"/src/${EGO_PN}/etc/linux-systemd/user/${PN}.service
68 - newconfd "${FILESDIR}/${PN}.confd" ${PN}
69 - newinitd "${FILESDIR}/${PN}.initd" ${PN}
70 - keepdir /var/{lib,log}/${PN}
71 - fowners ${PN}:${PN} /var/{lib,log}/${PN}
72 - insinto /etc/logrotate.d
73 - newins "${FILESDIR}/${PN}.logrotate" ${PN}
74 -}
75 -
76 -pkg_postinst() {
77 - if [[ $(get_version_component_range 2) -gt \
78 - $(get_version_component_range 2 ${REPLACING_VERSIONS}) ]]; then
79 - ewarn "Version ${PV} is not protocol-compatible with version" \
80 - "0.$(($(get_version_component_range 2) - 1)).x or lower."
81 - ewarn "Make sure all your devices are running at least version" \
82 - "0.$(get_version_component_range 2).0."
83 - fi
84 -}