LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File netacct.spec of Package netacct (Project server:monitoring)

# spec file for package netacct
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/

Name:           netacct
Version:        0.71
Release:        0
Summary:        Network Accounting
License:        GPL-2.0+
Group:          Productivity/Networking/Diagnostic
Url:            http://exorsus.net/projects/net-acct/
Source:         net-acct_%{version}.tar.bz2
Source1:        nacctd.8
Patch:          net-acct_%{version}.dif
Patch1:         net-acct-0.71-glibc2-optflags.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Provides:       net-acct

This package logs network traffic. It provides a daemon (nacctd) that
logs all traffic passing through the machine it runs on (similar to
what tcpdump does).

%setup -q -n net-acct-%{version}-glibc2
chmod a-x tools/* contrib/*

cd src
make %{?_smp_mflags}

install -d -m 755 $RPM_BUILD_ROOT{/usr/sbin,/etc,%{_mandir}/man8}
install -m 644 %{S:1} $RPM_BUILD_ROOT/%{_mandir}/man8
cd src
install -m 644 naccttab.sample $RPM_BUILD_ROOT/etc/naccttab
install -m 644 naccttab.sample.pcap $RPM_BUILD_ROOT/etc/naccttab.pcap
install -m 755 nacctd $RPM_BUILD_ROOT/usr/sbin

%config /etc/naccttab
%config /etc/naccttab.pcap
%doc CHANGES COPYING README contrib tools