diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-block/nwutil |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-block/nwutil')
-rw-r--r-- | sys-block/nwutil/Manifest | 11 | ||||
-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/nwutil-1.4-temp.patch | 24 | ||||
-rw-r--r-- | sys-block/nwutil/metadata.xml | 8 | ||||
-rw-r--r-- | sys-block/nwutil/nwutil-1.4.ebuild | 40 | ||||
-rw-r--r-- | sys-block/nwutil/nwutil-1.8.ebuild | 18 |
7 files changed, 152 insertions, 0 deletions
diff --git a/sys-block/nwutil/Manifest b/sys-block/nwutil/Manifest new file mode 100644 index 000000000000..ac8f98ec75b8 --- /dev/null +++ b/sys-block/nwutil/Manifest @@ -0,0 +1,11 @@ +AUX 1.4-errno.patch 276 SHA256 ab450d4eb937a95867432dba2da16a0120c8e026c38dbf476240afdd3c70d1d8 SHA512 695beed907809bd4bdacdf85beb7a512abe37353a8b4f51faecdffc3dd6ca7e3575be94fb95077be3326205f7ad2cad2a6f5904819eda954b852d3574bcbb5ee WHIRLPOOL 150c49852d87a61dda749aab36e39590162ce71f7a56aed60f1500fc0960d7b92aeb26299e252cda2ab44f67871fd8f9e85230221848938ecff498ee08e03ba6 +AUX 1.4-rename-debug.patch 1496 SHA256 70e579f500110283a1af3199f5fd0a9508b3b6675134b0a59ffb7dc90a6e889b SHA512 fd6641889238a9a362a2bbc22fc91b3900d0c2b0ca3bbbd9e4c2fb943f06ae79e8bde63ef9a84149db68c1ba2edfb9d18306d074bd4dbe6a22f8c69a68769c70 WHIRLPOOL e83884993965eb81d4e776734f4a74b71012ee7967b0fa86549507c7f07321c28376c3417509718002d948e94f29a95213a3397ce1ec16297db3a0ddf1543b7b +AUX nwutil-1.4-temp.patch 625 SHA256 91b35b5d0a240916226ab9bd98494606f86db4da0e1e81b8e85fae5d5b336e64 SHA512 5e6ad134d5b1611ac6d1284b3f65e4de5c797c9890f01589cf0cda2a26da5e2948f942b969c7fbe5baec861b9b654e7ff602724927ca9c51caca7d0a753883ec WHIRLPOOL 7465133da9c181c629b68b9373dbc7afe666ceb5e2fc96b85f52c9e802746e383ada80ced2d7847d9ffd86e6bf99386a512a8f919cc88c20d59c268ce410a616 +DIST nwutil-1.8.tar.gz 83877 SHA256 8a73d7e78ba57a1b49577f6dfddec15ff20ecbb2e6d971f5a334ef4b0527c80c SHA512 84d9da9fea1a5e6908bf330c2c18cacaf756af71f275b21fba336ecab00dd2506d727c9be18e1ac465315c36a75b523f78b9628ba5b6076e9907642c3e1ad21b WHIRLPOOL 7437513b944e5af6d90f5281a2e5a1b5f64dd8dec6c75c9e67fe3aa48279e38b31e0eb568fe188c020a462ac47e81604d451a89f7547f892bda66028966707e3 +DIST nwutil_1.4-3.diff.gz 4795 SHA256 d32400cb7124bb3e7167c8f6b54469a890bf73a42b99493b9f7a27cf4f6fa37e SHA512 d0366dd29435b9bbcaed12c23adfae19f78e3bd5ab79fdffb8c607f539eaba1c6a22f37ed97367395f1b0fb57ff5f72ffe563865eb3926950fb4023820e6895e WHIRLPOOL d976c0386774c512c3b3a8d6f74b50924378581eb9dc153f9f7ea20e5d4a46b024a2c0754d9152153464cba1177e42b4014d5366431c976e20d08538f508d63a +DIST nwutil_1.4.orig.tar.gz 16587 SHA256 9597a44da146e8ea5944b3bdade737801c21b4e405cf469f52f49bd0e3942efd SHA512 8bf1642db94f61295a0664868a5802a8e60a0f785807a8ef21d310672ea65fc48164d47be463fc583850e0c02888e4ab0008bd22acc90b17a89a8576998245f0 WHIRLPOOL 228a446d342caa4d6eb5a4f08e33859cbda2b25ce81940561e2a3ef30fe1351a74b727b68ddd8301309b7965934277ea196cee48a6c81d1c1b1e555f66ac61e8 +EBUILD nwutil-1.4.ebuild 974 SHA256 6ab442fd8b74b8d35a0dc2451bb1a56feafa007e0c819bde3420626072dd2067 SHA512 bcea3232c376cc49bcdd0555089213133ccdbb4405d47b8ce1f4ae0e8e4ba841b5c80f124d97d9066a90f297508fc9c56795a9cbcbe4d552b3bdf90b656d16c4 WHIRLPOOL 85cba1aba6e544fe35067bfcb385224fb116966631e2faa0e6d75fe2017a9cbae417aeca5a834dfa698974eaee0e7b16b78e5514fc2ffb3cfe61045210a24267 +EBUILD nwutil-1.8.ebuild 410 SHA256 02044450ffe55b8174543b12fb67dd1aa8a49b30867dfa6cbdc49b8c1773161e SHA512 28bd0f6b8dbf566ee1d273443051ee3672e54cea37c03c1d5d875160c4f173ba8659c1427c5844940d4787cc1983f6bec817abf0f5f9215a292a53bc6f9c9254 WHIRLPOOL c3193b43a8a9a278e97053e8cdef5680bb3f66fb3d7d38fa8795801057035f1b692115699b21b48e1c3efc0fa9421482d3686f09e10d42dcd28a712ff418d801 +MISC ChangeLog 2554 SHA256 72d1a6d90238925a7e75409a51ef676971058e3756986851543d58d9691e8275 SHA512 d37f23a1e57a980adbec000fdfd877e281bd1872eef2396dba6f2d1270d7a8a58dc58bda163cd81ccf88a00bc168942637ea00256bff9cdaa4f1a81ad7ac4de0 WHIRLPOOL 1911a2d20ad288f56a3b516344a9678e05dba7e52abb84725dad4401829a0d27008e136b609ef388914edec889fe806430da355632fe54c2db75784fff94fe18 +MISC ChangeLog-2015 929 SHA256 9d30fd5d55de2e583c7cd71db858576f327d6f7964d3f2e5faaaaa49c932c04c SHA512 8ac7ed4be5d9a52183f91f1d213ed85a33ad39ae63aa9190dd5bb027cdce6ec861284f6f1d827c78a275751b678a2cd6b5f7a7d6c380b4b1ca202649c357d654 WHIRLPOOL edc4f4c981dc5dff728b9d59cdffd1943bc1bb819f9d5924707af72e793cc606d7908a8d72dcae3aa0c8d0770b035c9c843a0afdd372a9dfa85530293f21d72b +MISC metadata.xml 255 SHA256 2329f28bac0cd2e531f9e28d5d16d6c2f0a20878723e101565aefc5233b33531 SHA512 4408b5018e974df4d7508f29e255f318bbd09b4056927cae6406ff1f427c06d5d655f677a28440cb84af04e411c88e4582f9ad1ea76829afeee0bbe4e3841c2f WHIRLPOOL fc074050885e70dd142f3d3de3b966b62dd7bb1d095e6ab94f78962d8a1adebc6297fa3889093c3752e82afe170baece19e8458e9e2387b5ed52dbb6efe66e09 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..3101c4efc863 --- /dev/null +++ b/sys-block/nwutil/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>arm@gentoo.org</email> + <name>Gentoo Linux ARM Development</name> +</maintainer> +</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..7b77c5c4f9bf --- /dev/null +++ b/sys-block/nwutil/nwutil-1.4.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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..366ca791f466 --- /dev/null +++ b/sys-block/nwutil/nwutil-1.8.ebuild @@ -0,0 +1,18 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 +} |