libnasl-vl.spec 5.1 KB

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