diff options
author | Donny Davies <woodchip@gentoo.org> | 2002-02-08 22:59:25 +0000 |
---|---|---|
committer | Donny Davies <woodchip@gentoo.org> | 2002-02-08 22:59:25 +0000 |
commit | 903062855cd5f35b006aec125c77f50224f0103d (patch) | |
tree | 66fb508fae75246362c47435c4f658a3b6fdffb0 /app-misc/toshiba-utils | |
parent | small fix in the configuration setup function (diff) | |
download | gentoo-2-903062855cd5f35b006aec125c77f50224f0103d.tar.gz gentoo-2-903062855cd5f35b006aec125c77f50224f0103d.tar.bz2 gentoo-2-903062855cd5f35b006aec125c77f50224f0103d.zip |
New package checkin. Thanks goto Jim Nutt <im@nuttz.org>.
Diffstat (limited to 'app-misc/toshiba-utils')
-rw-r--r-- | app-misc/toshiba-utils/ChangeLog | 11 | ||||
-rw-r--r-- | app-misc/toshiba-utils/files/digest-toshutils-2.0.1 | 1 | ||||
-rw-r--r-- | app-misc/toshiba-utils/files/toshiba-modules.d | 1 | ||||
-rw-r--r-- | app-misc/toshiba-utils/files/toshutils-2.0.1-gentoo.diff | 27 | ||||
-rw-r--r-- | app-misc/toshiba-utils/toshutils-2.0.1.ebuild | 59 |
5 files changed, 99 insertions, 0 deletions
diff --git a/app-misc/toshiba-utils/ChangeLog b/app-misc/toshiba-utils/ChangeLog new file mode 100644 index 000000000000..180cd288a332 --- /dev/null +++ b/app-misc/toshiba-utils/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-misc/toshutils +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL +# $Header: /var/cvsroot/gentoo-x86/app-misc/toshiba-utils/ChangeLog,v 1.1 2002/02/08 22:59:25 woodchip Exp $ + +*toshutils-2.0.1 (8 Feb 2002) + + 8 Feb 2002; Donny Davies : + + Checkin new package, first version. Created a patch to ignore the + X programs if you dont USE=X. + diff --git a/app-misc/toshiba-utils/files/digest-toshutils-2.0.1 b/app-misc/toshiba-utils/files/digest-toshutils-2.0.1 new file mode 100644 index 000000000000..62b3c625f793 --- /dev/null +++ b/app-misc/toshiba-utils/files/digest-toshutils-2.0.1 @@ -0,0 +1 @@ +MD5 3a029dac7cc66e21cb3413736e5145c7 toshutils-2.0.1.tar.gz 385389 diff --git a/app-misc/toshiba-utils/files/toshiba-modules.d b/app-misc/toshiba-utils/files/toshiba-modules.d new file mode 100644 index 000000000000..b449c9653284 --- /dev/null +++ b/app-misc/toshiba-utils/files/toshiba-modules.d @@ -0,0 +1 @@ +alias char-major-10-181 toshiba diff --git a/app-misc/toshiba-utils/files/toshutils-2.0.1-gentoo.diff b/app-misc/toshiba-utils/files/toshutils-2.0.1-gentoo.diff new file mode 100644 index 000000000000..81d7f923da8a --- /dev/null +++ b/app-misc/toshiba-utils/files/toshutils-2.0.1-gentoo.diff @@ -0,0 +1,27 @@ +diff -uNr toshutils-2.0.1.orig/configure.in toshutils-2.0.1/configure.in +--- toshutils-2.0.1.orig/configure.in Sun Jan 27 08:30:17 2002 ++++ toshutils-2.0.1/configure.in Fri Feb 8 17:16:58 2002 +@@ -4,7 +4,7 @@ + AC_REVISION([configure.in 1.2]) + AC_INIT(src/sci.c) + +-PROGRAMS="fan svpw tpasswd dispswitch tdocked thotswap tbacklight ownerstring alarm" ++PROGRAMS="fan svpw tpasswd tdocked thotswap tbacklight ownerstring alarm" + + VERSION=2.0.1 + AC_SUBST(VERSION) +@@ -63,13 +63,10 @@ + EXTRAFLAGS="" + PROGRAMS="$PROGRAMS hotkey wmtuxtime" # programs to build if X11 found + AC_CHECK_LIB(gtk, gtk_main, +- PROGRAMS="$PROGRAMS tuxtime-conf", # progams to build only if X+GTK found ++ PROGRAMS="$PROGRAMS tuxtime-conf dispswitch", # progams to build only if X+GTK found + AC_MSG_WARN(*** GTK+ libraries not found. X code will not be built. ***), + `gtk-config --libs`) + else +- AC_MSG_ERROR([ +-*** X libraries or include files not found. Check 'config.log' for +-*** more details.]) + XLIB="" + X_CFLAGS="" + X_LIBS="" diff --git a/app-misc/toshiba-utils/toshutils-2.0.1.ebuild b/app-misc/toshiba-utils/toshutils-2.0.1.ebuild new file mode 100644 index 000000000000..225c8e682da6 --- /dev/null +++ b/app-misc/toshiba-utils/toshutils-2.0.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author: (Jim Nutt) im@nuttz.org +# Maintainer: Donny Davies <woodchip@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/app-misc/toshiba-utils/toshutils-2.0.1.ebuild,v 1.1 2002/02/08 22:59:25 woodchip Exp $ + +DESCRIPTION="Toshiba Laptop Utilities" +HOMEPAGE="http://www.buzzard.org.uk/toshiba/" + +S=${WORKDIR}/${P} +SRC_URI="http://www.buzzard.org.uk/toshiba/toshutils-${PV}.tar.gz" +DEPEND="virtual/glibc gtk? ( =x11-libs/gtk+-1* )" + +src_unpack() { + unpack ${A} ; cd ${S} + rm -f config.{cache,log,status} src/*.o + + mv src/Makefile.in src/Makefile.in.orig + sed -e "s:-m486 -O2::" \ + -e "s:\(^CFLAGS =.*\):\1 ${CFLAGS}:" \ + -e "s:^install\:.*:install\: all install-prog:" \ + src/Makefile.in.orig > src/Makefile.in + + use X || patch -p1 < ${FILESDIR}/${P}-gentoo.diff || die + autoconf || die +} + +src_compile() { + econf || die "bad ./configure" + make depend + make -C src || die +} + +src_install() { + dodir /usr/bin + make -C src DESTDIR=${D} install || die + + dodoc README* TODO CONTRIBUTE FAQ ChangeLog + doman doc/*.{1x,1,8} + docinto pdf ; dodoc doc/*.pdf + + insinto /etc/modules.d + newins ${FILESDIR}/toshiba-modules.d toshiba +} + +pkg_postinst() { + ewarn "Dont forget Toshiba Laptop Support for your kernel." + ewarn "(under Processor Type and Features, CONFIG_TOSHIBA)" + /usr/sbin/update-modules || return 0 +} + +pkg_config() { + # use this only if you dont have devfs... the driver is already devfs aware. + if [ "`ls -l ${ROOT}/dev/toshiba 2>/dev/null | awk '{print $$6}'`" != "181" ] + then + rm -f ${ROOT}/dev/toshiba + mknod -m 666 ${ROOT}/dev/toshiba c 10 181 + fi +} |