Group :: Development/C
RPM: libnids
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: libnids
Version: 1.23
Release: alt2
Summary: Libnids is a library that provides a functionality of one of NIDS components
License: GPL
Group: Development/C
Url: http://libnids.sourceforge.net
Packager: Dmitry V. Levin <ldv at altlinux.org>
%define srcname %name-%version
Source: http://prdownloads.sourceforge.net/%name/%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 -q -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/
%post -p %post_ldconfig
%postun -p %postun_ldconfig
%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
Version: 1.23
Release: alt2
Summary: Libnids is a library that provides a functionality of one of NIDS components
License: GPL
Group: Development/C
Url: http://libnids.sourceforge.net
Packager: Dmitry V. Levin <ldv at altlinux.org>
%define srcname %name-%version
Source: http://prdownloads.sourceforge.net/%name/%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 -q -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/
%post -p %post_ldconfig
%postun -p %postun_ldconfig
%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