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