summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Sautier <sautier.louis@gmail.com>2016-05-07 03:20:24 +0200
committerDirkjan Ochtman <djc@gentoo.org>2016-05-07 08:28:14 +0200
commitfd0630742de315e7185acb77643918326431b5bd (patch)
tree8cc80af957c69214f993bd468b9902b12b08f5ff /net-p2p
parentnet-misc/dhcpcd: version bump (diff)
downloadgentoo-fd0630742de315e7185acb77643918326431b5bd.tar.gz
gentoo-fd0630742de315e7185acb77643918326431b5bd.tar.bz2
gentoo-fd0630742de315e7185acb77643918326431b5bd.zip
net-p2p/syncthing: bump to 0.12.23
Package-Manager: portage-2.2.28
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/syncthing/Manifest1
-rw-r--r--net-p2p/syncthing/syncthing-0.12.23.ebuild54
2 files changed, 55 insertions, 0 deletions
diff --git a/net-p2p/syncthing/Manifest b/net-p2p/syncthing/Manifest
index d3a63b43976..2528f5e4619 100644
--- a/net-p2p/syncthing/Manifest
+++ b/net-p2p/syncthing/Manifest
@@ -1,2 +1,3 @@
DIST syncthing-0.12.21.tar.gz 4047353 SHA256 f236ea51a072942987bb7c4c0f95b456c960d659b8f86660b61aa56f72066bdb SHA512 29954c0c13d7471cbd593d6e1ab80d5210179c99dfcf338693f2e4d22eb265894e77b149f59a307025182e904a34b4b52820a406c3b3d5ae4d1863c6d5d2ff3a WHIRLPOOL ba965d650a502025b7d2d99cdd5d45d2f34948bf45468cf6c5c0bcb52a5d3bdadc72fa6aecee83ce96766f6e368cbf8b773975cd0ce137d28055545fda3ac5f5
DIST syncthing-0.12.22.tar.gz 4047399 SHA256 104402fcd1a2d02344e32cebd9f9d6249494827e87ddd2c7d01ee43148c82d2a SHA512 f6aa390a7fb7a383d584cdb6c1082c0012a9daec3b2c683640fcf625fc9e7baaf0c3d4d46ae1aac5ca2c180e13b6a6529658d128fb03c5c8df1e8e0ccc4ef28a WHIRLPOOL eb54d5040a3362872643d9ea57181c8f1efc6d41c93064b00000abca38b7867f171dacdc69aa212f530f797d5ce036db67cf01fa662d920f8ec01af2ea180e2f
+DIST syncthing-0.12.23.tar.gz 4469246 SHA256 e683c784fa423b598920b5c8f29ac6427dfe19000975b85a45f0f03fe2f0e3ff SHA512 f61c2fa6a513e2804f249433eddb3ee7e134a0c144902b56e4be90277f7e74dd163921cbc02b8c0ae284401b15f48f200f3bd75b61528789ea323574bde5e911 WHIRLPOOL bfcac1e2ebf86a6f006254ff740a5b8a093b34fbaf9ff04068ed7b246afc6cc19b6a0438dce43c7acb787a2041a8cca3282317a26372f011eff719815b07d900
diff --git a/net-p2p/syncthing/syncthing-0.12.23.ebuild b/net-p2p/syncthing/syncthing-0.12.23.ebuild
new file mode 100644
index 00000000000..4aef0ac1d70
--- /dev/null
+++ b/net-p2p/syncthing/syncthing-0.12.23.ebuild
@@ -0,0 +1,54 @@
+# 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
+
+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}
+}