blob: ee7ce0965f4270de31b632345f0f91ed03ec9573 (
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
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit autotools-utils linux-info udev
DESCRIPTION="Yubico Universal 2nd Factor (U2F) Host C Library"
HOMEPAGE="https://developers.yubico.com/libu2f-host/"
SRC_URI="https://developers.yubico.com/${PN}/Releases/${P}.tar.xz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="kernel_linux static-libs systemd"
RDEPEND="
dev-libs/hidapi
dev-libs/json-c"
DEPEND="${RDEPEND}
virtual/pkgconfig"
RDEPEND="${RDEPEND}
systemd? ( sys-apps/systemd[acl] )"
CONFIG_CHECK="~HIDRAW"
src_prepare() {
autotools-utils_src_prepare
sed -e 's:TAG+="uaccess":MODE="0664", GROUP="plugdev":g' \
70-u2f.rules > 70-u2f-udev.rules || die
}
src_configure() {
autotools-utils_src_configure
}
src_install() {
autotools-utils_src_install
if use kernel_linux; then
if use systemd; then
udev_dorules 70-u2f.rules
else
udev_newrules 70-u2f-udev.rules 70-u2f.rules
fi
fi
}
|