]>
Commit | Line | Data |
---|---|---|
57bdca9d | 1 | %define subver b |
befb5015 | 2 | %define rel 1 |
57bdca9d ER |
3 | Summary: Web application security scanner |
4 | Name: skipfish | |
2f7693d8 | 5 | Version: 2.04 |
57bdca9d ER |
6 | Release: 0.%{subver}.%{rel} |
7 | License: Apache v2.0 | |
8 | Group: Applications/Networking | |
9 | Source0: http://skipfish.googlecode.com/files/%{name}-%{version}%{subver}.tgz | |
2f7693d8 | 10 | # Source0-md5: 0126b8173f07b0185f8cccddb62a1c38 |
57bdca9d ER |
11 | URL: http://code.google.com/p/skipfish/ |
12 | BuildRequires: libidn-devel | |
13 | BuildRequires: openssl-devel | |
b73b8d71 | 14 | BuildRequires: sed >= 4.0 |
57bdca9d ER |
15 | BuildRequires: zlib-devel |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | A fully automated, active web application security reconnaissance | |
20 | tool. | |
21 | ||
22 | Key features: | |
23 | - High speed: pure C code, highly optimized HTTP handling, minimal CPU | |
24 | footprint - easily achieving 2000 requests per second with responsive | |
25 | targets. | |
26 | - Ease of use: heuristics to support a variety of quirky web | |
27 | frameworks and mixed-technology sites, with automatic learning | |
28 | capabilities, on-the-fly wordlist creation, and form autocompletion. | |
29 | - Cutting-edge security logic: high quality, low false positive, | |
30 | differential security checks, capable of spotting a range of subtle | |
31 | flaws, including blind injection vectors. | |
32 | ||
33 | %prep | |
243bc43d | 34 | %setup -q -n %{name}-%{version}%{subver} |
57bdca9d ER |
35 | |
36 | %{__sed} -i -e 's,-O3,$(OPTCFLAGS),' Makefile | |
37 | %{__sed} -i -e 's,-L/usr/local/lib/ -L/opt/local/lib,$(OPTLDFLAGS),' Makefile | |
9a792cbc | 38 | %{__sed} -i -e 's,"assets","%{_datadir}/%{name}/assets",' config.h |
57bdca9d ER |
39 | |
40 | %build | |
41 | %{__make} \ | |
42 | CC="%{__cc}" \ | |
10522db7 | 43 | OPTCFLAGS="%{rpmcflags} %{rpmcppflags}" \ |
57bdca9d ER |
44 | OPTLDFLAGS="%{rpmldflags}" |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
66258312 AM |
48 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name},%{_mandir}/man1} |
49 | ||
57bdca9d | 50 | install -p %{name} $RPM_BUILD_ROOT%{_bindir} |
66258312 | 51 | cp -ar %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
b21877c4 | 52 | cp -ar assets dictionaries $RPM_BUILD_ROOT%{_datadir}/%{name} |
57bdca9d ER |
53 | |
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc ChangeLog README | |
b73b8d71 | 60 | %attr(755,root,root) %{_bindir}/skipfish |
66258312 AM |
61 | %{_datadir}/%{name} |
62 | %{_mandir}/man1/%{name}.1* |