/[smecontribs]/rpms/smeserver-zabbix-agent/contribs10/smeserver-zabbix-agent.spec
ViewVC logotype

Diff of /rpms/smeserver-zabbix-agent/contribs10/smeserver-zabbix-agent.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by brianr, Fri Dec 4 18:34:21 2020 UTC Revision 1.5 by jpp, Mon Aug 1 18:40:03 2022 UTC
# Line 1  Line 1 
 # $Id: smeserver-zabbix-agent.spec,v 1.2 2016/02/09 23:21:05 stephdl Exp $  
 # Authority: vip-ire  
 # Name: Daniel Berteaud  
   
 %define name smeserver-zabbix-agent  
 %define version 0.1  
 %define release 53  
1  Summary: sme server integration of zabbix agent  Summary: sme server integration of zabbix agent
2  Name: %{name}  Name: smeserver-zabbix-agent
3  Version: %{version}  Version: 0.4.8
4  Release: %{release}%{?dist}  Release: 3%{?dist}
5  License: GNU GPL version 2  License: GNU GPL version 2
6  URL: http://www.zabbix.com/  URL: http://www.zabbix.com/
7  Group: SMEserver/addon  Group: SMEserver/addon
8  Source: %{name}-%{version}.tar.gz  Source: %{name}-%{version}.tar.gz
9  Patch0: smeserver-zabbix-agent-0.1-hostname.patch  Patch0: smeserver-zabbix-agent-0.4.8-bz11515-sme10.patch
10  Patch1: smeserver-zabbix-agent-0.1-template_rename.patch  Patch1: smeserver-zabbix-agent-0.4.8-bz12032-backup.patch
 Patch2: smeserver-zabbix-agent-0.1-userparam_ext_ip.patch  
 Patch3: smeserver-zabbix-agent-0.1-userparam_ups.patch  
 Patch4: smeserver-zabbix-agent-0.1-userparam_mysql.patch  
 Patch5: smeserver-zabbix-agent-0.1-userparam_usedMem.patch  
 Patch6: smeserver-zabbix-agent-0.1-userparam_usedMem_brackets.patch  
 Patch7: smeserver-zabbix-agent-0.1-userparam_usedMem_key.patch  
 Patch8: smeserver-zabbix-agent-0.1-userparam_usedMem_Used.patch  
 Patch9: smeserver-zabbix-agent-0.1-userparam_usedMem_Used2.patch  
 Patch10: smeserver-zabbix-agent-0.1-userparam_MemStats.patch  
 Patch11: smeserver-zabbix-agent-0.1-userparam_MemStatsTypo.patch  
 Patch12: smeserver-zabbix-agent-0.1-userparam_Swap.patch  
 Patch13: smeserver-zabbix-agent-0.1-userparam_Swap_key.patch  
 Patch14: smeserver-zabbix-agent-0.1-userparam_removeUselessMemStats.patch  
 Patch15: smeserver-zabbix-agent-0.1-userparam_pusedMem.patch  
 Patch16: smeserver-zabbix-agent-0.1-userparam_upsCharge.patch  
 Patch17: smeserver-zabbix-agent-0.1-disable_passive_mode.patch  
 Patch18: smeserver-zabbix-agent-0.1-mail_in_stats.patch  
 Patch19: smeserver-zabbix-agent-0.1-event_zabbix_agent_update.patch  
 Patch20: smeserver-zabbix-agent-0.1-mail_in_stats_other_denied.patch  
 Patch21: smeserver-zabbix-agent-0.1-fix_expand_sudoers.patch  
 Patch22: smeserver-zabbix-agent-0.1-mail_out_stats.patch  
 Patch23: smeserver-zabbix-agent-0.1-mail_out_stats_typo.patch  
 Patch24: smeserver-zabbix-agent-0.1-mail_out_stats_ignore_local.patch  
 Patch25: smeserver-zabbix-agent-0.1-net_stats.patch  
 Patch26: smeserver-zabbix-agent-0.1-userparam_mysql_size.patch  
 Patch27: smeserver-zabbix-agent-0.1-adjust_masq.patch  
 Patch28: smeserver-zabbix-agent-0.1-timeout_comment.patch  
 Patch29: smeserver-zabbix-agent-0.1-buffers.patch  
 Patch30: smeserver-zabbix-agent-0.1-sudoers_mysql.patch  
 Patch31: smeserver-zabbix-agent-0.1-mysql_size_fixe.patch  
 Patch32: smeserver-zabbix-agent-0.1-userparam_swRaid_status.patch  
 Patch33: smeserver-zabbix-agent-0.1-userparam_comment.patch  
 Patch34: smeserver-zabbix-agent-0.1-userparam_megaraid.patch  
 Patch35: smeserver-zabbix-agent-0.1-userparam_yum_updates.patch  
 Patch36: smeserver-zabbix-agent-0.1-userparam_sensors.patch  
 Patch37: smeserver-zabbix-agent-0.1-sensors_fixes.patch  
 Patch38: smeserver-zabbix-agent-0.1-megaraid_parser.patch  
 Patch39: smeserver-zabbix-agent-0.1-mail_stats_via_cron.patch  
 Patch40: smeserver-zabbix-agent-0.1-mdstat_one_line.patch  
 Patch41: smeserver-zabbix-agent-0.1-megaraid_parser_fix.patch  
 Patch42: smeserver-zabbix-agent-0.1-cpu_num.patch  
 Patch43: smeserver-zabbix-agent-0.1-megaraid_fix_raid10.patch  
 Patch44: smeserver-zabbix-agent-0.1-userparam_smart.patch  
 Patch45: smeserver-zabbix-agent-0.1-smart_missing_return.patch  
 Patch46: smeserver-zabbix-agent-0.1-report_0_for_non_existing_drives.patch  
 Patch47: smeserver-zabbix-agent-0.1-run_megaraid_parser_as_root.patch  
 Patch48: smeserver-zabbix-agent-0.1-run_megaraid_parser_as_root2.patch  
 Patch49: smeserver-zabbix-agent-0.1-several_ups.patch  
 Patch50: smeserver-zabbix-agent-0.1-megaraid_options.patch  
 Patch51: smeserver-zabbix-agent-0.1-new_qpsmtpd.patch  
 Patch52: smeserver-zabbix-agent-0.1-megaraid_options_from_db.patch  
 Patch53: smeserver-zabbix-agent-0.1-disable_megaraid_log.patch  
 Patch54: smeserver-zabbix-agent-0.1-critical_vs_warning.patch  
 Patch55: smeserver-zabbix-agent-0.1-userparam_squid.patch  
 Patch56: smeserver-zabbix-agent-0.1-hostname_from_db.patch  
 Patch57: smeserver-zabbix-agent-0.1-userparam_diskio.patch  
 Patch58: smeserver-zabbix-agent-0.1-userparam_asterisk.patch  
 Patch59: smeserver-zabbix-agent-0.1-userparam_lvm.patch  
 Patch60: smeserver-zabbix-agent-0.1-add_usr_sbin_in_path.patch  
 Patch61: smeserver-zabbix-agent-0.1-statusmail.patch  
 Patch62: smeserver-zabbix-agent-0.1-configure_timeout.patch  
 Patch63: smeserver-zabbix-agent-0.1-better_asterisk_monitoring.patch  
 Patch64: smeserver-zabbix-agent-0.1-fix_closing_bracket.patch  
 Patch65: smeserver-zabbix-agent-0.1-check_crt_expiration.patch  
