From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 007BE139694 for ; Thu, 6 Jul 2017 22:08:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2888A2340C4; Thu, 6 Jul 2017 22:08:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E9A572340C4 for ; Thu, 6 Jul 2017 22:08:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 858AD3416F3 for ; Thu, 6 Jul 2017 22:08:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F008B7478 for ; Thu, 6 Jul 2017 22:08:48 +0000 (UTC) From: "Patrice Clement" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrice Clement" Message-ID: <1499378927.a294529672562d6b8cd77e26ca4206170e49215e.monsieurp@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/zerotier/files/, net-misc/zerotier/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/zerotier/Manifest net-misc/zerotier/files/zerotier.init net-misc/zerotier/files/zerotier.service net-misc/zerotier/metadata.xml net-misc/zerotier/zerotier-1.2.4.ebuild X-VCS-Directories: net-misc/zerotier/files/ net-misc/zerotier/ X-VCS-Committer: monsieurp X-VCS-Committer-Name: Patrice Clement X-VCS-Revision: a294529672562d6b8cd77e26ca4206170e49215e X-VCS-Branch: master Date: Thu, 6 Jul 2017 22:08:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 4751cc0b-ef48-4260-8a6f-bb2d5d685037 X-Archives-Hash: 414f54a281b80c6b70d37301615cd8a4 commit: a294529672562d6b8cd77e26ca4206170e49215e Author: Patrice Clement gentoo org> AuthorDate: Thu Jul 6 21:59:43 2017 +0000 Commit: Patrice Clement gentoo org> CommitDate: Thu Jul 6 22:08:47 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2945296 net-misc/zerotier: new ebuild. zerotier-one is a smart Ethernet switch for Earth. Gentoo-Bug: https://bugs.gentoo.org/588324 Package-Manager: Portage-2.3.5, Repoman-2.3.1 net-misc/zerotier/Manifest | 1 + net-misc/zerotier/files/zerotier.init | 22 +++++++++++++++++ net-misc/zerotier/files/zerotier.service | 11 +++++++++ net-misc/zerotier/metadata.xml | 12 +++++++++ net-misc/zerotier/zerotier-1.2.4.ebuild | 42 ++++++++++++++++++++++++++++++++ 5 files changed, 88 insertions(+) diff --git a/net-misc/zerotier/Manifest b/net-misc/zerotier/Manifest new file mode 100644 index 00000000000..8dfd2400eb7 --- /dev/null +++ b/net-misc/zerotier/Manifest @@ -0,0 +1 @@ +DIST zerotier-1.2.4.tar.gz 7963254 SHA256 9f275b3732b721f02cc4b8df75b51e6a8fb56dfe1a542a7bd681538d852b0358 SHA512 82adb110208d24ae2745e3839810afcac87955de050ebfe0517a7dc2a875881dafd40c1b16a041742d8c4d0f6513abcc71d6ea3e06c2fb89b47be2630a500363 WHIRLPOOL 661af8a0255ceedbedaf540c77711753d28041986811f30552a2f04432f02ea41b0d6f23786c4dfc664e4d9bd385b7a8da30c42ce902204d4a3ab64e0b17d839 diff --git a/net-misc/zerotier/files/zerotier.init b/net-misc/zerotier/files/zerotier.init new file mode 100644 index 00000000000..7d226552dad --- /dev/null +++ b/net-misc/zerotier/files/zerotier.init @@ -0,0 +1,22 @@ +#!/sbin/openrc-run + +ZEROTIERONE_PIDFILE="/var/run/${SVCNAME}.pid" +PN="zerotier-one" +PN_PATH="/usr/bin/${PN}" + +depend() { + need net +} + +start() { + ebegin "Starting ${PN}" + start-stop-daemon --start \ + --exec "${PN_PATH}" --make-pidfile --pidfile "${ZEROTIERONE_PIDFILE}" --background + eend $? +} + +stop() { + ebegin "Stopping ${PN}" + start-stop-daemon --stop --quiet --pidfile "${ZEROTIERONE_PIDFILE}" + eend $? +} diff --git a/net-misc/zerotier/files/zerotier.service b/net-misc/zerotier/files/zerotier.service new file mode 100644 index 00000000000..c4a1c4d2997 --- /dev/null +++ b/net-misc/zerotier/files/zerotier.service @@ -0,0 +1,11 @@ +[Unit] +Description=ZeroTier One +After=network.target + +[Service] +ExecStart=/var/lib/zerotier-one/zerotier-one +Restart=always +KillMode=process + +[Install] +WantedBy=multi-user.target diff --git a/net-misc/zerotier/metadata.xml b/net-misc/zerotier/metadata.xml new file mode 100644 index 00000000000..af9de97a426 --- /dev/null +++ b/net-misc/zerotier/metadata.xml @@ -0,0 +1,12 @@ + + + + + neil@digimed.co.uk + Neil Bothwick + + + proxy-maint@gentoo.org + Proxy Maintainers + + diff --git a/net-misc/zerotier/zerotier-1.2.4.ebuild b/net-misc/zerotier/zerotier-1.2.4.ebuild new file mode 100644 index 00000000000..9150c0a9105 --- /dev/null +++ b/net-misc/zerotier/zerotier-1.2.4.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit flag-o-matic toolchain-funcs systemd + +HOMEPAGE="https://www.zerotier.com/" +DESCRIPTION="A software-based managed Ethernet switch for planet Earth" +SRC_URI="https://github.com/zerotier/ZeroTierOne/archive/${PV}.tar.gz -> zerotier-${PV}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +S="${WORKDIR}/ZeroTierOne-${PV}" + +RDEPEND=" + net-libs/miniupnpc + net-libs/libnatpmp + dev-libs/json-glib + net-libs/http-parser" + +DEPEND="${RDEPEND} + >=sys-devel/gcc-4.9.3" + +QA_PRESTRIPPED="/usr/sbin/zerotier-one" + +DOCS=( README.md AUTHORS.md ) + +src_compile() { + append-ldflags -Wl,-z,noexecstack + emake CXX="$(tc-getCXX)" one +} + +src_install() { + default + + newinitd "${FILESDIR}/${PN}.init" "${PN}" + systemd_dounit "${FILESDIR}/${PN}.service" + doman "${S}/doc/zerotier-"{cli.1,idtool.1,one.8} +}