| View previous topic :: View next topic |
| Author |
Message |
Macbeth n00b

Joined: 23 Jan 2004 Posts: 18
|
Posted: Thu Mar 15, 2007 6:19 am Post subject: How to get lapsus into portage? |
|
|
Hi,
what have i to do to get lapsus into portage?
http://lapsus.berlios.de/
i'm using an asus a6tc notebook with the acpi4asus module
http://acpi4asus.sourceforge.net/
and it works fine. Now i want the gui, too
best regards
Macbeth |
|
| Back to top |
|
 |
PaulBredbury Watchman


Joined: 14 Jul 2005 Posts: 6039
|
Posted: Thu Mar 15, 2007 6:27 am Post subject: |
|
|
Write an ebuild for it
Here's some examples:
| Code: | | find /usr/portage/ -name \*.ebuild | xargs grep -H ESVN_REPO_URI |
|
|
| Back to top |
|
 |
rem5 n00b


Joined: 12 Oct 2005 Posts: 71 Location: Lille - France
|
Posted: Mon Oct 01, 2007 7:33 am Post subject: |
|
|
I've write one (not a really good...but it works...) :
Tested on amd64, can someone report if it works on x86
lapsus-0.0.5.ebuild
| Code: | # Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit qt3
DESCRIPTION="Lapsus - Linux on laptops"
HOMEPAGE="http://lapsus.berlios.de/"
SRC_URI="http://download.berlios.de/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="arts"
DEPEND="=x11-libs/qt-3.3*
>=sys-apps/dbus-0.90
kde-base/kdelibs
arts? ( kde-base/arts )"
pkg_setup() {
enewgroup lapsus
}
src_unpack() {
unpack ${A}
}
src_compile() {
if ! use arts; then
myconf="${myconf} --without-arts"
fi
econf ${myconf} || 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
newinitd ${FILESDIR}/lapsusd.rc 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"
elog ""
elog "You might have to restart KDE to use the lapsus applet"
} |
lapsus-9999.ebuild
| Code: | # Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit qt3 subversion
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=""
IUSE="arts"
DEPEND="=x11-libs/qt-3.3*
>=sys-apps/dbus-0.90
kde-base/kdelibs
arts? ( kde-base/arts )"
pkg_setup() {
enewgroup lapsus
}
src_unpack() {
subversion_src_unpack
}
src_compile() {
emake -f "Makefile.cvs"
if ! use arts; then
myconf="${myconf} --without-arts"
fi
econf ${myconf} || 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
newinitd ${FILESDIR}/lapsusd.rc 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"
elog ""
elog "You might have to restart KDE to use the lapsus applet"
} |
They are currently not OK for the dependency, I will correct them but feel free to fix them.
EDIT 06/10/2007 : first try to fix dependency
EDIT 07/10/2007 : remove some stupid idea introduced yesterday...
EDIT 05/07/2008 : version 0.0.6 is out, I don't use it anymore, so feel free to upgrade these ebuild if needed as there is little chance I will do...
Last edited by rem5 on Wed May 07, 2008 5:22 am; edited 8 times in total |
|
| Back to top |
|
 |
Dagger Developer


Joined: 11 Jun 2003 Posts: 725 Location: UK
|
Posted: Mon Oct 01, 2007 8:03 am Post subject: |
|
|
Just like you said, dependency could be improved, but besides that looks good. Very good  _________________ 95% of all computer errors occur between chair and keyboard (TM)
Join the FSF as an Associate Member!
Post under CC license. |
|
| Back to top |
|
 |
m1k0 Apprentice


Joined: 27 Dec 2006 Posts: 166 Location: Radom/Poland
|
Posted: Wed Jun 11, 2008 4:22 pm Post subject: |
|
|
| rem5 wrote: | I've write one (not a really good...but it works...) :
lapsus-0.0.5.ebuild
| Code: | # Copyright 1999-2007 Gentoo Foundation
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"
elog ""
elog "You might have to restart KDE to use the lapsus applet"
} |
|
OK, but where I find /etc/init.d/lapsusd ? _________________ http://mobiKAR.net - mobile KARAOKE |
|
| Back to top |
|
 |
Jointy Tux's lil' helper


Joined: 23 Dec 2005 Posts: 142 Location: Saarbrücken
|
|
| Back to top |
|
 |
alistair Developer


Joined: 14 Jul 2005 Posts: 829
|
Posted: Wed Jul 23, 2008 9:25 pm Post subject: |
|
|
ebuild should install it. _________________ ______________
Help the gentoo-java project. Visit Gentoo Java Project
what good are admin powers if you don't abuse them for personal gain - mark_alec |
|
| Back to top |
|
 |
Jointy Tux's lil' helper


Joined: 23 Dec 2005 Posts: 142 Location: Saarbrücken
|
Posted: Thu Jul 24, 2008 1:04 pm Post subject: |
|
|
Hi,
Since one day that doesn't work anymore.
| Code: |
cp: Aufruf von stat für „/usr/local/portage/app-laptop/lapsus/files/lapsusd.rc“ nicht möglich: Datei oder Verzeichnis nicht gefunden
|
In the ebuild file this line failed.
| Code: |
newinitd ${FILESDIR}/lapsusd.rc lapsusd
|
_________________ [Host: Arko]
ASUS G1S
http://gentoo-wiki.com/HARDWARE_Asus_G1S
[Host: Pandora]
PIII 1Ghz (133) / 512MB
1x40GB & 60GB (mdRAID1)
Hardened Stage 1 Server
[Host: Plato]
verkauft (OpenSuse 11.0) |
|
| Back to top |
|
 |
michel7 Guru

Joined: 04 May 2006 Posts: 458 Location: localhost
|
Posted: Tue Dec 09, 2008 6:15 pm Post subject: |
|
|
well. i cannot get lapsus working. ebuild works but there is no lapsusd to start in /etc/init.d/ and kde applet doesnt working too ... _________________ Software is like sex. It's better when it's free |
|
| Back to top |
|
 |
yngwin Developer


Joined: 19 Dec 2002 Posts: 4058 Location: in the Dutch Mountains ;-)
|
Posted: Tue Dec 09, 2008 6:49 pm Post subject: |
|
|
See bug 233822. If you want to get it into portage, you need to get a developer interested. Alternatively, go to #gentoo-sunrise on IRC and get it into Sunrise overlay. _________________ "Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF |
|
| Back to top |
|
 |
IncredibleMrT n00b


Joined: 07 Mar 2008 Posts: 43 Location: Rotherham, UK
|
Posted: Sat Jan 03, 2009 11:22 am Post subject: |
|
|
Hi, i've added the lapsus ebuild as per the wiki howto. Trying to download lapsus-0.0.6.tar.bz2 but the berlios site just times out. Does anyone have a copy of the file that they can post somewhere for me to download?
Thanks |
|
| Back to top |
|
 |
|