Репозиторий Sisyphus
Последнее обновление: 7 декабря 2022 | Пакетов: 17972 | Посещений: 25529002
en ru br
Репозитории ALT
S:0.1-alt3
5.1: 0.1-alt2.2
4.1: 0.1-alt2.1
4.0: 0.1-alt2
3.0:
+backports:0.1-alt0.C30.1
www.altlinux.org/Changes

Группа :: Мониторинг
Пакет: flow-capture

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define name flow-capture
%define flowdir %_logdir/%name
%define piddir /run/%name
%define fuser _flow

Name: %name
Version: 0.1
Release: alt3

Summary: Flow-capture in Netflow collector program
License: GPL-2.0-or-later
Group: Monitoring
Source0: %name.init
Source1: %name.sysconfig

BuildArch: noarch

Provides: flow-capture-collector
Requires: flow-tools su

%description
Flow-capture in Netflow collector program.

NOTE: This package DOES NOT contain flow-capture binary itself (it
belong to flow-tools package). This package contain addition componets
(SySV init script and config), to enable you gather netflow statistics
with some netflow sensor (ipcad, fprobe or other).

This daemon will be run by %fuser user.

%prep

%build
%install
mkdir -p %buildroot%_initdir
install %SOURCE0 %buildroot%_initdir/%name

mkdir -p %buildroot%_sysconfdir/sysconfig
install %SOURCE1 %buildroot%_sysconfdir/sysconfig/%name

mkdir -p %buildroot%flowdir
mkdir -p %buildroot%piddir

# create tmpfiles config

mkdir -p %buildroot%_tmpfilesdir
cat >%buildroot%_tmpfilesdir/%name.conf<<END
d %piddir 1775 root %fuser -
END

%pre
/usr/sbin/useradd -r -d %flowdir -s /dev/null %fuser >/dev/null 2>&1 ||:

%post
%post_service %name

%preun
%preun_service %name

%files
%_initdir/%name
%config(noreplace) %_sysconfdir/sysconfig/%name
%dir %attr (1775,root,%fuser) %flowdir
#dir %attr (1775,root,%fuser) %piddir
%_tmpfilesdir/%name.conf

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin