[521] | 1 | Name: nessus-core |
---|
| 2 | Version: 2.2.11 |
---|
| 3 | Release: 4%{?_dist_release} |
---|
| 4 | Summary: Network vulnerability scanner |
---|
| 5 | Summary(ja): ネットワーク脆弱性スキャナ |
---|
| 6 | |
---|
| 7 | Group: Applications/System |
---|
| 8 | License: GPLv2 |
---|
| 9 | URL: http://www.nessus.org |
---|
| 10 | #http://www.nessus.org/download/index.php |
---|
| 11 | Source0: nessus-core-2.2.11.tar.gz |
---|
| 12 | Source1: nessusd.init |
---|
| 13 | Source2: nessusd.log |
---|
| 14 | Source3: nessus.desktop |
---|
| 15 | # force nessus into fedora dir structure |
---|
| 16 | # and use system gd |
---|
| 17 | # Thanks to Dawid Gajownik for providing these patches =) |
---|
| 18 | Patch0: nessus-core-Makefile.patch |
---|
| 19 | Patch1: nessus-core-2.2.4.config.h.in.patch |
---|
| 20 | Patch2: nessus-core-2.2.4.configure.in.patch |
---|
| 21 | Patch3: nessus-core-2.2.4.configure.patch |
---|
| 22 | Patch4: nessus-core-2.2.4.gd.patch |
---|
| 23 | Patch5: nessus-core-2.2.4.nessus-adduser.in.patch |
---|
| 24 | Patch6: nessus-core-2.2.4.nessus-mkcert.patch |
---|
| 25 | Patch7: nessus-core-2.2.4.nessus-rmuser.in.patch |
---|
| 26 | Patch8: nessus-core-2.2.4.nessus.tmpl.in.patch |
---|
| 27 | Patch9: nessus-core-2.2.4.pid.patch |
---|
| 28 | Patch10: nessus-core-2.2.11.pki.patch |
---|
| 29 | # fixes #399211 glibc open check |
---|
| 30 | Patch11: nessus-core-open.patch |
---|
| 31 | |
---|
| 32 | # Patch for Vine |
---|
| 33 | Patch100: nessus-core-2.2.11.pcap.patch |
---|
| 34 | |
---|
| 35 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 36 | BuildRequires: nessus-libraries-devel |
---|
| 37 | BuildRequires: libnasl-devel |
---|
| 38 | BuildRequires: gtk2-devel |
---|
| 39 | BuildRequires: glib2-devel |
---|
| 40 | BuildRequires: libICE-devel |
---|
| 41 | BuildRequires: gd-devel |
---|
| 42 | BuildRequires: tcp_wrappers |
---|
| 43 | BuildRequires: desktop-file-utils |
---|
| 44 | |
---|
| 45 | %define pkidir %{_sysconfdir}/pki/nessus |
---|
| 46 | |
---|
| 47 | %description |
---|
| 48 | Nessus is the world's most popular vulnerability scanner used in over 75,000 |
---|
| 49 | organizations world-wide. Many of the world's largest organizations are |
---|
| 50 | realizing significant cost savings by using Nessus to audit business-critical |
---|
| 51 | enterprise devices and applications. |
---|
| 52 | |
---|
| 53 | The "Nessus" Project was started by Renaud Deraison in 1998 to provide to the |
---|
| 54 | internet community a free, powerful, up-to-date and easy to use remote |
---|
| 55 | security scanner. Nessus is currently rated among the top products of its type |
---|
| 56 | throughout the security industry and is endorsed by professional information |
---|
| 57 | security organizations such as the SANS Institute. |
---|
| 58 | |
---|
| 59 | %package devel |
---|
| 60 | Summary: Header files for plugin development |
---|
| 61 | Summary(ja): Nessus プラグイン開発に必要なヘッダファイル |
---|
| 62 | Group: Development/Libraries |
---|
| 63 | |
---|
| 64 | %description devel |
---|
| 65 | %{summary} |
---|
| 66 | |
---|
| 67 | %package -n nessus-server |
---|
| 68 | Summary: nessusd is the server part of the nessus client-server model |
---|
| 69 | Summary(ja): nessusd - Nessus クライアントサーバモデルのサーバ |
---|
| 70 | Group: System Environment/Daemons |
---|
| 71 | Requires(post): /sbin/chkconfig |
---|
| 72 | Requires(preun): /sbin/chkconfig |
---|
| 73 | Requires(preun): /sbin/service |
---|
| 74 | Requires: nessus-core = %{version}-%{release} |
---|
| 75 | |
---|
| 76 | %description -n nessus-server |
---|
| 77 | %{summary} |
---|
| 78 | |
---|
| 79 | %package -n nessus-client |
---|
| 80 | Summary: Text client interface for nessusd |
---|
| 81 | Summary(ja): nessusd のテキスト版クライアント |
---|
| 82 | Group: Applications/Internet |
---|
| 83 | Requires: nessus-core = %{version}-%{release} |
---|
| 84 | |
---|
| 85 | %description -n nessus-client |
---|
| 86 | %{summary} |
---|
| 87 | |
---|
| 88 | %package -n nessus-gui |
---|
| 89 | Summary: GTK client interface for nessusd |
---|
| 90 | Summary(ja): Nessusd の GTK+ 版クライアント |
---|
| 91 | Group: Applications/Internet |
---|
| 92 | Requires: nessus-core = %{version}-%{release} |
---|
| 93 | |
---|
| 94 | %description -n nessus-gui |
---|
| 95 | %{summary} |
---|
| 96 | |
---|
| 97 | %prep |
---|
| 98 | %setup -q -n %{name} |
---|
| 99 | |
---|
| 100 | %patch0 -p1 |
---|
| 101 | %patch1 -p1 |
---|
| 102 | %patch2 -p1 |
---|
| 103 | # You cannot compile against system gd, because nessus-text client |
---|
| 104 | # will require X.org X11 |
---|
| 105 | %patch3 -p1 |
---|
| 106 | %patch4 -p1 |
---|
| 107 | %patch5 -p1 |
---|
| 108 | %patch6 -p1 |
---|
| 109 | %patch7 -p1 |
---|
| 110 | %patch8 -p1 |
---|
| 111 | %patch9 -p1 |
---|
| 112 | %patch10 -p1 |
---|
| 113 | %patch11 -p1 |
---|
| 114 | |
---|
| 115 | %patch100 -p0 |
---|
| 116 | |
---|
| 117 | %build |
---|
| 118 | # libdir is used by plugins |
---|
| 119 | # smpflags will break builds sometime... |
---|
| 120 | %configure \ |
---|
| 121 | --libdir=%{_localstatedir}/lib \ |
---|
| 122 | --disable-gtk \ |
---|
| 123 | --enable-syslog \ |
---|
| 124 | --enable-tcpwrappers \ |
---|
| 125 | --without-x |
---|
| 126 | make -C nessus |
---|
| 127 | |
---|
| 128 | mv -f nessus/nessus nessus-text |
---|
| 129 | make distclean |
---|
| 130 | |
---|
| 131 | %configure \ |
---|
| 132 | --libdir=%{_localstatedir}/lib \ |
---|
| 133 | --enable-gtk \ |
---|
| 134 | --enable-syslog \ |
---|
| 135 | --enable-tcpwrappers \ |
---|
| 136 | --with-x |
---|
| 137 | make |
---|
| 138 | |
---|
| 139 | %install |
---|
| 140 | rm -rf $RPM_BUILD_ROOT |
---|
| 141 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 142 | |
---|
| 143 | install -p -m 0755 nessus-text $RPM_BUILD_ROOT/%{_bindir} |
---|
| 144 | |
---|
| 145 | install -D -p -m 755 %{SOURCE1} $RPM_BUILD_ROOT/%{_initrddir}/nessusd |
---|
| 146 | |
---|
| 147 | install -D -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/nessusd |
---|
| 148 | install -D -p -m 644 nessus/xpm/nessus.xpm \ |
---|
| 149 | $RPM_BUILD_ROOT/%{_datadir}/pixmaps/nessus.xpm |
---|
| 150 | |
---|
| 151 | desktop-file-install --vendor vine \ |
---|
| 152 | --dir $RPM_BUILD_ROOT/%{_datadir}/applications\ |
---|
| 153 | %{SOURCE3} |
---|
| 154 | |
---|
| 155 | # generate ghost .pem files |
---|
| 156 | mkdir -m 0755 -p $RPM_BUILD_ROOT/%{pkidir}/{private,}/CA |
---|
| 157 | chmod 700 $RPM_BUILD_ROOT/%{pkidir}/private/CA |
---|
| 158 | touch $RPM_BUILD_ROOT/%{pkidir}/private/CA/{cakey,serverkey}.pem |
---|
| 159 | chmod 600 $RPM_BUILD_ROOT/%{pkidir}/private/CA/{cakey,serverkey}.pem |
---|
| 160 | touch $RPM_BUILD_ROOT/%{pkidir}/CA/{cacert,servercert}.pem |
---|
| 161 | chmod 644 $RPM_BUILD_ROOT/%{pkidir}/CA/{cacert,servercert}.pem |
---|
| 162 | |
---|
| 163 | # install services file |
---|
| 164 | install -D -p -m 644 nessus-services $RPM_BUILD_ROOT/%{_localstatedir}/lib/nessus/nessus-services |
---|
| 165 | |
---|
| 166 | # plugin folder |
---|
| 167 | mkdir -m 0755 -p $RPM_BUILD_ROOT/%{_localstatedir}/lib/nessus/plugins |
---|
| 168 | |
---|
| 169 | # generate ghost config files |
---|
| 170 | touch $RPM_BUILD_ROOT/%{_sysconfdir}/nessus/nessusd.{conf,rules} |
---|
| 171 | chmod 600 $RPM_BUILD_ROOT/%{_sysconfdir}/nessus/nessusd.conf |
---|
| 172 | |
---|
| 173 | # fix multilib conflict for config.h (#342661) |
---|
| 174 | touch -r CHANGES $RPM_BUILD_ROOT%{_includedir}/nessus/config.h |
---|
| 175 | |
---|
| 176 | %clean |
---|
| 177 | rm -rf $RPM_BUILD_ROOT |
---|
| 178 | |
---|
| 179 | %post -n nessus-server |
---|
| 180 | # This adds the proper /etc/rc*.d links for the script |
---|
| 181 | if [ $1 = 1 ]; then |
---|
| 182 | /sbin/chkconfig --add nessusd |
---|
| 183 | fi |
---|
| 184 | |
---|
| 185 | %preun -n nessus-server |
---|
| 186 | if [ $1 = 0 ]; then |
---|
| 187 | /sbin/service nessusd stop >/dev/null 2>&1 |
---|
| 188 | /sbin/chkconfig --del nessusd |
---|
| 189 | fi |
---|
| 190 | |
---|
| 191 | %postun -n nessus-server |
---|
| 192 | if [ "$1" -ge "1" ]; then |
---|
| 193 | /sbin/service nessusd condrestart >/dev/null 2>&1 |
---|
| 194 | fi |
---|
| 195 | |
---|
| 196 | %files |
---|
| 197 | %defattr(-,root,root,-) |
---|
| 198 | %doc TODO CHANGES README_SSL doc/*txt doc/WARNING.* nessus/COPYING |
---|
| 199 | %{_bindir}/nessus-mkrand |
---|
| 200 | %{_bindir}/nessus-mkcert-client |
---|
| 201 | %{_mandir}/man1/nessus.1* |
---|
| 202 | %{_mandir}/man1/nessus-mkcert-client.1* |
---|
| 203 | %{_mandir}/man1/nessus-mkrand.1* |
---|
| 204 | |
---|
| 205 | %files devel |
---|
| 206 | %defattr(-,root,root,-) |
---|
| 207 | %doc doc/ntp/* |
---|
| 208 | %dir %{_includedir}/nessus |
---|
| 209 | %{_includedir}/nessus/* |
---|
| 210 | %exclude %{_includedir}/nessus/includes.h |
---|
| 211 | |
---|
| 212 | %files -n nessus-client |
---|
| 213 | %defattr(-,root,root,-) |
---|
| 214 | %{_bindir}/nessus-text |
---|
| 215 | |
---|
| 216 | %files -n nessus-gui |
---|
| 217 | %defattr(-,root,root,-) |
---|
| 218 | %{_bindir}/nessus |
---|
| 219 | %{_datadir}/pixmaps/nessus.xpm |
---|
| 220 | %{_datadir}/applications/* |
---|
| 221 | |
---|
| 222 | %files -n nessus-server |
---|
| 223 | %defattr(-,root,root,-) |
---|
| 224 | %{_bindir}/nessus-fetch |
---|
| 225 | %{_sbindir}/nessusd |
---|
| 226 | %{_sbindir}/nessus-mkcert |
---|
| 227 | %{_sbindir}/nessus-adduser |
---|
| 228 | %{_sbindir}/nessus-rmuser |
---|
| 229 | %{_sbindir}/nessus-check-signature |
---|
| 230 | %{_mandir}/man1/nessus-fetch.1* |
---|
| 231 | %{_mandir}/man8/* |
---|
| 232 | %{_initrddir}/nessusd |
---|
| 233 | %{_localstatedir}/lib/nessus/nessus-services |
---|
| 234 | %dir %{_localstatedir}/log/nessus |
---|
| 235 | %dir %{_localstatedir}/lib/nessus/ |
---|
| 236 | %dir %{_localstatedir}/lib/nessus/plugins |
---|
| 237 | %dir %{_sysconfdir}/nessus |
---|
| 238 | %dir %{_sysconfdir}/pki/nessus |
---|
| 239 | %config(noreplace) %{_sysconfdir}/logrotate.d/nessusd |
---|
| 240 | %ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{pkidir}/CA/* |
---|
| 241 | %ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{pkidir}/private/CA/* |
---|
| 242 | %ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{_sysconfdir}/nessus/* |
---|
| 243 | |
---|
| 244 | %changelog |
---|
| 245 | * Sat Apr 25 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.2.11-4 |
---|
| 246 | - updated nessus based on Fedora Development |
---|
| 247 | - added Patch100 for building on Vine |
---|
| 248 | |
---|
| 249 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.11-3 |
---|
| 250 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 251 | |
---|
| 252 | * Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 2.2.11-2 |
---|
| 253 | - rebuild with new openssl |
---|
| 254 | |
---|
| 255 | * Sun Nov 23 2008 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
---|
| 256 | - 2.2.11-1 |
---|
| 257 | - fix #465113 FTBFS |
---|
| 258 | |
---|
| 259 | * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.2.10-4 |
---|
| 260 | - Autorebuild for GCC 4.3 |
---|
| 261 | |
---|
| 262 | * Sat Dec 08 2007 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
---|
| 263 | - 2.2.10-3 |
---|
| 264 | - fix build #399211 (patch from Oliver Falk) |
---|
| 265 | - fix multilib issues #342661 |
---|
| 266 | - fix init scripts #246992 |
---|
| 267 | |
---|
| 268 | * Thu Dec 06 2007 Release Engineering <rel-eng at fedoraproject dot org> - 2.2.10-2 |
---|
| 269 | - Rebuild for deps |
---|
| 270 | |
---|
| 271 | * Wed Aug 22 2007 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
---|
| 272 | - 2.2.10-1 |
---|
| 273 | - version upgrade |
---|
| 274 | - new license tag |
---|
| 275 | |
---|
| 276 | * Wed Apr 25 2007 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
---|
| 277 | 2.2.9-2 |
---|
| 278 | - fix #233888 |
---|
| 279 | |
---|
| 280 | * Tue Dec 19 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
---|
| 281 | 2.2.9-1 |
---|
| 282 | - version upgrade (#199399) |
---|
| 283 | |
---|
| 284 | * Sun Jun 18 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
---|
| 285 | 2.2.8-1 |
---|
| 286 | - version upgrade |
---|
| 287 | |
---|
| 288 | * Wed May 17 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
---|
| 289 | 2.2.7-1 |
---|
| 290 | - version upgrade |
---|
| 291 | |
---|
| 292 | * Mon Apr 03 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
---|
| 293 | 2.2.6-3 |
---|
| 294 | - fix description |
---|
| 295 | - create and own log dir |
---|
| 296 | - include copying |
---|
| 297 | |
---|
| 298 | * Sun Feb 26 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
---|
| 299 | 2.2.6-2 |
---|
| 300 | - fix buildroot |
---|
| 301 | - add source0 url |
---|
| 302 | |
---|
| 303 | * Fri Feb 24 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
---|
| 304 | 2.2.6-1 |
---|
| 305 | - initial version |
---|