summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonny Davies <woodchip@gentoo.org>2001-09-02 04:13:09 +0000
committerDonny Davies <woodchip@gentoo.org>2001-09-02 04:13:09 +0000
commite37bb785f8975a6bdff30c9791db0fac863aed11 (patch)
treebbcbf1966c4b7c7820d9845087743c77c4bf666e /sys-apps/isapnptools
parentnuked old revision (diff)
downloadgentoo-2-e37bb785f8975a6bdff30c9791db0fac863aed11.tar.gz
gentoo-2-e37bb785f8975a6bdff30c9791db0fac863aed11.tar.bz2
gentoo-2-e37bb785f8975a6bdff30c9791db0fac863aed11.zip
*** empty log message ***
Diffstat (limited to 'sys-apps/isapnptools')
-rw-r--r--sys-apps/isapnptools/files/isapnp.rc518
-rw-r--r--sys-apps/isapnptools/files/isapnp.rc616
-rw-r--r--sys-apps/isapnptools/isapnptools-1.23-r1.ebuild13
-rw-r--r--sys-apps/isapnptools/isapnptools-1.23-r6.ebuild43
4 files changed, 84 insertions, 6 deletions
diff --git a/sys-apps/isapnptools/files/isapnp.rc5 b/sys-apps/isapnptools/files/isapnp.rc5
new file mode 100644
index 000000000000..32fc970a651f
--- /dev/null
+++ b/sys-apps/isapnptools/files/isapnp.rc5
@@ -0,0 +1,18 @@
+#!/bin/sh
+#RCUPDATE:boot:25:This line is required for script management
+#This will enumerate the ISA PnP Boards in the system, and configure them if
+#it finds the file $CONFFILE
+
+source /etc/rc.d/config/functions
+
+CONFFILE=/etc/isapnp.conf
+
+if [ -e $CONFFILE ]; then
+ if [ -e /sbin/isapnp ]
+ then
+ ebegin "Configuring ISA PnP devices"
+ /sbin/isapnp $CONFFILE 1>&2
+ eend $? "Error configuring ISA PnP"
+ fi
+fi
+
diff --git a/sys-apps/isapnptools/files/isapnp.rc6 b/sys-apps/isapnptools/files/isapnp.rc6
new file mode 100644
index 000000000000..793d406f7cd6
--- /dev/null
+++ b/sys-apps/isapnptools/files/isapnp.rc6
@@ -0,0 +1,16 @@
+#!/sbin/runscript
+
+depend() {
+ need localmount
+}
+
+start() {
+if [ -e /etc/isapnp.conf ]; then
+ if [ -e /sbin/isapnp ]
+ then
+ ebegin "Configuring ISA PnP devices"
+ /sbin/isapnp /etc/isapnp.conf 1>&2
+ eend $? "Error configuring ISA PnP"
+ fi
+fi
+}
diff --git a/sys-apps/isapnptools/isapnptools-1.23-r1.ebuild b/sys-apps/isapnptools/isapnptools-1.23-r1.ebuild
index ee5fc9472d7a..68aa4f089134 100644
--- a/sys-apps/isapnptools/isapnptools-1.23-r1.ebuild
+++ b/sys-apps/isapnptools/isapnptools-1.23-r1.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/isapnptools/isapnptools-1.23-r1.ebuild,v 1.1 2001/02/07 15:51:27 achim Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/isapnptools/isapnptools-1.23-r1.ebuild,v 1.2 2001/09/02 04:13:09 woodchip Exp $
A=${P}.tgz
S=${WORKDIR}/${P}
@@ -23,20 +23,21 @@ src_unpack() {
src_compile() {
- try ./configure --prefix=/usr --mandir=/usr/share/man --host=${CHOST}
- try make ${MAKEOPTS}
+ ./configure --prefix=/usr --mandir=/usr/share/man --host=${CHOST} || die
+ emake || die
}
src_install() {
- try make DESTDIR=${D} install
+ make DESTDIR=${D} install || die
dodoc AUTHORS ChangeLog COPYING README NEWS
-
docinto txt
dodoc doc/README* doc/*.txt test/*.txt
dodoc etc/isapnp.*
-}
+ exeinto /etc/rc.d/init.d
+ newexe ${FILESDIR}/isapnp.rc5 isapnp
+}
diff --git a/sys-apps/isapnptools/isapnptools-1.23-r6.ebuild b/sys-apps/isapnptools/isapnptools-1.23-r6.ebuild
new file mode 100644
index 000000000000..f006041a82c7
--- /dev/null
+++ b/sys-apps/isapnptools/isapnptools-1.23-r6.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2000 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Author Achim Gottinger <achim@gentoo.org>
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/isapnptools/isapnptools-1.23-r6.ebuild,v 1.1 2001/09/02 04:13:09 woodchip Exp $
+
+A=${P}.tgz
+S=${WORKDIR}/${P}
+DESCRIPTION="Tools for configuring ISA PnP devices"
+SRC_URI="ftp://metalab.unc.edu/pub/Linux/system/hardware/${A}"
+HOMEPAGE="http://www.roestock.demon.co.uk/isapnptools/"
+
+DEPEND="virtual/glibc"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}/src
+ cp pnpdump_main.c pnpdump_main.c.orig
+ sed -e "s/^static FILE\* o_file.*//" \
+ -e "s/o_file/stdout/g" \
+ -e "s/stdout_name/o_file_name/g" pnpdump_main.c.orig > pnpdump_main.c
+
+}
+
+src_compile() {
+
+ ./configure --prefix=/usr --mandir=/usr/share/man --host=${CHOST} || die
+ emake || die
+
+}
+
+src_install() {
+
+ make DESTDIR=${D} install || die
+
+ dodoc AUTHORS ChangeLog COPYING README NEWS
+ docinto txt
+ dodoc doc/README* doc/*.txt test/*.txt
+ dodoc etc/isapnp.*
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/isapnp.rc6 isapnp
+
+}