11    
12  BuildArchitectures: noarch  BuildArchitectures: noarch
13  BuildRequires: e-smith-devtools  BuildRequires: e-smith-devtools
14  BuildRoot: /var/tmp/%{name}-%{version}  BuildRoot: /var/tmp/%{name}-%{version}
15  Requires: e-smith-release >= 7.0  Requires: e-smith-release >= 7.0
16  Requires: zabbix-agent  Requires: zabbix-agent => 2.0.0
17    Requires: zabbix-agent-addons => 0.1.15
18  Requires: smeserver-remoteuseraccess  Requires: smeserver-remoteuseraccess
19    Requires: qmqtool
20  Requires: perl(IO::Socket)  Requires: perl(IO::Socket)
21  Requires: perl(Net::SSLeay)  Requires: perl(Net::SSLeay)
22  Requires: perl(Date::Parse)  Requires: perl(Date::Parse)
23    Requires: perl(Crypt::OpenSSL::X509)
24  AutoReqProv: no  AutoReqProv: no
25    
26  %description  %description
# Line 97  Zabbix is an entreprise-class open sourc Line 29  Zabbix is an entreprise-class open sourc
29  solution  solution
30    
31  %changelog  %changelog
32  * Wed Feb 10 2016 stephane de Labrusse <stephdl@de-labrusse.fr> - 0.1-53.sme  * Mon Aug 01 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.4.8-3.sme
33  - New rpm for sme9  - add to core backup [SME: 12032]
34    
35    * Thu Apr 01 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.4.8-2.sme
36    - initial SME10 import [SME: 11515]
37      drop in for systemd service file
38      update event created for automatic install
39      remove ownership of /var/lib/zabbix/bin
40    
41    * Fri May 29 2020 Daniel Berteaud <daniel@firewall-services.com> 0.4.8-1
42    - Adapt regex to match queued emails when spam filtering is disabled
43      (daniel@firewall-services.com)
44    
45    * Thu Feb 27 2020 Daniel Berteaud <daniel@firewall-services.com> 0.4.7-1
46    - Rewrite util_send_status_mail to go through the SMTP server (daniel@firewall-
47      services.com)
48    - Remove useless var in spec file (daniel@firewall-services.com)
49    
50    * Wed Nov 27 2019 Daniel Berteaud <daniel@firewall-services.com> 0.4.6-1
51    - Remove the git CHANGELOG as it's not generated anymore (daniel@firewall-
52      services.com)
53    
54    * Wed Nov 27 2019 Daniel Berteaud <daniel@firewall-services.com> 0.4.5-1
55    - Adapt spec file for tito (daniel@firewall-services.com)
56    - Detect if running >= 4.4, and remove vfs.dev.discovery UserParameter in this
57      case (daniel@firewall-services.com)
58    
59    * Wed Nov 27 2019 Daniel Berteaud <daniel@firewall-services.com>
60    - Detect if running >= 4.4, and remove vfs.dev.discovery UserParameter in this
61      case (daniel@firewall-services.com)
62    
63    * Tue Nov 26 2019 Daniel Berteaud <daniel@firewall-services.com> 0.4.3-1
64    - new package built with tito
65    
66    * Tue May 3 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.4.3-1.sme
67    - Add dmarc regex in util_parse_mail_in and add support for spf_deny plugin
68    
69    * Wed Apr 27 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.4.2-1.sme
70    - Adapt qpsmtpd parser regex to match naughty rejects against the original
71      plugin
72    
73    * Tue Apr 19 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.4.1-1.sme
74    - Adapt util_parse_mail_in and util_count_mail_in to work with qpsmtpd 0.96
75    - Define %clean before %files so epel-macros don't try to add a default
76      buggy %clean on el5
77    
78    * Mon Mar 21 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.4.0-1.sme
79    - Add support for new encryption features of zabbix 3.0
80    
81    * Wed Jun 10 2015 Daniel B. <daniel@firewall-services.com> - 0.3.8-1.sme
82    - Add a random delay before sending the status email
83    
84    * Mon Jan 5 2015 Daniel B. <daniel@firewall-services.com> - 0.3.7-1.sme
85    - Requires qmqtool to monitor qmail queue
86    
87    * Wed Jun 25 2014 Daniel B. <daniel@firewall-services.com> - 0.3.6-1.sme
88    - Fix a warning in util_send_mail.pl script on EL6
89    
90    * Wed Jun 11 2014 Daniel B. <daniel@firewall-services.com> - 0.3.5-1.sme
91    - Fix exec perm on certs check scripts
92    
93    * Tue May 6 2014 Daniel B. <daniel@firewall-services.com> - 0.3.4-1.sme
94    - Add support for nmb lookup script
95    
96    * Wed Feb 19 2014 Daniel B. <daniel@firewall-services.com> - 0.3.3-1.sme
97    - Fix a typo in dependency
98    
99    * Wed Feb 19 2014 Daniel B. <daniel@firewall-services.com> - 0.3.2-1.sme
100    - Add script to monitor PHPki certificates
101    
102    * Tue Feb 18 2014 Daniel B. <daniel@firewall-services.com> - 0.3.1-1.sme
103    - Fix a syntaxe error in check_asterisk
104    
105    * Tue Apr 16 2013 Daniel B. <daniel@firewall-services.com> - 0.3.0-1.sme
106    - Huge cleanup
107    - Requires zabbix-agent-addons
108    
109    * Thu Apr 11 2013 Daniel B. <daniel@firewall-services.com> - 0.2.1-1.sme
110    - Improvement in mdstat-parser.pl
111    
112    * Thu Jun 14 2012 Daniel B. <daniel@firewall-services.com> - 0.2.0-1.sme
113    - Import to GIT
114    - Remove certificate expiration script
115    - Make it 2.0 compatible
116    
117  * Thu Jun 7 2012 Daniel B. <daniel@firewall-services.com> - 0.1-52.sme  * Thu Jun 7 2012 Daniel B. <daniel@firewall-services.com> - 0.1-52.sme
118  - Add missing perl module in dependency  - Add missing perl module in dependency
# Line 177  solution Line 191  solution
191  * Wed May 06 2009 Daniel B. <daniel@firewall-services.com> 0.1-30  * Wed May 06 2009 Daniel B. <daniel@firewall-services.com> 0.1-30
192  - Create missing tmp directory  - Create missing tmp directory
193    
194  * Mon Apr 26 2009 Daniel B. <daniel@firewall-services.com> 0.1-29  * Mon Apr 27 2009 Daniel B. <daniel@firewall-services.com> 0.1-29
195  - megaraid-parser.pl is now compatible with newer versions  - megaraid-parser.pl is now compatible with newer versions
196    of MegaCli    of MegaCli
197  - Fix permission on megaraid-parser.pl script  - Fix permission on megaraid-parser.pl script
# Line 292  solution Line 306  solution
306  * Fri Feb 6 2009 Daniel B. <daniel@firewall-services.com> 0.1-1  * Fri Feb 6 2009 Daniel B. <daniel@firewall-services.com> 0.1-1
307  - add Hostname directive in zabbix_agentd.conf  - add Hostname directive in zabbix_agentd.conf
308    
309  * Mon Feb 04 2009 Daniel B. <daniel@firewall-services.com> 0.1-0  * Wed Feb 04 2009 Daniel B. <daniel@firewall-services.com> 0.1-0
310  - initial release  - initial release
311    
312  %prep  %prep
313  %setup  %setup
314  %patch0 -p1  %patch0 -p1
315    rm -rf .tito
316  %patch1 -p1  %patch1 -p1
 %patch2 -p1  
 %patch3 -p1  
 %patch4 -p1  
 %patch5 -p1  
 %patch6 -p1  
 %patch7 -p1  
 %patch8 -p1  
 %patch9 -p1  
 %patch10 -p1  
 %patch11 -p1  
 %patch12 -p1  
 %patch13 -p1  
 %patch14 -p1  
 %patch15 -p1  
 %patch16 -p1  
 %patch17 -p1  
 %patch18 -p1  
 %patch19 -p1  
 %patch20 -p1  
 %patch21 -p1  
 %patch22 -p1  
 %patch23 -p1  
 %patch24 -p1  
 %patch25 -p1  
 %patch26 -p1  
 %patch27 -p1  
 %patch28 -p1  
 %patch29 -p1  
 %patch30 -p1  
 %patch31 -p1  
 %patch32 -p1  
 %patch33 -p1  
 %patch34 -p1  
 %patch35 -p1  
 %patch36 -p1  
 %patch37 -p1  
 %patch38 -p1  
 %patch39 -p1  
 %patch40 -p1  
 %patch41 -p1  
 %patch42 -p1  
 %patch43 -p1  
 %patch44 -p1  
 %patch45 -p1  
 %patch46 -p1  
 %patch47 -p1  
 %patch48 -p1  
 %patch49 -p1  
 %patch50 -p1  
 %patch51 -p1  
 %patch52 -p1  
 %patch53 -p1  
 %patch54 -p1  
 %patch55 -p1  
 %patch56 -p1  
 %patch57 -p1  
 %patch58 -p1  
 %patch59 -p1  
 %patch60 -p1  
 %patch61 -p1  
 %patch62 -p1  
 %patch63 -p1  
 %patch64 -p1  
 %patch65 -p1  
