summaryrefslogtreecommitdiff
blob: 3ca9d4a32e227475e643ffceefb0faed94d5f4a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Copyright 1999-2013 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

MY_PV=${PV/_rc/rc}
MY_P="${PN}-${MY_PV}"
#MY_PVR=${PVR/_rc/rc}
#MY_P="${PN}-${MY_PVR}"
S="${WORKDIR}/${MY_P}"

DESCRIPTION="Skyld AV: on-access scanning daemon for ClamAV using fanotify"
#SRC_URI="https://github.com/xypron/skyldav/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${MY_P}.tar.gz"
HOMEPAGE="http://xypron.github.io/skyldav/"

KEYWORDS="~amd64 ~x86"
SLOT="0"
LICENSE="Apache-2.0"
IUSE="libnotify"

RDEPEND="app-antivirus/clamav
	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}/${P}-conf.patch"
	"${FILESDIR}/${PN}-0.2_rc3_p20130821-examples.patch"
	"${FILESDIR}/${PN}-0.2_rc3-sbin.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}
}