summaryrefslogtreecommitdiff
blob: a1157d17e8937e56a72b9f72f5dde6b84e9a18e3 (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-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/inputd/inputd-0.1.1.ebuild,v 1.4 2007/10/30 07:29:46 killerfox Exp $

inherit eutils

DESCRIPTION="inputd is a user-space daemon to emulate key presses trough other
key combinations"
HOMEPAGE="http://hansmi.ch/software/inputd"
SRC_URI="http://hansmi.ch/download/inputd/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~ppc ~x86 ~ppc64"
IUSE=""

DEPEND=">=dev-libs/glib-2.10
	>=sys-kernel/linux-headers-2.6.16"
RDEPEND="sys-fs/udev
	virtual/logger"

src_install() {
	emake DESTDIR="${D}" install || die 'installation failed.'

	newinitd "${FILESDIR}/inputd.init" inputd
	dodoc README NEWS doc/FAQ

	insinto /etc
	doins doc/inputd.conf
}

pkg_postinst() {
	ewarn "The configuration syntax has slightly changed between "
	ewarn "inputd 0.0.x and 0.1.x. Please make sure every statement "
	ewarn "ends with a semicolon (;)."
	ewarn
	ewarn "If you encounter problem after an upgrade to >=udev-116-r1 "
	ewarn "please note that the path from /dev/misc/uinput might be changed to "
	ewarn "/dev/input/uinput"
}