libnasl-vl.spec 5.0 KB

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