diff options
author | Louis Sautier <sautier.louis@gmail.com> | 2016-06-14 00:01:46 +0200 |
---|---|---|
committer | Dirkjan Ochtman <djc@gentoo.org> | 2016-06-14 20:19:31 +0200 |
commit | ef74d9d673b444998cbf233cdcf1f18a599cd64a (patch) | |
tree | f259e94e9fb1ff432f0c83bdf86f6f7b798b40c4 /net-p2p/syncthing | |
parent | dev-python/m2crypto: update HOMEPAGE after github->gitlab move (diff) | |
download | gentoo-ef74d9d673b444998cbf233cdcf1f18a599cd64a.tar.gz gentoo-ef74d9d673b444998cbf233cdcf1f18a599cd64a.tar.bz2 gentoo-ef74d9d673b444998cbf233cdcf1f18a599cd64a.zip |
net-p2p/syncthing: bump to 0.13.7
Package-Manager: portage-2.3.0_rc1
Diffstat (limited to 'net-p2p/syncthing')
-rw-r--r-- | net-p2p/syncthing/Manifest | 1 | ||||
-rw-r--r-- | net-p2p/syncthing/syncthing-0.13.7.ebuild | 64 |
2 files changed, 65 insertions, 0 deletions
diff --git a/net-p2p/syncthing/Manifest b/net-p2p/syncthing/Manifest index 809aa447a3f4..a3ecfa9a58c5 100644 --- a/net-p2p/syncthing/Manifest +++ b/net-p2p/syncthing/Manifest @@ -1,3 +1,4 @@ DIST syncthing-0.12.25.tar.gz 4469275 SHA256 0374721434d0cb8bdd9464f63ff9705fe0ca14ab1e20d916780cb6347c91e72d SHA512 5bdb03ae5f76faddd54304994e04683f2a950419c8b4902553ea83d623976039bc05195f77fe59e2ef19615e91da308adc93b05061265e485a9dc941f2b750d4 WHIRLPOOL e6a10d1142dca73174bd9514526ad8f8357c930aa02fb2a2940adbd690fd209bcad15c3397daabd77052c5962d320665362a86fcafca3d19513ca6d06adcfd37 DIST syncthing-0.13.4.tar.gz 3937983 SHA256 c7ecb7ace4837295a03fc72d0b133d2ec149e412bd998d9247d7d4504ef0f64b SHA512 e7ffaa2f72e81e19ebe190db5384a72e19aae531c0ea7f9603f0683b9adae48ea2c637d0aaa86550b1b6e8f1543576caf9bec69be6264b460a91422cdd9df7df WHIRLPOOL 87c82f8abd5edd3e8e08e5525fcd272db13226577a07478fedb8dd28280468e0862e37119d51eb663e501ce79d97c705ae337d55e35dae562d53dce59e4f8cfd DIST syncthing-0.13.5.tar.gz 4335533 SHA256 c0427e28b4aa3f8e2f2d214132b1c65ac2b12a7c96bd7a0d46db0825e23f67ae SHA512 a718a8a7d6a704ddadf3d8e701ce97eeba732593a1a8540a4423beb32a47c068e0d487e42a1827fc6d639ab0b3e920880e26554f009d1cd9c1d461b903a3e203 WHIRLPOOL 93e5b57d96d23eb4d369cfd59b6a2d1e0ea2c96b72a9dddd7e8c5c2c6031b5e6b28d3c984bf3999f7034b964c0cb9dc16b0fb8e8024ff327093c59414be73c59 +DIST syncthing-0.13.7.tar.gz 4331253 SHA256 c487a489504e48bc7a94f25322da5485c23b3a8e3df2832b2454556ab86552c8 SHA512 8e00355f9774329cb4da1173ad27528213520644c32d5b5ba2345b93787bc762d0498c33ccf2d72e91b770258e8a55d86573934baeff0bc0799416850320c82b WHIRLPOOL 688ef2a997e3e3ad4a23b5baeba6566d39938b007092f40e767db6f6a92c33069bf0ee3afdee2df848a2edfee7846cfb3fbabdc81dcf1a40e795feafae29a221 diff --git a/net-p2p/syncthing/syncthing-0.13.7.ebuild b/net-p2p/syncthing/syncthing-0.13.7.ebuild new file mode 100644 index 000000000000..79d5258238b5 --- /dev/null +++ b/net-p2p/syncthing/syncthing-0.13.7.ebuild @@ -0,0 +1,64 @@ +# 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 versionator + +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} +} + +pkg_postinst() { + if [[ $(get_version_component_range 2) -gt \ + $(get_version_component_range 2 ${REPLACING_VERSIONS}) ]]; then + ewarn "Version ${PV} is not protocol-compatible with version" \ + "0.$(($(get_version_component_range 2) - 1)).x or lower." + ewarn "Make sure all your devices are running at least version" \ + "0.$(get_version_component_range 2).0." + fi +} |