]> git.pld-linux.org Git - SPECS.git/blob - netacct-mysql.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / netacct-mysql.spec
1 Summary:        net-acct which work with MySQL
2 Summary(pl.UTF-8):      net-acct pracujący z MySQL
3 Name:           netacct-mysql
4 Version:        0.76
5 Release:        0.2
6 Epoch:          1
7 License:        GPL
8 Group:          Networking/Daemons
9 Source0:        http://dl.sourceforge.net/netacct-mysql/%{name}-%{version}.tar.gz
10 # Source0-md5:  e8562d18b7b560887a96824cbc89a77f
11 Patch0:         %{name}-rcd.patch
12 Patch1:         %{name}-shared.patch
13 URL:            http://netacct-mysql.sourceforge.net/
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  libpcap-devel
17 BuildRequires:  mysql-devel
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         _sysconfdir     /etc/netacct-mysql
21
22 %description
23 Netacct-MySQL is a patched version of net-acct which works with MySQL
24 database. It is a network traffic monitor which can log traffic
25 generated by a specific network (incoming/outgoing). In fact it works
26 like sniffer, puts network interface in PROMISC mode and collects
27 traffic. Now it uses libpcap.
28
29 %description -l pl.UTF-8
30 Netacct-MySQL jest łataną wersją net-acct pracującą z bazą danych
31 MySQL. Jest to demon monitorujący ruch w sieci dla konkretnych sieci.
32 Faktycznie pracuje on jak sniffer ustawiając urządzenie w tryb PROMISC
33 i zczytujący ruch.
34
35 %prep
36 %setup -q
37 %patch0 -p1
38 %patch1 -p1
39
40 %build
41 %{__aclocal}
42 %{__autoconf}
43 %{__automake}
44 %configure
45
46 %{__make}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d}
51
52 %{__make} install \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 install contrib/nacctd.redhat $RPM_BUILD_ROOT/etc/rc.d/init.d/netacct-mysql
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc FAQ FAQ-bg.txt INSTALL README README.bg TODO contrib/{mrta2netacct,nacctp*}
63 %attr(750,root,root) %{_sbindir}/*
64 %attr(754,root,root) /etc/rc.d/init.d/*
65 %dir %{_sysconfdir}
66 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
67 %{_mandir}/man8/*
This page took 0.037975 seconds and 3 git commands to generate.