diff options
Diffstat (limited to 'sys-block')
-rw-r--r-- | sys-block/nwutil/ChangeLog | 14 | ||||
-rw-r--r-- | sys-block/nwutil/Manifest | 6 | ||||
-rw-r--r-- | sys-block/nwutil/files/1.4-errno.patch | 11 | ||||
-rw-r--r-- | sys-block/nwutil/files/1.4-rename-debug.patch | 40 | ||||
-rw-r--r-- | sys-block/nwutil/files/digest-nwutil-1.4 | 2 | ||||
-rw-r--r-- | sys-block/nwutil/metadata.xml | 5 | ||||
-rw-r--r-- | sys-block/nwutil/nwutil-1.4.ebuild | 41 |
7 files changed, 119 insertions, 0 deletions
diff --git a/sys-block/nwutil/ChangeLog b/sys-block/nwutil/ChangeLog new file mode 100644 index 000000000000..6804f0cbae3d --- /dev/null +++ b/sys-block/nwutil/ChangeLog @@ -0,0 +1,14 @@ +# ChangeLog for sys-apps/nwutil +# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-block/nwutil/ChangeLog,v 1.1 2005/03/06 00:50:07 ciaranm Exp $ + +*nwutil-1.4 (06 Mar 2005) + + 06 Mar 2005; Ciaran McCreesh <ciaranm@gentoo.org> +metadata.xml, + +files/1.4-errno.patch, +files/1.4-rename-debug.patch, +nwutil-1.4.ebuild: + Moved from sys-apps/nwutil to sys-block/nwutil. + +*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-block/nwutil/Manifest b/sys-block/nwutil/Manifest new file mode 100644 index 000000000000..7fb8eadc035e --- /dev/null +++ b/sys-block/nwutil/Manifest @@ -0,0 +1,6 @@ +MD5 f3d595254a11404fa6e2082e5bf98c4b nwutil-1.4.ebuild 1034 +MD5 96c35175ada47b9abde2299fb0c733f5 ChangeLog 345 +MD5 48834ccc5ffa5b7734f8cac702fcd38a metadata.xml 156 +MD5 1d309a746225866dceb538c121b2a30e files/digest-nwutil-1.4 129 +MD5 78ccbcfded4d224832705ac6aabfe671 files/1.4-rename-debug.patch 1496 +MD5 9f531354a568f2d63816ddc8ebfa9494 files/1.4-errno.patch 276 diff --git a/sys-block/nwutil/files/1.4-errno.patch b/sys-block/nwutil/files/1.4-errno.patch new file mode 100644 index 000000000000..a78c2128b2fa --- /dev/null +++ b/sys-block/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-block/nwutil/files/1.4-rename-debug.patch b/sys-block/nwutil/files/1.4-rename-debug.patch new file mode 100644 index 000000000000..a5d09a57e5ef --- /dev/null +++ b/sys-block/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-block/nwutil/files/digest-nwutil-1.4 b/sys-block/nwutil/files/digest-nwutil-1.4 new file mode 100644 index 000000000000..7d37cd9accc4 --- /dev/null +++ b/sys-block/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-block/nwutil/metadata.xml b/sys-block/nwutil/metadata.xml new file mode 100644 index 000000000000..5454528f2093 --- /dev/null +++ b/sys-block/nwutil/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>arm</herd> +</pkgmetadata> diff --git a/sys-block/nwutil/nwutil-1.4.ebuild b/sys-block/nwutil/nwutil-1.4.ebuild new file mode 100644 index 000000000000..509320ce2e85 --- /dev/null +++ b/sys-block/nwutil/nwutil-1.4.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-block/nwutil/nwutil-1.4.ebuild,v 1.1 2005/03/06 00:50:07 ciaranm 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="GPL-2" +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" +} |