Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37046510
en ru br
ALT Linux repos
S:1.24-alt4
5.0: 1.23-alt3
4.1: 1.23-alt2
4.0: 1.23-alt2
+updates:1.22-alt1

Group :: Development/C
RPM: libnids

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: libnids
Version: 1.24
Release: alt3

Summary: Libnids is a library that provides a functionality of one of NIDS components
License: GPLv2+
Group: Development/C
Url: http://libnids.sourceforge.net

%define srcname %name-%version
# http://prdownloads.sourceforge.net/%name/%srcname%{?rc_ver:%rc_ver}.tar.gz
Source: %srcname%{?rc_ver:%rc_ver}.tar
Patch: libnids-%version-%release.patch

Provides: libnids1 = %version-%release
Provides: libnids2 = %version-%release
Obsoletes: libnids1, libnids2

# Automatically added by buildreq on Wed Oct 30 2002

BuildRequires: libnet2-devel libpcap-devel

%def_disable static

%package devel
Summary: Development library and header files for libnids
Group: Development/C
Provides: libnids1-devel = %version-%release
Provides: libnids2-devel = %version-%release
Obsoletes: libnids1-devel, libnids2-devel
Requires: %name = %version-%release, libnet2-devel, libpcap-devel

%package devel-static
Summary: Static libnids library
Group: Development/C
Provides: libnids1-devel-static = %version-%release
Provides: libnids2-devel-static = %version-%release
Obsoletes: libnids1-devel-static, libnids2-devel-static
Requires: %name-devel = %version-%release, libnet2-devel-static, libpcap-devel-static

%description
Libnids is a library that provides a functionality of one of NIDS
(Network Intrusion Detection System) components, namely E-component.
It means that libnids code watches all local network traffic, cooks
received datagrams a bit (quite a bit ;)), and provides convinient
information on them to analyzing modules of NIDS.  Libnids performs:
+ assembly of TCP segments into TCP streams;
+ IP defragmentation;
+ TCP port scan detection.
More technical info can be found in MISC file.

So, if you intend to develop a custom NIDS, you don't have to build
low-level network code.  If you decide to use libnids, you have got
E-component ready - you can focus on implementing other parts of NIDS.

%description devel
Libnids is a library that provides a functionality of one of NIDS
(Network Intrusion Detection System) components, namely E-component.

This package contains the header files and libraries needed
to develop programs that use the Libnids library.

%description devel-static
Libnids is a library that provides a functionality of one of NIDS
(Network Intrusion Detection System) components, namely E-component.

This package contains Libnids static library.

%prep
%setup -n %srcname
%patch -p1

%build
autoconf
export ac_cv_lib_nsl_gethostbyname=no
%configure --disable-libglib --enable-shared %{subst_enable static}
%make_build %{?_enable_static:static} shared

%install
%makeinstall
%define docdir %_docdir/%srcname
mkdir -p %buildroot%docdir
install -pm644 CHANGES CREDITS MISC README %buildroot%docdir/
install -pm644 doc/API.txt %buildroot%docdir/API
install -pm644 doc/{b*,LINUX,PATCH,PERFORMANCE,TESTS} %buildroot%docdir/

%files
%_libdir/*.so.*
%dir %docdir
%docdir/[CMR]*

%files devel
%_libdir/*.so
%_includedir/*
%_mandir/man?/*
%dir %docdir
%docdir/[bALPT]*

%if_enabled static
%files devel-static
%_libdir/*.a
%endif

%changelog

Full changelog you can see here

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