zabbix-vl.spec 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841
  1. %bcond_with systemd
  2. %define only_agent 0
  3. %if %{only_agent}
  4. %bcond_with server
  5. %bcond_with proxy
  6. %bcond_with frontend
  7. %else
  8. %bcond_without server
  9. %bcond_without proxy
  10. %bcond_without frontend
  11. %endif
  12. %bcond_without agent
  13. %bcond_without agent2
  14. %global php_pkgname php74
  15. Summary: The Enterprise-class Monitoring Solution for Everyone
  16. Name: zabbix
  17. Version: 7.0.12
  18. Release: 1%{?_dist_release}%{?with_systemd:.systemd}
  19. Group: system
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. License: GPLv2
  23. URL: https://www.zabbix.com/
  24. %global shortver %(echo %{version} | sed -e 's/\.[0-9]*$//')
  25. Source0: https://cdn.zabbix.com/zabbix/sources/stable/%{shortver}/%{name}-%{version}.tar.gz
  26. Source1: zabbix_server.init
  27. Source2: zabbix_proxy.init
  28. Source3: zabbix_agentd.init
  29. Source4: zabbix_agent2.init
  30. Source5: zabbix_server.logrotate
  31. Source6: zabbix_proxy.logrotate
  32. Source7: zabbix_agentd.logrotate
  33. Source8: zabbix_agent2.logrotate
  34. Source9: %{name}-tmpfiles-zabbix.conf
  35. # systemd units -- Alternatives switches between them (they state their dependencies)
  36. # https://support.zabbix.com/browse/ZBXNEXT-1593
  37. Source110: %{name}-agent.service
  38. Source111: %{name}-agent2.service
  39. Source112: %{name}-proxy-mysql.service
  40. Source113: %{name}-proxy-pgsql.service
  41. Source114: %{name}-server-mysql.service
  42. Source115: %{name}-server-pgsql.service
  43. Source120: %{name}-tmpfiles-zabbixsrv.conf
  44. %if %{with agent2}
  45. # cd zabbix-7.0.2/src/go; GOPROXY=https://proxy.golang.org,direct go mod vendor
  46. Source1000: vendor.tar.xz
  47. %endif
  48. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
  49. %if %{with server}%{with proxy}
  50. BuildRequires: libpq-devel
  51. BuildRequires: libmariadb-devel
  52. %endif
  53. %if %{with agent2}
  54. BuildRequires: golang
  55. %endif
  56. BuildRequires: libevent-devel
  57. BuildRequires: pcre2-devel
  58. BuildRequires: curl-devel
  59. BuildRequires: net-snmp-devel
  60. BuildRequires: OpenIPMI-devel
  61. BuildRequires: unixODBC-devel
  62. BuildRequires: libssh2-devel
  63. BuildRequires: openssl-devel
  64. Requires(pre): glibc-common
  65. Requires(pre): shadow-utils
  66. %if %{with systemd}
  67. BuildRequires: systemd
  68. %endif
  69. %description
  70. The Enterprise-class Monitoring Solution for Everyone.
  71. %if %{with server}
  72. %package server-common
  73. Summary: common files for Zabbix Server
  74. Group: servers
  75. Requires: %{name} == %{version}-%{release}
  76. %if %{with systemd}
  77. %{?systemd_requires}
  78. %else
  79. Requires(post,preun): chkconfig
  80. Requires(preun,postun): initscripts
  81. %endif
  82. %description server-common
  83. This package include common files for Zabbix Server.
  84. %package server-mysql
  85. Summary: Zabbix Server for MySQL/MariaDB
  86. Group: servers
  87. Provides: %{name}-server
  88. Requires: %{name}-server-common == %{version}-%{release}
  89. %description server-mysql
  90. Zabbix Server for MySQL/MariaDB
  91. %package server-postgresql
  92. Summary: Zabbix Server for PostgreSQL
  93. Group: servers
  94. Provides: %{name}-server
  95. Requires: %{name}-server-common == %{version}-%{release}
  96. %description server-postgresql
  97. Zabbix Server for PostgreSQL
  98. %endif
  99. %if %{with agent}
  100. %package agent
  101. Summary: Zabbix Agent
  102. Group: system
  103. Requires: %{name} == %{version}-%{release}
  104. %if %{with systemd}
  105. %{?systemd_requires}
  106. %else
  107. Requires(post,preun): chkconfig
  108. Requires(preun,postun): initscripts
  109. %endif
  110. %description agent
  111. Zabbix Agent
  112. %endif
  113. %if %{with agent2}
  114. %package agent2
  115. Summary: Zabbix Agent2
  116. Group: system
  117. Requires: %{name} == %{version}-%{release}
  118. %if %{with systemd}
  119. %{?systemd_requires}
  120. %else
  121. Requires(post,preun): chkconfig
  122. Requires(preun,postun): initscripts
  123. %endif
  124. %description agent2
  125. Zabbix Agent2
  126. %endif
  127. %if %{with proxy}
  128. %package proxy-common
  129. Summary: common files for Zabbix Proxy
  130. Group: servers
  131. Requires: %{name} == %{version}-%{release}
  132. %if %{with systemd}
  133. %{?systemd_requires}
  134. %else
  135. Requires(post,preun): chkconfig
  136. Requires(preun,postun): initscripts
  137. %endif
  138. %description proxy-common
  139. This package include common files for Zabbix Proxy
  140. %package proxy-mysql
  141. Summary: Zabbix Proxy for MySQL/MariaDB
  142. Group: servers
  143. Provides: %{name}-proxy
  144. Requires: %{name}-proxy-common == %{version}-%{release}
  145. %description proxy-mysql
  146. Zabbix Proxy for MySQL/MariaDB
  147. %package proxy-postgresql
  148. Summary: Zabbix Proxy for PostgreSQL
  149. Group: servers
  150. Provides: %{name}-proxy
  151. Requires: %{name}-proxy-common == %{version}-%{release}
  152. %description proxy-postgresql
  153. Zabbix Proxy for PostgreSQL
  154. %endif
  155. %if %{with frontend}
  156. %package frontend-php
  157. Summary: Zabbix web frontend with PHP
  158. Group: servers
  159. Requires: %{php_pkgname}
  160. Requires: TrueType-vlgothic
  161. %description frontend-php
  162. Zabbix web frontend with PHP.
  163. %package frontend-php-mysql
  164. Summary: Zabbix web frontend with PHP and MySQL/MariaDB
  165. Group: servers
  166. Provides: %{name}-frontend-php == %{version}-%{release}
  167. Requires: %{php_pkgname}-mysql
  168. %description frontend-php-mysql
  169. Zabbix web frontend with PHP and MySQL/MariaDB.
  170. %package frontend-php-postgresql
  171. Summary: Zabbix web frontend with PHP and PostgreSQL
  172. Group: servers
  173. Provides: %{name}-frontend-php == %{version}-%{release}
  174. Requires: %{php_pkgname}-pgsql
  175. %description frontend-php-postgresql
  176. Zabbix web frontend with PHP and PostgreSQL.
  177. %endif
  178. %debug_package
  179. %prep
  180. %setup -q -T -a 0 -c -n zabbix-%{version}
  181. %if %{with agent2}
  182. pushd zabbix-%{version}/src/go
  183. tar xvf %{SOURCE1000}
  184. popd
  185. %endif
  186. mv zabbix-%{version} zabbix_mysql
  187. %if %{with server}%{with proxy}
  188. %setup -q -D -T -a 0 -n zabbix-%{version}
  189. mv zabbix-%{version} zabbix_pgsql
  190. %endif
  191. for v in mysql pgsql; do
  192. pushd zabbix_$v
  193. sed -i -e 's/DejaVuSans/VL-Gothic-Regular/g' ./ui/include/defines.inc.php
  194. sed -i \
  195. -e '\|^# PidFile=.*|a PidFile=/run/zabbix/zabbix_agentd.pid' \
  196. -e 's|^LogFile=.*|LogFile=%{_localstatedir}/log/zabbix/zabbix_agentd.log|' \
  197. conf/zabbix_agentd.conf
  198. sed -i \
  199. -e '\|^# PidFile=.*|a PidFile=/run/zabbix/zabbix_proxy.pid' \
  200. -e 's|^LogFile=.*|LogFile=%{_localstatedir}/log/zabbix/zabbix_proxy.log|' \
  201. conf/zabbix_proxy.conf
  202. sed -i \
  203. -e '\|^# PidFile=.*|a PidFile=/run/zabbix/zabbix_server.pid' \
  204. -e 's|^LogFile=.*|LogFile=%{_localstatedir}/log/zabbix/zabbix_server.log|' \
  205. conf/zabbix_server.conf
  206. #'
  207. popd
  208. done
  209. %build
  210. Build()
  211. {
  212. perl -pi -e 's|/usr/bin/traceroute|/bin/traceroute|' \
  213. ./database/{ibm_db2,mysql,oracle,postgresql,sqlite3}/data.sql
  214. %configure \
  215. %{?with_server:--enable-server} \
  216. %{?with_proxy:--enable-proxy} \
  217. --enable-ipv6 \
  218. --sysconfdir=%{_sysconfdir}/zabbix \
  219. --with-libcurl \
  220. --with-openipmi \
  221. --with-net-snmp \
  222. --with-unixodbc \
  223. --with-ssh2 \
  224. --with-openssl \
  225. --with-libpcre2 \
  226. $@
  227. %__make
  228. }
  229. %if %{with server}%{with proxy}
  230. pushd zabbix_mysql
  231. Build \
  232. --with-mysql \
  233. %{?with_agent:--enable-agent} \
  234. %{?with_agent2:--enable-agent2} \
  235. %{nil}
  236. popd
  237. pushd zabbix_pgsql
  238. Build --with-postgresql
  239. popd
  240. %else
  241. pushd zabbix_mysql
  242. Build
  243. popd
  244. %endif
  245. %install
  246. %__rm -rf %{buildroot}
  247. pushd zabbix_mysql
  248. make DESTDIR=%{buildroot} install
  249. %if %{with server}
  250. mv -f %{buildroot}%{_sbindir}/zabbix_server %{buildroot}%{_sbindir}/zabbix_server.mysql
  251. %endif
  252. %if %{with proxy}
  253. mv -f %{buildroot}%{_sbindir}/zabbix_proxy %{buildroot}%{_sbindir}/zabbix_proxy.mysql
  254. %endif
  255. # make directories
  256. %__mkdir_p %{buildroot}%{_localstatedir}/{log,run}/%{name}
  257. # DB
  258. %__mkdir_p %{buildroot}%{_datadir}/zabbix
  259. %if %{with server}%{with proxy}
  260. %__cp -a database/postgresql %{buildroot}%{_datadir}/zabbix/
  261. %__cp -a database/mysql %{buildroot}%{_datadir}/zabbix/
  262. %endif
  263. %if %{with agent2}
  264. sed -i \
  265. -e '/^# PidFile=/a PidFile=/run/zabbix/zabbix_agent2.pid' \
  266. -e '/^# LogFile=/a LogFile=/var/log/zabbix/zabbix_agent2.log' \
  267. %{buildroot}/etc/zabbix/zabbix_agent2.conf
  268. %endif
  269. %if %{with systemd}
  270. # unit files
  271. %__mkdir_p %{buildroot}%{_unitdir}
  272. # Install different systemd units because of the requirements for DBMS daemons
  273. install -m 0644 -p %{SOURCE110} %{buildroot}%{_unitdir}/zabbix-agent.service
  274. install -m 0644 -p %{SOURCE111} %{buildroot}%{_unitdir}/zabbix-agent2.service
  275. install -m 0644 -p %{SOURCE112} %{buildroot}%{_unitdir}/zabbix-proxy-mysql.service
  276. install -m 0644 -p %{SOURCE113} %{buildroot}%{_unitdir}/zabbix-proxy-pgsql.service
  277. install -m 0644 -p %{SOURCE114} %{buildroot}%{_unitdir}/zabbix-server-mysql.service
  278. install -m 0644 -p %{SOURCE115} %{buildroot}%{_unitdir}/zabbix-server-pgsql.service
  279. # systemd tmpfiles
  280. mkdir -p %{buildroot}%{_prefix}/lib/tmpfiles.d
  281. install -m 0644 -p %{SOURCE9} %{buildroot}%{_prefix}/lib/tmpfiles.d/zabbix.conf
  282. %else
  283. # init.d
  284. %__mkdir_p %{buildroot}%{_initddir}
  285. %if %{with server}
  286. %__cp %{SOURCE1} %{buildroot}%{_initddir}/zabbix_server
  287. %endif
  288. %if %{with proxy}
  289. %__cp %{SOURCE2} %{buildroot}%{_initddir}/zabbix_proxy
  290. %endif
  291. %if %{with agent}
  292. %__cp %{SOURCE3} %{buildroot}%{_initddir}/zabbix_agentd
  293. %endif
  294. %if %{with agent2}
  295. %__cp %{SOURCE4} %{buildroot}%{_initddir}/zabbix_agent2
  296. %endif
  297. %endif
  298. # logrotate
  299. %__mkdir_p %{buildroot}%{_sysconfdir}/logrotate.d
  300. %if %{with server}
  301. %__cp %{SOURCE5} %{buildroot}%{_sysconfdir}/logrotate.d/zabbix_server
  302. %endif
  303. %if %{with proxy}
  304. %__cp %{SOURCE6} %{buildroot}%{_sysconfdir}/logrotate.d/zabbix_proxy
  305. %endif
  306. %if %{with agent}
  307. %__cp %{SOURCE7} %{buildroot}%{_sysconfdir}/logrotate.d/zabbix_agentd
  308. %endif
  309. %if %{with agent2}
  310. %__cp %{SOURCE8} %{buildroot}%{_sysconfdir}/logrotate.d/zabbix_agent2
  311. %endif
  312. %if %{with frontend}
  313. # frontend-php
  314. %__mkdir_p %{buildroot}%{_datadir}/zabbix-frontend
  315. %__cp -a ui %{buildroot}%{_datadir}/zabbix-frontend/php
  316. %__rm -f %{buildroot}%{_datadir}/zabbix-frontend/php/assets/fonts/DejaVuSans.ttf
  317. ln -s /usr/share/fonts/TrueType-vlgothic/VL-Gothic-Regular.ttf \
  318. %{buildroot}%{_datadir}/zabbix-frontend/php/assets/fonts/
  319. %endif
  320. %if %{with proxy}
  321. # proxy
  322. mkdir -p %{buildroot}%{_datadir}/zabbix-proxy
  323. ln -sf ../zabbix/mysql %{buildroot}%{_datadir}/zabbix-proxy/
  324. ln -sf ../zabbix/postgresql %{buildroot}%{_datadir}/zabbix-proxy/
  325. %endif
  326. popd
  327. %if %{with server}%{with proxy}
  328. pushd zabbix_pgsql
  329. install -m755 src/zabbix_server/zabbix_server %{buildroot}%{_sbindir}/zabbix_server.pgsql
  330. install -m755 src/zabbix_proxy/zabbix_proxy %{buildroot}%{_sbindir}/zabbix_proxy.pgsql
  331. popd
  332. %endif
  333. %pre
  334. getent group zabbix >/dev/null || groupadd -r zabbix
  335. getent passwd zabbix >/dev/null || \
  336. useradd -r -g zabbix -d %{_sysconfdir}/zabbix -s /sbin/nologin \
  337. -c "Zabbix Monitoring Solution" zabbix
  338. exit 0
  339. %if %{with server}
  340. %post server-mysql
  341. %if %{with systemd}
  342. %systemd_post zabbix-server-mysql.service
  343. %else
  344. /sbin/update-alternatives --install /usr/sbin/zabbix_server \
  345. zabbix_server /usr/sbin/zabbix_server.mysql 10
  346. %endif
  347. %post server-postgresql
  348. %if %{with systemd}
  349. %systemd_post zabbix-server-pgsql.service
  350. %else
  351. /sbin/update-alternatives --install /usr/sbin/zabbix_server \
  352. zabbix_server /usr/sbin/zabbix_server.pgsql 10
  353. /sbin/chkconfig --add zabbix_server
  354. %endif
  355. %endif
  356. %if %{with proxy}
  357. %post proxy-mysql
  358. %if %{with systemd}
  359. %systemd_post zabbix-proxy-mysql.service
  360. %else
  361. /sbin/update-alternatives --install /usr/sbin/zabbix_proxy \
  362. zabbix_proxy /usr/sbin/zabbix_proxy.mysql 10
  363. /sbin/chkconfig --add zabbix_proxy
  364. %endif
  365. %post proxy-postgresql
  366. %if %{with systemd}
  367. %systemd_post zabbix-proxy-pgsql.service
  368. %else
  369. /sbin/update-alternatives --install /usr/sbin/zabbix_proxy \
  370. zabbix_proxy /usr/sbin/zabbix_proxy.pgsql 10
  371. /sbin/chkconfig --add zabbix_proxy
  372. %endif
  373. %endif
  374. %if %{with agent}
  375. %post agent
  376. %if %{with systemd}
  377. %systemd_post zabbix-agent.service
  378. %else
  379. /sbin/chkconfig --add zabbix_agentd
  380. %endif
  381. %endif
  382. %if %{with agent2}
  383. %post agent2
  384. %if %{with systemd}
  385. %systemd_post zabbix-agent2.service
  386. %else
  387. /sbin/chkconfig --add zabbix_agent2
  388. %endif
  389. %endif
  390. %if %{with server}
  391. %preun server-mysql
  392. %if %{with systemd}
  393. %systemd_preun zabbix-server-mysql.service
  394. %else
  395. if [ "$1" -eq 0 -o -x /usr/bin/systemctl ]; then
  396. /sbin/service zabbix_server stop >/dev/null 2>&1
  397. /sbin/chkconfig --del zabbix_server
  398. /sbin/update-alternatives --remove zabbix_server \
  399. /usr/sbin/zabbix_server.mysql
  400. fi
  401. %endif
  402. %preun server-postgresql
  403. %if %{with systemd}
  404. %systemd_preun zabbix-server-pgysql.service
  405. %else
  406. if [ "$1" -eq 0 -o -x /usr/bin/systemctl ]; then
  407. /sbin/service zabbix_server stop >/dev/null 2>&1
  408. /sbin/chkconfig --del zabbix_server
  409. /sbin/update-alternatives --remove zabbix_server \
  410. /usr/sbin/zabbix_server.pgsql
  411. fi
  412. %endif
  413. %endif
  414. %if %{with proxy}
  415. %preun proxy-mysql
  416. %if %{with systemd}
  417. %systemd_preun zabbix-proxy-mysql.service
  418. %else
  419. if [ "$1" -eq 0 -o -x /usr/bin/systemctl ]; then
  420. /sbin/service zabbix_proxy stop >/dev/null 2>&1
  421. /sbin/chkconfig --del zabbix_proxy
  422. /sbin/update-alternatives --remove zabbix_proxy \
  423. /usr/sbin/zabbix_proxy.mysql
  424. fi
  425. %endif
  426. %preun proxy-postgresql
  427. %if %{with systemd}
  428. %systemd_preun zabbix-proxy-pgsql.service
  429. %else
  430. if [ "$1" -eq 0 -o -x /usr/bin/systemctl ]; then
  431. /sbin/service zabbix_proxy stop >/dev/null 2>&1
  432. /sbin/chkconfig --del zabbix_proxy
  433. /sbin/update-alternatives --remove zabbix_proxy \
  434. /usr/sbin/zabbix_proxy.pgsql
  435. fi
  436. %endif
  437. %endif
  438. %if %{with agent}
  439. %preun agent
  440. %if %{with systemd}
  441. %systemd_preun zabbix-agent.service
  442. %else
  443. if [ "$1" -eq 0 -o -x /usr/bin/systemctl ]; then
  444. /sbin/service zabbix_agentd stop >/dev/null 2>&1
  445. /sbin/chkconfig --del zabbix_agentd
  446. fi
  447. %endif
  448. %endif
  449. %if %{with agent2}
  450. %preun agent2
  451. %if %{with systemd}
  452. %systemd_preun zabbix-agent2.service
  453. %else
  454. if [ "$1" -eq 0 -o -x /usr/bin/systemctl ]; then
  455. /sbin/service zabbix_agent2 stop >/dev/null 2>&1
  456. /sbin/chkconfig --del zabbix_agent2
  457. fi
  458. %endif
  459. %endif
  460. %if %{with server}
  461. %postun server-mysql
  462. %if %{with systemd}
  463. %systemd_postun_with_restart zabbix-server-mysql.service
  464. %else
  465. if [ "$1" -ge "1" -a ! -x /usr/bin/systemctl ]; then
  466. /sbin/service zabbix_server condrestart >/dev/null 2>&1 || :
  467. fi
  468. %endif
  469. %postun server-postgresql
  470. %if %{with systemd}
  471. %systemd_postun_with_restart zabbix-server-pgsql.service
  472. %else
  473. if [ "$1" -ge "1" -a ! -x /usr/bin/systemctl ]; then
  474. /sbin/service zabbix_server condrestart >/dev/null 2>&1 || :
  475. fi
  476. %endif
  477. %endif
  478. %if %{with proxy}
  479. %postun proxy-mysql
  480. %if %{with systemd}
  481. %systemd_postun_with_restart zabbix-proxy-mysql.service
  482. %else
  483. if [ "$1" -ge "1" -a ! -x /usr/bin/systemctl ]; then
  484. /sbin/service zabbix_proxy condrestart >/dev/null 2>&1 || :
  485. fi
  486. %endif
  487. %postun proxy-postgresql
  488. %if %{with systemd}
  489. %systemd_postun_with_restart zabbix-proxy-pgsql.service
  490. %else
  491. if [ "$1" -ge "1" -a ! -x /usr/bin/systemctl ]; then
  492. /sbin/service zabbix_proxy condrestart >/dev/null 2>&1 || :
  493. fi
  494. %endif
  495. %endif
  496. %if %{with agent}
  497. %postun agent
  498. %if %{with systemd}
  499. %systemd_postun_with_restart zabbix-agent.service
  500. %else
  501. if [ "$1" -ge "1" -a ! -x /usr/bin/systemctl ]; then
  502. /sbin/service zabbix_agentd condrestart >/dev/null 2>&1 || :
  503. fi
  504. %endif
  505. %endif
  506. %if %{with agent2}
  507. %postun agent2
  508. %if %{with systemd}
  509. %systemd_postun_with_restart zabbix-agent2.service
  510. %else
  511. if [ "$1" -ge "1" -a ! -x /usr/bin/systemctl ]; then
  512. /sbin/service zabbix_agent2 condrestart >/dev/null 2>&1 || :
  513. fi
  514. %endif
  515. %endif
  516. %files
  517. %license zabbix_mysql/COPYING
  518. %doc zabbix_mysql/AUTHORS zabbix_mysql/ChangeLog zabbix_mysql/NEWS zabbix_mysql/README
  519. %attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/%{name}
  520. %dir %{_datadir}/zabbix
  521. %if %{with server}%{with proxy}
  522. %{_datadir}/zabbix/mysql
  523. %{_datadir}/zabbix/postgresql
  524. %endif
  525. %if %{with systemd}
  526. %{_prefix}/lib/tmpfiles.d/zabbix.conf
  527. %endif
  528. %{_bindir}/zabbix_js
  529. %if %{with server}
  530. %files server-common
  531. %dir %{_sysconfdir}/zabbix
  532. %config(noreplace) %{_sysconfdir}/zabbix/zabbix_server.conf
  533. %config(noreplace) %{_sysconfdir}/logrotate.d/zabbix_server
  534. %if !%{with systemd}
  535. %{_initddir}/zabbix_server*
  536. %endif
  537. %{_mandir}/man8/zabbix_server.8*
  538. %files server-mysql
  539. %{_sbindir}/zabbix_server.mysql
  540. %if %{with systemd}
  541. %{_unitdir}/zabbix-server-mysql.service
  542. %endif
  543. %files server-postgresql
  544. %{_sbindir}/zabbix_server.pgsql
  545. %if %{with systemd}
  546. %{_unitdir}/zabbix-server-pgsql.service
  547. %endif
  548. %endif
  549. %if %{with agent}
  550. %files agent
  551. %dir %{_sysconfdir}/zabbix
  552. %config(noreplace) %{_sysconfdir}/zabbix/zabbix_agentd.conf
  553. %config(noreplace) %{_sysconfdir}/logrotate.d/zabbix_agentd
  554. %{_bindir}/zabbix_get
  555. %{_bindir}/zabbix_sender
  556. %{_sbindir}/zabbix_agentd
  557. %if %{with systemd}
  558. %{_unitdir}/zabbix-agent.service
  559. %else
  560. %{_initddir}/zabbix_agentd
  561. %endif
  562. %{_mandir}/man1/zabbix_get.1*
  563. %{_mandir}/man1/zabbix_sender.1*
  564. %{_mandir}/man8/zabbix_agentd.8*
  565. %endif
  566. %if %{with agent2}
  567. %files agent2
  568. %dir %{_sysconfdir}/zabbix
  569. %config(noreplace) %{_sysconfdir}/zabbix/zabbix_agent2.conf
  570. %config(noreplace) %{_sysconfdir}/logrotate.d/zabbix_agent2
  571. %dir %{_sysconfdir}/zabbix/zabbix_agent2.d
  572. %dir %{_sysconfdir}/zabbix/zabbix_agent2.d/plugins.d
  573. %{_sysconfdir}/zabbix/zabbix_agent2.d/plugins.d/*.conf
  574. %{_sbindir}/zabbix_agent2
  575. %{_mandir}/man8/zabbix_agent2.8*
  576. %if %{with systemd}
  577. %{_unitdir}/zabbix-agent2.service
  578. %else
  579. %{_initddir}/zabbix_agent2
  580. %endif
  581. %endif
  582. %if %{with proxy}
  583. %files proxy-common
  584. %dir %{_sysconfdir}/zabbix
  585. %config(noreplace) %{_sysconfdir}/zabbix/zabbix_proxy.conf
  586. %config(noreplace) %{_sysconfdir}/logrotate.d/zabbix_proxy
  587. %if !%{with systemd}
  588. %{_initddir}/zabbix_proxy
  589. %endif
  590. %{_mandir}/man8/zabbix_proxy.8*
  591. %{_datadir}/zabbix-proxy
  592. %files proxy-mysql
  593. %{_sbindir}/zabbix_proxy.mysql
  594. %if %{with systemd}
  595. %{_unitdir}/zabbix-proxy-mysql.service
  596. %endif
  597. %files proxy-postgresql
  598. %{_sbindir}/zabbix_proxy.pgsql
  599. %if %{with systemd}
  600. %{_unitdir}/zabbix-proxy-pgsql.service
  601. %endif
  602. %endif
  603. %if %{with frontend}
  604. %files frontend-php
  605. %license zabbix_mysql/COPYING
  606. %doc zabbix_mysql/AUTHORS zabbix_mysql/ChangeLog zabbix_mysql/NEWS zabbix_mysql/README
  607. %dir %{_datadir}/zabbix-frontend
  608. %{_datadir}/zabbix-frontend/php
  609. %files frontend-php-mysql
  610. %files frontend-php-postgresql
  611. %endif
  612. %changelog
  613. * Thu May 8 2025 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 7.0.12-1
  614. - new upstream release.
  615. * Fri Dec 13 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 7.0.6-1
  616. - new upstream release.
  617. * Mon Aug 05 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 7.0.2-1
  618. - new upstream release.
  619. * Wed Jul 24 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 7.0.1-1
  620. - new upstream release.
  621. * Wed Oct 18 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.0.22-1
  622. - new upstream release.
  623. * Wed Jul 26 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.0.19-1
  624. - new upstream release.
  625. * Fri Apr 14 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.0.16-1
  626. - new upstream release.
  627. * Sat Dec 10 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.0.12-1
  628. - new upstream release.
  629. * Fri Sep 16 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.0.8-1
  630. - new upstream release.
  631. * Fri Jul 15 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.0.6-1
  632. - new upstream release.
  633. * Sat Jan 22 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.0.19-1
  634. - new upstream release.
  635. * Tue Oct 05 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.0.16-1
  636. - new upstream release.
  637. * Tue Aug 31 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.0.15-1
  638. - new upstream release.
  639. * Fri Mar 19 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.0.9-1
  640. - new upstream release.
  641. * Sun Dec 20 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.0.6-1
  642. - new upstream release.
  643. * Tue Sep 08 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.0.3-1
  644. - new upstream release.
  645. * Thu Jul 23 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.0.2-1
  646. - new upstream release.
  647. - dropped all patches: made to get the same effect by another method.
  648. * Wed Apr 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.0.19-2
  649. - rebuilt with libevent-2.1.11.
  650. * Mon Apr 06 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.0.19-1
  651. - new upstream release.
  652. - dropped Patch3: fixed in upstream.
  653. - changed R:php5 to R:php74.
  654. - added systemd support (disabled as default).
  655. * Thu Dec 19 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.0.15-1
  656. - new upstream release.
  657. - imported Patch13 from upstream to support php74.
  658. * Thu Oct 17 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.0.13-1
  659. - new upstream release.
  660. - updated patches.
  661. * Wed May 08 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.0.7-1
  662. - new upstream release.
  663. - switched to 4.0 LTS.
  664. - dropped Patch0: made to get same effect by another method.
  665. - updated Patch1 and 2.
  666. * Wed Nov 07 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.23-1
  667. - new upstream release.
  668. * Tue Jun 12 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 3.0.13-2
  669. - accept building only agent
  670. * Thu Dec 21 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.13-1
  671. - new upstream release.
  672. * Fri Apr 21 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.8-1
  673. - new upstream release.
  674. * Fri Mar 18 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.1-1
  675. - new upstream release.
  676. - disabled jabber support.
  677. * Wed Sep 9 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.6-1
  678. - new upstream release.
  679. * Sat Apr 11 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.9-1
  680. - new upstream release.
  681. * Sun Jul 6 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.4-1
  682. - new upstream release.
  683. - built with both of mysql and postgresql.
  684. * Mon Oct 07 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.8-1
  685. - update to 2.0.8
  686. * Wed Feb 20 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.5-2
  687. - use %%bcond_with mysql to build with mysql
  688. * Tue Feb 19 2013 IWAI, Masaharu <iwai@alib.jp> 2.0.5-1
  689. - update to 2.0.5
  690. - add using MySQL client library switch: default no
  691. - define use_postfix and use_mysql
  692. - add BuildRequires: MySQL-devel
  693. - add configure option: --with-mysql
  694. * Thu Feb 7 2013 IWAI, Masaharu <iwai@alib.jp> 2.0.4-1
  695. - initial build for Vine Linux