59 lines
1.8 KiB
RPMSpec
59 lines
1.8 KiB
RPMSpec
#
|
|
# spec file for package post-build-checks-malwarescan
|
|
#
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: post-build-checks-malwarescan
|
|
BuildArch: noarch
|
|
Requires: clamav-database
|
|
Url: http://www.suse.com/security
|
|
BuildRequires: clamav
|
|
Requires: clamav
|
|
Version: 0.1
|
|
Release: 0
|
|
Summary: OBS clamav virus scan build hook and script
|
|
License: GPL-2.0
|
|
Group: Development/Tools/Building
|
|
Source0: 80-check-malware-scan-clamav
|
|
Source1: suse_whitelist.ign2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
The /usr/lib/build/checks/80-check-malware-scan-clamav runs
|
|
clamscan --no-summary -ir $RPM_BUILD_DIR
|
|
|
|
False positives are ignored either via:
|
|
|
|
- 80-check-malware-scan-clamav variable EXCLUDELIST
|
|
- virusname entry in suse_whitelist.ign2
|
|
|
|
%prep
|
|
|
|
%build
|
|
|
|
%install
|
|
pwd
|
|
mkdir -p $RPM_BUILD_ROOT/usr/lib/build/checks
|
|
install -m 0755 %{SOURCE0} $RPM_BUILD_ROOT/usr/lib/build/checks
|
|
install -d -m 0755 $RPM_BUILD_ROOT/var/lib/clamav/
|
|
install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/var/lib/clamav/
|
|
|
|
%files
|
|
%attr(0755,root,root) /usr/lib/build/checks/80-check-malware-scan-clamav
|
|
%attr(0644,root,root) /var/lib/clamav/suse_whitelist.ign2
|
|
|
|
%changelog
|