317    
318  %build  %build
319  %{__mkdir_p} root/var/lib/zabbix/tmp  %{__mkdir_p} root/var/lib/zabbix/tmp
# Line 373  rm -rf $RPM_BUILD_ROOT Line 324  rm -rf $RPM_BUILD_ROOT
324  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
325  rm -f %{name}-%{version}-filelist  rm -f %{name}-%{version}-filelist
326  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
327          --file /var/lib/zabbix/bin/mysqladmin_status 'attr(0750,root,zabbix)' \          --file /var/lib/zabbix/bin/check_mysqladmin_status_sudo 'attr(0750,root,zabbix)' \
328          --file /var/lib/zabbix/bin/logtail.pl 'attr(0755,root,root)' \          --file /var/lib/zabbix/bin/util_logtail 'attr(0755,root,root)' \
329          --file /var/lib/zabbix/bin/mail_in.sh 'attr(0755,root,root)' \          --file /var/lib/zabbix/bin/util_count_mail_in 'attr(0755,root,root)' \
330          --file /var/lib/zabbix/bin/mail_out.sh 'attr(0755,root,root)' \          --file /var/lib/zabbix/bin/util_count_mail_out 'attr(0755,root,root)' \
331          --file /var/lib/zabbix/bin/mdstat-parser.pl 'attr(0755,root,root)' \          --file /var/lib/zabbix/bin/util_parse_mail_in 'attr(0755,root,root)' \
332          --file /var/lib/zabbix/bin/megaraid-parser.pl 'attr(0755,root,root)' \          --file /var/lib/zabbix/bin/util_parse_mail_out 'attr(0755,root,root)' \
         --file /var/lib/zabbix/bin/parse_mail_in.pl 'attr(0755,root,root)' \  
         --file /var/lib/zabbix/bin/parse_mail_out.pl 'attr(0755,root,root)' \  
         --file /var/lib/zabbix/bin/sensors 'attr(0750,root,zabbix) %config(noreplace)' \  
