| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sys-auth/rtkit/rtkit-0.6.ebuild,v 1.6 2012/05/24 05:07:03 vapier Exp $
|
| 4 |
|
| 5 |
EAPI="2"
|
| 6 |
|
| 7 |
inherit eutils user
|
| 8 |
|
| 9 |
DESCRIPTION="Realtime Policy and Watchdog Daemon"
|
| 10 |
HOMEPAGE="http://0pointer.de/blog/projects/rtkit"
|
| 11 |
SRC_URI="http://0pointer.de/public/${P}.tar.gz"
|
| 12 |
|
| 13 |
LICENSE="GPL-3 BSD"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86"
|
| 16 |
IUSE=""
|
| 17 |
|
| 18 |
DEPEND="sys-apps/dbus
|
| 19 |
sys-auth/polkit
|
| 20 |
sys-libs/libcap"
|
| 21 |
RDEPEND="${DEPEND}"
|
| 22 |
|
| 23 |
pkg_setup() {
|
| 24 |
enewgroup rtkit
|
| 25 |
enewuser rtkit -1 -1 -1 "rtkit"
|
| 26 |
}
|
| 27 |
|
| 28 |
src_install() {
|
| 29 |
emake DESTDIR="${D}" install || die "make install"
|
| 30 |
|
| 31 |
./rtkit-daemon --introspection > org.freedesktop.RealtimeKit1.xml
|
| 32 |
insinto /usr/share/dbus-1/interfaces
|
| 33 |
doins org.freedesktop.RealtimeKit1.xml
|
| 34 |
}
|
| 35 |
|
| 36 |
pkg_postinst () {
|
| 37 |
einfo "To start using RealtimeKit, you need to ensure that the 'dbus'"
|
| 38 |
einfo "service is running. If it is already running, you need to reload it"
|
| 39 |
einfo "with the following command:"
|
| 40 |
einfo ""
|
| 41 |
einfo " /etc/init.d/dbus reload"
|
| 42 |
}
|