# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: app-laptop/lapsus-9999.ebuild, v1.2 j0inty $ inherit eutils linux-info qt3 subversion flag-o-matic ESVN_REPO_URI="http://svn.berlios.de/svnroot/repos/lapsus/trunk" DESCRIPTION="Lapsus - Linux on laptops" HOMEPAGE="http://lapsus.berlios.de/" SRC_URI="" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="arts" DEPEND="=x11-libs/qt-3.3* >=sys-apps/dbus-0.90 kde-base/kdelibs arts? ( kde-base/arts )" CONFIG_CHECK="BACKLIGHT_CLASS_DEVICE" ERROR_BACKLIGHT_CLASS_DEVICE="Please add the Lowlevel Backlight controls to your kernel --> Device Drivers --> Graphic support --> Backlight & LCD device support --> Lowlevel Backlight controls" CONFIG_CHECK="LEDS_CLASS" ERROR_LEDS_CLASS="Please add the Led Class support into your kernel --> Device Drivers --> Led support --> Led Class support" CONFIG_CHECK="ASUS_LAPTOP" ERROR_ASUS_LAPTOP="You must add the Asus Laptop Extras module to your kernel --> Device Drivers --> Misc Devices --> Asus Laptop Extras (EXPERIMENTAL) If you don't find the entry for the module you should check is the follow module NOT selected --> Power management options --> ACPI (Advanced Configuration and Power Interface) Support < > ASUS/Medion Laptop Extras" pkg_setup() { linux-info_pkg_setup enewgroup lapsus } src_unpack() { subversion_src_unpack } src_compile() { # This LDFlag doesn't work for the internal qt3backport libary so we took this out filter-ldflags "-Wl,--as-needed" emake -f "Makefile.cvs" || die "emake failed" econf $(use_with arts) || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR=${D} install || die "emake install failed" insinto /etc/dbus-1/system.d/ doins lapsus.conf newconfd ${FILESDIR}/lapsusd.confd lapsusd newinitd ${FILESDIR}/lapsusd.initd lapsusd dodoc AUTHORS README ChangeLog INSTALL } pkg_postinst() { echo elog "If you have an ASUS or IBM laptop, be sure to compile kernel with support for Asus Laptop Extras or ThinkPad ACPI Laptop Extras" elog "" elog "dbus has to be restarted." elog "You should restart it with: /etc/init.d/dbus restart" elog "" elog "lapsusd has to be started." elog "You should start it with: /etc/init.d/lapsusd start" elog "" elog "You must be in the lapsus group to use lapsus or you change the group over /etc/conf.d/lapsusd" elog "LAPSUSD_GROUP=\"\"" elog "" elog "Make an \"usermod -a -G lapsus \" if you want to add any user to the group" elog "" elog "You might have to restart KDE to use the lapsus applet" }