]> git.pld-linux.org Git - SPECS.git/blob - ipcad.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / ipcad.spec
1 Summary:        IP Cisco-compatible Accounting Daemon
2 Summary(pl.UTF-8):      Demon do zliczania ruchu IP zgodny z Cisco
3 Name:           ipcad
4 Version:        3.6.5
5 Release:        0.1
6 License:        GPL
7 Group:          Networking/Utilities
8 Source0:        http://dl.sourceforge.net/ipcad/%{name}-%{version}.tar.gz
9 # Source0-md5:  40fd71336cf00300d720b05f6e2d5362
10 Source1:        %{name}.init
11 Source2:        %{name}.sysconfig
12 URL:            http://ipcad.sourceforge.net/
13 Requires:       rc-scripts
14 Requires(post,preun):   /sbin/chkconfig
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 IPCAD stands for IP Cisco Accounting Daemon. It runs in background and
19 listens traffic on the specified interfaces. It is compatible with
20 Cisco format of accounting tables. Same as in Cisco you can connect to
21 it via rsh and issue some specific command (e.g. "show ip accounting"
22 or "shutdown").
23
24 It has rsh support disabled by default.
25
26 %description -l pl.UTF-8
27 IPCAD to skrót od IP Cisco Accounting Daemon. Działa w tle i
28 nasłuchuje ruchu na wybranych interfejsach. Program jest kompatybilny
29 z formatem tablic zliczania ruchu Cisco. Tak samo jak w Cisco można
30 się z nim połączyć zdalnie poprzez rsh i wydawać różne polecenia (np.
31 "show ip accounting" czy "shutdown").
32
33 Domyślnie zablokowano dostęp rsh.
34
35 %prep
36 %setup -q
37
38 %build
39 #%%{__aclocal}
40 #%%{__autoconf}
41 #%%{__autoheader}
42 #%%{__automake}
43 %configure
44 %{__make}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d,/etc/sysconfig} \
49         $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man{5,8},/var/lib/ipcad}
50
51 %{__make} install-bin install-man \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 install ipcad.conf.default $RPM_BUILD_ROOT%{_sysconfdir}/ipcad.conf
55 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ipcad
56 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/ipcad
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %post
62 /sbin/chkconfig --add %{name}
63 if [ -f /var/lock/subsys/%{name} ]; then
64         /etc/rc.d/init.d/%{name} restart 1>&2
65 else
66         echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon."
67 fi
68
69 %preun
70 if [ "$1" = "0" ]; then
71         if [ -f /var/lock/subsys/%{name} ]; then
72                 /etc/rc.d/init.d/%{name} stop 1>&2
73         fi
74         /sbin/chkconfig --del %{name}
75 fi
76
77 %files
78 %defattr(644,root,root,755)
79 %doc README ChangeLog
80 %attr(755,root,root) %{_bindir}/*
81 %attr(754,root,root) /etc/rc.d/init.d/ipcad
82 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ipcad
83 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ipcad.conf
84 %{_mandir}/man5/ipcad.conf.5*
85 %{_mandir}/man8/ipcad.8*
86 %dir /var/lib/ipcad
This page took 2.844565 seconds and 3 git commands to generate.