summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-laptop/thinkpad/thinkpad-4.8.ebuild')
-rw-r--r--app-laptop/thinkpad/thinkpad-4.8.ebuild74
1 files changed, 0 insertions, 74 deletions
diff --git a/app-laptop/thinkpad/thinkpad-4.8.ebuild b/app-laptop/thinkpad/thinkpad-4.8.ebuild
deleted file mode 100644
index 80bf59822dbc..000000000000
--- a/app-laptop/thinkpad/thinkpad-4.8.ebuild
+++ /dev/null
@@ -1,74 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-laptop/thinkpad/thinkpad-4.8.ebuild,v 1.8 2006/01/11 15:34:27 config Exp $
-
-inherit eutils
-
-#transform P to match tarball versioning
-MYPV=${PV/_beta/beta}
-MYP="${PN}_${MYPV}"
-DESCRIPTION="Thinkpad system control kernel modules"
-HOMEPAGE="http://tpctl.sourceforge.net/tpctlhome.htm"
-SRC_URI="mirror://sourceforge/tpctl/${MYP}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="-* x86"
-IUSE=""
-
-DEPEND="virtual/libc"
-
-pkg_setup() {
- enewgroup thinkpad
-}
-
-src_unpack() {
- check_KV
- unpack ${A} || die
- cd ${S}
-
- # Use the correct drivers for your kernel. The standard distro comes
- # with 2.5.
- mkdir 2.5
- mv drivers include 2.5
- # Use your kernel version to build.
- local ver=${KV:0:3} # first 3 chars of $KV, thank you bash :)
- ln -s $ver/drivers drivers
- ln -s $ver/include include
-}
-
-src_compile() {
- check_KV
- emake DIR_MOD_VER=/lib/modules/${KV} \
- DIR_MODULES_VER=/lib/modules/${KV} \
- || die "Make failed"
-
-}
-
-src_install() {
- dodoc AUTHORS ChangeLog README SUPPORTED-MODELS TECHNOTES
- dodir /lib/modules/${KV}/thinkpad
- cp ${S}/drivers/{thinkpad,smapi,superio,rtcmosram,thinkpadpm}.o \
- ${D}/lib/modules/${KV}/thinkpad
- dodir /etc/modules.d
- sed 's/%KV%/'${KV}'/g' ${FILESDIR}/thinkpad > ${D}/etc/modules.d/thinkpad
- dodir /etc/devfs.d
- echo 'REGISTER ^thinkpad/.*$ PERMISSIONS root.thinkpad 0664' \
- > ${D}/etc/devfs.d/thinkpad
- doman man/*.4
-}
-
-pkg_postinst() {
- [ "${ROOT}" == "/" ] && /usr/sbin/update-modules
- if ! grep -q '^ *INCLUDE.*devfs\.d' /etc/devfsd.conf; then
- ewarn 'Your /etc/devfsd.conf is missing the include for'
- ewarn '/etc/devfs.d/! Please fix this by adding'
- ewarn 'INCLUDE /etc/devfs.d'
- ewarn 'to your /etc/devfs.conf'
- fi
- if grep -q thinkpad /etc/devfsd.conf; then
- ewarn 'The thinkpad devfsd entry has moved to'
- ewarn '/etc/devfs.d/thinkpad, so you can remove it from'
- ewarn '/etc/devfsd.conf if you like.'
- fi
-}