Репозитории ALT
Последнее обновление в Сб, 06 июня 2020, 00:49:50 +0000 | Пакетов: 15384
en ru
Исходные пакеты в ветвях
свернуть окно
Группа :: Мониторинг
Исходный пакет: flow-capture
Необработанный spec-файл

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

Name: %name
Version: 0.1
Release: alt2.2

Summary: Flow-capture in Netflow collector program
License: GPL
Packager: Evgenii Terechkov <evg at altlinux.ru>
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

%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

%changelog
* Sat Dec 1 2007 Terechkov Evgenii <evg at altlinux.ru> 0.1-alt2.2
- Dir permission fixed according policy (see http://docs.altlinux.ru/alt/devel/ch01s03.html#id2884290)

* Tue Nov 20 2007 Terechkov Evgenii <evg at altlinux.ru> 0.1-alt2.1
- Requires to "su" added (See #11359, #13439)
- spec macro abuse cleanup

* Tue Jun 12 2007 Terechkov Evgenii <evg at altlinux.ru> 0.1-alt2
- Startup race with fprobe-ulog fixed

* Mon Sep 25 2006 Terechkov Evgenii <evg at altlinux.ru> 0.1-alt1
- Build for Sisyphus
- Running from pseudouser

* Mon Aug 21 2006 Terechkov Evgenii <evg at altlinux.ru> 0.1-alt0.C30.1
- Initial build for C30
 
Проект Geyser основан на коде из проекта Prometheus 2.0, который был доступен по лицензии MIT