From: hadrianw <hadrianw@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: zerotier-one-1.6.2
Date: Sat, 19 Dec 2020 13:18:36 +0100 [thread overview]
Message-ID: <20201219121836.umX8UUwhzwitK0-u3vVn2hrzHkl4PZ6qI1zZICQjuSM@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-27263@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 450 bytes --]
There is an updated pull request by hadrianw against master on the void-packages repository
https://github.com/hadrianw/void-packages master
https://github.com/void-linux/void-packages/pull/27263
New package: zerotier-one-1.6.2
It was removed around version 1.4.0. Now it also has a different, non-free, license. I can maintain it, as I use it quite a bit.
A patch file from https://github.com/void-linux/void-packages/pull/27263.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-27263.patch --]
[-- Type: text/x-diff, Size: 3877 bytes --]
From 13ab15e7f82dd15e29e492d43900be59b44790d8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hadrian=20W=C4=99grzynowski?= <hadrian@hawski.com>
Date: Fri, 18 Dec 2020 22:59:00 +0100
Subject: [PATCH] New package: zerotier-one-1.6.2
---
srcpkgs/zerotier-one/files/zerotier/run | 2 +
srcpkgs/zerotier-one/patches/fix-cross.patch | 59 ++++++++++++++++++++
srcpkgs/zerotier-one/template | 24 ++++++++
3 files changed, 85 insertions(+)
create mode 100644 srcpkgs/zerotier-one/files/zerotier/run
create mode 100644 srcpkgs/zerotier-one/patches/fix-cross.patch
create mode 100644 srcpkgs/zerotier-one/template
diff --git a/srcpkgs/zerotier-one/files/zerotier/run b/srcpkgs/zerotier-one/files/zerotier/run
new file mode 100644
index 00000000000..fce86d3c6ab
--- /dev/null
+++ b/srcpkgs/zerotier-one/files/zerotier/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec zerotier-one
diff --git a/srcpkgs/zerotier-one/patches/fix-cross.patch b/srcpkgs/zerotier-one/patches/fix-cross.patch
new file mode 100644
index 00000000000..e0ae562f953
--- /dev/null
+++ b/srcpkgs/zerotier-one/patches/fix-cross.patch
@@ -0,0 +1,59 @@
+--- make-linux.mk 2020-12-01 01:33:39.000000000 +0100
++++ make-linux.mk 2020-12-19 13:00:35.311711026 +0100
+@@ -144,6 +144,9 @@
+ ifeq ($(CC_MACH),ppc64el)
+ ZT_ARCHITECTURE=8
+ endif
++ifeq ($(CC_MACH),powerpc64)
++ ZT_ARCHITECTURE=8
++endif
+ ifeq ($(CC_MACH),e2k)
+ ZT_ARCHITECTURE=2
+ endif
+@@ -177,22 +180,22 @@
+ ifeq ($(CC_MACH),armv6)
+ ZT_ARCHITECTURE=3
+ override DEFS+=-DZT_NO_TYPE_PUNNING
+- ZT_USE_ARM32_NEON_ASM_CRYPTO=1
++ ZT_USE_ARM32_NEON_ASM_CRYPTO=0
+ endif
+ ifeq ($(CC_MACH),armv6l)
+ ZT_ARCHITECTURE=3
+ override DEFS+=-DZT_NO_TYPE_PUNNING
+- ZT_USE_ARM32_NEON_ASM_CRYPTO=1
++ ZT_USE_ARM32_NEON_ASM_CRYPTO=0
+ endif
+ ifeq ($(CC_MACH),armv6zk)
+ ZT_ARCHITECTURE=3
+ override DEFS+=-DZT_NO_TYPE_PUNNING
+- ZT_USE_ARM32_NEON_ASM_CRYPTO=1
++ ZT_USE_ARM32_NEON_ASM_CRYPTO=0
+ endif
+ ifeq ($(CC_MACH),armv6kz)
+ ZT_ARCHITECTURE=3
+ override DEFS+=-DZT_NO_TYPE_PUNNING
+- ZT_USE_ARM32_NEON_ASM_CRYPTO=1
++ ZT_USE_ARM32_NEON_ASM_CRYPTO=0
+ endif
+ ifeq ($(CC_MACH),armv7)
+ ZT_ARCHITECTURE=3
+@@ -275,19 +278,6 @@
+ override INCLUDES+=-I/usr/pgsql-10/include -Iext/hiredis-0.14.1/include/ -Iext/redis-plus-plus-1.1.1/install/centos8/include/sw/
+ endif
+
+-# ARM32 hell -- use conservative CFLAGS
+-ifeq ($(ZT_ARCHITECTURE),3)
+- ifeq ($(shell if [ -e /usr/bin/dpkg ]; then dpkg --print-architecture; fi),armel)
+- override CFLAGS+=-march=armv5t -mfloat-abi=soft -msoft-float -mno-unaligned-access -marm
+- override CXXFLAGS+=-march=armv5t -mfloat-abi=soft -msoft-float -mno-unaligned-access -marm
+- ZT_USE_ARM32_NEON_ASM_CRYPTO=0
+- else
+- override CFLAGS+=-march=armv5t -mno-unaligned-access -marm -fexceptions
+- override CXXFLAGS+=-march=armv5t -mno-unaligned-access -marm -fexceptions
+- ZT_USE_ARM32_NEON_ASM_CRYPTO=0
+- endif
+-endif
+-
+ # Build faster crypto on some targets
+ ifeq ($(ZT_USE_X64_ASM_SALSA),1)
+ override DEFS+=-DZT_USE_X64_ASM_SALSA2012
diff --git a/srcpkgs/zerotier-one/template b/srcpkgs/zerotier-one/template
new file mode 100644
index 00000000000..141e251e44d
--- /dev/null
+++ b/srcpkgs/zerotier-one/template
@@ -0,0 +1,24 @@
+# Template file for 'zerotier-one'
+pkgname=zerotier-one
+version=1.6.2
+revision=1
+wrksrc=ZeroTierOne-${version}
+build_style=gnu-makefile
+hostmakedepends="nodejs"
+makedepends="sqlite-devel"
+short_desc="Network Virtualization Everywhere"
+maintainer="Hadrian Węgrzynowski <hadrian@hawski.com>"
+license="custom:BPL-1.1"
+homepage="https://www.zerotier.com/"
+distfiles="https://github.com/zerotier/ZeroTierOne/archive/${version}.tar.gz"
+checksum=c8087b26c1191d36fda004b42cdfed31042cafd8586e49015586eef786f2c9a5
+repository=nonfree
+
+pre_install() {
+ sed -i 's/sbin/bin/g' make-linux.mk
+}
+
+post_install() {
+ vsv zerotier
+ vlicense LICENSE.txt
+}
next prev parent reply other threads:[~2020-12-19 12:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-18 22:01 [PR PATCH] " hadrianw
2020-12-19 6:53 ` kawaiiamber
2020-12-19 7:28 ` kawaiiamber
2020-12-19 11:45 ` [PR PATCH] [Updated] " hadrianw
2020-12-19 11:50 ` hadrianw
2020-12-19 12:18 ` hadrianw [this message]
2020-12-19 13:06 ` hadrianw
2020-12-30 6:37 ` the-maldridge
2020-12-30 6:37 ` [PR PATCH] [Closed]: " the-maldridge
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=20201219121836.umX8UUwhzwitK0-u3vVn2hrzHkl4PZ6qI1zZICQjuSM@z \
--to=hadrianw@users.noreply.github.com \
--cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).