nessus-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. Summary: Nessus security scanner
  2. Summary(ja): Nessus セキュリティ スキャナー
  3. Name: nessus
  4. Version: 1.0.10
  5. Release: 0vl1
  6. License: GPL
  7. Group: Networking/Daemons
  8. URL: http://www.nessus.org/
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
  10. Source1: ftp://ftp.nessus.org/pub/nessus/nessus-%{version}/nessus-libraries-%{version}.tar.gz
  11. Source2: ftp://ftp.nessus.org/pub/nessus/nessus-%{version}/libnasl-%{version}.tar.gz
  12. Source3: ftp://ftp.nessus.org/pub/nessus/nessus-%{version}/nessus-core-%{version}.tar.gz
  13. Source4: ftp://ftp.nessus.org/pub/nessus/nessus-%{version}/nessus-plugins-%{version}.tar.gz
  14. Source5: nessusd.init
  15. Source6: nessusd.users
  16. Source7: nessusd.rules
  17. Source8: nessusd.conf
  18. Source9: faq.html
  19. Source10: plugins_api.txt
  20. Source11: nsr.dtd
  21. Source12: all.tar.gz
  22. Requires: gmp >= 2.0.2
  23. Requires: zlib >= 1.1.3
  24. BuildRequires: bison
  25. BuildRequires: flex
  26. BuildRequires: nmap
  27. %description
  28. Nessus is a free, up-to-date, and full featured remote security scanner for
  29. Linux. It is multithreaded, plugin-based, has a nice GTK interface, and
  30. currently performs 510 remote security checks. It has powerful reporting
  31. capabilities (HTML, LaTeX, ASCII text) and not only points out problems,
  32. but suggests a solution for each of them.
  33. %description -l ja
  34. Nessus は最新のあらゆる機能を搭載したフリーのリモートセキュリティスキャナー
  35. です。マルチスレッドで動作し、プラグインにて機能を付加でき、GTK による
  36. 素敵なインターフェイスを持ち、現在 510 種類のセキュリティ検査をリモート
  37. にて行うことができます。検査結果は様々な形式(HTML, LaTeX, ASCII テキスト)
  38. で出力でき、問題点を指摘するだけでなく個々の問題点への対処法もアドバイス
  39. してくれます。
  40. 内部で Nmap を用いてポートスキャンを行うこともできますので、Nmap も同時に
  41. インストールすることをお勧めします。
  42. %package devel
  43. Summary: Developement librairies and headers for Nessus.
  44. Summary(ja): Nessus 用の開発ライブラリとヘッダ
  45. Group: Development/Libraries
  46. %description devel
  47. Developement libraries and headers for Nessus.
  48. %description devel -l ja
  49. Nessus 用の開発ライブラリとヘッダ
  50. %package client
  51. Summary: Nessus Gtk+ client.
  52. Summary(ja): Nessus の Gtk+ クライアント
  53. Group: System Environment/Base
  54. BuildRequires: gtk+-devel
  55. %description client
  56. Nessus Gtk+ client.
  57. %description client -l ja
  58. Nessus の Gtk+ クライアント
  59. %package plugins
  60. Summary: Nessus plugins.
  61. Summary(ja): Nessus のプラグイン
  62. Group: Networking/Daemons
  63. Requires: %{name}
  64. %description plugins
  65. Nessus plugins.
  66. %description plugins -l ja
  67. Nessus のプラグイン
  68. %prep
  69. #%setup -q
  70. #%setup -c -T
  71. %setup -q -T -D -a 1 -a 2 -a 3 -a 4
  72. # %patch
  73. perl -pi -e 's/^installuser=.*/installuser='`whoami`'/' nessus-core/nessus.tmpl.in
  74. cp %{SOURCE9} %{SOURCE10} %{SOURCE11} .
  75. cd nessus-plugins/scripts
  76. tar xzf %{SOURCE12}
  77. cd ../..
  78. %build
  79. rm -rf %{buildroot}
  80. mkdir -p %{buildroot}%{_prefix}/{bin,lib/nessus/reports}
  81. mkdir -p %{buildroot}/etc/{nessus,rc.d/init.d}
  82. mkdir -p %{buildroot}/var/log/nessus
  83. # Build and install nessus libraries
  84. (cd nessus-libraries; \
  85. CFLAGS="$RPM_OPT_FLAGS" ac_cv_prog_cc_g=no ac_cv_prog_cxx_g=no \
  86. ./configure --prefix=%{_prefix}; \
  87. perl -pi -e 's/-o root / /g; s/-o \$\(installuser\) / /g; y/{}/()/' Makefile; \
  88. make && make install prefix=%{buildroot}%{_prefix} mandir=%{buildroot}%{_mandir})
  89. perl -pi -e 's|^PREFIX=.*|PREFIX='%{buildroot}%{_prefix}'|' %{buildroot}%{_prefix}/bin/nessus-config
  90. # Build and install nasl
  91. (cd libnasl; \
  92. PATH="%{buildroot}%{_prefix}/bin:$PATH" \
  93. CFLAGS="$RPM_OPT_FLAGS" \
  94. LD_LIBRARY_PATH="%{buildroot}%{_prefix}/lib:$LD_LIBRARY_PATH" \
  95. ac_cv_prog_cc_g=no ac_cv_prog_cxx_g=no ./configure --prefix=%{_prefix}; \
  96. perl -pi -e 's/-o root / /g; s/-o \$\(installuser\) / /g; y/{}/()/' Makefile; \
  97. make && make install prefix=%{buildroot}%{_prefix} mandir=%{buildroot}%{_mandir})
  98. perl -pi -e 's|^PREFIX=.*|PREFIX='%{buildroot}%{_prefix}'|' %{buildroot}%{_prefix}/bin/nasl-config
  99. # Build and install nessus-core
  100. (cd nessus-core; \
  101. perl -pi -e 's|^NESSUSD_CONFDIR=.*|NESSUSD_CONFDIR=/etc/|;
  102. s|^NESSUSD_STATEDIR=.*|NESSUSD_STATEDIR=/var/log/nessus|;
  103. s|^NESSUSD_DATADIR=.*|NESSUSD_DATADIR=/etc/nessus|;' ./configure;\
  104. PATH="%{buildroot}%{_prefix}/bin:$PATH" \
  105. CFLAGS="$RPM_OPT_FLAGS" \
  106. LD_LIBRARY_PATH="%{buildroot}%{_prefix}/lib:$LD_LIBRARY_PATH" \
  107. ac_cv_prog_cc_g=no ac_cv_prog_cxx_g=no \
  108. ./configure --prefix=%{_prefix} --sysconfdir=/etc \
  109. --localstatedir=/var/log --datadir=/etc \
  110. --enable-release --enable-pthreads --enable-cipher \
  111. --includedir=%{buildroot}%{_prefix}/include; \
  112. perl -pi -e 's/-o root / /g; s/-o \$\(installuser\) / /g; y/{}/()/' Makefile; \
  113. make && make install prefix=%{buildroot}%{_prefix} \
  114. mandir=%{buildroot}%{_mandir} \
  115. sysconfdir=%{buildroot}/etc localstatedir=%{buildroot}/var/log \
  116. datadir=%{buildroot}/etc \
  117. NESSUSD_CONFDIR=%{buildroot}/etc/ \
  118. NESSUSD_STATEDIR=%{buildroot}/var/log/nessus \
  119. NESSUSD_DATADIR=%{buildroot}/etc/nessus)
  120. # Build and install nessus-plugins
  121. (cd nessus-plugins; \
  122. PATH="%{buildroot}%{_prefix}/bin:$PATH" \
  123. CFLAGS="$RPM_OPT_FLAGS" \
  124. LD_LIBRARY_PATH="%{buildroot}/%{_prefix}/lib:$LD_LIBRARY_PATH" \
  125. ac_cv_prog_cc_g=no ac_cv_prog_cxx_g=no \
  126. ./configure --prefix=%{_prefix}; \
  127. perl -pi -e 's/-o root / /g; s/-o \$\(installuser\) / /g; y/{}/()/' Makefile; \
  128. make && make install prefix=%{buildroot}%{_prefix} \
  129. mandir=%{buildroot}%{_mandir} \
  130. sysconfdir=%{buildroot}/etc libdir=%{buildroot}%{_prefix}/lib \
  131. localstatedir=%{buildroot}/var/log datadir=%{buildroot}/etc)
  132. %install
  133. # Main Install already done in build
  134. # for dir in nessus-libraries libnasl nessus-core nessus-plugins; do
  135. # (cd $dir; make install prefix=%{buildroot}/%{_prefix} \
  136. # sysconfdir=%{buildroot}/etc/nessus localstatedir=%{buildroot}/var \
  137. # datadir=%{buildroot}/etc)
  138. # done
  139. install -m 755 %{SOURCE5} %{buildroot}/etc/rc.d/init.d/nessusd
  140. install %{SOURCE6} %{SOURCE7} %{SOURCE8} %{buildroot}/etc/nessus/
  141. #install %{SOURCE14} %{buildroot}%{_prefix}/lib/nessus/plugins/
  142. #install %{SOURCE15} %{buildroot}%{_prefix}/lib/nessus/plugins/
  143. #install %{SOURCE16} %{buildroot}%{_prefix}/lib/nessus/plugins/
  144. install -m 755 nessus-plugins/nessus-update-plugins %{buildroot}%{_prefix}/sbin/
  145. install -m 644 nessus-plugins/docs/nessus-update-plugins.8 %{buildroot}%{_mandir}/man8/
  146. # clean-up man files
  147. for i in %{_mandir}/man8/nessusd.8; do
  148. perl -pi -e 's|'%{buildroot}/etc/nessusd.conf'|/etc/nessus/nessusd.conf|g' %{buildroot}/$i
  149. done
  150. # Correct paths in devel stuff
  151. perl -pi -e 's|^PREFIX=.*|PREFIX='%{_prefix}'|' \
  152. %{buildroot}%{_prefix}/bin/*-config \
  153. %clean
  154. rm -rf %{buildroot}
  155. %post
  156. #set -x
  157. perl -pi -e 's|\@RPM_INSTALL_PREFIX\@|'${RPM_INSTALL_PREFIX}'|' \
  158. /etc/rc.d/init.d/nessusd /etc/nessus/nessusd.conf
  159. if [ $1 = 1 ]; then
  160. chkconfig --add nessusd
  161. /etc/rc.d/init.d/nessusd start
  162. else
  163. /etc/rc.d/init.d/nessusd restart
  164. fi
  165. #set +x
  166. %preun
  167. #set -x
  168. if [ $1 = 0 ]; then
  169. /etc/rc.d/init.d/nessusd stop
  170. chkconfig --del nessusd
  171. fi
  172. #set +x
  173. %files
  174. %defattr(0644,root,root,0755)
  175. %doc faq.html
  176. %attr(0755,root,root) %{_prefix}/lib/*.so*
  177. %attr(0755,root,root) %{_prefix}/sbin/*
  178. %dir /etc/nessus
  179. %attr(0600,root,root) %config /etc/nessus/accounts.txt
  180. %attr(0600,root,root) %config /etc/nessus/nessusd.conf
  181. %attr(0600,root,root) %config(noreplace) /etc/nessus/nessusd.rules
  182. %attr(0600,root,root) %config(noreplace) /etc/nessus/nessusd.users
  183. %attr(0600,root,root) %config /etc/nessus/queso.conf
  184. %dir /var/log/nessus
  185. %attr(0755,root,root) /etc/rc.d/init.d/nessusd
  186. %{_mandir}/man8/*
  187. %files devel
  188. %defattr(0644,root,root,755)
  189. %doc plugins_api.txt
  190. %doc nsr.dtd
  191. %{_prefix}/include/*
  192. %{_prefix}/lib/*.*a
  193. %attr(0755,root,root) %{_prefix}/bin/nessus-config
  194. %attr(0755,root,root) %{_prefix}/bin/nasl-config
  195. %files client
  196. %defattr(0644,root,root,755)
  197. %doc faq.html
  198. %attr(0755,root,root) %{_prefix}/bin/nessus
  199. %attr(0755,root,root) %{_prefix}/lib/libnessus.so*
  200. %{_mandir}/man1/*
  201. %dir %{_prefix}/lib/nessus/reports
  202. %files plugins
  203. %defattr(0644,root,root,0755)
  204. %{_prefix}/lib/nessus/plugins/*
  205. %changelog
  206. * Tue Jan 08 2002 Toru Sagami <sagami@vinelinux.org> 1.0.10-0vl1
  207. - update to current stable release
  208. - s/$RPM_BUILD_ROOT/%%{buildroot}/, s/%{prefix}/%{_prefix}
  209. - install manpage(s) into %%{_mandir}
  210. * Thu Dec 28 2000 KAJIKI Yoshihiro <kajiki@ylug.org> [1.0.6-0vl2]
  211. - add nessus-update-plugins script and it's man page
  212. - add current plugins
  213. * Tue Nov 28 2000 KAJIKI Yoshihiro <kajiki@ylug.org> [1.0.6-0vl1]
  214. - update to 1.0.6 with current plugins
  215. * Wed Oct 11 2000 Yoshihiro Kajiki <kajiki@ylug.org> [0vl2]
  216. - remove nessus-devel from BuildRequires
  217. - update plugins
  218. - build on Vine Linux 2.1beta
  219. * Thu Sep 21 2000 Yoshihiro Kajiki <kajiki@ylug.org> [0vl1]
  220. - rebuild for VineSeed based on the original site's srpm
  221. - added Japanese summary and description
  222. - modify spec file to install nsr.dtd correctly
  223. * Sun Sep 17 2000 Renaud Deraison <deraison@nessus.org>
  224. - nessus 1.0.5
  225. * Wed Aug 1 2000 Renaud Deraison <deraison@nessus.org>
  226. - nessus 1.0.4
  227. * Sat Jul 8 2000 Renaud Deraison <deraison@nessus.org>
  228. - nessus 1.0.3 already
  229. * Fri Jul 7 2000 Renaud Deraison <deraison@nessus.org>
  230. - nessus 1.0.2 - 2
  231. * Wed Jul 5 2000 Renaud Deraison <deraison@nessus.org>
  232. - nessus 1.0.2
  233. * Mon Jun 26 2000 Henri Gomez <hgomez@slib.fr>
  234. - nessus 1.0.1
  235. * Fri Apr 21 2000 Klaus Knopper <knopper@linuxtag.de>
  236. - User-buildable RPM for 1.0.0pre2
  237. * Sun Apr 16 2000 Renaud Deraison <deraison@cvs.nessus.org>
  238. - nessus 1.0.0pre2
  239. * Mon Apr 10 2000 Renaud Deraison <deraison@cvs.nessus.org>
  240. - nessus 1.0.0pre1
  241. * Thu Mar 30 2000 Renaud Deraison <deraison@cvs.nessus.org>
  242. - fixed sysconfdir weirdnesses
  243. - nessus 0.99.10
  244. * Wed Mar 22 2000 Renaud Deraison <deraison@cvs.nessus.org>
  245. - no patch to nessus-plugins
  246. - nessus 0.99.9
  247. * Mon Mar 20 2000 Renaud Deraison <deraison@cvs.nessus.org>
  248. - nessus 0.99.8.1
  249. * Sun Mar 19 2000 Renaud Deraison <deraison@cvs.nessus.org>
  250. - gmp not needed
  251. - removed the nasl_guide* files
  252. - nessus 0.99.8
  253. * Mon Feb 28 2000 Renaud Deraison <deraison@cvs.nessus.org>
  254. - patch to nessus-core
  255. * Sun Feb 27 2000 Renaud Deraison <deraison@cvs.nessus.org>
  256. - nessus 0.99.6
  257. * Fri Feb 18 2000 Henri Gomez <gomez@slib.fr>
  258. - nessus 0.99.5-1 R2
  259. - patch nessus-libraries
  260. * Thu Feb 17 2000 Henri Gomez <gomez@slib.fr>
  261. - nessus 0.99.5-1
  262. - multiples corrections of 0.99.5
  263. * Tue Feb 15 2000 Henri Gomez <gomez@slib.fr>
  264. - nessus 0.99.5
  265. - /etc/nessusd/nessusd.conf change from 0.99.4 to 0.99.5
  266. * Fri Jan 14 2000 Henri Gomez <gomez@slib.fr>
  267. - nessus 0.99.4
  268. - the nessusd.rules (in /etc/nessus) is in accept by default now.
  269. * Wed Jan 4 2000 Henri Gomez <gomez@slib.fr>
  270. - nessus 0.99.3
  271. * Tue Dec 28 1999 Henri Gomez <gomez@slib.fr>
  272. - nessus 0.99.2
  273. - rework of RPM, reuse of crypto channels
  274. - update faq/nasl files to latest versions from nessus.org
  275. - nessus server init script (/etc/rc.d/init.d) renamed to nessusd
  276. - prompt at install for creating initial account
  277. * Wed Nov 3 1999 Henri Gomez <gomez@slib.fr>
  278. - nessus 0.9.4
  279. - added post 0.9.4 scripts (an_httpd_cgis, hotsync, rfpoison)
  280. - changed nessusd.rules and nessusd.users to reflect format changes
  281. * Wed Oct 6 1999 Gomez Henri <gomez@slib.fr>
  282. - nessus 0.9.3
  283. - added mediahouse_statistics_server.nasl
  284. * Wed Sep 22 1999 Ronan-Yan Lorin <ronan-yann.lorin@libertysurf.fr>
  285. - nessus 0.9.2
  286. - initial release