-
Notifications
You must be signed in to change notification settings - Fork 30
/
rats.spec
72 lines (56 loc) · 1.91 KB
/
rats.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Name: rats
Summary: Rough Auditing Tool for Security
Version: 2.1
Release: 1
Copyright: GPL
Group: Development/Tools
Source0: http://www.securesw.com/rats/rats-%{version}.tar.gz
Packager: Riku Meskanen <[email protected]>
Vendor: Secure Software Solutions
Buildroot: /var/tmp/%{name}-root
BuildPrereq: expat-devel
Requires: expat
%description
RATS scans through code, finding potentially dangerous function calls.
The goal of this tool is not to definitively find bugs (yet). The
current goal is to provide a reasonable starting point for performing
manual security audits.
The initial vulnerability database is taken directly from things that
could be easily found when starting with the forthcoming book,
"Building Secure Software" by Viega and McGraw.
RATS is released under version 2 of the GNU Public License (GPL).
%prep
%setup
%build
CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS
./configure --prefix=/usr \
--datadir=%{_datadir}/rats
make
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/{%{_datadir}/rats,%{_bindir},%{_mandir}/man1}
install -c rats $RPM_BUILD_ROOT/%{_bindir}
install -c -m644 *.xml $RPM_BUILD_ROOT/%{_datadir}/rats
install -c -m644 *.1 $RPM_BUILD_ROOT/%{_mandir}/man1
%post
%preun
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%dir %{_datadir}/rats
%doc README README.win32
%attr(755,root,root) %{_bindir}/*
%{_datadir}/rats/*
%{_mandir}/man1/*
%changelog
* Sat Sep 21 2002 Riku Meskanen <[email protected]>
- Based on the original .spec by guys listed below
- Fixed spec file version number
- Rewrote portions of spec file using proper variables, attr, added %doc etc.
* Mon May 15 2002 Robert M. Zigweid <[email protected]>
- Fixed spec file for 1.5 based changes from Darryl Luff <[email protected]>
* Sat Jun 2 2001 Scott Shinn <[email protected]>
- 1.0 release
* Mon May 21 2001 Scott Shinn <[email protected]>
- initial release