]> git.pld-linux.org Git - SPECS.git/blob - clamav-database-phish.spec
SPECS updated Sun 1 Aug 11:02:02 CEST 2021
[SPECS.git] / clamav-database-phish.spec
1 %define         database_version        20080416
2 %define         rel     0.2
3 Summary:        Phish database for clamav
4 Name:           clamav-database-phish
5 Version:        0.1
6 Release:        %{database_version}.%{rel}
7 License:        GPL
8 Group:          Applications/Databases
9 Source0:         http://www.sanesecurity.com/clamav/scamsigs/phish.ndb.gz
10 # Source0-md5:  4ff089e09706b9212cd7b63a3b7e87ea
11 Source1:        http://www.sanesecurity.co.uk/clamav/phish_sigtest.txt
12 # Source1-md5:  d7a251c62cdd2f1b78a33476816447f3
13 URL:            http://www.sanesecurity.co.uk/clamav/
14 BuildRequires:  clamav
15 Requires:       clamav
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Phish database for ClamAV which will help detect some types of stock, lottery,
21 419 and some image spams that are around at the moment. (Updated
22 %{database_version}).
23
24 %prep
25 %setup -qcT
26 %{__gzip} -dc %{SOURCE0} > $(basename %{SOURCE0} .gz)
27
28 %build
29 # test
30 res=$(clamscan %{SOURCE1} --database phish.ndb | head -n1 | sed -e 's,^.*: ,,')
31 if [ "$res" != "Html.Phishing.Sanesecurity.TestSig FOUND" ]; then
32         : Scan test failed: [$res]
33         exit 1
34 fi
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT/var/lib/clamav
39 install *.ndb $RPM_BUILD_ROOT/var/lib/clamav
40
41 %clean
42 rm -rf $RPM_BUILD_ROOT
43
44 %files
45 %defattr(644,root,root,755)
46 %attr(644,clamav,root) %verify(not md5 mtime size) /var/lib/clamav/*.ndb
This page took 0.325514 seconds and 3 git commands to generate.