Files @ 794dc86717e2
Branch filter:

Location: portage-overlay.git/app-laptop/sonykeyd/sonykeyd-0.2.2.ebuild

794dc86717e2 785 B application/vnd.gentoo.ebuild Show Annotation Show as Raw Download as Raw
chain
initial commit of main tree
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

S=${WORKDIR}/${PN}
DESCRIPTION="A daemon to use fn key on Sony Vaio Laptops"
HOMEPAGE="http://juljas.net/linux/vaiofx240/sonykeyd.html"
SRC_URI="http://knefas.altervista.org/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"

src_unpack() {
	unpack ${A} || die
}

src_compile() {
	cd ${S} || die
	emake || die
}

src_install() {
	exeinto /usr/sbin
	doexe sonykeyd
	exeinto /usr/local/sbin
	doexe scripts/sonykey.sh

	exeinto /etc/init.d
	doexe scripts/sonypi
	dodoc doc/README
}

pkg_postinst() {
	einfo "To enable fn-keys at boot run"
	einfo "rc-update add sonypi default"
	einfo "Please see http://forums.gentoo.org/viewtopic-t-361872.html"
}