blob: d1d34f98e7e0eb72472a871faa421c2a60d1d2d0 (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-serial/vdr-serial-0.0.6a-r1.ebuild,v 1.6 2014/01/14 19:09:24 hd_brummy Exp $
EAPI=5
inherit vdr-plugin-2
DESCRIPTION="VDR Plugin: attach some buttons with diodes to the serial port"
HOMEPAGE="http://www.lf-klueber.de/vdr.htm"
SRC_URI="http://www.lf-klueber.de/${P}.tgz
mirror://vdrfiles/${PN}/${P}.tgz"
KEYWORDS="~amd64 ~x86"
SLOT="0"
LICENSE="GPL-2"
IUSE=""
DEPEND=">=media-video/vdr-1.2.6"
pkg_setup() {
vdr-plugin-2_pkg_setup
if ! getent group uucp | grep -q vdr; then
echo
einfo "Add user 'vdr' to group 'uucp' for full user access to serial/ttyS* device"
echo
elog "User vdr added to group uucp"
gpasswd -a vdr uucp
fi
}
src_prepare() {
vdr-plugin-2_src_prepare
sed -i serial.c -e "s:RegisterI18n://RegisterI18n:"
cd "${S}"/tools
emake clean
}
|