2016-06-08 21:46:42 +00:00
|
|
|
Name: zerotier-one
|
2021-02-02 21:51:02 +00:00
|
|
|
Version: 1.6.3
|
2019-08-24 04:24:05 +00:00
|
|
|
Release: 1%{?dist}
|
2020-11-24 21:27:19 +00:00
|
|
|
Summary: ZeroTier network virtualization service
|
2016-06-08 21:46:42 +00:00
|
|
|
|
2019-08-23 17:15:13 +00:00
|
|
|
License: ZeroTier BSL 1.1
|
2016-06-08 21:46:42 +00:00
|
|
|
URL: https://www.zerotier.com
|
|
|
|
|
2016-06-27 22:46:54 +00:00
|
|
|
%if 0%{?rhel} >= 7
|
2016-06-08 21:46:42 +00:00
|
|
|
BuildRequires: systemd
|
2016-06-25 21:04:08 +00:00
|
|
|
%endif
|
|
|
|
|
2016-06-08 23:19:38 +00:00
|
|
|
%if 0%{?fedora} >= 21
|
2016-06-25 21:04:08 +00:00
|
|
|
BuildRequires: systemd
|
2016-06-08 23:19:38 +00:00
|
|
|
%endif
|
2016-06-08 21:46:42 +00:00
|
|
|
|
2019-08-13 19:58:14 +00:00
|
|
|
Requires: iproute libstdc++
|
2016-06-25 21:04:08 +00:00
|
|
|
|
2016-06-27 16:25:34 +00:00
|
|
|
%if 0%{?rhel} >= 7
|
2016-06-08 21:46:42 +00:00
|
|
|
Requires: systemd
|
2017-03-08 20:25:40 +00:00
|
|
|
Requires(pre): /usr/sbin/useradd, /usr/bin/getent
|
2016-06-25 21:04:08 +00:00
|
|
|
%endif
|
|
|
|
|
2016-06-27 16:25:34 +00:00
|
|
|
%if 0%{?rhel} <= 6
|
2016-06-25 21:04:08 +00:00
|
|
|
Requires: chkconfig
|
|
|
|
%endif
|
|
|
|
|
2016-06-08 23:19:38 +00:00
|
|
|
%if 0%{?fedora} >= 21
|
2016-06-25 21:04:08 +00:00
|
|
|
Requires: systemd
|
2017-03-08 21:13:12 +00:00
|
|
|
Requires(pre): /usr/sbin/useradd, /usr/bin/getent
|
2016-06-08 23:19:38 +00:00
|
|
|
%endif
|
2016-06-08 21:46:42 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
ZeroTier is a software defined networking layer for Earth.
|
|
|
|
|
2018-07-25 19:09:31 +00: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 21:46:42 +00:00
|
|
|
about anywhere else secure software defined virtual networking is useful.
|
|
|
|
|
2020-11-24 21:27:19 +00:00
|
|
|
This is our OS-level client service. It allows Mac, Linux, Windows,
|
2018-07-25 19:09:31 +00: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 21:46:42 +00:00
|
|
|
containers (Docker, OpenVZ, etc.).
|
|
|
|
|
|
|
|
%prep
|
2020-11-24 22:01:46 +00:00
|
|
|
%if 0%{?rhel} >= 7
|
|
|
|
rm -rf *
|
|
|
|
ln -s %{getenv:PWD} %{name}-%{version}
|
|
|
|
tar --exclude=%{name}-%{version}/.git --exclude=%{name}-%{version}/%{name}-%{version} -czf %{_sourcedir}/%{name}-%{version}.tar.gz %{name}-%{version}/*
|
|
|
|
rm -f %{name}-%{version}
|
|
|
|
cp -a %{getenv:PWD}/* .
|
|
|
|
%endif
|
2016-06-08 21:46:42 +00:00
|
|
|
|
|
|
|
%build
|
2017-03-07 17:04:40 +00:00
|
|
|
#%if 0%{?rhel} <= 7
|
|
|
|
#make CFLAGS="`echo %{optflags} | sed s/stack-protector-strong/stack-protector/`" CXXFLAGS="`echo %{optflags} | sed s/stack-protector-strong/stack-protector/`" ZT_USE_MINIUPNPC=1 %{?_smp_mflags} one manpages selftest
|
|
|
|
#%else
|
2020-11-24 22:01:46 +00:00
|
|
|
%if 0%{?rhel} >= 7
|
|
|
|
make ZT_USE_MINIUPNPC=1 %{?_smp_mflags} one
|
|
|
|
%endif
|
2016-06-08 21:46:42 +00:00
|
|
|
|
2017-03-08 20:25:40 +00:00
|
|
|
%pre
|
|
|
|
%if 0%{?rhel} >= 7
|
|
|
|
/usr/bin/getent passwd zerotier-one || /usr/sbin/useradd -r -d /var/lib/zerotier-one -s /sbin/nologin zerotier-one
|
|
|
|
%endif
|
|
|
|
%if 0%{?fedora} >= 21
|
|
|
|
/usr/bin/getent passwd zerotier-one || /usr/sbin/useradd -r -d /var/lib/zerotier-one -s /sbin/nologin zerotier-one
|
|
|
|
%endif
|
|
|
|
|
2016-06-08 21:46:42 +00:00
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2020-11-24 22:01:46 +00:00
|
|
|
%if 0%{?rhel} < 7
|
2017-03-07 17:04:40 +00:00
|
|
|
pushd %{getenv:PWD}
|
2020-11-24 22:01:46 +00:00
|
|
|
%endif
|
2016-06-08 21:46:42 +00:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2020-11-24 22:01:46 +00:00
|
|
|
%if 0%{?rhel} < 7
|
2017-03-07 17:04:40 +00:00
|
|
|
popd
|
2020-11-24 22:01:46 +00:00
|
|
|
%endif
|
2016-06-27 16:25:34 +00:00
|
|
|
%if 0%{?rhel} >= 7
|
2016-06-25 21:04:08 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
|
2017-03-07 17:04:40 +00:00
|
|
|
cp %{getenv:PWD}/debian/zerotier-one.service $RPM_BUILD_ROOT%{_unitdir}/%{name}.service
|
2016-06-25 21:04:08 +00:00
|
|
|
%endif
|
2016-06-27 16:25:34 +00:00
|
|
|
%if 0%{?fedora} >= 21
|
2016-06-08 21:46:42 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
|
2017-03-07 17:04:40 +00:00
|
|
|
cp ${getenv:PWD}/debian/zerotier-one.service $RPM_BUILD_ROOT%{_unitdir}/%{name}.service
|
2016-06-25 21:04:08 +00:00
|
|
|
%endif
|
2016-06-27 16:25:34 +00:00
|
|
|
%if 0%{?rhel} <= 6
|
2016-06-27 21:56:40 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
2017-03-07 17:04:40 +00:00
|
|
|
cp %{getenv:PWD}/ext/installfiles/linux/zerotier-one.init.rhel6 $RPM_BUILD_ROOT/etc/init.d/zerotier-one
|
2016-06-25 21:04:08 +00:00
|
|
|
chmod 0755 $RPM_BUILD_ROOT/etc/init.d/zerotier-one
|
|
|
|
%endif
|
2016-06-08 21:46:42 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%{_sbindir}/*
|
2016-06-08 22:33:59 +00:00
|
|
|
%{_mandir}/*
|
|
|
|
%{_localstatedir}/*
|
2016-06-27 16:25:34 +00:00
|
|
|
%if 0%{?rhel} >= 7
|
2016-06-08 21:46:42 +00:00
|
|
|
%{_unitdir}/%{name}.service
|
2016-06-25 21:04:08 +00:00
|
|
|
%endif
|
2016-06-27 16:25:34 +00:00
|
|
|
%if 0%{?fedora} >= 21
|
2016-06-25 21:04:08 +00:00
|
|
|
%{_unitdir}/%{name}.service
|
|
|
|
%endif
|
2016-06-27 16:25:34 +00:00
|
|
|
%if 0%{?rhel} <= 6
|
2016-06-25 21:04:08 +00:00
|
|
|
/etc/init.d/zerotier-one
|
|
|
|
%endif
|
2016-06-08 21:46:42 +00:00
|
|
|
|
2016-06-08 22:33:59 +00:00
|
|
|
%post
|
2016-06-27 16:25:34 +00:00
|
|
|
%if 0%{?rhel} >= 7
|
2016-06-10 15:26:27 +00:00
|
|
|
%systemd_post zerotier-one.service
|
2016-06-25 21:04:08 +00:00
|
|
|
%endif
|
2016-06-27 16:25:34 +00:00
|
|
|
%if 0%{?fedora} >= 21
|
2016-06-25 21:04:08 +00:00
|
|
|
%systemd_post zerotier-one.service
|
|
|
|
%endif
|
2016-06-27 16:25:34 +00:00
|
|
|
%if 0%{?rhel} <= 6
|
2016-06-25 21:04:08 +00:00
|
|
|
case "$1" in
|
|
|
|
1)
|
|
|
|
chkconfig --add zerotier-one
|
|
|
|
;;
|
|
|
|
2)
|
2018-05-03 19:51:49 +00:00
|
|
|
chkconfig --del zerotier-one
|
|
|
|
chkconfig --add zerotier-one
|
2016-06-25 21:04:08 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
%endif
|
2016-06-08 22:33:59 +00:00
|
|
|
|
|
|
|
%preun
|
2016-06-27 16:25:34 +00:00
|
|
|
%if 0%{?rhel} >= 7
|
2016-06-10 15:26:27 +00:00
|
|
|
%systemd_preun zerotier-one.service
|
2016-06-25 21:04:08 +00:00
|
|
|
%endif
|
2016-06-27 16:25:34 +00:00
|
|
|
%if 0%{?fedora} >= 21
|
2016-06-25 21:04:08 +00:00
|
|
|
%systemd_preun zerotier-one.service
|
|
|
|
%endif
|
2016-06-27 16:25:34 +00:00
|
|
|
%if 0%{?rhel} <= 6
|
2016-06-25 21:04:08 +00:00
|
|
|
case "$1" in
|
|
|
|
0)
|
|
|
|
service zerotier-one stop
|
|
|
|
chkconfig --del zerotier-one
|
|
|
|
;;
|
|
|
|
1)
|
|
|
|
# This is an upgrade.
|
|
|
|
:
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
%endif
|
2016-06-08 22:33:59 +00:00
|
|
|
|
|
|
|
%postun
|
2016-06-27 16:25:34 +00:00
|
|
|
%if 0%{?rhel} >= 7
|
2016-06-10 15:26:27 +00:00
|
|
|
%systemd_postun_with_restart zerotier-one.service
|
2016-06-25 21:04:08 +00:00
|
|
|
%endif
|
2016-06-27 16:25:34 +00:00
|
|
|
%if 0%{?fedora} >= 21
|
2016-06-25 21:04:08 +00:00
|
|
|
%systemd_postun_with_restart zerotier-one.service
|
|
|
|
%endif
|
2016-06-08 22:33:59 +00:00
|
|
|
|
2016-06-08 21:46:42 +00:00
|
|
|
%changelog
|
2020-11-30 21:06:07 +00: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 21:27:19 +00: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 18:24:30 +00: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-06 00:23:52 +00: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 18:12:25 +00:00
|
|
|
* Fri Aug 23 2019 Adam Ierymenko <adam.ierymenko@zerotier.com> - 1.4.4-0.1
|
2019-08-23 17:15:13 +00:00
|
|
|
- see https://github.com/zerotier/ZeroTierOne for release notes
|
|
|
|
|
2019-07-29 19:07:44 +00: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 20:07:20 +00: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 19:51:49 +00: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 18:41:01 +00: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-18 02:16:34 +00: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-15 04:23:47 +00: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 19:30:35 +00: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 20:57:16 +00: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 21:04:08 +00: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 21:46:42 +00: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 21:04:08 +00:00
|
|
|
- initial package
|