Initial import of app-laptop/smcinit, version 0.4, an app to initialize a SMC-IRCC...
authorMichele Noberasco <s4t4n@gentoo.org>
Wed, 24 Nov 2004 16:03:03 +0000 (16:03 +0000)
committerMichele Noberasco <s4t4n@gentoo.org>
Wed, 24 Nov 2004 16:03:03 +0000 (16:03 +0000)
app-laptop/smcinit/ChangeLog [new file with mode: 0644]
app-laptop/smcinit/Manifest [new file with mode: 0644]
app-laptop/smcinit/files/digest-smcinit-0.4 [new file with mode: 0644]
app-laptop/smcinit/files/smcinit.conf [new file with mode: 0644]
app-laptop/smcinit/files/smcinit.initscript [new file with mode: 0755]
app-laptop/smcinit/metadata.xml [new file with mode: 0644]
app-laptop/smcinit/smcinit-0.4.ebuild [new file with mode: 0644]

diff --git a/app-laptop/smcinit/ChangeLog b/app-laptop/smcinit/ChangeLog
new file mode 100644 (file)
index 0000000..fc935a8
--- /dev/null
@@ -0,0 +1,8 @@
+# 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.
diff --git a/app-laptop/smcinit/Manifest b/app-laptop/smcinit/Manifest
new file mode 100644 (file)
index 0000000..2ae180f
--- /dev/null
@@ -0,0 +1,6 @@
+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
diff --git a/app-laptop/smcinit/files/digest-smcinit-0.4 b/app-laptop/smcinit/files/digest-smcinit-0.4
new file mode 100644 (file)
index 0000000..9f224b0
--- /dev/null
@@ -0,0 +1 @@
+MD5 a1f1107d6bfd3a6f75c8da268e1c809e smcinit-0.4-1.tar.gz 32343
diff --git a/app-laptop/smcinit/files/smcinit.conf b/app-laptop/smcinit/files/smcinit.conf
new file mode 100644 (file)
index 0000000..154f2d6
--- /dev/null
@@ -0,0 +1,7 @@
+# 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
diff --git a/app-laptop/smcinit/files/smcinit.initscript b/app-laptop/smcinit/files/smcinit.initscript
new file mode 100755 (executable)
index 0000000..694a737
--- /dev/null
@@ -0,0 +1,33 @@
+#!/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 ${?}
+}
diff --git a/app-laptop/smcinit/metadata.xml b/app-laptop/smcinit/metadata.xml
new file mode 100644 (file)
index 0000000..f54702d
--- /dev/null
@@ -0,0 +1,9 @@
+<?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>
diff --git a/app-laptop/smcinit/smcinit-0.4.ebuild b/app-laptop/smcinit/smcinit-0.4.ebuild
new file mode 100644 (file)
index 0000000..162d5dd
--- /dev/null
@@ -0,0 +1,44 @@
+# 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}
+}