Sisyphus repository
Last update: 17 june 2019 | SRPMs: 17680 | Visits: 14054532
en ru br
ALT Linux repos

Group :: Networking/Other
RPM: barnyard2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: barnyard2
Version: 2.1.13
Release: alt5

Summary: Snort Log Backend
License: GPLv2
Group: Networking/Other


Source0: %name-%version.tar
Source1: barnyard2.init

Patch1: barnyard2-1.11-alt-confpath.patch
Patch2: barnyard2-1.11-alt-default_output.patch
# in upstream, remove on next version
Patch3: barnyard2-1.13-alt-sguild-padding.patch

BuildRequires: libpcap-devel
BuildRequires: tcl-devel

Barnyard2 has 3 modes of operation:
One-shot, continual, continual w/ checkpoint.  In one-shot mode,
barnyard will process the specified file and exit.  In continual mode,
barnyard will start with the specified file and continue to process
new data (and new spool files) as it appears.  Continual mode w/
checkpointing will also use a checkpoint file (or waldo file in the
snort world) to track where it is.  In the event the barnyard process
ends while a waldo file is in use, barnyard will resume processing at
the last entry as listed in the waldo file.

%package mysql
Summary: barnyard2 with MySQL support
Group: Networking/Other
BuildArch: noarch
Requires: %name = %version-%release
Requires: mysql
BuildRequires: mysql-devel libmysqlclient-devel
%description mysql
barnyard2 binary compiled with mysql support.


%patch1 -p1
%patch2 -p1
%patch3 -p1

%configure \
--with-mysql \
--with-mysql-libraries=%_libdir \
   --with-tcl=%_libdir \


mkdir -p %buildroot/{%_sysconfdir/%name,%_logdir/%name,%_datadir/%name,%_logdir/%name}
mv %buildroot%_sysconfdir/barnyard2.conf %buildroot%_sysconfdir/%name/barnyard2.conf
install -Dpm 644 rpm/barnyard2.config %buildroot%_sysconfdir/sysconfig/barnyard2
install -Dpm 744 %SOURCE1 %buildroot%_initdir/barnyard2

# mysql

install -Dpm 644 schemas/create_mysql %buildroot%_datadir/%name/schemas/create_mysql

%config(noreplace) %dir %_sysconfdir/%name
%config(noreplace) %_initdir/barnyard2
%config(noreplace) %_sysconfdir/%name/barnyard2.conf
%config(noreplace) %_sysconfdir/sysconfig/barnyard2
%attr(1770,root,root) %dir %_logdir/%name

%files mysql
%dir %_datadir/%name
%dir %_datadir/%name/schemas


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin