diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2005-07-04 01:01:43 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2005-07-04 01:01:43 +0000 |
commit | 9c38dfdf41a5422dcf675b9017afa178d2978786 (patch) | |
tree | 5eb7ed8755dc721f1c080f2d78856573228d879e | |
parent | Add RESTRICT=test, fixes bug 97834 (diff) | |
download | gentoo-2-9c38dfdf41a5422dcf675b9017afa178d2978786.tar.gz gentoo-2-9c38dfdf41a5422dcf675b9017afa178d2978786.tar.bz2 gentoo-2-9c38dfdf41a5422dcf675b9017afa178d2978786.zip |
Initial commit. Submitted by Serkan Kaba <serkan_kaba@yahoo.com>. Note that this package is unlikely to ever bpdated - as newer versions all use the SuSE-specific TIOCGDEV ioctl.
(Portage version: 2.0.51.22-r1)
-rw-r--r-- | sys-apps/hwinfo/ChangeLog | 13 | ||||
-rw-r--r-- | sys-apps/hwinfo/Manifest | 5 | ||||
-rw-r--r-- | sys-apps/hwinfo/files/digest-hwinfo-8.38 | 1 | ||||
-rw-r--r-- | sys-apps/hwinfo/files/hwinfo-8.38-makefile-fixes.patch | 53 | ||||
-rw-r--r-- | sys-apps/hwinfo/hwinfo-8.38.ebuild | 36 | ||||
-rw-r--r-- | sys-apps/hwinfo/metadata.xml | 8 |
6 files changed, 116 insertions, 0 deletions
diff --git a/sys-apps/hwinfo/ChangeLog b/sys-apps/hwinfo/ChangeLog new file mode 100644 index 000000000000..947f42775b18 --- /dev/null +++ b/sys-apps/hwinfo/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for sys-apps/hwinfo +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwinfo/ChangeLog,v 1.1 2005/07/04 01:01:43 robbat2 Exp $ + +*hwinfo-8.38 (04 Jul 2005) + + 04 Jul 2005; Robin H. Johnson <robbat2@gentoo.org> + +files/hwinfo-8.38-makefile-fixes.patch, +metadata.xml, + +hwinfo-8.38.ebuild: + Initial commit. Submitted by Serkan Kaba <serkan_kaba@yahoo.com>. Note that + this package is unlikely to ever be updated - as newer versions all use the + SuSE-specific TIOCGDEV ioctl. + diff --git a/sys-apps/hwinfo/Manifest b/sys-apps/hwinfo/Manifest new file mode 100644 index 000000000000..5619527459b0 --- /dev/null +++ b/sys-apps/hwinfo/Manifest @@ -0,0 +1,5 @@ +MD5 df62380a6c05aa90b39a98efa3e6e733 hwinfo-8.38.ebuild 976 +MD5 9bf18c38512621782e2f300bdf133d38 files/hwinfo-8.38-makefile-fixes.patch 2119 +MD5 d2128a1dac4f1bc44f7184145687bd22 files/digest-hwinfo-8.38 63 +MD5 af6da2fef46c9c9a1d0d6b1922b3d534 files/digest-hwinfo-8.51 64 +MD5 42a7b01b1ec6e9d265716552e95d2702 files/digest-hwinfo-10.16 67 diff --git a/sys-apps/hwinfo/files/digest-hwinfo-8.38 b/sys-apps/hwinfo/files/digest-hwinfo-8.38 new file mode 100644 index 000000000000..7345fad85c44 --- /dev/null +++ b/sys-apps/hwinfo/files/digest-hwinfo-8.38 @@ -0,0 +1 @@ +MD5 260f89a3a64e215105e07cfc1ac2fced hwinfo-8.38.tar.gz 569050 diff --git a/sys-apps/hwinfo/files/hwinfo-8.38-makefile-fixes.patch b/sys-apps/hwinfo/files/hwinfo-8.38-makefile-fixes.patch new file mode 100644 index 000000000000..b84b8fbdf322 --- /dev/null +++ b/sys-apps/hwinfo/files/hwinfo-8.38-makefile-fixes.patch @@ -0,0 +1,53 @@ +diff -Naur hwinfo-8.38/Makefile hwinfo-8.38/Makefile +--- hwinfo-8.38/Makefile 2004-03-28 18:27:42.000000000 +0200 ++++ hwinfo-8.38/Makefile 2004-06-25 14:56:17.982879000 +0200 +@@ -8,7 +8,6 @@ + + include Makefile.common + +-SHARED_FLAGS = + OBJS_NO_TINY = names.o parallel.o modem.o + + .PHONY: fullstatic static shared tiny doc diet tinydiet uc tinyuc +@@ -30,22 +29,22 @@ + @make + + tiny: +- @make EXTRA_FLAGS=-DLIBHD_TINY SHARED_FLAGS= LIBS="$(SLIBS)" ++ @make EXTRA_FLAGS=-DLIBHD_TINY SHARED_FLAGS="$(SHARED_FLAGS)" LIBS="$(SLIBS)" + + diet: +- @make CC="diet gcc" EXTRA_FLAGS="-fno-pic -DDIET" SHARED_FLAGS= LIBS="$(SLIBS)" ++ @make CC="diet gcc" EXTRA_FLAGS="-fno-pic -DDIET" SHARED_FLAGS="$(SHARED_FLAGS)" LIBS="$(SLIBS)" + + tinydiet: +- @make CC="diet gcc" EXTRA_FLAGS="-fno-pic -DLIBHD_TINY -DDIET" SHARED_FLAGS= LIBS="$(SLIBS)" ++ @make CC="diet gcc" EXTRA_FLAGS="-fno-pic -DLIBHD_TINY -DDIET" SHARED_FLAGS="$(SHARED_FLAGS)" LIBS="$(SLIBS)" + + uc: +- @make CC="/opt/i386-linux-uclibc/bin/i386-uclibc-gcc" EXTRA_FLAGS="-fno-pic -DUCLIBC" SHARED_FLAGS= LIBS="$(SLIBS)" ++ @make CC="/opt/i386-linux-uclibc/bin/i386-uclibc-gcc" EXTRA_FLAGS="-fno-pic -DUCLIBC" SHARED_FLAGS="$(SHARED_FLAGS)" LIBS="$(SLIBS)" + + tinyuc: +- @make CC="/opt/i386-linux-uclibc/usr/bin/gcc" EXTRA_FLAGS="-fno-pic -DLIBHD_TINY -DUCLIBC" SHARED_FLAGS= LIBS="$(SLIBS)" ++ @make CC="/opt/i386-linux-uclibc/usr/bin/gcc" EXTRA_FLAGS="-fno-pic -DLIBHD_TINY -DUCLIBC" SHARED_FLAGS="$(SHARED_FLAGS)" LIBS="$(SLIBS)" + + static: +- make SHARED_FLAGS= LIBS="$(SLIBS)" ++ make SHARED_FLAGS="$(SHARED_FLAGS)" LIBS="$(SLIBS)" + + fullstatic: static + $(CC) -static hwinfo.o $(LDFLAGS) $(SLIBS) -o hwinfo.static +diff -Naur hwinfo-8.38.orig/Makefile.common hwinfo-8.38.new/Makefile.common +--- hwinfo-8.38.orig/Makefile.common 2004-03-02 11:08:40.000000000 +0100 ++++ hwinfo-8.38.new/Makefile.common 2004-06-25 13:29:07.000000000 +0200 +@@ -17,8 +17,8 @@ + + CC = gcc + LD = ld +-CFLAGS = -Wall -O2 -pipe -g $(SHARED_FLAGS) $(EXTRA_FLAGS) -I$(TOPDIR)/src/hd + SHARED_FLAGS = -fPIC ++CFLAGS = -Wall -O2 -pipe -g $(SHARED_FLAGS) $(EXTRA_FLAGS) -I$(TOPDIR)/src/hd + + LDFLAGS = -Lsrc + diff --git a/sys-apps/hwinfo/hwinfo-8.38.ebuild b/sys-apps/hwinfo/hwinfo-8.38.ebuild new file mode 100644 index 000000000000..37bbff8a5558 --- /dev/null +++ b/sys-apps/hwinfo/hwinfo-8.38.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwinfo/hwinfo-8.38.ebuild,v 1.1 2005/07/04 01:01:43 robbat2 Exp $ + +inherit eutils + +DESCRIPTION="hwinfo is the hardware detection tool used in SuSE Linux." +HOMEPAGE="http://www.suse.com" +DEBIAN_PV="3" +SRC_URI="ftp://ftp.iqchoice.com/pub/people/rail/gmso/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" +DEPEND="sys-fs/sysfsutils" + +src_unpack (){ + unpack ${P}.tar.gz + EPATCH_OPTS="-p1 -d ${S}" epatch ${FILESDIR}/${P}-makefile-fixes.patch + sed -i -e "s,^LIBS[ \t]*= -lhd,LIBS = -lhd -lsysfs," ${S}/Makefile + sed -i -e "s,^LIBDIR[ \t]*= /usr/lib$,LIBDIR = /usr/$(get_libdir)," ${S}/Makefile +} + +src_compile(){ + # build is NOT parallel safe + emake -j1 EXTRA_FLAGS="${CFLAGS}" || die "emake failed" +} + +src_install() { + emake install DESTDIR="${D}" || die + dodoc VERSION README COPYING ChangeLog + doman doc/hwinfo.8 + # this is the SuSE version + # somebody needs to port it still + rm ${D}/etc/init.d/hwscan +} diff --git a/sys-apps/hwinfo/metadata.xml b/sys-apps/hwinfo/metadata.xml new file mode 100644 index 000000000000..5d9f5be9d49d --- /dev/null +++ b/sys-apps/hwinfo/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>robbat2@gentoo.org</email> +</maintainer> +</pkgmetadata> |