]> git.pld-linux.org Git - packages/clamav-database-phish.git/commitdiff
- new master
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 16 Apr 2008 09:44:30 +0000 (09:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    clamav-database-phish.spec -> 1.1

clamav-database-phish.spec [new file with mode: 0644]

diff --git a/clamav-database-phish.spec b/clamav-database-phish.spec
new file mode 100644 (file)
index 0000000..5d2b21f
--- /dev/null
@@ -0,0 +1,46 @@
+%define                database_version        20080416
+%define                rel     0.2
+Summary:       Phish database for clamav
+Name:          clamav-database-phish
+Version:       0.1
+Release:       %{database_version}.%{rel}
+License:       GPL
+Group:         Applications/Databases
+Source0:        http://www.sanesecurity.com/clamav/scamsigs/phish.ndb.gz
+# Source0-md5: 4ff089e09706b9212cd7b63a3b7e87ea
+Source1:       http://www.sanesecurity.co.uk/clamav/phish_sigtest.txt
+# Source1-md5: d7a251c62cdd2f1b78a33476816447f3
+URL:           http://www.sanesecurity.co.uk/clamav/
+BuildRequires: clamav
+Requires:      clamav
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Phish database for ClamAV which will help detect some types of stock, lottery,
+419 and some image spams that are around at the moment. (Updated
+%{database_version}).
+
+%prep
+%setup -qcT
+%{__gzip} -dc %{SOURCE0} > $(basename %{SOURCE0} .gz)
+
+%build
+# test
+res=$(clamscan %{SOURCE1} --database phish.ndb | head -n1 | sed -e 's,^.*: ,,')
+if [ "$res" != "Html.Phishing.Sanesecurity.TestSig FOUND" ]; then
+       : Scan test failed: [$res]
+       exit 1
+fi
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/var/lib/clamav
+install *.ndb $RPM_BUILD_ROOT/var/lib/clamav
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(644,clamav,root) %verify(not md5 mtime size) /var/lib/clamav/*.ndb
This page took 0.180018 seconds and 4 git commands to generate.