]>
Commit | Line | Data |
---|---|---|
412ab953 | 1 | # note: there is some fork at https://github.com/MITRECND/libnids with 1.25 |
09b5c30c | 2 | Summary: Implementation of E-component of Network Intrusion Detection System |
fef6daae | 3 | Summary(pl.UTF-8): Implementacja E-komponentu NIDS (sieciowego systemu wykrywania intruzów) |
7e76e049 | 4 | Name: libnids |
18070bd1 | 5 | Version: 1.24 |
b78da941 | 6 | Release: 4 |
7e76e049 | 7 | Epoch: 1 |
b78da941 JB |
8 | # contains modified Linux 2.0.36 sources, so v2 only |
9 | License: GPL v2 | |
7e76e049 | 10 | Group: Libraries |
412ab953 | 11 | Source0: http://downloads.sourceforge.net/libnids/%{name}-%{version}.tar.gz |
18070bd1 | 12 | # Source0-md5: 72d37c79c85615ffe158aa524d649610 |
412ab953 JB |
13 | Patch0: %{name}-nolibs.patch |
14 | Patch1: gcc5.patch | |
9215ba27 | 15 | URL: http://libnids.sourceforge.net/ |
1003d8e3 | 16 | BuildRequires: autoconf |
6dc93f3b | 17 | BuildRequires: automake |
dbe966c7 | 18 | BuildRequires: glib2-devel >= 1:2.2.0 |
412ab953 | 19 | BuildRequires: libnet-devel |
dda67f3b | 20 | BuildRequires: libpcap-devel |
dbe966c7 | 21 | BuildRequires: pkgconfig |
412ab953 | 22 | Requires: glib2 >= 1:2.2.0 |
7e76e049 AM |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
b01e2cdb | 26 | Libnids is an implementation of an E-component of Network Intrusion |
27 | Detection System. It emulates the IP stack of Linux 2.0.x. Libnids | |
28 | offers IP defragmentation, TCP stream assembly and TCP port scan | |
29 | detection. | |
7e76e049 | 30 | |
725d5df2 JR |
31 | %description -l pl.UTF-8 |
32 | Libnids jest implementacją E-komponentu Systemu Wykrywania Intruzów w | |
b01e2cdb | 33 | Sieci (NIDS). Emuluje ona stos IP Linuksa 2.0.x. Libnids oferuje |
725d5df2 JR |
34 | defragmentację IP, asemblację strumienia TCP oraz wykrywanie |
35 | skanowania portów TCP. | |
7e76e049 AM |
36 | |
37 | %package devel | |
d7b89e39 | 38 | Summary: Header files and development documentation for libnids |
fef6daae | 39 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumetacja do libnids |
7e76e049 | 40 | Group: Development/Libraries |
6dc93f3b | 41 | Requires: %{name} = %{epoch}:%{version}-%{release} |
412ab953 | 42 | Requires: libpcap-devel |
7e76e049 AM |
43 | |
44 | %description devel | |
d7b89e39 | 45 | Header files and development documentation for libnids. |
7e76e049 | 46 | |
725d5df2 JR |
47 | %description devel -l pl.UTF-8 |
48 | Pliki nagłówkowe i dokumetacja do libnids. | |
7e76e049 AM |
49 | |
50 | %package static | |
51 | Summary: Static libnids library | |
fef6daae | 52 | Summary(pl.UTF-8): Biblioteka statyczna libnids |
7e76e049 | 53 | Group: Development/Libraries |
6dc93f3b | 54 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
7e76e049 AM |
55 | |
56 | %description static | |
57 | Static libnids library. | |
58 | ||
725d5df2 | 59 | %description static -l pl.UTF-8 |
7e76e049 AM |
60 | Biblioteka statyczna libnids. |
61 | ||
62 | %prep | |
63 | %setup -q | |
64 | %patch0 -p1 | |
c62029d6 | 65 | %patch1 -p1 |
7e76e049 AM |
66 | |
67 | %build | |
6dc93f3b | 68 | cp -f /usr/share/automake/config.sub . |
a163dac2 | 69 | %{__autoconf} |
c62029d6 | 70 | %{__autoheader} |
9215ba27 JB |
71 | %configure \ |
72 | --enable-shared | |
7897d56c | 73 | |
7e76e049 AM |
74 | %{__make} |
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
1003d8e3 | 79 | %{__make} install \ |
80 | install_prefix=$RPM_BUILD_ROOT | |
7e76e049 | 81 | |
7e76e049 AM |
82 | %clean |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
c62029d6 JB |
85 | %post -p /sbin/ldconfig |
86 | %postun -p /sbin/ldconfig | |
87 | ||
7e76e049 AM |
88 | %files |
89 | %defattr(644,root,root,755) | |
412ab953 JB |
90 | %doc CHANGES README CREDITS MISC doc/{API.html,LINUX,PERFORMANCE,TESTS,bugtraq_post} |
91 | %attr(755,root,root) %{_libdir}/libnids.so.%{version} | |
7e76e049 AM |
92 | |
93 | %files devel | |
94 | %defattr(644,root,root,755) | |
412ab953 JB |
95 | %attr(755,root,root) %{_libdir}/libnids.so |
96 | %{_includedir}/nids.h | |
97 | %{_mandir}/man3/libnids.3* | |
7e76e049 AM |
98 | |
99 | %files static | |
100 | %defattr(644,root,root,755) | |
412ab953 | 101 | %{_libdir}/libnids.a |