1 | Name: libnasl |
---|
2 | Summary: Nessus Attack Scripting Language |
---|
3 | Version: 2.2.11 |
---|
4 | Release: 8%{?_dist_release} |
---|
5 | |
---|
6 | Group: System Environment/Libraries |
---|
7 | License: GPLv2 |
---|
8 | URL: http://www.nessus.org |
---|
9 | #http://nessus.org/download/index.php |
---|
10 | Source0: libnasl-2.2.11.tar.gz |
---|
11 | Patch0: libnasl-config.patch |
---|
12 | Patch1: libnasl-2.2.4.pki.patch |
---|
13 | Patch2: libnasl-nasl-config-multi.patch |
---|
14 | # fix #479655 bad signature check |
---|
15 | Patch3: libnasl-openssl.patch |
---|
16 | Patch4: libnasl-2.2.9-openssl-1.patch |
---|
17 | |
---|
18 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
19 | |
---|
20 | BuildRequires: bison |
---|
21 | BuildRequires: nessus-libraries-devel >= %{version} |
---|
22 | BuildRequires: libpcap-devel |
---|
23 | BuildRequires: texlive |
---|
24 | |
---|
25 | %description |
---|
26 | NASL is a scripting language designed for the Nessus security scanner. |
---|
27 | Its aim is to allow anyone to write a test for a given security hole |
---|
28 | in a few minutes, to allow people to share their tests without having |
---|
29 | to worry about their operating system, and to guarantee everyone that |
---|
30 | a NASL script can not do anything nasty except performing a given |
---|
31 | security test against a given target. |
---|
32 | |
---|
33 | Thus, NASL allows you to easily forge IP packets, or to send regular |
---|
34 | packets. It provides you some convenient functions that will make the |
---|
35 | test of web and FTP server more easy to write. NASL garantees you that |
---|
36 | a NASL script: |
---|
37 | - will not send any packet to a host other than the target host, |
---|
38 | - will not execute any commands on your local system. |
---|
39 | |
---|
40 | %package devel |
---|
41 | Summary: Nessus Attack Scripting Language header files |
---|
42 | Group: Development/Libraries |
---|
43 | Requires: %{name} = %{version}-%{release} |
---|
44 | |
---|
45 | %description devel |
---|
46 | The %{name}-devel package contains the files needed for development |
---|
47 | with %{name}. |
---|
48 | |
---|
49 | %package doc |
---|
50 | Summary: Nessus Attack Scripting Language documentation |
---|
51 | Group: Documentation |
---|
52 | |
---|
53 | %description doc |
---|
54 | Documentation for the Nessus Attack Scripting Language. |
---|
55 | |
---|
56 | %prep |
---|
57 | %setup -q -n %{name} |
---|
58 | %patch0 |
---|
59 | %patch1 -p1 |
---|
60 | %patch2 |
---|
61 | %patch3 |
---|
62 | %patch4 |
---|
63 | |
---|
64 | %build |
---|
65 | export CFLAGS="$RPM_OPT_FLAGS -I%{_includedir}/pcap" |
---|
66 | %configure --enable-shared --disable-static --with-pic |
---|
67 | #smp_mflags will breake build |
---|
68 | make |
---|
69 | cd doc |
---|
70 | make |
---|
71 | |
---|
72 | %install |
---|
73 | rm -rf $RPM_BUILD_ROOT |
---|
74 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
75 | |
---|
76 | rm -f $RPM_BUILD_ROOT/%{_libdir}/libnasl.la |
---|
77 | |
---|
78 | mkdir -p $RPM_BUILD_ROOT/%{_datadir}/libnasl/doc/ |
---|
79 | cp doc/nasl_guide.{ps,dvi} $RPM_BUILD_ROOT/%{_datadir}/libnasl/doc/ |
---|
80 | |
---|
81 | touch -r VERSION %{buildroot}%{_bindir}/nasl-config |
---|
82 | |
---|
83 | %clean |
---|
84 | rm -rf $RPM_BUILD_ROOT |
---|
85 | |
---|
86 | %post -p /sbin/ldconfig |
---|
87 | |
---|
88 | %postun -p /sbin/ldconfig |
---|
89 | |
---|
90 | %files |
---|
91 | %defattr(-,root,root,-) |
---|
92 | %doc COPYING |
---|
93 | %{_bindir}/nasl |
---|
94 | %{_libdir}/libnasl.so.* |
---|
95 | %{_mandir}/man1/nasl.1* |
---|
96 | %{_localstatedir}/lib/nessus |
---|
97 | %{_sysconfdir}/pki/nessus |
---|
98 | |
---|
99 | %files devel |
---|
100 | %defattr(-,root,root,-) |
---|
101 | %{_bindir}/nasl-config |
---|
102 | %{_libdir}/libnasl.so |
---|
103 | %{_includedir}/nessus |
---|
104 | %{_mandir}/man1/nasl-config.1* |
---|
105 | |
---|
106 | %files doc |
---|
107 | %defattr(-,root,root,-) |
---|
108 | %doc %{_datadir}/libnasl/ |
---|
109 | |
---|
110 | %changelog |
---|
111 | * Sat Apr 2 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.2.11-8 |
---|
112 | - rebuilt with openssl-1.0.0d |
---|
113 | - added Patch4 |
---|
114 | |
---|
115 | * Tue May 25 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.2.11-7 |
---|
116 | - rebuilt w/ libpcap-1.1.1 |
---|
117 | |
---|
118 | * Sat Apr 25 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.2.11-6 |
---|
119 | - Initial build for Vine |
---|
120 | |
---|
121 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.11-5 |
---|
122 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
123 | |
---|
124 | * Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 2.2.11-4 |
---|
125 | - rebuild with new openssl |
---|
126 | |
---|
127 | * Mon Jan 12 2009 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
---|
128 | - 2.2.11-3 |
---|
129 | - fix #479655 |
---|
130 | |
---|
131 | * Mon Dec 1 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 2.2.11-2 |
---|
132 | - in doc pkg: include missing dirs and mark files as %%doc |
---|
133 | |
---|
134 | * Sun Nov 23 2008 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
---|
135 | - 2.2.11-1 |
---|
136 | - version upgrade |
---|
137 | - fix #465106 |
---|
138 | |
---|
139 | * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.2.10-5 |
---|
140 | - Autorebuild for GCC 4.3 |
---|
141 | |
---|
142 | * Sat Dec 08 2007 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
---|
143 | 2.2.10-4 |
---|
144 | - fix #342241 |
---|
145 | |
---|
146 | * Thu Dec 06 2007 Release Engineering <rel-eng at fedoraproject dot org> - 2.2.10-3 |
---|
147 | - Rebuild for deps |
---|
148 | |
---|
149 | * Thu Dec 06 2007 Release Engineering <rel-eng at fedoraproject dot org> - 2.2.10-2 |
---|
150 | - Rebuild for deps |
---|
151 | |
---|
152 | * Wed Aug 22 2007 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
---|
153 | 2.2.10-1 |
---|
154 | - version upgrade |
---|
155 | - new license tag |
---|
156 | |
---|
157 | * Wed Apr 25 2007 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
---|
158 | 2.2.9-2 |
---|
159 | - fix #228374 |
---|
160 | |
---|
161 | * Tue Dec 19 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
---|
162 | 2.2.9-1 |
---|
163 | - version upgrade |
---|
164 | |
---|
165 | * Mon Dec 04 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
---|
166 | 2.2.8-3 |
---|
167 | - bump |
---|
168 | |
---|
169 | * Wed Sep 13 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
---|
170 | 2.2.8-2 |
---|
171 | - FE6 rebuild |
---|
172 | |
---|
173 | * Sun Jun 18 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
---|
174 | 2.2.8-1 |
---|
175 | - version upgrade |
---|
176 | |
---|
177 | * Wed May 17 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
---|
178 | 2.2.7-1 |
---|
179 | - version upgrade |
---|
180 | - add CVE-2006-2093 patch |
---|
181 | |
---|
182 | * Sat Mar 18 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
---|
183 | 2.2.6-3 |
---|
184 | - fix BR |
---|
185 | |
---|
186 | * Fri Feb 24 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
---|
187 | 2.2.6-2 |
---|
188 | - add pki location patch |
---|
189 | - tune BR |
---|
190 | - honor now localstatedir |
---|
191 | |
---|
192 | * Fri Feb 24 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
---|
193 | 2.2.6-1 |
---|
194 | - initial version |
---|