summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Sautier <sautier.louis@gmail.com>2016-03-23 10:10:53 +0100
committerDirkjan Ochtman <djc@gentoo.org>2016-03-23 21:02:43 +0100
commitc5389bae36f1c6e93460edd32e9634ce258cd160 (patch)
treecb36854145df4e49782a8669b674bec3ab2de123 /net-p2p
parentnet-misc/curl: Stable 7.47.1 for arm64 per bug #578058 (diff)
downloadgentoo-c5389bae36f1c6e93460edd32e9634ce258cd160.tar.gz
gentoo-c5389bae36f1c6e93460edd32e9634ce258cd160.tar.bz2
gentoo-c5389bae36f1c6e93460edd32e9634ce258cd160.zip
net-p2p/syncthing: bump to 0.12.21
Removed a useless die for doman. 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.21.ebuild54
2 files changed, 55 insertions, 0 deletions
diff --git a/net-p2p/syncthing/Manifest b/net-p2p/syncthing/Manifest
index f8712fb5ef7..700cbe3d820 100644
--- a/net-p2p/syncthing/Manifest
+++ b/net-p2p/syncthing/Manifest
@@ -1,2 +1,3 @@
DIST syncthing-0.12.19.tar.gz 4047476 SHA256 5a7035029974fe0fb496d9f8af880a50bcc8499ff5eef7ee4ef48f08df37820e SHA512 89d2b34c5bb9772bcaad84caa03794cdcfeade8fef0b8abaeea6a1cccdc09167a690aa8b1dfadac81d9ac0e8a07c9be112af7f2e56f12f589b906c518c49a686 WHIRLPOOL c0589a5e6a4f090dee9f79bb199c901b3f0e75cf0f92c12851a9713cdf7e813c8a5564ce475000529d2a5edafb9861d1b820858cb6fa3bb5bf082ff5586da9b3
DIST syncthing-0.12.20.tar.gz 4047350 SHA256 89dc46ebbe8b114467abe0171fd03a76408a9cf4fe44308db2b6d60eee233006 SHA512 1df45f4f778b1f2784f0787695bf5f94796747bc103d032b07e4cdb1108211a5debcfb5a10c0284bee43f896e011e29264e49216216570efe563822efce4907c WHIRLPOOL 8614a87d4b03737dc69e966933314925efa4f2ccd9966af4d44930244a87d2819397c059cec2af2544161c9ab0df41ce7e578d156c4ca0cb911975e10a230aad
+DIST syncthing-0.12.21.tar.gz 4047353 SHA256 f236ea51a072942987bb7c4c0f95b456c960d659b8f86660b61aa56f72066bdb SHA512 29954c0c13d7471cbd593d6e1ab80d5210179c99dfcf338693f2e4d22eb265894e77b149f59a307025182e904a34b4b52820a406c3b3d5ae4d1863c6d5d2ff3a WHIRLPOOL ba965d650a502025b7d2d99cdd5d45d2f34948bf45468cf6c5c0bcb52a5d3bdadc72fa6aecee83ce96766f6e368cbf8b773975cd0ce137d28055545fda3ac5f5
diff --git a/net-p2p/syncthing/syncthing-0.12.21.ebuild b/net-p2p/syncthing/syncthing-0.12.21.ebuild
new file mode 100644
index 00000000000..761b96c6fbe
--- /dev/null
+++ b/net-p2p/syncthing/syncthing-0.12.21.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] || die
+ 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}
+}