333          --file /var/lib/zabbix/bin/check_asterisk 'attr(0750,root,zabbix)' \          --file /var/lib/zabbix/bin/check_asterisk 'attr(0750,root,zabbix)' \
334          --file /var/lib/zabbix/bin/check_lvm 'attr(0755,root,root)' \          --file /var/lib/zabbix/bin/util_send_status_mail 'attr(0755,root,root)' \
335          --file /var/lib/zabbix/bin/mailstatus.pl 'attr(0755,root,root)' \          --file /var/lib/zabbix/bin/disco_certs_sudo 'attr(0750,root,zabbix)' \
336          --file /var/lib/zabbix/bin/cert_expire.pl 'attr(0755,root,root)' \          --file /var/lib/zabbix/bin/check_certs_sudo 'attr(0750,root,zabbix)' \
337          --dir /var/lib/zabbix/tmp 'attr(0750,zabbix,zabbix)' \          --dir /var/lib/zabbix/tmp 'attr(0750,zabbix,zabbix)' \
338            | grep -P -v '^%dir %attr\(0755,root,root\) /var/lib' \
339          > %{name}-%{version}-filelist          > %{name}-%{version}-filelist
340    cat %{name}-%{version}-filelist
 %files -f %{name}-%{version}-filelist  
 %defattr(-,root,root)  
   
341  %clean  %clean
342  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
343    
344    %files -f %{name}-%{version}-filelist
345    %defattr(-,root,root)
346    
347  %postun  %postun
348  #uninstall  #uninstall
349  if [ $1 = 0 ] ; then  if [ $1 = 0 ] ; then
  /sbin/e-smith/db configuration setprop zabbix-agent status disabled  
350   /etc/init.d/zabbix-agent stop   /etc/init.d/zabbix-agent stop
351  fi  fi
352    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed