public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrice Clement" <monsieurp@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/zerotier/files/, net-misc/zerotier/
Date: Thu,  6 Jul 2017 22:08:48 +0000 (UTC)	[thread overview]
Message-ID: <1499378927.a294529672562d6b8cd77e26ca4206170e49215e.monsieurp@gentoo> (raw)

commit:     a294529672562d6b8cd77e26ca4206170e49215e
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Thu Jul  6 21:59:43 2017 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> 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 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>neil@digimed.co.uk</email>
+		<name>Neil Bothwick</name>
+	</maintainer>
+	<maintainer type="project">
+		<email>proxy-maint@gentoo.org</email>
+		<name>Proxy Maintainers</name>
+	</maintainer>
+</pkgmetadata>

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}
+}


             reply	other threads:[~2017-07-06 22:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-06 22:08 Patrice Clement [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-03-16 19:57 [gentoo-commits] repo/gentoo:master commit in: net-misc/zerotier/files/, net-misc/zerotier/ Sam James
2023-10-05 20:20 Sam James
2023-11-13 12:12 Yixun Lan
2024-05-22  3:06 Yixun Lan
2024-08-22 11:55 Yixun Lan
2025-09-20  9:14 Yixun Lan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1499378927.a294529672562d6b8cd77e26ca4206170e49215e.monsieurp@gentoo \
    --to=monsieurp@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox