1 %include /usr/lib/rpm/macros.perl
4 Summary: Network monitoring program
5 Summary(pl): Program do monitorowania sieci
7 Version: %{ver}.%{subver}
9 License: http://www.demarc.org/license/
11 Group(de): Netzwerkwesen
15 Source0: http://www.demarc.org/downloads/demarc-105/demarc-%{ver}-%{subver}.tar.gz
16 Source1: %{name}-apache.conf
19 Patch0: %{name}-config.patch
20 URL: http://www.demarc.org/
21 BuildRequires: rpm-perlprov >= 4.0
22 BuildRequires: perl >= 5.6
23 BuildRequires: perl-CGI
24 BuildRequires: perl-DBI
25 BuildRequires: perl-Msql-Mysql-modules
26 BuildRequires: perl-Digest-MD5
27 # BuildRequires: perl(Apache::DBI) (what package? FIXME)
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 %define _bindir %{_sbindir}
37 DEMARC is an all-inclusive network monitoring program that allows you
38 to monitor an entire network of servers from one powerful web
41 Instead of having one program perform file integrity checks, another
42 program monitoring the connectivity and health of your network, and
43 yet another monitoring your network for intrusion detection attempts,
44 DEMARC combines all three services into one powerful client/server
45 program. Not only can you monitor the status of the different machines
46 in your network, but you can also respond to changes in your network
47 all from one centralized location.
50 DEMARC to kompletny system monitorowania sieci pozwalaj±cy monitorowaæ
51 ca³± sieæ serwerów z jednego interfejsu www.
53 Zamiast posiadaæ jeden program sprawdzaj±cy integralno¶c plików, inny
54 program monitoruj±cy po³±czenia i stan Twojej sieci, i jeszcze jeden
55 program monitoruj±cy sieæ w celach detekcji intruzów wystarczy DEMARC
56 ³±cz±cy w sobie te trzy us³ugi w jednym programie klient/serwer. Nie
57 tylko mo¿esz monitorowaæ stan ró¿nych maszyn w Twojej sieci ale tak¿e
58 mo¿esz reagowaæ na zmiany z jednej centralnej lokalizacji.
61 Summary: Network monitoring program - client
62 Summary(pl): Program do monitorowania sieci - klient
63 Requires: snort >= 1.8.1
67 DEMARC is an all-inclusive network monitoring program that allows you
68 to monitor an entire network of servers from one powerful web
71 This is client program which should be installed on all monitored servers.
73 %description -l pl client
74 DEMARC to kompletny system monitorowania sieci pozwalaj±cy monitorowaæ
75 ca³± sieæ serwerów z jednego interfejsu www.
77 To jest program kliencki, który powinien byæ zainstalowany na wszystkich
78 monitorowanych serwerach.
81 %setup -q -n %{name}-%{ver}-%{subver}
85 rm -rf $RPM_BUILD_ROOT
86 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,cron.d,demarcd,httpd}
87 install -d $RPM_BUILD_ROOT%{_sbindir}
88 install -d $RPM_BUILD_ROOT%{_datadir}/demarc/{images,cgi}
89 install -d $RPM_BUILD_ROOT/var/state/demarcd
91 install %{SOURCE1} $RPM_BUILD_ROOT/etc/httpd/%{name}.conf
92 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/demarcd
93 install %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.d/%{name}
94 install bin/demarcd $RPM_BUILD_ROOT%{_sbindir}
95 install conf/* $RPM_BUILD_ROOT/etc/demarcd
96 cp -ar cgi images $RPM_BUILD_ROOT%{_datadir}/demarc
97 install install/{c*,d*,p*} $RPM_BUILD_ROOT%{_datadir}/demarc
99 gzip -9nf install/{CHAN*,INS*,LIC*}
102 rm -rf $RPM_BUILD_ROOT
105 echo 'Remember to add "Include demarc.conf" to httpd.conf and note that'
106 echo 'in most cases there is no need to start "snort" as separate'
107 echo 'daemon, so turn it off using "/sbin/chkconfig snort off".'
110 if [ "$1" = "1" ] ; then
111 touch /var/log/demarcd && chmod 750 /var/log/demarcd
113 /sbin/chkconfig --add demarcd
114 if [ -f /var/lock/subsys/demarcd ]; then
115 /etc/rc.d/init.d/demarcd restart 1>&2
117 echo "Run \"%{_sbindir}/demarcd -I\" to install new snort sensor and then"
118 echo "run \"/etc/rc.d/init.d/demarcd start\" to start demarcd daemon."
123 if [ "$1" = "0" ] ; then
124 if [ -f /var/lock/subsys/demarcd ]; then
125 /etc/rc.d/init.d/demarcd stop 1>&2
127 /sbin/chkconfig --del demarcd
131 %defattr(644,root,root,755)
133 %dir %{_datadir}/demarc
134 %{_datadir}/demarc/create_mysql_demarc
135 %{_datadir}/demarc/db_patch_queries
136 %attr(755,root,root) %{_datadir}/demarc/*.pl
138 %dir %{_datadir}/demarc/cgi
139 %{_datadir}/demarc/cgi/StaticServices.pm
140 %attr(640,root,http) %{_datadir}/demarc/cgi/DEMARC_config.pm
141 %attr(755,root,root) %{_datadir}/demarc/cgi/demarc
143 %dir %{_datadir}/demarc/cgi/templates
144 %{_datadir}/demarc/cgi/templates/*
146 %dir %{_datadir}/demarc/images
147 %{_datadir}/demarc/images/*
149 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/httpd/demarc.conf
152 %defattr(644,root,root,755)
153 %attr(754,root,root) /etc/rc.d/init.d/demarcd
154 %attr(755,root,root) %{_sbindir}/demarcd
155 %attr(750,root,root) %dir /etc/demarcd
156 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/demarcd/*.conf
157 %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/demarcd/*.cmds
158 %attr(640,root,root) %config /etc/cron.d/%{name}
159 %attr(750,root,root) /var/state/demarcd