summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /sys-block/nwutil
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sys-block/nwutil')
-rw-r--r--sys-block/nwutil/Manifest3
-rw-r--r--sys-block/nwutil/files/1.4-errno.patch11
-rw-r--r--sys-block/nwutil/files/1.4-rename-debug.patch40
-rw-r--r--sys-block/nwutil/files/nwutil-1.4-temp.patch24
-rw-r--r--sys-block/nwutil/metadata.xml5
-rw-r--r--sys-block/nwutil/nwutil-1.4.ebuild41
-rw-r--r--sys-block/nwutil/nwutil-1.8.ebuild19
7 files changed, 143 insertions, 0 deletions
diff --git a/sys-block/nwutil/Manifest b/sys-block/nwutil/Manifest
new file mode 100644
index 000000000000..ea64f5c66168
--- /dev/null
+++ b/sys-block/nwutil/Manifest
@@ -0,0 +1,3 @@
+DIST nwutil-1.8.tar.gz 83877 RMD160 8969d0190b67d94fda95582ab9324611ed561b70 SHA1 98464d4b9ceebca7a85477df316e3d8e387e10b8 SHA256 8a73d7e78ba57a1b49577f6dfddec15ff20ecbb2e6d971f5a334ef4b0527c80c
+DIST nwutil_1.4-3.diff.gz 4795 RMD160 1bef3a2cf0529771a17f599dd09a8b1139b72cb2 SHA1 d00f5fd502c48efa20e236c603fda61cb69406ad SHA256 d32400cb7124bb3e7167c8f6b54469a890bf73a42b99493b9f7a27cf4f6fa37e
+DIST nwutil_1.4.orig.tar.gz 16587 RMD160 34dcb18e17372fc79efa66e77c9eb5e796235ce0 SHA1 1d1252ac37f095b3ed6b0791fdfdb31f33feb0d8 SHA256 9597a44da146e8ea5944b3bdade737801c21b4e405cf469f52f49bd0e3942efd
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/nwutil-1.4-temp.patch b/sys-block/nwutil/files/nwutil-1.4-temp.patch
new file mode 100644
index 000000000000..3a786fdfa64e
--- /dev/null
+++ b/sys-block/nwutil/files/nwutil-1.4-temp.patch
@@ -0,0 +1,24 @@
+Newer kernels name the device 'temp' so try both.
+
+--- fan_ctrl.c
++++ fan_ctrl.c
+@@ -73,6 +73,8 @@ main (int argc, char **argv)
+
+ fd = open ("/dev/temperature", O_RDWR);
+ if (fd < 0)
++ fd = open ("/dev/temp", O_RDWR);
++ if (fd < 0)
+ {
+ printf ("Error %d opening /dev/temperature\n", fd);
+ return EXIT_FAILURE;
+--- set_therm.c
++++ set_therm.c
+@@ -66,6 +66,8 @@ main (int argc, char **argv)
+
+ fd = open ("/dev/temperature", O_RDWR);
+ if (fd < 0)
++ fd = open ("/dev/temp", O_RDWR);
++ if (fd < 0)
+ {
+ printf ("Error %d opening /dev/temperature\n", fd);
+ return EXIT_FAILURE;
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..fce906c7d6ad
--- /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
+# $Id$
+
+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
+ epatch "${FILESDIR}"/${P}-temp.patch
+ mv {,nw}debug.c
+ mv {,nw}debug.8
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}" || die "emake main failed"
+ emake -C flashlogo || die "emake flashlogo failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "install main failed"
+ make DESTDIR="${D}" install -C flashlogo || die "install flashlogo failed"
+}
diff --git a/sys-block/nwutil/nwutil-1.8.ebuild b/sys-block/nwutil/nwutil-1.8.ebuild
new file mode 100644
index 000000000000..2a38f8221d0d
--- /dev/null
+++ b/sys-block/nwutil/nwutil-1.8.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="Netwinder hardware utilities"
+HOMEPAGE="http://packages.debian.org/stable/base/nwutil"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* arm"
+IUSE=""
+
+DEPEND=""
+
+src_install() {
+ make DESTDIR="${D}" install || die "install main failed"
+ dodoc ChangeLog README
+}