Gentoo Archives: gentoo-commits

From: Wolfram Schlich <wschlich@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/wschlich:master commit in: app-antivirus/skyldav/, app-antivirus/skyldav/files/
Date: Sun, 30 Mar 2014 12:11:32
Message-Id: 1396181364.1c2547775ee15c83f90547df5dcfd9e423f60e73.wschlich@gentoo
1 commit: 1c2547775ee15c83f90547df5dcfd9e423f60e73
2 Author: Wolfram Schlich <wschlich <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 30 12:09:24 2014 +0000
4 Commit: Wolfram Schlich <wschlich <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 30 12:09:24 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/wschlich.git;a=commit;h=1c254777
7
8 version bump
9
10 Package-Manager: portage-2.2.8-r1
11
12 ---
13 app-antivirus/skyldav/ChangeLog | 6 ++
14 app-antivirus/skyldav/Manifest | 1 +
15 app-antivirus/skyldav/files/skyldav-0.4-conf.patch | 27 ++++++++
16 app-antivirus/skyldav/skyldav-0.4.ebuild | 73 ++++++++++++++++++++++
17 4 files changed, 107 insertions(+)
18
19 diff --git a/app-antivirus/skyldav/ChangeLog b/app-antivirus/skyldav/ChangeLog
20 index f045211..ef2d7f9 100644
21 --- a/app-antivirus/skyldav/ChangeLog
22 +++ b/app-antivirus/skyldav/ChangeLog
23 @@ -1,3 +1,9 @@
24 +*skyldav-0.4 (30 Mar 2014)
25 +
26 + 30 Mar 2014; Wolfram Schlich <wschlich@g.o>
27 + +files/skyldav-0.4-conf.patch, +skyldav-0.4.ebuild:
28 + version bump
29 +
30 *skyldav-0.2 (13 Sep 2013)
31
32 13 Sep 2013; Wolfram Schlich <wschlich@g.o> +skyldav-0.2.ebuild:
33
34 diff --git a/app-antivirus/skyldav/Manifest b/app-antivirus/skyldav/Manifest
35 index bef8fec..b13d6ae 100644
36 --- a/app-antivirus/skyldav/Manifest
37 +++ b/app-antivirus/skyldav/Manifest
38 @@ -1,3 +1,4 @@
39 DIST skyldav-0.2.tar.gz 104415 SHA256 02c1b794c658fe9b6bfbdbf1d162cdb0f72872c7734f59ecbfc9fa5c7bd496ec SHA512 09d4bd99051c8a407ab005d8913c320c481afb44d32ffe8c573ecc0e63be6e632724e89672ff98b5baf4948fe5631c2ba9c8bb56aa84fa05b8ad0deb5ca4fd90 WHIRLPOOL e3e2cb9599c7fd2e55f11fa344bcab8da0ae93e1fe3887ca1a3336aaad178467d635fd13de36c48984602c247281d74bbfbf895fc14cacf0b80e5596bf37d0d2
40 DIST skyldav-0.2_rc4_p20130829.tar.gz 104425 SHA256 f05e198553ff4deb60a06b4d3166bccf1099e2fcd86a180f74f9ee7069b7cdef SHA512 0961b068acb693f3225fbd0d58e29bc3346474ea05b0c513bafe12f16a8ddbe6ca6f97d833046b927cff346d4b9a64c213d4bca3199816dbfd8a63213b009a63 WHIRLPOOL 88a721d403d0f23c380b46b8b577f34434e028c63df931eb14ba27820cbd5ab953e35148bc16d2e4e6177884e9615a268a08455323c8703e867babb1f231c463
41 DIST skyldav-0.2rc4.tar.gz 102690 SHA256 9752520ca4b50ee181541b4decddffacd17c192bcf059e5d89d5de5485747bc3 SHA512 ed62c459907afed619df362f08b2eb565cef70b2c10f1da7f64d72a0ee2767f776387b38b50c3729eaca33ac640b827bdd1cb02f117778944c512d8902f40858 WHIRLPOOL 90cae16a26122df1db9c4d0c4ba13fa5939febdbc2d2e61ed5a0755234f3fe2ec055bcd138c7f2fd9c2ad1827b0aa3789117d755c5100c1ba1e7f5863a004e09
42 +DIST skyldav-0.4.tar.gz 105352 SHA256 677f743db5810fd367a06ebb2591f20f6af4dd3fdc9d2bcf038d3576c598beec SHA512 4a98d2d87541b044eeb233e154a6dcbc0da0ed2cba3a38bb89cfb3e27bdea2ae4ee7edf363f6f5b1d3978d042e5a31cac1e04353fecedb52c0053fb888fd144a WHIRLPOOL b7b9b29bac94a76ada5574b72798e2ad125ea0929b99e9efe8fcadcbefe7c430fb5e4d84120677f9c3fdc2531f3f6f23ad390893c37bb675c695f3b28eba5cd1
43
44 diff --git a/app-antivirus/skyldav/files/skyldav-0.4-conf.patch b/app-antivirus/skyldav/files/skyldav-0.4-conf.patch
45 new file mode 100644
46 index 0000000..337f415
47 --- /dev/null
48 +++ b/app-antivirus/skyldav/files/skyldav-0.4-conf.patch
49 @@ -0,0 +1,27 @@
50 +diff -urN skyldav-0.4.orig/examples/etc/skyldav.conf skyldav-0.4/examples/etc/skyldav.conf
51 +--- skyldav-0.4.orig/examples/etc/skyldav.conf 2014-03-21 20:32:49.000000000 +0100
52 ++++ skyldav-0.4/examples/etc/skyldav.conf 2014-03-30 13:23:14.043578460 +0200
53 +@@ -19,14 +19,21 @@
54 +
55 + # Directories that shall not be scanned (including subdirectories)
56 + # EXCLUDE_PATH = /var/noscan, /opt/noscan
57 ++EXCLUDE_PATH = /usr/portage, /var/db/pkg, /var/tmp/portage, /var/tmp/binpkgs
58 +
59 + # File systems that are local, virus scan results may be cached.
60 + # LOCAL_FS = ext3, ext4, iso9660, tmpfs, vfat
61 +-LOCAL_FS = ext3, ext4, iso9660, tmpfs, vfat
62 ++LOCAL_FS = ext2, ext3, ext4, xfs, zfs, btrfs, reiserfs, vfat, ntfs, iso9660, tmpfs
63 +
64 + # File systems that shall not be marked for virus scan.
65 + # NOMARK_FS = proc, sysfs
66 +-NOMARK_FS = proc, sysfs, cifs
67 ++#
68 ++# Do not exclude devtmpfs and configs, as userspace could write malware onto them.
69 ++# CIFS is also known to cause problems due to a background daemon, so we exclude it here
70 ++# (https://github.com/xypron/skyldav/commit/63b01b912d3eed80f3db92aec8647770546f5c1c).
71 ++# Note that FUSE file systems are automatically excluded from scanning
72 ++# (https://github.com/xypron/skyldav/issues/3).
73 ++NOMARK_FS = proc, sysfs, devpts, debugfs, securityfs, cgroup, rpc_pipefs, autofs, cifs
74 +
75 + # Mounts that shall not be marked for virus scan.
76 + # NOMARK_MNT = /mnt/noscan
77
78 diff --git a/app-antivirus/skyldav/skyldav-0.4.ebuild b/app-antivirus/skyldav/skyldav-0.4.ebuild
79 new file mode 100644
80 index 0000000..602cf5c
81 --- /dev/null
82 +++ b/app-antivirus/skyldav/skyldav-0.4.ebuild
83 @@ -0,0 +1,73 @@
84 +# Copyright 1999-2014 Gentoo Foundation
85 +# Distributed under the terms of the GNU General Public License v2
86 +# $Header: $
87 +
88 +EAPI=5
89 +
90 +inherit flag-o-matic linux-info linux-mod autotools-utils
91 +
92 +DESCRIPTION="Skyld AV: on-access scanning daemon for ClamAV using fanotify"
93 +HOMEPAGE="http://xypron.github.io/skyldav/"
94 +
95 +## github release tarball
96 +MY_PV=${PV/_rc/rc}
97 +MY_P="${PN}-${MY_PV}"
98 +SRC_URI="https://github.com/xypron/skyldav/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
99 +
100 +## selfmade tarball
101 +#MY_PVR=${PVR/_rc/rc}
102 +#MY_P="${PN}-${MY_PVR}"
103 +#SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${MY_P}.tar.gz"
104 +
105 +## github commit tarball
106 +#MY_GIT_COMMIT="49bdb5e710b5a77c38ceb87da6015afb7009f1f9"
107 +#MY_P="xypron-${PN}-${MY_GIT_COMMIT:0:7}"
108 +#SRC_URI="https://github.com/xypron/${PN}/tarball/${MY_GIT_COMMIT} -> ${PF}.tar.gz"
109 +
110 +S="${WORKDIR}/${MY_P}"
111 +
112 +KEYWORDS="~amd64 ~x86"
113 +SLOT="0"
114 +LICENSE="Apache-2.0"
115 +IUSE="libnotify"
116 +
117 +RDEPEND=">=app-antivirus/clamav-0.97.8
118 + sys-apps/util-linux
119 + sys-libs/libcap
120 + libnotify? (
121 + media-libs/libcanberra[gtk]
122 + x11-libs/libnotify
123 + x11-libs/gtk+:2
124 + )"
125 +DEPEND="${RDEPEND}
126 + sys-devel/autoconf-archive"
127 +
128 +## autotools-utils.eclass settings
129 +AUTOTOOLS_AUTORECONF="1"
130 +AUTOTOOLS_IN_SOURCE_BUILD="1"
131 +DOCS=( AUTHORS NEWS README )
132 +PATCHES=(
133 + "${FILESDIR}/${PN}-0.2_rc4-more-syslog-messages.patch"
134 + "${FILESDIR}/${PN}-0.2_rc4-examples.patch"
135 + "${FILESDIR}/${P}-conf.patch"
136 +)
137 +
138 +pkg_setup() {
139 + linux-info_pkg_setup
140 + kernel_is ge 3 8 0 || die "Linux 3.8.0 or newer recommended"
141 + CONFIG_CHECK="FANOTIFY FANOTIFY_ACCESS_PERMISSIONS"
142 + check_extra_config
143 +}
144 +
145 +src_configure() {
146 + local myeconfargs=(
147 + $(use_with libnotify notification)
148 + )
149 + autotools-utils_src_configure
150 +}
151 +
152 +src_install() {
153 + autotools-utils_src_install
154 + newinitd "${FILESDIR}/${PN}.initd" ${PN}
155 + newconfd "${FILESDIR}/${PN}.confd" ${PN}
156 +}