source: projects/specs/trunk/lib/libn/libnasl/libnasl-vl.spec @ 3257

Revision 3257, 5.1 KB checked in by inagaki, 13 years ago (diff)

update: libnasl, nessus-libraries

Line 
1Name:           libnasl
2Summary:        Nessus Attack Scripting Language
3Version:        2.2.11
4Release:        8%{?_dist_release}
5
6Group:          System Environment/Libraries
7License:        GPLv2
8URL:            http://www.nessus.org
9#http://nessus.org/download/index.php
10Source0:        libnasl-2.2.11.tar.gz
11Patch0:         libnasl-config.patch
12Patch1:         libnasl-2.2.4.pki.patch
13Patch2:         libnasl-nasl-config-multi.patch
14# fix #479655 bad signature check
15Patch3:         libnasl-openssl.patch
16Patch4:         libnasl-2.2.9-openssl-1.patch
17
18BuildRoot:      %{_tmppath}/%{name}-%{version}-root
19
20BuildRequires:  bison
21BuildRequires:  nessus-libraries-devel >= %{version}
22BuildRequires:  libpcap-devel
23BuildRequires:  texlive
24
25%description
26NASL is a scripting language designed for the Nessus security scanner.
27Its aim is to allow anyone to write a test for a given security hole
28in a few minutes, to allow people to share their tests without having
29to worry about their operating system, and to guarantee everyone that
30a NASL script can not do anything nasty except performing a given
31security test against a given target.
32
33Thus, NASL allows you to easily forge IP packets, or to send regular
34packets. It provides you some convenient functions that will make the
35test of web and FTP server more easy to write. NASL garantees you that
36a 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
41Summary:        Nessus Attack Scripting Language header files
42Group:          Development/Libraries
43Requires:       %{name} = %{version}-%{release}
44
45%description devel
46The %{name}-devel package contains the files needed for development
47with %{name}.
48
49%package doc
50Summary:        Nessus Attack Scripting Language documentation
51Group:          Documentation
52
53%description doc
54Documentation 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
65export CFLAGS="$RPM_OPT_FLAGS -I%{_includedir}/pcap"
66%configure --enable-shared --disable-static --with-pic
67#smp_mflags will breake build
68make
69cd doc
70make
71
72%install
73rm -rf $RPM_BUILD_ROOT
74make install DESTDIR=$RPM_BUILD_ROOT
75
76rm -f $RPM_BUILD_ROOT/%{_libdir}/libnasl.la
77
78mkdir -p $RPM_BUILD_ROOT/%{_datadir}/libnasl/doc/
79cp doc/nasl_guide.{ps,dvi} $RPM_BUILD_ROOT/%{_datadir}/libnasl/doc/
80
81touch -r VERSION %{buildroot}%{_bindir}/nasl-config
82
83%clean
84rm -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>
1432.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>
1532.2.10-1
154- version upgrade
155- new license tag
156
157* Wed Apr 25 2007 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
1582.2.9-2
159- fix #228374
160
161* Tue Dec 19 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
1622.2.9-1
163- version upgrade
164
165* Mon Dec 04 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
1662.2.8-3
167- bump
168
169* Wed Sep 13 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
1702.2.8-2
171- FE6 rebuild
172
173* Sun Jun 18 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
1742.2.8-1
175- version upgrade
176
177* Wed May 17 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
1782.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>
1832.2.6-3
184- fix BR
185
186* Fri Feb 24 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
1872.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>
1932.2.6-1
194- initial version
Note: See TracBrowser for help on using the repository browser.