commit:     1c2547775ee15c83f90547df5dcfd9e423f60e73
Author:     Wolfram Schlich <wschlich <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 30 12:09:24 2014 +0000
Commit:     Wolfram Schlich <wschlich <AT> gentoo <DOT> org>
CommitDate: Sun Mar 30 12:09:24 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=dev/wschlich.git;a=commit;h=1c254777

version bump

Package-Manager: portage-2.2.8-r1

---
 app-antivirus/skyldav/ChangeLog                    |  6 ++
 app-antivirus/skyldav/Manifest                     |  1 +
 app-antivirus/skyldav/files/skyldav-0.4-conf.patch | 27 ++++++++
 app-antivirus/skyldav/skyldav-0.4.ebuild           | 73 ++++++++++++++++++++++
 4 files changed, 107 insertions(+)

diff --git a/app-antivirus/skyldav/ChangeLog b/app-antivirus/skyldav/ChangeLog
index f045211..ef2d7f9 100644
--- a/app-antivirus/skyldav/ChangeLog
+++ b/app-antivirus/skyldav/ChangeLog
@@ -1,3 +1,9 @@
+*skyldav-0.4 (30 Mar 2014)
+
+  30 Mar 2014; Wolfram Schlich <[email protected]>
+  +files/skyldav-0.4-conf.patch, +skyldav-0.4.ebuild:
+  version bump
+
 *skyldav-0.2 (13 Sep 2013)
 
   13 Sep 2013; Wolfram Schlich <[email protected]> +skyldav-0.2.ebuild:

diff --git a/app-antivirus/skyldav/Manifest b/app-antivirus/skyldav/Manifest
index bef8fec..b13d6ae 100644
--- a/app-antivirus/skyldav/Manifest
+++ b/app-antivirus/skyldav/Manifest
@@ -1,3 +1,4 @@
 DIST skyldav-0.2.tar.gz 104415 SHA256 
02c1b794c658fe9b6bfbdbf1d162cdb0f72872c7734f59ecbfc9fa5c7bd496ec SHA512 
09d4bd99051c8a407ab005d8913c320c481afb44d32ffe8c573ecc0e63be6e632724e89672ff98b5baf4948fe5631c2ba9c8bb56aa84fa05b8ad0deb5ca4fd90
 WHIRLPOOL 
e3e2cb9599c7fd2e55f11fa344bcab8da0ae93e1fe3887ca1a3336aaad178467d635fd13de36c48984602c247281d74bbfbf895fc14cacf0b80e5596bf37d0d2
 DIST skyldav-0.2_rc4_p20130829.tar.gz 104425 SHA256 
f05e198553ff4deb60a06b4d3166bccf1099e2fcd86a180f74f9ee7069b7cdef SHA512 
0961b068acb693f3225fbd0d58e29bc3346474ea05b0c513bafe12f16a8ddbe6ca6f97d833046b927cff346d4b9a64c213d4bca3199816dbfd8a63213b009a63
 WHIRLPOOL 
88a721d403d0f23c380b46b8b577f34434e028c63df931eb14ba27820cbd5ab953e35148bc16d2e4e6177884e9615a268a08455323c8703e867babb1f231c463
 DIST skyldav-0.2rc4.tar.gz 102690 SHA256 
9752520ca4b50ee181541b4decddffacd17c192bcf059e5d89d5de5485747bc3 SHA512 
ed62c459907afed619df362f08b2eb565cef70b2c10f1da7f64d72a0ee2767f776387b38b50c3729eaca33ac640b827bdd1cb02f117778944c512d8902f40858
 WHIRLPOOL 
90cae16a26122df1db9c4d0c4ba13fa5939febdbc2d2e61ed5a0755234f3fe2ec055bcd138c7f2fd9c2ad1827b0aa3789117d755c5100c1ba1e7f5863a004e09
+DIST skyldav-0.4.tar.gz 105352 SHA256 
677f743db5810fd367a06ebb2591f20f6af4dd3fdc9d2bcf038d3576c598beec SHA512 
4a98d2d87541b044eeb233e154a6dcbc0da0ed2cba3a38bb89cfb3e27bdea2ae4ee7edf363f6f5b1d3978d042e5a31cac1e04353fecedb52c0053fb888fd144a
 WHIRLPOOL 
b7b9b29bac94a76ada5574b72798e2ad125ea0929b99e9efe8fcadcbefe7c430fb5e4d84120677f9c3fdc2531f3f6f23ad390893c37bb675c695f3b28eba5cd1

