--- /dev/null
+# ChangeLog for app-laptop/smcinit
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/smcinit/ChangeLog,v 1.1 2004/11/24 16:03:03 s4t4n Exp $
+
+*smcinit-0.4 (24 Nov 2004)
+
+ 24 Nov 2004; Michele Noberasco <s4t4n@gentoo.org> smcinit-0.4.ebuild:
+ Initial import. Closes #39746.
--- /dev/null
+MD5 b7ed467109999e4ce974e17276cc2469 smcinit-0.4.ebuild 1147
+MD5 8163d568008df68d17bd36497514db70 ChangeLog 341
+MD5 43d8098cf6b1c18339b5f3934dcdf9c4 metadata.xml 253
+MD5 3254e176790847fc2528b4713e625a82 files/smcinit.conf 192
+MD5 78b68ef7f4de4826ce614b19fa2228e5 files/smcinit.initscript 693
+MD5 1072e90faa308622db9c695519cf5e9e files/digest-smcinit-0.4 64
--- /dev/null
+MD5 a1f1107d6bfd3a6f75c8da268e1c809e smcinit-0.4-1.tar.gz 32343
--- /dev/null
+# Which SMC-IRCC initializer should we run?
+#SMCEXE=smcinit
+#SMCEXE=tosh1800-smcinit
+#SMCEXE=tosh2450-smcinit
+
+# What kernel module the initializer should be applied to?
+#SMCMODULE=smsc-ircc2
--- /dev/null
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/smcinit/files/smcinit.initscript,v 1.1 2004/11/24 16:03:03 s4t4n Exp $
+
+depend() {
+ before irda
+}
+
+checkconfig() {
+ if [ -z "$SMCEXE" ] || [ -z "$SMCMODULE" ] ; then
+ eerror "You need to setup SMCEXE and SMCMODULE in /etc/conf.d/smcinit first"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+
+ ebegin "Running ${SMCEXE}"
+ /usr/sbin/${SMCEXE}
+ eend ${?} || return 1
+
+ ebegin "Loading ${SMCMODULE}"
+ modprobe ${SMCMODULE}
+ eend ${?}
+}
+
+stop() {
+ ebegin "Unloading ${SMCMODULE}"
+ modprobe -r ${SMCMODULE}
+ eend ${?}
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>mobile</herd>
+<maintainer>
+ <email>s4t4n@gentoo.org</email>
+ <name>Michele Noberasco</name>
+</maintainer>
+</pkgmetadata>
--- /dev/null
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/smcinit/smcinit-0.4.ebuild,v 1.1 2004/11/24 16:03:03 s4t4n Exp $
+
+IUSE=""
+
+MY_PV="0.4-1"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="A set of utilities to initialize a SMC-IRCC based IrDA subsystem on laptops where the BIOS does not handle it"
+HOMEPAGE="http://irda.sourceforge.net/smcinit/"
+SRC_URI="mirror://sourceforge/irda/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND=">=sys-apps/pciutils-2.1.11-r1"
+
+S=${WORKDIR}/${MY_P}
+
+src_compile()
+{
+ econf || die "Configuration failed"
+ emake CFLAGS="${CFLAGS}" || die "Compilation failed"
+}
+
+src_install()
+{
+ # First goes the software...
+ einstall PREFIX="${D}/usr" || die "Installation failed"
+
+ # ...then documentation...
+ dodoc AUTHORS CHANGELOG.Peri ChangeLog INSTALL README README.Peri README.Rob README.Tom
+ dohtml RobMiller-irda.html
+
+ # ...after that an init script...
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/${PN}.initscript ${PN}
+
+ # ...and finally its config file
+ insinto /etc/conf.d
+ newins ${FILESDIR}/${PN}.conf ${PN}
+}