zerotier-one.spec 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. Name: zerotier-one
  2. Version: 1.14.2
  3. Release: 1%{?dist}
  4. Summary: ZeroTier network virtualization service
  5. License: ZeroTier BUSL 1.1
  6. URL: https://www.zerotier.com
  7. # Fedora
  8. %if "%{?dist}" == ".fc35"
  9. BuildRequires: systemd clang openssl openssl-devel
  10. Requires: systemd openssl
  11. Requires(pre): /usr/sbin/useradd, /usr/bin/getent
  12. %endif
  13. %if "%{?dist}" == ".fc36"
  14. BuildRequires: systemd clang openssl openssl-devel
  15. Requires: systemd openssl
  16. Requires(pre): /usr/sbin/useradd, /usr/bin/getent
  17. %endif
  18. %if "%{?dist}" == ".fc37"
  19. BuildRequires: systemd clang openssl openssl-devel
  20. Requires: systemd openssl
  21. Requires(pre): /usr/sbin/useradd, /usr/bin/getent
  22. %endif
  23. %if "%{?dist}" == ".fc38"
  24. BuildRequires: systemd clang openssl openssl-devel
  25. Requires: systemd openssl
  26. Requires(pre): /usr/sbin/useradd, /usr/bin/getent
  27. %endif
  28. %if "%{?dist}" == ".fc39"
  29. BuildRequires: systemd clang openssl openssl-devel
  30. Requires: systemd openssl
  31. Requires(pre): /usr/sbin/useradd, /usr/bin/getent
  32. %endif
  33. %if "%{?dist}" == ".fc40"
  34. BuildRequires: systemd clang openssl openssl-devel
  35. Requires: systemd openssl
  36. Requires(pre): /usr/sbin/useradd, /usr/bin/getent
  37. %endif
  38. # RHEL
  39. %if "%{?dist}" == ".el6"
  40. Requires: chkconfig
  41. Requires(pre): /usr/sbin/useradd, /usr/bin/getent
  42. %endif
  43. %if "%{?dist}" == ".el7"
  44. BuildRequires: systemd openssl-devel
  45. Requires: systemd openssl
  46. Requires(pre): /usr/sbin/useradd, /usr/bin/getent
  47. %endif
  48. %if "%{?dist}" == ".el8"
  49. BuildRequires: systemd openssl-devel
  50. Requires: systemd openssl
  51. Requires(pre): /usr/sbin/useradd, /usr/bin/getent
  52. %endif
  53. %if "%{?dist}" == ".el9"
  54. BuildRequires: systemd openssl-devel
  55. Requires: systemd openssl
  56. Requires(pre): /usr/sbin/useradd, /usr/bin/getent
  57. %endif
  58. # Amazon
  59. %if "%{?dist}" == ".amzn2"
  60. BuildRequires: systemd openssl-devel
  61. Requires: systemd openssl
  62. Requires(pre): /usr/sbin/useradd, /usr/bin/getent
  63. %endif
  64. %if "%{?dist}" == ".amzn2022"
  65. BuildRequires: systemd openssl-devel
  66. Requires: systemd openssl
  67. Requires(pre): /usr/sbin/useradd, /usr/bin/getent
  68. %endif
  69. %description
  70. ZeroTier is a software defined networking layer for Earth.
  71. It can be used for on-premise network virtualization, as a peer to peer VPN
  72. for mobile teams, for hybrid or multi-data-center cloud deployments, or just
  73. about anywhere else secure software defined virtual networking is useful.
  74. This is our OS-level client service. It allows Mac, Linux, Windows,
  75. FreeBSD, and soon other types of clients to join ZeroTier virtual networks
  76. like conventional VPNs or VLANs. It can run on native systems, VMs, or
  77. containers (Docker, OpenVZ, etc.).
  78. %prep
  79. %if "%{?dist}" != ".el6"
  80. rm -rf BUILD BUILDROOT RPMS SRPMS SOURCES
  81. ln -s %{getenv:PWD} %{name}-%{version}
  82. mkdir -p SOURCES
  83. tar --exclude=%{name}-%{version}/.git --exclude=%{name}-%{version}/%{name}-%{version} -czf SOURCES/%{name}-%{version}.tar.gz %{name}-%{version}/*
  84. rm -f %{name}-%{version}
  85. # cp -a %{getenv:PWD}/* .
  86. %endif
  87. %build
  88. %if "%{?dist}" != ".el6"
  89. make ZT_USE_MINIUPNPC=1 %{?_smp_mflags} one
  90. %endif
  91. %pre
  92. /usr/bin/getent passwd zerotier-one || /usr/sbin/useradd -r -d /var/lib/zerotier-one -s /sbin/nologin zerotier-one
  93. %install
  94. %if "%{?dist}" != ".el6"
  95. make install DESTDIR=$RPM_BUILD_ROOT
  96. mkdir -p $RPM_BUILD_ROOT%{_unitdir}
  97. cp %{getenv:PWD}/debian/zerotier-one.service $RPM_BUILD_ROOT%{_unitdir}/%{name}.service
  98. %else
  99. rm -rf $RPM_BUILD_ROOT
  100. pushd %{getenv:PWD}
  101. make install DESTDIR=$RPM_BUILD_ROOT
  102. popd
  103. mkdir -p $RPM_BUILD_ROOT/etc/init.d
  104. cp %{getenv:PWD}/ext/installfiles/linux/zerotier-one.init.rhel6 $RPM_BUILD_ROOT/etc/init.d/zerotier-one
  105. chmod 0755 $RPM_BUILD_ROOT/etc/init.d/zerotier-one
  106. %endif
  107. %files
  108. %{_sbindir}/*
  109. %{_mandir}/*
  110. %{_localstatedir}/*
  111. %if 0%{?rhel} && 0%{?rhel} <= 6
  112. /etc/init.d/zerotier-one
  113. %else
  114. %{_unitdir}/%{name}.service
  115. %endif
  116. %post
  117. %if ! 0%{?rhel} && 0%{?rhel} <= 6
  118. %systemd_post zerotier-one.service
  119. %endif
  120. %preun
  121. %if ! 0%{?rhel} && 0%{?rhel} <= 6
  122. %systemd_preun zerotier-one.service
  123. %endif
  124. %postun
  125. %if ! 0%{?rhel} && 0%{?rhel} <= 6
  126. %systemd_postun_with_restart zerotier-one.service
  127. %endif
  128. %changelog
  129. * Wed Oct 23 2024 Adam Ierymenko <[email protected]> - 1.14.2
  130. - see https://github.com/zerotier/ZeroTierOne for release notes
  131. * Tue Mar 19 2024 Adam Ierymenko <[email protected]> - 1.14.0
  132. - see https://github.com/zerotier/ZeroTierOne for release notes
  133. * Tue Sep 12 2023 Adam Ierymenko <[email protected]> - 1.12.2
  134. - see https://github.com/zerotier/ZeroTierOne for release notes
  135. * Fri Aug 25 2023 Adam Ierymenko <[email protected]> - 1.12.1
  136. - see https://github.com/zerotier/ZeroTierOne for release notes
  137. * Thu Aug 17 2023 Adam Ierymenko <[email protected]> - 1.12.0
  138. - see https://github.com/zerotier/ZeroTierOne for release notes
  139. * Tue Mar 21 2023 Adam Ierymenko <[email protected]> - 1.10.6
  140. - see https://github.com/zerotier/ZeroTierOne for release notes
  141. * Fri Mar 10 2023 Adam Ierymenko <[email protected]> - 1.10.5
  142. - see https://github.com/zerotier/ZeroTierOne for release notes
  143. * Mon Mar 06 2023 Adam Ierymenko <[email protected]> - 1.10.4
  144. - see https://github.com/zerotier/ZeroTierOne for release notes
  145. * Sat Jan 21 2023 Adam Ierymenko <[email protected]> - 1.10.3
  146. - see https://github.com/zerotier/ZeroTierOne for release notes
  147. * Thu Oct 13 2022 Adam Ierymenko <[email protected]> - 1.10.2
  148. - see https://github.com/zerotier/ZeroTierOne for release notes
  149. * Mon Jun 27 2022 Adam Ierymenko <[email protected]> - 1.10.1
  150. - see https://github.com/zerotier/ZeroTierOne for release notes
  151. * Fri Jun 03 2022 Adam Ierymenko <[email protected]> - 1.10.0
  152. - see https://github.com/zerotier/ZeroTierOne for release notes
  153. * Tue May 10 2022 Adam Ierymenko <[email protected]> - 1.8.10
  154. - see https://github.com/zerotier/ZeroTierOne for release notes
  155. * Mon Apr 25 2022 Adam Ierymenko <[email protected]> - 1.8.9
  156. - see https://github.com/zerotier/ZeroTierOne for release notes
  157. * Mon Apr 11 2022 Adam Ierymenko <[email protected]> - 1.8.8
  158. - see https://github.com/zerotier/ZeroTierOne for release notes
  159. * Mon Mar 21 2022 Adam Ierymenko <[email protected]> - 1.8.7
  160. - see https://github.com/zerotier/ZeroTierOne for release notes
  161. * Mon Mar 07 2022 Adam Ierymenko <[email protected]> - 1.8.6
  162. - see https://github.com/zerotier/ZeroTierOne for release notes
  163. * Fri Dec 17 2021 Adam Ierymenko <[email protected]> - 1.8.5
  164. - see https://github.com/zerotier/ZeroTierOne for release notes
  165. * Tue Nov 23 2021 Adam Ierymenko <[email protected]> - 1.8.4
  166. - see https://github.com/zerotier/ZeroTierOne for release notes
  167. * Mon Nov 15 2021 Adam Ierymenko <[email protected]> - 1.8.3
  168. - see https://github.com/zerotier/ZeroTierOne for release notes
  169. * Mon Nov 08 2021 Adam Ierymenko <[email protected]> - 1.8.2
  170. - see https://github.com/zerotier/ZeroTierOne for release notes
  171. * Wed Oct 20 2021 Adam Ierymenko <[email protected]> - 1.8.1
  172. - see https://github.com/zerotier/ZeroTierOne for release notes
  173. * Wed Sep 15 2021 Adam Ierymenko <[email protected]> - 1.8.0
  174. - see https://github.com/zerotier/ZeroTierOne for release notes
  175. * Tue Apr 13 2021 Adam Ierymenko <[email protected]> - 1.6.5
  176. - see https://github.com/zerotier/ZeroTierOne for release notes
  177. * Mon Feb 15 2021 Adam Ierymenko <[email protected]> - 1.6.4
  178. - see https://github.com/zerotier/ZeroTierOne for release notes
  179. * Mon Nov 30 2020 Adam Ierymenko <[email protected]> - 1.6.2-0.1
  180. - see https://github.com/zerotier/ZeroTierOne for release notes
  181. * Tue Nov 24 2020 Adam Ierymenko <[email protected]> - 1.6.1-0.1
  182. - see https://github.com/zerotier/ZeroTierOne for release notes
  183. * Thu Nov 19 2020 Adam Ierymenko <[email protected]> - 1.6.0-0.1
  184. - see https://github.com/zerotier/ZeroTierOne for release notes
  185. * Mon Oct 05 2020 Adam Ierymenko <[email protected]> - 1.6.0-beta1
  186. - see https://github.com/zerotier/ZeroTierOne for release notes
  187. * Fri Aug 23 2019 Adam Ierymenko <[email protected]> - 1.4.4-0.1
  188. - see https://github.com/zerotier/ZeroTierOne for release notes
  189. * Mon Jul 29 2019 Adam Ierymenko <[email protected]> - 1.4.0-0.1
  190. - see https://github.com/zerotier/ZeroTierOne for release notes
  191. * Tue May 08 2018 Adam Ierymenko <[email protected]> - 1.2.10-0.1
  192. - see https://github.com/zerotier/ZeroTierOne for release notes
  193. * Thu May 03 2018 Adam Ierymenko <[email protected]> - 1.2.8-0.1
  194. - see https://github.com/zerotier/ZeroTierOne for release notes
  195. * Mon Apr 24 2017 Adam Ierymenko <[email protected]> - 1.2.2-0.1
  196. - see https://github.com/zerotier/ZeroTierOne for release notes
  197. * Fri Mar 17 2017 Adam Ierymenko <[email protected]> - 1.2.2-0.1
  198. - see https://github.com/zerotier/ZeroTierOne for release notes
  199. * Tue Mar 14 2017 Adam Ierymenko <[email protected]> - 1.2.0-0.1
  200. - see https://github.com/zerotier/ZeroTierOne for release notes
  201. * Tue Jul 12 2016 Adam Ierymenko <[email protected]> - 1.1.10-0.1
  202. - see https://github.com/zerotier/ZeroTierOne for release notes
  203. * Fri Jul 08 2016 Adam Ierymenko <[email protected]> - 1.1.8-0.1
  204. - see https://github.com/zerotier/ZeroTierOne for release notes
  205. * Sat Jun 25 2016 Adam Ierymenko <[email protected]> - 1.1.6-0.1
  206. - now builds on CentOS 6 as well as newer distros, and some cleanup
  207. * Wed Jun 08 2016 François Kooman <[email protected]> - 1.1.5-0.3
  208. - include systemd unit file
  209. * Wed Jun 08 2016 François Kooman <[email protected]> - 1.1.5-0.2
  210. - add libnatpmp as (build)dependency
  211. * Wed Jun 08 2016 François Kooman <[email protected]> - 1.1.5-0.1
  212. - initial package