diff --git a/app-antivirus/skyldav/files/skyldav-0.4-conf.patch 
b/app-antivirus/skyldav/files/skyldav-0.4-conf.patch
new file mode 100644
index 0000000..337f415
--- /dev/null
+++ b/app-antivirus/skyldav/files/skyldav-0.4-conf.patch
@@ -0,0 +1,27 @@
+diff -urN skyldav-0.4.orig/examples/etc/skyldav.conf 
skyldav-0.4/examples/etc/skyldav.conf
+--- skyldav-0.4.orig/examples/etc/skyldav.conf 2014-03-21 20:32:49.000000000 
+0100
++++ skyldav-0.4/examples/etc/skyldav.conf      2014-03-30 13:23:14.043578460 
+0200
+@@ -19,14 +19,21 @@
+ 
+ # Directories that shall not be scanned (including subdirectories)
+ # EXCLUDE_PATH = /var/noscan, /opt/noscan
++EXCLUDE_PATH = /usr/portage, /var/db/pkg, /var/tmp/portage, /var/tmp/binpkgs
+ 
+ # File systems that are local, virus scan results may be cached.
+ # LOCAL_FS = ext3, ext4, iso9660, tmpfs, vfat
+-LOCAL_FS = ext3, ext4, iso9660, tmpfs, vfat
++LOCAL_FS = ext2, ext3, ext4, xfs, zfs, btrfs, reiserfs, vfat, ntfs, iso9660, 
tmpfs
+ 
+ # File systems that shall not be marked for virus scan.
+ # NOMARK_FS = proc, sysfs
+-NOMARK_FS = proc, sysfs, cifs
++#
++# Do not exclude devtmpfs and configs, as userspace could write malware onto 
them.
++# CIFS is also known to cause problems due to a background daemon, so we 
exclude it here
++# 
(https://github.com/xypron/skyldav/commit/63b01b912d3eed80f3db92aec8647770546f5c1c).
++# Note that FUSE file systems are automatically excluded from scanning
++# (https://github.com/xypron/skyldav/issues/3).
++NOMARK_FS = proc, sysfs, devpts, debugfs, securityfs, cgroup, rpc_pipefs, 
autofs, cifs
+ 
+ # Mounts that shall not be marked for virus scan.
+ # NOMARK_MNT = /mnt/noscan

diff --git a/app-antivirus/skyldav/skyldav-0.4.ebuild 
b/app-antivirus/skyldav/skyldav-0.4.ebuild
new file mode 100644
index 0000000..602cf5c
--- /dev/null
+++ b/app-antivirus/skyldav/skyldav-0.4.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit flag-o-matic linux-info linux-mod autotools-utils
+
+DESCRIPTION="Skyld AV: on-access scanning daemon for ClamAV using fanotify"
+HOMEPAGE="http://xypron.github.io/skyldav/";
+
+## github release tarball
+MY_PV=${PV/_rc/rc}
+MY_P="${PN}-${MY_PV}"
+SRC_URI="https://github.com/xypron/skyldav/archive/${MY_PV}.tar.gz -> 
${MY_P}.tar.gz"
+
+## selfmade tarball
+#MY_PVR=${PVR/_rc/rc}
+#MY_P="${PN}-${MY_PVR}"
+#SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${MY_P}.tar.gz";
+
+## github commit tarball
+#MY_GIT_COMMIT="49bdb5e710b5a77c38ceb87da6015afb7009f1f9"
+#MY_P="xypron-${PN}-${MY_GIT_COMMIT:0:7}"
+#SRC_URI="https://github.com/xypron/${PN}/tarball/${MY_GIT_COMMIT} -> 
${PF}.tar.gz"
+
+S="${WORKDIR}/${MY_P}"
+
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+LICENSE="Apache-2.0"
+IUSE="libnotify"
+
+RDEPEND=">=app-antivirus/clamav-0.97.8
+       sys-apps/util-linux
+       sys-libs/libcap
+       libnotify? (
+               media-libs/libcanberra[gtk]
+               x11-libs/libnotify
+               x11-libs/gtk+:2
+       )"
+DEPEND="${RDEPEND}
+       sys-devel/autoconf-archive"
+
+## autotools-utils.eclass settings
+AUTOTOOLS_AUTORECONF="1"
+AUTOTOOLS_IN_SOURCE_BUILD="1"
+DOCS=( AUTHORS NEWS README )
+PATCHES=(
+       "${FILESDIR}/${PN}-0.2_rc4-more-syslog-messages.patch"
+       "${FILESDIR}/${PN}-0.2_rc4-examples.patch"
+       "${FILESDIR}/${P}-conf.patch"
+)
+
+pkg_setup() {
+       linux-info_pkg_setup
+       kernel_is ge 3 8 0 || die "Linux 3.8.0 or newer recommended"
+       CONFIG_CHECK="FANOTIFY FANOTIFY_ACCESS_PERMISSIONS"
+       check_extra_config
+}
+
+src_configure() {
+       local myeconfargs=(
+               $(use_with libnotify notification)
+       )
+       autotools-utils_src_configure
+}
+
+src_install() {
+       autotools-utils_src_install
+       newinitd "${FILESDIR}/${PN}.initd" ${PN}
+       newconfd "${FILESDIR}/${PN}.confd" ${PN}
+}

Reply via email to