From 83db2a823e6c54a448bbc53d0e659386138568fa Mon Sep 17 00:00:00 2001 From: Peter Johanson Date: Mon, 8 Mar 2004 04:38:01 +0000 Subject: Moved from sys-apps to app-laptop --- app-laptop/tpctl/ChangeLog | 53 ++++++++++++++++++++++ app-laptop/tpctl/files/apmiser.rc | 17 +++++++ app-laptop/tpctl/files/digest-tpctl-3.2 | 1 + app-laptop/tpctl/files/digest-tpctl-4.2 | 1 + app-laptop/tpctl/files/digest-tpctl-4.4 | 1 + app-laptop/tpctl/files/digest-tpctl-4.4-r1 | 1 + app-laptop/tpctl/files/digest-tpctl-4.8 | 1 + app-laptop/tpctl/files/tpctlir-cli-4.4-r1.diff | 29 ++++++++++++ app-laptop/tpctl/metadata.xml | 5 ++ app-laptop/tpctl/tpctl-3.2.ebuild | 55 ++++++++++++++++++++++ app-laptop/tpctl/tpctl-4.2.ebuild | 54 ++++++++++++++++++++++ app-laptop/tpctl/tpctl-4.4-r1.ebuild | 63 ++++++++++++++++++++++++++ app-laptop/tpctl/tpctl-4.4.ebuild | 54 ++++++++++++++++++++++ app-laptop/tpctl/tpctl-4.8.ebuild | 63 ++++++++++++++++++++++++++ 14 files changed, 398 insertions(+) create mode 100644 app-laptop/tpctl/ChangeLog create mode 100644 app-laptop/tpctl/files/apmiser.rc create mode 100644 app-laptop/tpctl/files/digest-tpctl-3.2 create mode 100644 app-laptop/tpctl/files/digest-tpctl-4.2 create mode 100644 app-laptop/tpctl/files/digest-tpctl-4.4 create mode 100644 app-laptop/tpctl/files/digest-tpctl-4.4-r1 create mode 100644 app-laptop/tpctl/files/digest-tpctl-4.8 create mode 100644 app-laptop/tpctl/files/tpctlir-cli-4.4-r1.diff create mode 100644 app-laptop/tpctl/metadata.xml create mode 100644 app-laptop/tpctl/tpctl-3.2.ebuild create mode 100644 app-laptop/tpctl/tpctl-4.2.ebuild create mode 100644 app-laptop/tpctl/tpctl-4.4-r1.ebuild create mode 100644 app-laptop/tpctl/tpctl-4.4.ebuild create mode 100644 app-laptop/tpctl/tpctl-4.8.ebuild (limited to 'app-laptop/tpctl') 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 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 ; 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 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 : + updated keywords (-ppc) + + 14 Jul 2002; phoen][x tpctl-3.2.ebuild : + Added LICENSE, KEYWORDS, SLOT. + + 25 April 2002; Wout Mertens 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/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 + #include + #include ++#include + + /* + * 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 @@ + + + +base-system + 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 +} -- cgit v1.2.3-65-gdbad