summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-06-27 22:12:14 +0000
committerMike Frysinger <vapier@gentoo.org>2004-06-27 22:12:14 +0000
commit5ab40afb1566cdc299c26715b34d779098a7e750 (patch)
tree3aa4bb378be2781bde465d080b8dac4edbd5719e /sys-apps/nwutil
parentQA - fix use invocation (Manifest recommit) (diff)
downloadgentoo-2-5ab40afb1566cdc299c26715b34d779098a7e750.tar.gz
gentoo-2-5ab40afb1566cdc299c26715b34d779098a7e750.tar.bz2
gentoo-2-5ab40afb1566cdc299c26715b34d779098a7e750.zip
intial import
Diffstat (limited to 'sys-apps/nwutil')
-rw-r--r--sys-apps/nwutil/ChangeLog8
-rw-r--r--sys-apps/nwutil/Manifest2
-rw-r--r--sys-apps/nwutil/files/1.4-errno.patch11
-rw-r--r--sys-apps/nwutil/files/1.4-rename-debug.patch40
-rw-r--r--sys-apps/nwutil/files/digest-nwutil-1.42
-rw-r--r--sys-apps/nwutil/nwutil-1.4.ebuild41
6 files changed, 104 insertions, 0 deletions
diff --git a/sys-apps/nwutil/ChangeLog b/sys-apps/nwutil/ChangeLog
new file mode 100644
index 000000000000..c7770cc8a50e
--- /dev/null
+++ b/sys-apps/nwutil/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for sys-apps/nwutil
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/nwutil/ChangeLog,v 1.1 2004/06/27 22:12:14 vapier Exp $
+
+*nwutil-1.4 (27 Jun 2004)
+
+ 27 Jun 2004; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by me for the netwinder.
diff --git a/sys-apps/nwutil/Manifest b/sys-apps/nwutil/Manifest
new file mode 100644
index 000000000000..49a686ca9bb8
--- /dev/null
+++ b/sys-apps/nwutil/Manifest
@@ -0,0 +1,2 @@
+MD5 adbf11393298511c3bc451110a6e4367 nwutil-1.4.ebuild 5765
+MD5 1d309a746225866dceb538c121b2a30e files/digest-nwutil-1.4 129
diff --git a/sys-apps/nwutil/files/1.4-errno.patch b/sys-apps/nwutil/files/1.4-errno.patch
new file mode 100644
index 000000000000..a78c2128b2fa
--- /dev/null
+++ b/sys-apps/nwutil/files/1.4-errno.patch
@@ -0,0 +1,11 @@
+--- debug.c.orig 2004-06-26 04:21:23.881871000 +0000
++++ debug.c 2004-06-26 04:21:36.941871000 +0000
+@@ -52,7 +52,7 @@
+ #define UNLOCK outb(0x370, 0x87); outb(0x370, 0x87);
+ #define LOCK outb(0x370, 0xAA);
+
+-extern int errno;
++#include <errno.h>
+
+ int tmpSuperIO;
+
diff --git a/sys-apps/nwutil/files/1.4-rename-debug.patch b/sys-apps/nwutil/files/1.4-rename-debug.patch
new file mode 100644
index 000000000000..a5d09a57e5ef
--- /dev/null
+++ b/sys-apps/nwutil/files/1.4-rename-debug.patch
@@ -0,0 +1,40 @@
+diff -ur work.orig/Makefile work/Makefile
+--- work.orig/Makefile 2004-06-27 21:29:50.711871000 +0000
++++ work/Makefile 2004-06-27 21:31:11.591871000 +0000
+@@ -2,8 +2,8 @@
+
+ CC = gcc
+ CFLAGS = -O2 -fsigned-char -omit-frame-pointer -Wall
+-OBJS = start_wdog set_therm fan_ctrl debug
+-MANPGS = start_wdog.8 set_therm.8 fan_ctrl.8 debug.8
++OBJS = start_wdog set_therm fan_ctrl nwdebug
++MANPGS = start_wdog.8 set_therm.8 fan_ctrl.8 nwdebug.8
+ PREFIX = $(DESTDIR)/usr
+
+ all: $(OBJS)
+diff -ur work.orig/debug.8 work/debug.8
+--- work.orig/debug.8 2004-06-27 21:29:50.711871000 +0000
++++ work/debug.8 2004-06-27 21:30:54.931871000 +0000
+@@ -1,8 +1,8 @@
+-.TH debug 8 "November 8 1998" "CCC" "Corel NetWinder Utilities"
++.TH nwdebug 8 "November 8 1998" "CCC" "Corel NetWinder Utilities"
+ .SH NAME
+-debug \- low-level hardware debugger utility
++nwdebug \- low-level hardware debugger utility
+ .SH SYNOPSIS
+-.B debug
++.B nwdebug
+ .SH DESCRIPTION
+ This program allows you to display and/or modify memory or I/O registers.
+ It bears some resemblance to the DOS program of the same name. This is not
+@@ -22,8 +22,8 @@
+ ie. what the CPU sees at one particular address will be addressed at a
+ different address if a PCI device needs to do DMA.
+ .SH FILES
+-.I /sbin/debug
+-.I /man/man8/debug.8
++.I /sbin/nwdebug
++.I /man/man8/nwdebug.8
+ .SH DIAGNOSTICS
+ The program must be run by the super-user or it will fail with a polite
+ error message. This is to avoid arbitrary users from writing values into
diff --git a/sys-apps/nwutil/files/digest-nwutil-1.4 b/sys-apps/nwutil/files/digest-nwutil-1.4
new file mode 100644
index 000000000000..7d37cd9accc4
--- /dev/null
+++ b/sys-apps/nwutil/files/digest-nwutil-1.4
@@ -0,0 +1,2 @@
+MD5 f1236d04742b6b56a968374c3beec17d nwutil_1.4.orig.tar.gz 16587
+MD5 a4b95a84db62d49572bd745e36c7fcdc nwutil_1.4-3.diff.gz 4795
diff --git a/sys-apps/nwutil/nwutil-1.4.ebuild b/sys-apps/nwutil/nwutil-1.4.ebuild
new file mode 100644
index 000000000000..3a6c7a34d630
--- /dev/null
+++ b/sys-apps/nwutil/nwutil-1.4.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/nwutil/nwutil-1.4.ebuild,v 1.1 2004/06/27 22:12:14 vapier Exp $
+
+inherit eutils
+
+DEB_VER=3
+DESCRIPTION="Netwinder hardware utilities"
+HOMEPAGE="http://packages.debian.org/stable/base/nwutil"
+SRC_URI="mirror://debian/pool/main/n/nwutil/${PN}_${PV}.orig.tar.gz
+ mirror://debian/pool/main/n/nwutil/${PN}_${PV}-${DEB_VER}.diff.gz"
+
+LICENSE=""
+SLOT="0"
+KEYWORDS="-* arm"
+IUSE=""
+
+DEPEND=""
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${WORKDIR}/${PN}_${PV}-${DEB_VER}.diff
+ epatch ${FILESDIR}/${PV}-errno.patch
+ epatch ${FILESDIR}/${PV}-rename-debug.patch
+ mv {,nw}debug.c; mv {,nw}debug.8
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}" || die "emake main failed"
+ cd flashlogo
+ emake || die "emake flashlogo failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die "install main failed"
+ cd flashlogo
+ make DESTDIR=${D} install || die "install flashlogo failed"
+}