2016-06-08 14:46:42 -07:00
|
|
|
Name: zerotier-one
|
2022-06-06 16:18:50 -04:00
|
|
|
Version: 1.10.0
|
2019-08-23 21:24:05 -07:00
|
|
|
Release: 1%{?dist}
|
2020-11-24 16:27:19 -05:00
|
|
|
Summary: ZeroTier network virtualization service
|
2016-06-08 14:46:42 -07:00
|
|
|
|
2019-08-23 10:15:13 -07:00
|
|
|
License: ZeroTier BSL 1.1
|
2016-06-08 14:46:42 -07:00
|
|
|
URL: https://www.zerotier.com
|
|
|
|
|
2022-05-14 10:08:22 +02:00
|
|
|
# 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
|
2016-06-25 14:04:08 -07:00
|
|
|
%endif
|
|
|
|
|
2022-05-14 10:08:22 +02:00
|
|
|
%if "%{?dist}" == ".fc37"
|
|
|
|
BuildRequires: systemd clang openssl1.1 openssl1.1-devel
|
|
|
|
Requires: systemd openssl1.1
|
|
|
|
Requires(pre): /usr/sbin/useradd, /usr/bin/getent
|
2016-06-08 16:19:38 -07:00
|
|
|
%endif
|
2016-06-08 14:46:42 -07:00
|
|
|
|
2022-05-14 10:08:22 +02:00
|
|
|
# RHEL
|
2016-06-25 14:04:08 -07:00
|
|
|
|
2022-05-14 10:08:22 +02:00
|
|
|
%if "%{?dist}" == ".el6"
|
|
|
|
Requires: chkconfig
|
2017-03-08 12:25:40 -08:00
|
|
|
Requires(pre): /usr/sbin/useradd, /usr/bin/getent
|
2016-06-25 14:04:08 -07:00
|
|
|
%endif
|
|
|
|
|
2022-05-14 10:08:22 +02:00
|
|
|
%if "%{?dist}" == ".el7"
|
2022-06-08 12:42:43 -04:00
|
|
|
BuildRequires: systemd openssl-devel
|
|
|
|
Requires: systemd openssl
|
2022-05-14 10:08:22 +02:00
|
|
|
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
|
2016-06-25 14:04:08 -07:00
|
|
|
%endif
|
|
|
|
|
2022-05-14 10:08:22 +02:00
|
|
|
%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
|
2017-03-08 13:13:12 -08:00
|
|
|
Requires(pre): /usr/sbin/useradd, /usr/bin/getent
|
2016-06-08 16:19:38 -07:00
|
|
|
%endif
|
2016-06-08 14:46:42 -07:00
|
|
|
|
|
|
|
%description
|
|
|
|
ZeroTier is a software defined networking layer for Earth.
|
|
|
|
|
2018-07-25 12:09:31 -07:00
|
|
|
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
|
2016-06-08 14:46:42 -07:00
|
|
|
about anywhere else secure software defined virtual networking is useful.
|
|
|
|
|
2020-11-24 16:27:19 -05:00
|
|
|
This is our OS-level client service. It allows Mac, Linux, Windows,
|
2018-07-25 12:09:31 -07:00
|
|
|
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
|
2016-06-08 14:46:42 -07:00
|
|
|
containers (Docker, OpenVZ, etc.).
|
|
|
|
|
|
|
|
%prep
|
2022-06-08 07:32:16 -04:00
|
|
|
ls -la
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} >= 7
|
|
|
|
rm -rf BUILD BUILDROOT RPMS SRPMS SOURCES
|
|
|
|
mkdir -p SOURCES
|
|
|
|
ln -s %{getenv:PWD} %{name}-%{version}
|
|
|
|
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
|
2016-06-08 14:46:42 -07:00
|
|
|
|
|
|
|
%build
|
2022-05-14 10:08:22 +02:00
|
|
|
%if "%{?dist}" == ".el6"
|
|
|
|
make RUST_BACKTRACE=full ZT_USE_MINIUPNPC=1 %{?_smp_mflags} from_builder
|
|
|
|
%else
|
|
|
|
make RUST_BACKTRACE=full ZT_USE_MINIUPNPC=1 %{?_smp_mflags} one
|
2020-11-24 14:01:46 -08:00
|
|
|
%endif
|
2016-06-08 14:46:42 -07:00
|
|
|
|
2017-03-08 12:25:40 -08:00
|
|
|
%pre
|
|
|
|
/usr/bin/getent passwd zerotier-one || /usr/sbin/useradd -r -d /var/lib/zerotier-one -s /sbin/nologin zerotier-one
|
|
|
|
|
2016-06-08 14:46:42 -07:00
|
|
|
%install
|
2022-05-14 10:08:22 +02:00
|
|
|
# rm -rf $RPM_BUILD_ROOT
|
2016-06-08 14:46:42 -07:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2016-06-25 14:04:08 -07:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
|
2017-03-07 09:04:40 -08:00
|
|
|
cp %{getenv:PWD}/debian/zerotier-one.service $RPM_BUILD_ROOT%{_unitdir}/%{name}.service
|
2022-05-14 10:08:22 +02:00
|
|
|
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 6
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/init.d/
|
2017-03-07 09:04:40 -08:00
|
|
|
cp %{getenv:PWD}/ext/installfiles/linux/zerotier-one.init.rhel6 $RPM_BUILD_ROOT/etc/init.d/zerotier-one
|
2022-05-14 10:08:22 +02:00
|
|
|
chmod 700 $RPM_BUILD_ROOT/etc/init.d/${name}
|
2016-06-25 14:04:08 -07:00
|
|
|
%endif
|
2016-06-08 14:46:42 -07:00
|
|
|
|
|
|
|
%files
|
|
|
|
%{_sbindir}/*
|
2016-06-08 15:33:59 -07:00
|
|
|
%{_mandir}/*
|
|
|
|
%{_localstatedir}/*
|
2022-05-14 10:08:22 +02:00
|
|
|
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 6
|
2016-06-25 14:04:08 -07:00
|
|
|
/etc/init.d/zerotier-one
|
2022-05-14 10:08:22 +02:00
|
|
|
%else
|
|
|
|
%{_unitdir}/%{name}.service
|
2016-06-25 14:04:08 -07:00
|
|
|
%endif
|
2016-06-08 14:46:42 -07:00
|
|
|
|
2016-06-08 15:33:59 -07:00
|
|
|
%post
|
2022-05-14 10:08:22 +02:00
|
|
|
%if ! 0%{?rhel} && 0%{?rhel} <= 6
|
2016-06-25 14:04:08 -07:00
|
|
|
%systemd_post zerotier-one.service
|
|
|
|
%endif
|
2016-06-08 15:33:59 -07:00
|
|
|
|
|
|
|
%preun
|
2022-05-14 10:08:22 +02:00
|
|
|
%if ! 0%{?rhel} && 0%{?rhel} <= 6
|
2016-06-10 08:26:27 -07:00
|
|
|
%systemd_preun zerotier-one.service
|
2016-06-25 14:04:08 -07:00
|
|
|
%endif
|
2016-06-08 15:33:59 -07:00
|
|
|
|
|
|
|
%postun
|
2022-05-14 10:08:22 +02:00
|
|
|
%if ! 0%{?rhel} && 0%{?rhel} <= 6
|
2016-06-25 14:04:08 -07:00
|
|
|
%systemd_postun_with_restart zerotier-one.service
|
|
|
|
%endif
|
2016-06-08 15:33:59 -07:00
|
|
|
|
2016-06-08 14:46:42 -07:00
|
|
|
%changelog
|
2022-06-06 16:18:50 -04:00
|
|
|
* Fri Jun 03 2022 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.10.0
|
2022-06-03 15:42:06 -04:00
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2022-05-10 13:45:12 -04:00
|
|
|
* Tue May 10 2022 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.8.10
|
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2022-05-14 10:08:22 +02:00
|
|
|
* Mon Apr 25 2022 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.8.9
|
2022-04-25 13:24:24 -04:00
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2022-05-14 10:08:22 +02:00
|
|
|
* Mon Apr 11 2022 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.8.8
|
2022-04-11 12:15:41 -04:00
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2022-05-14 10:08:22 +02:00
|
|
|
* Mon Mar 21 2022 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.8.7
|
2022-03-21 17:34:52 -04:00
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2022-05-14 10:08:22 +02:00
|
|
|
* Mon Mar 07 2022 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.8.6
|
2022-03-07 14:06:12 -05:00
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2021-12-17 17:40:00 -05:00
|
|
|
* Fri Dec 17 2021 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.8.5
|
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2021-11-23 16:39:20 -05:00
|
|
|
* Tue Nov 23 2021 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.8.4
|
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2021-11-15 19:55:58 -05:00
|
|
|
* Mon Nov 15 2021 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.8.3
|
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2021-11-09 09:31:52 -05:00
|
|
|
* Mon Nov 08 2021 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.8.2
|
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2021-10-20 19:33:32 -07:00
|
|
|
* Wed Oct 20 2021 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.8.1
|
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2022-05-14 10:08:22 +02:00
|
|
|
* Wed Sep 15 2021 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.8.0
|
2021-08-26 11:13:13 -04:00
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2021-04-13 16:59:47 -04:00
|
|
|
* Tue Apr 13 2021 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.6.5
|
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2021-02-15 19:37:46 -05:00
|
|
|
* Mon Feb 15 2021 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.6.4
|
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2020-11-30 16:06:07 -05:00
|
|
|
* Mon Nov 30 2020 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.6.2-0.1
|
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2020-11-24 16:27:19 -05:00
|
|
|
* Tue Nov 24 2020 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.6.1-0.1
|
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2020-11-19 13:24:30 -05:00
|
|
|
* Thu Nov 19 2020 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.6.0-0.1
|
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2020-10-05 20:23:52 -04:00
|
|
|
* Mon Oct 05 2020 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.6.0-beta1
|
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2019-08-23 11:12:25 -07:00
|
|
|
* Fri Aug 23 2019 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.4.4-0.1
|
2019-08-23 10:15:13 -07:00
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2019-07-29 12:07:44 -07:00
|
|
|
* Mon Jul 29 2019 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.4.0-0.1
|
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2018-05-08 13:07:20 -07:00
|
|
|
* Tue May 08 2018 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.2.10-0.1
|
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2018-05-03 12:51:49 -07:00
|
|
|
* Thu May 03 2018 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.2.8-0.1
|
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2017-04-24 11:41:01 -07:00
|
|
|
* Mon Apr 24 2017 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.2.2-0.1
|
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2017-03-17 19:16:34 -07:00
|
|
|
* Fri Mar 17 2017 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.2.2-0.1
|
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2017-03-14 21:23:47 -07:00
|
|
|
* Tue Mar 14 2017 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.2.0-0.1
|
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2016-07-12 12:30:35 -07:00
|
|
|
* Tue Jul 12 2016 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.1.10-0.1
|
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2016-07-08 13:57:16 -07:00
|
|
|
* Fri Jul 08 2016 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.1.8-0.1
|
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2016-06-25 14:04:08 -07:00
|
|
|
* 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
|
|
|
|
|
2016-06-08 14:46:42 -07:00
|
|
|
* 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
|
2016-06-25 14:04:08 -07:00
|
|
|
- initial package
|