mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-22 02:16:38 +00:00
* add note about forceTcpRelay * Create a sample systemd unit for tcp proxy * set gitattributes for rust & cargo so hashes dont conflict on Windows * Revert "set gitattributes for rust & cargo so hashes dont conflict on Windows" This reverts commit 032dc5c108195f6bbc2e224f00da5b785df4b7f9. * Turn off autocrlf for rust source Doesn't appear to play nice well when it comes to git and vendored cargo package hashes * Fix #1883 (#1886) Still unknown as to why, but the call to `nc->GetProperties()` can fail when setting a friendly name on the Windows virtual ethernet adapter. Ensure that `ncp` is not null before continuing and accessing the device GUID. * Don't vendor packages for zeroidc (#1885) * Added docker environment way to join networks (#1871) * add StringUtils * fix headers use recommended headers and remove unused headers * move extern "C" only JNI functions need to be exported * cleanup * fix ANDROID-50: RESULT_ERROR_BAD_PARAMETER typo * fix typo in log message * fix typos in JNI method signatures * fix typo * fix ANDROID-51: fieldName is uninitialized * fix ANDROID-35: memory leak * fix missing DeleteLocalRef in loops * update to use unique error codes * add GETENV macro * add LOG_TAG defines * ANDROID-48: add ZT_jnicache.cpp * ANDROID-48: use ZT_jnicache.cpp and remove ZT_jnilookup.cpp and ZT_jniarray.cpp * add Event.fromInt * add PeerRole.fromInt * add ResultCode.fromInt * fix ANDROID-36: issues with ResultCode * add VirtualNetworkConfigOperation.fromInt * fix ANDROID-40: VirtualNetworkConfigOperation out-of-sync with ZT_VirtualNetworkConfigOperation enum * add VirtualNetworkStatus.fromInt * fix ANDROID-37: VirtualNetworkStatus out-of-sync with ZT_VirtualNetworkStatus enum * add VirtualNetworkType.fromInt * make NodeStatus a plain data class * fix ANDROID-52: synchronization bug with nodeMap * Node init work: separate Node construction and init * add Node.toString * make PeerPhysicalPath a plain data class * remove unused PeerPhysicalPath.fixed * add array functions * make Peer a plain data class * make Version a plain data class * fix ANDROID-42: copy/paste error * fix ANDROID-49: VirtualNetworkConfig.equals is wrong * reimplement VirtualNetworkConfig.equals * reimplement VirtualNetworkConfig.compareTo * add VirtualNetworkConfig.hashCode * make VirtualNetworkConfig a plain data class * remove unused VirtualNetworkConfig.enabled * reimplement VirtualNetworkDNS.equals * add VirtualNetworkDNS.hashCode * make VirtualNetworkDNS a plain data class * reimplement VirtualNetworkRoute.equals * reimplement VirtualNetworkRoute.compareTo * reimplement VirtualNetworkRoute.toString * add VirtualNetworkRoute.hashCode * make VirtualNetworkRoute a plain data class * add isSocketAddressEmpty * add addressPort * add fromSocketAddressObject * invert logic in a couple of places and return early * newInetAddress and newInetSocketAddress work allow newInetSocketAddress to return NULL if given empty address * fix ANDROID-38: stack corruption in onSendPacketRequested * use GETENV macro * JniRef work JniRef does not use callbacks struct, so remove fix NewGlobalRef / DeleteGlobalRef mismatch * use PRId64 macros * switch statement work * comments and logging * Modifier 'public' is redundant for interface members * NodeException can be made a checked Exception * 'NodeException' does not define a 'serialVersionUID' field * 'finalize()' should not be overridden this is fine to do because ZeroTierOneService calls close() when it is done * error handling, error reporting, asserts, logging * simplify loadLibrary * rename Node.networks -> Node.networkConfigs * Windows file permissions fix (#1887) * Allow macOS interfaces to use multiple IP addresses (#1879) Co-authored-by: Sean OMeara <someara@users.noreply.github.com> Co-authored-by: Grant Limberg <glimberg@users.noreply.github.com> * Fix condition where full HELLOs might not be sent when necessary (#1877) Co-authored-by: Grant Limberg <glimberg@users.noreply.github.com> * 1.10.4 version bumps * Add security policy to repo (#1889) * [+] add e2k64 arch (#1890) * temp fix for ANDROID-56: crash inside newNetworkConfig from too many args * 1.10.4 release notes * Windows 1.10.4 Advanced Installer bump * Revert "temp fix for ANDROID-56: crash inside newNetworkConfig from too many args" This reverts commit dd627cd7f44ad623a110bb14f72d0bea72a09e30. * actual fix for ANDROID-56: crash inside newNetworkConfig cast all arguments to varargs functions as good style * Fix addIp being called with applied ips (#1897) This was getting called outside of the check for existing ips Because of the added ifdef and a brace getting moved to the wrong place. ``` if (! n.tap()->addIp(*ip)) { fprintf(stderr, "ERROR: unable to add ip address %s" ZT_EOL_S, ip->toString(ipbuf)); } WinFWHelper::newICMPRule(*ip, n.config().nwid); ``` * 1.10.5 (#1905) * 1.10.5 bump * 1.10.5 for Windows * 1.10.5 * Prevent path-learning loops (#1914) * Prevent path-learning loops * Only allow new overwrite if not bonded * fix binding temporary ipv6 addresses on macos (#1910) The check code wasn't running. I don't know why !defined(TARGET_OS_IOS) would exclude code on desktop macOS. I did a quick search and changed it to defined(TARGET_OS_MAC). Not 100% sure what the most correct solution there is. You can verify the old and new versions with `ifconfig | grep temporary` plus `zerotier-cli info -j` -> listeningOn * 1.10.6 (#1929) * 1.10.5 bump * 1.10.6 * 1.10.6 AIP for Windows. --------- Co-authored-by: travis laduke <travisladuke@gmail.com> Co-authored-by: Grant Limberg <grant.limberg@zerotier.com> Co-authored-by: Grant Limberg <glimberg@users.noreply.github.com> Co-authored-by: Leonardo Amaral <leleobhz@users.noreply.github.com> Co-authored-by: Brenton Bostick <bostick@gmail.com> Co-authored-by: Sean OMeara <someara@users.noreply.github.com> Co-authored-by: Joseph Henry <joseph-henry@users.noreply.github.com> Co-authored-by: Roman Peshkichev <roman.peshkichev@gmail.com>
250 lines
8.4 KiB
RPMSpec
250 lines
8.4 KiB
RPMSpec
Name: zerotier-one
|
|
Version: 1.10.6
|
|
Release: 1%{?dist}
|
|
Summary: ZeroTier network virtualization service
|
|
|
|
License: ZeroTier BSL 1.1
|
|
URL: https://www.zerotier.com
|
|
|
|
# Fedora
|
|
|
|
%if "%{?dist}" == ".fc35"
|
|
BuildRequires: systemd clang openssl openssl-devel
|
|
Requires: systemd openssl
|
|
Requires(pre): /usr/sbin/useradd, /usr/bin/getent
|
|
%endif
|
|
|
|
%if "%{?dist}" == ".fc36"
|
|
BuildRequires: systemd clang openssl1.1 openssl1.1-devel
|
|
Requires: systemd openssl1.1
|
|
Requires(pre): /usr/sbin/useradd, /usr/bin/getent
|
|
%endif
|
|
|
|
%if "%{?dist}" == ".fc37"
|
|
BuildRequires: systemd clang openssl1.1 openssl1.1-devel
|
|
Requires: systemd openssl1.1
|
|
Requires(pre): /usr/sbin/useradd, /usr/bin/getent
|
|
%endif
|
|
|
|
# RHEL
|
|
|
|
%if "%{?dist}" == ".el6"
|
|
Requires: chkconfig
|
|
Requires(pre): /usr/sbin/useradd, /usr/bin/getent
|
|
%endif
|
|
|
|
%if "%{?dist}" == ".el7"
|
|
BuildRequires: systemd openssl-devel
|
|
Requires: systemd openssl
|
|
Requires(pre): /usr/sbin/useradd, /usr/bin/getent
|
|
%endif
|
|
|
|
%if "%{?dist}" == ".el8"
|
|
BuildRequires: systemd openssl-devel
|
|
Requires: systemd openssl
|
|
Requires(pre): /usr/sbin/useradd, /usr/bin/getent
|
|
%endif
|
|
|
|
%if "%{?dist}" == ".el9"
|
|
BuildRequires: systemd openssl-devel
|
|
Requires: systemd openssl
|
|
Requires(pre): /usr/sbin/useradd, /usr/bin/getent
|
|
%endif
|
|
|
|
# Amazon
|
|
|
|
%if "%{?dist}" == ".amzn2"
|
|
BuildRequires: systemd openssl-devel
|
|
Requires: systemd openssl
|
|
Requires(pre): /usr/sbin/useradd, /usr/bin/getent
|
|
%endif
|
|
|
|
%if "%{?dist}" == ".amzn2022"
|
|
BuildRequires: systemd openssl-devel
|
|
Requires: systemd openssl
|
|
Requires(pre): /usr/sbin/useradd, /usr/bin/getent
|
|
%endif
|
|
|
|
%description
|
|
ZeroTier is a software defined networking layer for Earth.
|
|
|
|
It can be used for on-premise network virtualization, as a peer to peer VPN
|
|
for mobile teams, for hybrid or multi-data-center cloud deployments, or just
|
|
about anywhere else secure software defined virtual networking is useful.
|
|
|
|
This is our OS-level client service. It allows Mac, Linux, Windows,
|
|
FreeBSD, and soon other types of clients to join ZeroTier virtual networks
|
|
like conventional VPNs or VLANs. It can run on native systems, VMs, or
|
|
containers (Docker, OpenVZ, etc.).
|
|
|
|
%prep
|
|
%if "%{?dist}" != ".el6"
|
|
rm -rf BUILD BUILDROOT RPMS SRPMS SOURCES
|
|
ln -s %{getenv:PWD} %{name}-%{version}
|
|
mkdir -p SOURCES
|
|
tar --exclude=%{name}-%{version}/.git --exclude=%{name}-%{version}/%{name}-%{version} -czf SOURCES/%{name}-%{version}.tar.gz %{name}-%{version}/*
|
|
rm -f %{name}-%{version}
|
|
cp -a %{getenv:PWD}/* .
|
|
%endif
|
|
|
|
%build
|
|
%if "%{?dist}" != ".el6"
|
|
make ZT_USE_MINIUPNPC=1 %{?_smp_mflags} one
|
|
%endif
|
|
|
|
%pre
|
|
/usr/bin/getent passwd zerotier-one || /usr/sbin/useradd -r -d /var/lib/zerotier-one -s /sbin/nologin zerotier-one
|
|
|
|
%install
|
|
%if "%{?dist}" != ".el6"
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
|
|
cp %{getenv:PWD}/debian/zerotier-one.service $RPM_BUILD_ROOT%{_unitdir}/%{name}.service
|
|
%else
|
|
rm -rf $RPM_BUILD_ROOT
|
|
pushd %{getenv:PWD}
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
popd
|
|
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
|
cp %{getenv:PWD}/ext/installfiles/linux/zerotier-one.init.rhel6 $RPM_BUILD_ROOT/etc/init.d/zerotier-one
|
|
chmod 0755 $RPM_BUILD_ROOT/etc/init.d/zerotier-one
|
|
%endif
|
|
|
|
%files
|
|
%{_sbindir}/*
|
|
%{_mandir}/*
|
|
%{_localstatedir}/*
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 6
|
|
/etc/init.d/zerotier-one
|
|
%else
|
|
%{_unitdir}/%{name}.service
|
|
%endif
|
|
|
|
%post
|
|
%if ! 0%{?rhel} && 0%{?rhel} <= 6
|
|
%systemd_post zerotier-one.service
|
|
%endif
|
|
|
|
%preun
|
|
%if ! 0%{?rhel} && 0%{?rhel} <= 6
|
|
%systemd_preun zerotier-one.service
|
|
%endif
|
|
|
|
%postun
|
|
%if ! 0%{?rhel} && 0%{?rhel} <= 6
|
|
%systemd_postun_with_restart zerotier-one.service
|
|
%endif
|
|
|
|
%changelog
|
|
* Tue Mar 21 2023 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.10.6
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Sat Mar 10 2023 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.10.5
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Sat Mar 06 2023 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.10.4
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Sat Jan 21 2023 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.10.3
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Mon Oct 13 2022 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.10.2
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Mon Jun 27 2022 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.10.1
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Fri Jun 03 2022 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.10.0
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Tue May 10 2022 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.8.10
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Mon Apr 25 2022 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.8.9
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Mon Apr 11 2022 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.8.8
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Mon Mar 21 2022 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.8.7
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Mon Mar 07 2022 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.8.6
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Fri Dec 17 2021 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.8.5
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Tue Nov 23 2021 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.8.4
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Mon Nov 15 2021 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.8.3
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Mon Nov 08 2021 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.8.2
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Wed Oct 20 2021 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.8.1
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Wed Sep 15 2021 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.8.0
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Tue Apr 13 2021 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.6.5
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Mon Feb 15 2021 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.6.4
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Mon Nov 30 2020 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.6.2-0.1
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Tue Nov 24 2020 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.6.1-0.1
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Thu Nov 19 2020 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.6.0-0.1
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Mon Oct 05 2020 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.6.0-beta1
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Fri Aug 23 2019 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.4.4-0.1
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Mon Jul 29 2019 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.4.0-0.1
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Tue May 08 2018 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.2.10-0.1
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Thu May 03 2018 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.2.8-0.1
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Mon Apr 24 2017 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.2.2-0.1
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Fri Mar 17 2017 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.2.2-0.1
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Tue Mar 14 2017 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.2.0-0.1
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Tue Jul 12 2016 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.1.10-0.1
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Fri Jul 08 2016 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.1.8-0.1
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
* Sat Jun 25 2016 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.1.6-0.1
|
|
- now builds on CentOS 6 as well as newer distros, and some cleanup
|
|
|
|
* Wed Jun 08 2016 François Kooman <fkooman@tuxed.net> - 1.1.5-0.3
|
|
- include systemd unit file
|
|
|
|
* Wed Jun 08 2016 François Kooman <fkooman@tuxed.net> - 1.1.5-0.2
|
|
- add libnatpmp as (build)dependency
|
|
|
|
* Wed Jun 08 2016 François Kooman <fkooman@tuxed.net> - 1.1.5-0.1
|
|
- initial package
|