summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Johanson <latexer@gentoo.org>2004-03-08 04:38:01 +0000
committerPeter Johanson <latexer@gentoo.org>2004-03-08 04:38:01 +0000
commitca679873cab1a825afa14673108f606e246b8fc7 (patch)
tree76a41ce56a1266047c05c2d1353fa2541b545930 /app-laptop
parentMoved to app-laptop from sys-apps (Manifest recommit) (diff)
downloadgentoo-2-ca679873cab1a825afa14673108f606e246b8fc7.tar.gz
gentoo-2-ca679873cab1a825afa14673108f606e246b8fc7.tar.bz2
gentoo-2-ca679873cab1a825afa14673108f606e246b8fc7.zip
Moved from sys-apps to app-laptop
Diffstat (limited to 'app-laptop')
-rw-r--r--app-laptop/tpctl/ChangeLog53
-rw-r--r--app-laptop/tpctl/Manifest14
-rw-r--r--app-laptop/tpctl/files/apmiser.rc17
-rw-r--r--app-laptop/tpctl/files/digest-tpctl-3.21
-rw-r--r--app-laptop/tpctl/files/digest-tpctl-4.21
-rw-r--r--app-laptop/tpctl/files/digest-tpctl-4.41
-rw-r--r--app-laptop/tpctl/files/digest-tpctl-4.4-r11
-rw-r--r--app-laptop/tpctl/files/digest-tpctl-4.81
-rw-r--r--app-laptop/tpctl/files/tpctlir-cli-4.4-r1.diff29
-rw-r--r--app-laptop/tpctl/metadata.xml5
-rw-r--r--app-laptop/tpctl/tpctl-3.2.ebuild55
-rw-r--r--app-laptop/tpctl/tpctl-4.2.ebuild54
-rw-r--r--app-laptop/tpctl/tpctl-4.4-r1.ebuild63
-rw-r--r--app-laptop/tpctl/tpctl-4.4.ebuild54
-rw-r--r--app-laptop/tpctl/tpctl-4.8.ebuild63
15 files changed, 412 insertions, 0 deletions
diff --git a/app-laptop/tpctl/ChangeLog b/app-laptop/tpctl/ChangeLog
new file mode 100644
index 000000000000..24c371c6eff3
--- /dev/null
+++ b/app-laptop/tpctl/ChangeLog
@@ -0,0 +1,53 @@
+# ChangeLog for sys-apps/tpctl
+# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/tpctl/ChangeLog,v 1.1 2004/03/08 04:38:01 latexer Exp $
+
+*tpctl-4.4-r1 (07 Mar 2004)
+
+ 07 Mar 2004; Peter Johanson <latexer@gentoo.org> metadata.xml,
+ tpctl-3.2.ebuild, tpctl-4.2.ebuild, tpctl-4.4-r1.ebuild, tpctl-4.4.ebuild,
+ tpctl-4.8.ebuild, files/apmiser.rc, files/tpctlir-cli-4.4-r1.diff:
+ Moved to new app-laptop category
+
+ 26 Feb 2004; Gustavo Felisberto <humpback@gentoo.org>; tpctl-3.2.ebuild,
+ tpctl-4.2.ebuild, tpctl-4.4-r1.ebuild, tpctl-4.4.ebuild, tpctl-4.8.ebuild:
+ Adding -* and maintaining x86 or ~x86. There are only x86 thinkpads. See bug
+ 34495
+
+*tpctl-4.8 (25 Dec 2003)
+
+ 25 Dec 2003; Robin H. Johnson <robbat2@gentoo.org> tpctl-4.8.ebuild:
+ version bump
+
+ 03 Sep 2003; Karl Trygve Kalleberg (karltk@gentoo.org) tpctl-4.4-r1.ebuild :
+ USE=tpctlir incompatible with SMP-enabled kernel, patched tpctlir/tpctlir.c
+ Fixes #26820.
+
+*tpctl-4.4-r1 (28 Jun 2003)
+ 28 Jun 2003; Karl Trygve Kalleberg (karltk@gentoo.org) tpctl-4.4-r1.ebuild :
+ Version bump, installing manpages
+
+*tpctl-4.4 (04 May 2003)
+ 17 Feb 2003; Wout Mertens (wmertens@gentoo.org) tpctl-4.4.ebuild :
+ Version bump, fixing #20072
+
+*tpctl-4.2 (17 Feb 2003)
+
+ 17 Feb 2003; Wout Mertens (wmertens@gentoo.org) tpctl-4.2.ebuild :
+ Version bump
+
+*tpctl-3.2 (25 April 2002)
+
+ 21 Jul 2002; Mark Guertin <gerk@gentoo.org>:
+ updated keywords (-ppc)
+
+ 14 Jul 2002; phoen][x <phoenix@gentoo.org> tpctl-3.2.ebuild :
+ Added LICENSE, KEYWORDS, SLOT.
+
+ 25 April 2002; Wout Mertens <Wout.Mertens@advalvas.be> ChangeLog :
+
+ Added initial ChangeLog which should be updated whenever the package is
+ updated in any way. This changelog is targetted to users. This means that the
+ comments should well explained and written in clean English. The details about
+ writing correct changelogs are explained in the skel.ChangeLog file which you
+ can find in the root directory of the portage repository.
diff --git a/app-laptop/tpctl/Manifest b/app-laptop/tpctl/Manifest
new file mode 100644
index 000000000000..e0783f659aaa
--- /dev/null
+++ b/app-laptop/tpctl/Manifest
@@ -0,0 +1,14 @@
+MD5 2c17f49466bd3f85a97bdee0e609cdcb tpctl-4.8.ebuild 1665
+MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
+MD5 c5e56a70786963487a49e5727e50962d tpctl-4.4-r1.ebuild 1697
+MD5 ff5735c08695437560affcfce5d93bcf ChangeLog 1769
+MD5 5c656c29294381789affe4570079f6fc tpctl-4.2.ebuild 1591
+MD5 c50da4565efdff25c3eaf74b3d28abae tpctl-3.2.ebuild 1592
+MD5 0570d9385c11353d1f965e039d89f8ab tpctl-4.4.ebuild 1572
+MD5 07d45c78b0ee95cb84c2fcdca379afc6 files/digest-tpctl-4.4-r1 60
+MD5 7ea9886f5d9abae5110c5f584d5555fb files/digest-tpctl-4.8 60
+MD5 4a6eccb7b79fc6b89897fa42a9d63835 files/digest-tpctl-3.2 60
+MD5 603d662e5051a7e33e5c3cb5cae78962 files/digest-tpctl-4.2 60
+MD5 115f887073edf93d803fd04bf1a2a649 files/apmiser.rc 586
+MD5 07d45c78b0ee95cb84c2fcdca379afc6 files/digest-tpctl-4.4 60
+MD5 556f25877822405f7dfd77680d2f6e49 files/tpctlir-cli-4.4-r1.diff 770
diff --git a/app-laptop/tpctl/files/apmiser.rc b/app-laptop/tpctl/files/apmiser.rc
new file mode 100644
index 000000000000..9859448c8778
--- /dev/null
+++ b/app-laptop/tpctl/files/apmiser.rc
@@ -0,0 +1,17 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/tpctl/files/apmiser.rc,v 1.1 2004/03/08 04:38:01 latexer Exp $
+
+start() {
+ ebegin "Starting Thinkpad Battery Maximiser"
+ start-stop-daemon --start --background --quiet --make-pidfile \
+ --pidfile /var/run/apmiser.pid --exec /usr/sbin/apmiser
+ eend $?
+}
+
+stop () {
+ ebegin "Shutting down Thinkpad Battery Maximiser"
+ start-stop-daemon --stop --quiet --pid /var/run/apmiser.pid
+ eend $?
+}
diff --git a/app-laptop/tpctl/files/digest-tpctl-3.2 b/app-laptop/tpctl/files/digest-tpctl-3.2
new file mode 100644
index 000000000000..8905ea02c42b
--- /dev/null
+++ b/app-laptop/tpctl/files/digest-tpctl-3.2
@@ -0,0 +1 @@
+MD5 340b45ee11f925374753fddbae0300fa tpctl_3.2.tar.gz 79506
diff --git a/app-laptop/tpctl/files/digest-tpctl-4.2 b/app-laptop/tpctl/files/digest-tpctl-4.2
new file mode 100644
index 000000000000..66a9834e67b3
--- /dev/null
+++ b/app-laptop/tpctl/files/digest-tpctl-4.2
@@ -0,0 +1 @@
+MD5 2f4aa4ae73f6ac33fe2565830fd3375a tpctl_4.2.tar.gz 82900
diff --git a/app-laptop/tpctl/files/digest-tpctl-4.4 b/app-laptop/tpctl/files/digest-tpctl-4.4
new file mode 100644
index 000000000000..53fc926f7e1d
--- /dev/null
+++ b/app-laptop/tpctl/files/digest-tpctl-4.4
@@ -0,0 +1 @@
+MD5 658968fac5f02ebc6f64c3750b52fc44 tpctl_4.4.tar.gz 83113
diff --git a/app-laptop/tpctl/files/digest-tpctl-4.4-r1 b/app-laptop/tpctl/files/digest-tpctl-4.4-r1
new file mode 100644
index 000000000000..53fc926f7e1d
--- /dev/null
+++ b/app-laptop/tpctl/files/digest-tpctl-4.4-r1
@@ -0,0 +1 @@
+MD5 658968fac5f02ebc6f64c3750b52fc44 tpctl_4.4.tar.gz 83113
diff --git a/app-laptop/tpctl/files/digest-tpctl-4.8 b/app-laptop/tpctl/files/digest-tpctl-4.8
new file mode 100644
index 000000000000..912af9d52175
--- /dev/null
+++ b/app-laptop/tpctl/files/digest-tpctl-4.8
@@ -0,0 +1 @@
+MD5 88b3ea7a83dc9da30327ff28bf4efba3 tpctl_4.8.tar.gz 89430
diff --git a/app-laptop/tpctl/files/tpctlir-cli-4.4-r1.diff b/app-laptop/tpctl/files/tpctlir-cli-4.4-r1.diff
new file mode 100644
index 000000000000..1eec002ab9d8
--- /dev/null
+++ b/app-laptop/tpctl/files/tpctlir-cli-4.4-r1.diff
@@ -0,0 +1,29 @@
+diff -ur tpctl-4.4/tpctlir/tpctlir.c tpctl-4.4/tpctlir/tpctlir.c
+--- tpctl-4.4/tpctlir/tpctlir.c 2002-03-01 14:46:14.000000000 +0100
++++ tpctl-4.4/tpctlir/tpctlir.c 2003-10-04 18:00:40.000000000 +0200
+@@ -1,6 +1,7 @@
+ #include <asm/system.h>
+ #include <sys/io.h>
+ #include <stdio.h>
++#include <string.h>
+
+ /*
+ * enable/disable IR on IBM ThinkPads with
+@@ -29,7 +30,7 @@
+ return 2;
+ }
+
+- cli();
++ asm("cli");
+
+ val94 = inb(0x94); /* POS mask register */
+ outb(0xfE, 0x94); /* mask bit (0) for IR; changes enabled */
+@@ -44,7 +45,7 @@
+ outb(val94, 0x94); /* restore POS mask to prevent changing */
+ outb(val94, 0x47); /* pause */
+
+- sti();
++ asm("sti");
+
+ return 0;
+ }
diff --git a/app-laptop/tpctl/metadata.xml b/app-laptop/tpctl/metadata.xml
new file mode 100644
index 000000000000..96a2d586367d
--- /dev/null
+++ b/app-laptop/tpctl/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>base-system</herd>
+</pkgmetadata>
diff --git a/app-laptop/tpctl/tpctl-3.2.ebuild b/app-laptop/tpctl/tpctl-3.2.ebuild
new file mode 100644
index 000000000000..b7140190adf1
--- /dev/null
+++ b/app-laptop/tpctl/tpctl-3.2.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/tpctl/tpctl-3.2.ebuild,v 1.1 2004/03/08 04:38:01 latexer Exp $
+
+IUSE="ncurses tpctlir perl"
+
+#transform P to match tarball versioning
+MYPV=${PV/_beta/beta}
+MYP="${PN}_${MYPV}"
+KV=""
+
+DESCRIPTION="Thinkpad system control user space programs"
+SRC_URI="mirror://sourceforge/tpctl/${MYP}.tar.gz"
+HOMEPAGE="http://tpctl.sourceforge.net/tpctlhome.htm"
+KEYWORDS="-* x86"
+SLOT="0"
+LICENSE="GPL-2"
+
+DEPEND="$DEPEND app-laptop/thinkpad ncurses? ( sys-libs/ncurses )"
+RDEPEND="$RDEPEND app-laptop/thinkpad ncurses? ( sys-libs/ncurses ) perl? ( dev-lang/perl )"
+
+src_compile() {
+ emake -C lib || die "lib make failed"
+ emake -C tpctl || die "tpctl make failed"
+ if use ncurses > /dev/null; then
+ emake -C ntpctl || die "ntpctl make failed"
+ fi
+
+ # Only for thinkpad models 760 and 765
+ # build with:
+ # $ USE=tpctlir emerge tpctl
+ if use tpctlir > /dev/null; then
+ emake -C tpctlir || die "tpctlir make failed"
+ fi
+}
+
+src_install() {
+ dodoc AUTHORS COPYING ChangeLog README SUPPORTED-MODELS TROUBLESHOOTING \
+ VGA-MODES
+ dolib lib/libsmapidev.so.1.0
+ dobin tpctl/tpctl
+ [ -e ntpctl/ntpctl ] && dobin ntpctl/ntpctl
+ if use tpctlir > /dev/null && [ -e tpctlir/tpctlir ]; then
+ mv tpctlir/README README.tpctlir
+ dodoc README.tpctlir
+ dobin tpctlir/tpctlir
+ fi
+ if use perl > /dev/null; then
+ mv apmiser/README README.apmiser
+ dodoc README.apmiser
+ dosbin apmiser/apmiser
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/apmiser.rc apmiser
+ fi
+}
diff --git a/app-laptop/tpctl/tpctl-4.2.ebuild b/app-laptop/tpctl/tpctl-4.2.ebuild
new file mode 100644
index 000000000000..e1c7c693f94f
--- /dev/null
+++ b/app-laptop/tpctl/tpctl-4.2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/tpctl/tpctl-4.2.ebuild,v 1.1 2004/03/08 04:38:01 latexer Exp $
+
+IUSE="ncurses tpctlir perl"
+
+#transform P to match tarball versioning
+MYPV=${PV/_beta/beta}
+MYP="${PN}_${MYPV}"
+
+DESCRIPTION="Thinkpad system control user space programs"
+SRC_URI="mirror://sourceforge/tpctl/${MYP}.tar.gz"
+HOMEPAGE="http://tpctl.sourceforge.net/tpctlhome.htm"
+KEYWORDS="-* x86"
+SLOT="0"
+LICENSE="GPL-2"
+
+DEPEND="$DEPEND >=app-laptop/thinkpad-4.1 ncurses? ( sys-libs/ncurses )"
+RDEPEND="$RDEPEND app-laptop/thinkpad ncurses? ( sys-libs/ncurses ) perl? ( dev-lang/perl )"
+
+src_compile() {
+ emake -C lib || die "lib make failed"
+ emake -C tpctl || die "tpctl make failed"
+ if use ncurses > /dev/null; then
+ emake -C ntpctl || die "ntpctl make failed"
+ fi
+
+ # Only for thinkpad models 760 and 765
+ # build with:
+ # $ USE=tpctlir emerge tpctl
+ if use tpctlir > /dev/null; then
+ emake -C tpctlir || die "tpctlir make failed"
+ fi
+}
+
+src_install() {
+ dodoc AUTHORS COPYING ChangeLog README SUPPORTED-MODELS TROUBLESHOOTING \
+ VGA-MODES
+ dolib lib/libsmapidev.so.2.0
+ dobin tpctl/tpctl
+ [ -e ntpctl/ntpctl ] && dobin ntpctl/ntpctl
+ if use tpctlir > /dev/null && [ -e tpctlir/tpctlir ]; then
+ mv tpctlir/README README.tpctlir
+ dodoc README.tpctlir
+ dobin tpctlir/tpctlir
+ fi
+ if use perl > /dev/null; then
+ mv apmiser/README README.apmiser
+ dodoc README.apmiser
+ dosbin apmiser/apmiser
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/apmiser.rc apmiser
+ fi
+}
diff --git a/app-laptop/tpctl/tpctl-4.4-r1.ebuild b/app-laptop/tpctl/tpctl-4.4-r1.ebuild
new file mode 100644
index 000000000000..f3bb1605b955
--- /dev/null
+++ b/app-laptop/tpctl/tpctl-4.4-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/tpctl/tpctl-4.4-r1.ebuild,v 1.1 2004/03/08 04:38:01 latexer Exp $
+
+IUSE="ncurses tpctlir perl"
+
+#transform P to match tarball versioning
+MYPV=${PV/_beta/beta}
+MYP="${PN}_${MYPV}"
+
+DESCRIPTION="Thinkpad system control user space programs"
+SRC_URI="mirror://sourceforge/tpctl/${MYP}.tar.gz"
+HOMEPAGE="http://tpctl.sourceforge.net/tpctlhome.htm"
+KEYWORDS="-* x86 amd64"
+SLOT="0"
+LICENSE="GPL-2"
+
+DEPEND=">=app-laptop/thinkpad-4.3 ncurses? ( sys-libs/ncurses )"
+RDEPEND=">=app-laptop/thinkpad-4.3 ncurses? ( sys-libs/ncurses )
+ perl? ( dev-lang/perl )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ patch -p1 < ${FILESDIR}/tpctlir-cli-4.4-r1.diff
+}
+
+src_compile() {
+
+ emake -C lib || die "lib make failed"
+ emake -C tpctl || die "tpctl make failed"
+ if use ncurses > /dev/null; then
+ emake -C ntpctl || die "ntpctl make failed"
+ fi
+
+ # Only for thinkpad models 760 and 765
+ # build with:
+ # $ USE=tpctlir emerge tpctl
+ if use tpctlir; then
+ emake -C tpctlir || die "tpctlir make failed"
+ fi
+}
+
+src_install() {
+ dodoc AUTHORS COPYING ChangeLog README SUPPORTED-MODELS TROUBLESHOOTING \
+ VGA-MODES
+ dolib lib/libsmapidev.so.2.0
+ dobin tpctl/tpctl
+ [ -e ntpctl/ntpctl ] && dobin ntpctl/ntpctl
+ if use tpctlir && [ -e tpctlir/tpctlir ]; then
+ mv tpctlir/README README.tpctlir
+ dodoc README.tpctlir
+ dobin tpctlir/tpctlir
+ fi
+ if use perl > /dev/null; then
+ mv apmiser/README README.apmiser
+ dodoc README.apmiser
+ dosbin apmiser/apmiser
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/apmiser.rc apmiser
+ fi
+ doman man/{ntpctl,tpctl}.1 man/apmiser.8
+}
diff --git a/app-laptop/tpctl/tpctl-4.4.ebuild b/app-laptop/tpctl/tpctl-4.4.ebuild
new file mode 100644
index 000000000000..66c6a9c75f8b
--- /dev/null
+++ b/app-laptop/tpctl/tpctl-4.4.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/tpctl/tpctl-4.4.ebuild,v 1.1 2004/03/08 04:38:01 latexer Exp $
+
+IUSE="ncurses tpctlir perl"
+
+#transform P to match tarball versioning
+MYPV=${PV/_beta/beta}
+MYP="${PN}_${MYPV}"
+
+DESCRIPTION="Thinkpad system control user space programs"
+SRC_URI="mirror://sourceforge/tpctl/${MYP}.tar.gz"
+HOMEPAGE="http://tpctl.sourceforge.net/tpctlhome.htm"
+KEYWORDS="-* x86"
+SLOT="0"
+LICENSE="GPL-2"
+
+DEPEND="$DEPEND >=app-laptop/thinkpad-4.3 ncurses? ( sys-libs/ncurses )"
+RDEPEND="$RDEPEND >=app-laptop/thinkpad-4.3 ncurses? ( sys-libs/ncurses ) perl? ( dev-lang/perl )"
+
+src_compile() {
+ emake -C lib || die "lib make failed"
+ emake -C tpctl || die "tpctl make failed"
+ if use ncurses > /dev/null; then
+ emake -C ntpctl || die "ntpctl make failed"
+ fi
+
+ # Only for thinkpad models 760 and 765
+ # build with:
+ # $ USE=tpctlir emerge tpctl
+ if use tpctlir; then
+ emake -C tpctlir || die "tpctlir make failed"
+ fi
+}
+
+src_install() {
+ dodoc AUTHORS COPYING ChangeLog README SUPPORTED-MODELS TROUBLESHOOTING \
+ VGA-MODES
+ dolib lib/libsmapidev.so.2.0
+ dobin tpctl/tpctl
+ [ -e ntpctl/ntpctl ] && dobin ntpctl/ntpctl
+ if use tpctlir && [ -e tpctlir/tpctlir ]; then
+ mv tpctlir/README README.tpctlir
+ dodoc README.tpctlir
+ dobin tpctlir/tpctlir
+ fi
+ if use perl > /dev/null; then
+ mv apmiser/README README.apmiser
+ dodoc README.apmiser
+ dosbin apmiser/apmiser
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/apmiser.rc apmiser
+ fi
+}
diff --git a/app-laptop/tpctl/tpctl-4.8.ebuild b/app-laptop/tpctl/tpctl-4.8.ebuild
new file mode 100644
index 000000000000..f9d959e4d9c9
--- /dev/null
+++ b/app-laptop/tpctl/tpctl-4.8.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/tpctl/tpctl-4.8.ebuild,v 1.1 2004/03/08 04:38:01 latexer Exp $
+
+IUSE="ncurses tpctlir perl"
+
+#transform P to match tarball versioning
+MYPV=${PV/_beta/beta}
+MYP="${PN}_${MYPV}"
+
+DESCRIPTION="Thinkpad system control user space programs"
+SRC_URI="mirror://sourceforge/tpctl/${MYP}.tar.gz"
+HOMEPAGE="http://tpctl.sourceforge.net/tpctlhome.htm"
+KEYWORDS="-* ~x86"
+SLOT="0"
+LICENSE="GPL-2"
+
+DEPEND=">=app-laptop/thinkpad-4.8 ncurses? ( sys-libs/ncurses )"
+RDEPEND=">=app-laptop/thinkpad-4.8 ncurses? ( sys-libs/ncurses )
+ perl? ( dev-lang/perl )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ patch -p1 < ${FILESDIR}/tpctlir-cli-4.4-r1.diff
+}
+
+src_compile() {
+
+ emake -C lib || die "lib make failed"
+ emake -C tpctl || die "tpctl make failed"
+ if use ncurses; then
+ emake -C ntpctl || die "ntpctl make failed"
+ fi
+
+ # Only for thinkpad models 760 and 765
+ # build with:
+ # $ USE=tpctlir emerge tpctl
+ if use tpctlir; then
+ emake -C tpctlir || die "tpctlir make failed"
+ fi
+}
+
+src_install() {
+ dodoc AUTHORS COPYING ChangeLog README SUPPORTED-MODELS TROUBLESHOOTING \
+ VGA-MODES
+ dolib lib/libsmapidev.so.2.0
+ dobin tpctl/tpctl
+ [ -e ntpctl/ntpctl ] && dobin ntpctl/ntpctl
+ if use tpctlir && [ -e tpctlir/tpctlir ]; then
+ mv tpctlir/README README.tpctlir
+ dodoc README.tpctlir
+ dobin tpctlir/tpctlir
+ fi
+ if use perl; then
+ mv apmiser/README README.apmiser
+ dodoc README.apmiser
+ dosbin apmiser/apmiser
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/apmiser.rc apmiser
+ fi
+ doman man/{ntpctl,tpctl}.1 man/apmiser.8
+}