path fixing bug #62786
authorDoug Goldstein <cardoe@gentoo.org>
Sat, 9 Oct 2004 08:45:46 +0000 (08:45 +0000)
committerDoug Goldstein <cardoe@gentoo.org>
Sat, 9 Oct 2004 08:45:46 +0000 (08:45 +0000)
sys-apps/pcmcia-cs/ChangeLog
sys-apps/pcmcia-cs/Manifest
sys-apps/pcmcia-cs/files/digest-pcmcia-cs-3.2.7-r2 [new file with mode: 0644]
sys-apps/pcmcia-cs/files/pcmcia-cs-3.2.7-move-pnp-ids-to-usr-share-misc.patch [new file with mode: 0644]
sys-apps/pcmcia-cs/pcmcia-cs-3.2.7-r2.ebuild [new file with mode: 0644]
sys-apps/usbutils/ChangeLog
sys-apps/usbutils/Manifest
sys-apps/usbutils/files/digest-usbutils-0.11-r5 [new file with mode: 0644]
sys-apps/usbutils/files/usbutils-0.11-fix-usb-ids-man-page-ref.patch [new file with mode: 0644]
sys-apps/usbutils/usbutils-0.11-r5.ebuild [new file with mode: 0644]

index 31417e8040b9e008ddc969d830ab5331d1a661a0..4c0b3528215d85264393396c24a2d4d92ecb6a12 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for sys-apps/pcmcia-cs
 # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcmcia-cs/ChangeLog,v 1.74 2004/10/04 05:11:18 iggy Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcmcia-cs/ChangeLog,v 1.75 2004/10/09 08:45:46 cardoe Exp $
+
+*pcmcia-cs-3.2.7-r2 (09 Oct 2004)
+
+  09 Oct 2004; Doug Goldstein <cardoe@gentoo.org>
+  +files/pcmcia-cs-3.2.7-move-pnp-ids-to-usr-share-misc.patch,
+  +pcmcia-cs-3.2.7-r2.ebuild:
+  path fixing bug #62786
 
   04 Oct 2004; <iggy@gentoo.org> pcmcia-cs-3.2.7-r1.ebuild:
   switched custom ARCH setting code to use set_arch_to_* from eutils
index 6cf9f42ad5585d5c6946473d80e4276acabca4d9..0a3914b00b3cbd9d74ed6cc25fb5d8a1a80cceb3 100644 (file)
@@ -1,31 +1,24 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
 MD5 d94253e6b6db5a107754140b8b5a6384 pcmcia-cs-3.2.4.ebuild 4308
-MD5 2a088eafbf7cb60de626424b36677999 pcmcia-cs-3.2.7-r1.ebuild 4815
+MD5 ac69abc850da86049fca72e2dc79a029 pcmcia-cs-3.2.7-r2.ebuild 4889
+MD5 19fd766bac8e110b4620363a1ace26dd metadata.xml 159
 MD5 9cb0e20339d778261fa9b617a9bd9b6e pcmcia-cs-3.1.34-r8.ebuild 4089
+MD5 c53adbf4078e1aba47d2f790989b8c8d ChangeLog 15892
+MD5 d264ebebd9b9cc4cf613efe9648b1c08 pcmcia-cs-3.2.7.ebuild 4873
 MD5 f801e40c6bcb9ef932085cb198a8c579 pcmcia-cs-3.2.5-r1.ebuild 5375
 MD5 27b6ad5ee172657a5676ed4137d4132e pcmcia-cs-3.2.5.ebuild 4540
-MD5 d264ebebd9b9cc4cf613efe9648b1c08 pcmcia-cs-3.2.7.ebuild 4873
-MD5 c53adbf4078e1aba47d2f790989b8c8d ChangeLog 15892
-MD5 19fd766bac8e110b4620363a1ace26dd metadata.xml 159
-MD5 157ac5bc22e938e1c2268c1f2610420c files/digest-pcmcia-cs-3.2.5-r1 379
-MD5 310551d0852ba9c1fe5c0f8c231c3589 files/digest-pcmcia-cs-3.2.7-r1 287
-MD5 693d508b7dd24e64735b5ba4a16e699b files/pcmcia.rc 2038
+MD5 2a088eafbf7cb60de626424b36677999 pcmcia-cs-3.2.7-r1.ebuild 4815
+MD5 c1034d56e6decdb7d4f732bfff70088a files/digest-pcmcia-cs-3.1.34-r8 133
 MD5 8662e0e954d0cde8b84f76691c910e7a files/digest-pcmcia-cs-3.2.4 652
-MD5 f8f190b2ddbf95e58f3abf55fc303d27 files/digest-pcmcia-cs-3.2.5 150
-MD5 310551d0852ba9c1fe5c0f8c231c3589 files/digest-pcmcia-cs-3.2.7 287
+MD5 157ac5bc22e938e1c2268c1f2610420c files/digest-pcmcia-cs-3.2.5-r1 379
 MD5 8621a69779c0a084e6092f495ac08cde files/gentoo-pcmcia-cs-3.1.34.patch 589
-MD5 da3f5dc50768f0a5d9868dd5bd227329 files/network 768
-MD5 614f873dfdb6afcff9a631d64eada8e5 files/ppc.config.opts 1687
+MD5 f8f190b2ddbf95e58f3abf55fc303d27 files/digest-pcmcia-cs-3.2.5 150
+MD5 310551d0852ba9c1fe5c0f8c231c3589 files/digest-pcmcia-cs-3.2.7-r1 287
+MD5 310551d0852ba9c1fe5c0f8c231c3589 files/digest-pcmcia-cs-3.2.7-r2 287
 MD5 3046f6b0a3025d78a1ecbefac12484b0 files/pcmcia.conf 549
+MD5 693d508b7dd24e64735b5ba4a16e699b files/pcmcia.rc 2038
 MD5 0f50b04b5efd5cad60974dc51c6ce470 files/cardinfo-install-3.2.7.patch 857
 MD5 6c67e080235f83a3cb14be6cf3d2c872 files/hermes.conf 1859
-MD5 c1034d56e6decdb7d4f732bfff70088a files/digest-pcmcia-cs-3.1.34-r8 133
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.2.6 (GNU/Linux)
-
-iD8DBQFBYNt3MSkoRwEucGERAtsjAKCPKYa+hE1rVtsFXxYxxH77CQ998gCfTfEE
-RPg1sTrUstQhHPU6/oUR3Mg=
-=OdQL
------END PGP SIGNATURE-----
+MD5 614f873dfdb6afcff9a631d64eada8e5 files/ppc.config.opts 1687
+MD5 310551d0852ba9c1fe5c0f8c231c3589 files/digest-pcmcia-cs-3.2.7 287
+MD5 ec6d7ed3b83d1af45933e3e8af41796a files/pcmcia-cs-3.2.7-move-pnp-ids-to-usr-share-misc.patch 1436
+MD5 da3f5dc50768f0a5d9868dd5bd227329 files/network 768
diff --git a/sys-apps/pcmcia-cs/files/digest-pcmcia-cs-3.2.7-r2 b/sys-apps/pcmcia-cs/files/digest-pcmcia-cs-3.2.7-r2
new file mode 100644 (file)
index 0000000..c3aa9a6
--- /dev/null
@@ -0,0 +1,4 @@
+MD5 e8498bdbe8ec2dde41fbddcf65cd900a pcmcia-cs-3.2.7.tar.gz 1273963
+MD5 5d3bd937044d982271522b055a04ddc6 pcmcia-cs-3.2.7-module-init-tools.diff.gz 463
+MD5 92e42d6e70fce9f0c4d5e2c5b7d47279 pcmcia-cs-3.2.5-ppc-fix.diff.gz 323
+MD5 2ddaa8ff53be492b4cd3ef4483f7cf1b monitor-0.13e.patch 22530
diff --git a/sys-apps/pcmcia-cs/files/pcmcia-cs-3.2.7-move-pnp-ids-to-usr-share-misc.patch b/sys-apps/pcmcia-cs/files/pcmcia-cs-3.2.7-move-pnp-ids-to-usr-share-misc.patch
new file mode 100644 (file)
index 0000000..6730972
--- /dev/null
@@ -0,0 +1,38 @@
+diff -urN pcmcia-cs-3.2.7.orig/debug-tools/Makefile pcmcia-cs-3.2.7/debug-tools/Makefile
+--- pcmcia-cs-3.2.7.orig/debug-tools/Makefile  2004-08-30 14:16:45.902884696 -0500
++++ pcmcia-cs-3.2.7/debug-tools/Makefile       2004-08-30 14:21:01.933962056 -0500
+@@ -66,7 +66,7 @@
+ ifdef CONFIG_PNP_BIOS
+       cp -f lspnp setpnp $(PREFIX)/sbin
+       @mkdir -p $(PREFIX)/usr/share
+-      cp -f pnp.ids $(PREFIX)/usr/share
++      cp -f pnp.ids $(PREFIX)/usr/share/misc
+ endif
+ 
+ include ../rules.mk
+diff -urN pcmcia-cs-3.2.7.orig/debug-tools/lspnp.c pcmcia-cs-3.2.7/debug-tools/lspnp.c
+--- pcmcia-cs-3.2.7.orig/debug-tools/lspnp.c   2004-08-30 14:16:45.912883176 -0500
++++ pcmcia-cs-3.2.7/debug-tools/lspnp.c        2004-08-30 14:21:15.193946232 -0500
+@@ -154,7 +154,7 @@
+     char s[133], *t;
+     int n;
+     struct eisa_id *id;
+-    FILE *f = fopen("/usr/share/pnp.ids", "r");
++    FILE *f = fopen("/usr/share/misc/pnp.ids", "r");
+     
+     if (f == NULL)
+       return;
+diff -urN pcmcia-cs-3.2.7.orig/man/lspnp.8 pcmcia-cs-3.2.7/man/lspnp.8
+--- pcmcia-cs-3.2.7.orig/man/lspnp.8   2004-08-30 14:16:45.918882264 -0500
++++ pcmcia-cs-3.2.7/man/lspnp.8        2004-08-30 14:21:26.814179688 -0500
+@@ -36,8 +36,8 @@
+ .B \-v
+ Selects more verbose output.  Can be used more than once.
+ .SH FILES
+-.TP \w'/usr/share/pnp.ids\ \ \ \ |\|'u
+-/usr/share/pnp.ids
++.TP \w'/usr/share/misc/pnp.ids\ \ \ \ |\|'u
++/usr/share/misc/pnp.ids
+ A database of known Plug and Play device ID's.
+ .TP
+ /proc/bus/pnp/...
diff --git a/sys-apps/pcmcia-cs/pcmcia-cs-3.2.7-r2.ebuild b/sys-apps/pcmcia-cs/pcmcia-cs-3.2.7-r2.ebuild
new file mode 100644 (file)
index 0000000..f4e9f77
--- /dev/null
@@ -0,0 +1,174 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcmcia-cs/pcmcia-cs-3.2.7-r2.ebuild,v 1.1 2004/10/09 08:45:46 cardoe Exp $
+
+inherit eutils
+
+OV="orinoco-0.13e"
+
+DESCRIPTION="PCMCIA tools for Linux"
+SRC_URI="mirror://sourceforge/pcmcia-cs/${P}.tar.gz
+               http://dev.gentoo.org/~latexer/files/patches/${P}-module-init-tools.diff.gz
+               ppc? ( http://dev.gentoo.org/~latexer/files/patches/pcmcia-cs-3.2.5-ppc-fix.diff.gz )
+               http://ozlabs.org/people/dgibson/dldwd/monitor-0.13e.patch"
+
+HOMEPAGE="http://pcmcia-cs.sourceforge.net"
+IUSE="X trusted build apm pnp nocardbus"
+DEPEND="virtual/os-headers
+               >=sys-apps/sed-4
+               X? ( virtual/x11 )"
+RDEPEND=""
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86"
+
+# Note: To use this ebuild, you should have the usr/src/linux symlink to
+# the kernel directory that pcmcia-cs should use for configuration.
+
+src_unpack() {
+       # Check to make sure we have a kernel to compile against
+       check_KV
+
+       unpack ${P}.tar.gz || die "unpack failed"
+
+       # 3.2.7 includes the latest stable orinoco (0.13e), so just patch to add
+       # monitor mode
+       cd ${S}/wireless
+       epatch ${DISTDIR}/monitor-0.13e.patch
+
+       cd ${S}
+
+       # Fix for module-init-tools systems
+       epatch ${DISTDIR}/${P}-module-init-tools.diff.gz
+
+       # Fix for ppc on newer benh kernels
+       [ "${ARCH}" == "ppc" ] && epatch ${DISTDIR}/pcmcia-cs-3.2.5-ppc-fix.diff.gz
+
+       # Install man-pages into /usr/share/man
+       sed -i -e 's:usr/man:usr/share/man:g' Configure \
+               || die "sed Configure failed (2)"
+
+       epatch ${FILESDIR}/pcmcia-cs-3.2.7-move-pnp-ids-to-usr-share-misc.patch
+
+       # Install cardinfo and xcardinfo into /usr/bin instead of /usr/X11R6/bin
+       cd ${S}
+       epatch ${FILESDIR}/cardinfo-install-3.2.7.patch
+}
+
+src_compile() {
+       local myconf myarch
+
+       # There's now a configure option for whether to build X tools
+       if use X; then
+               myconf="${myconf} --x11"
+       else
+               myconf="${myconf} --nox11"
+       fi
+
+       if use trusted; then
+               myconf="${myconf} --trust"
+       else
+               myconf="${myconf} --notrust"
+       fi
+
+       # Note that when built with apm support, pcmcia-cs will require a
+       # kernel with APM support
+       if use apm; then
+               myconf="${myconf} --apm"
+       else
+               myconf="${myconf} --noapm"
+       fi
+
+       # Note that when built with pnp support, pcmcia-cs will require a
+       # kernel with ISA PnP support
+       if use pnp; then
+               myconf="${myconf} --pnp"
+       else
+               myconf="${myconf} --nopnp"
+       fi
+
+       if use nocardbus; then
+               myconf="${myconf} --nocardbus"
+       else
+               myconf="${myconf} --cardbus"
+       fi
+
+       set_arch_to_kernel
+       # Use $CFLAGS for user tools, but standard kernel optimizations
+       # for the kernel modules (for compatibility).
+       #
+       # The --srctree option tells pcmcia-cs to configure for the kernel
+       # in /usr/src/linux rather than the currently-running kernel.
+       # It's Gentoo Linux policy to configure for
+       # the kernel in /usr/src/linux
+       ./Configure -n \
+               --target=${D} \
+               --srctree \
+               --kernel=/usr/src/linux \
+               --arch="${myarch}" \
+               --uflags="$CFLAGS" \
+               --kflags="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer" \
+               $myconf || die "failed configuring"
+
+       sed -i -e '/^HAS_FORMS/d ; s/^FLIBS=".*"/FLIBS=""/' config.out config.mk
+
+       emake DO_ORINOCO=1 all || die "failed compiling"
+}
+
+src_install () {
+       make PREFIX=${D} install || die "failed installing"
+       set_arch_to_portage
+
+       # remove included rc scripts since we have our own
+       rm -rf ${D}/etc/rc*.d
+
+       insinto /etc/conf.d
+       newins ${FILESDIR}/pcmcia.conf pcmcia
+
+       exeinto /etc/pcmcia
+       doexe ${FILESDIR}/network
+
+       # install our own init script
+       exeinto /etc/init.d
+       newexe ${FILESDIR}/pcmcia.rc pcmcia
+
+       # documentation
+       if use build; then
+               rm -rf ${D}/usr/share/man
+       else
+               dodoc BUGS CHANGES COPYING LICENSE MAINTAINERS README \
+                       README-2.4 SUPPORTED.CARDS doc/*
+       fi
+       rm -f ${D}/etc/modules.conf
+       rm -rf ${D}/var/lib/pcmcia
+
+       # if on ppc set the ppc revised config.opts
+       if [ "${ARCH}" = "ppc" ]; then
+               insinto /etc/pcmcia
+               newins ${FILESDIR}/ppc.config.opts config.opts
+       fi
+}
+
+pkg_postinst() {
+       okvminor="${KV#*.}" ; okvminor="${okvminor%%.*}"
+       if [ "${okvminor}" -lt 5 ]
+       then
+               depmod -a
+
+               einfo "To avail yourself of the pcmcia-cs drivers, you have to disable the"
+               einfo "PCMCIA support in the kernel.  (Otherwise, you might experience"
+               einfo "CardServices version mismatch errors)"
+               einfo ""
+               einfo "Proper kernel config for this package is that PCMCIA/CardBus under"
+               einfo "General Setup is off and Wireless LAN (non-ham radio) is on but"
+               einfo "no modules or drivers turned on under Network Device Support"
+               einfo "if you have wireless."
+               einfo ""
+               einfo "Also note it now appears that you need CONFIG_CRC32 turned on"
+               einfo "These are the CRC32 Library functions in the config"
+       else
+               einfo "For 2.5/2.6 kernels, the PCMCIA support from the kernel should"
+               einfo "be used. Enable PCMCIA and any further drivers you need there,"
+               einfo "and then use this package to install the PCMCIA tools."
+       fi
+}
index c6c70dcc4473f229557fe99ca5c0b9f196458882..2c48ea091f915c52be0266af3421cd70804cded8 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for sys-apps/usbutils
 # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/usbutils/ChangeLog,v 1.29 2004/09/22 12:21:53 liquidx Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/usbutils/ChangeLog,v 1.30 2004/10/09 08:42:37 cardoe Exp $
+
+*usbutils-0.11-r5 (09 Oct 2004)
+
+  09 Oct 2004; Doug Goldstein <cardoe@gentoo.org>
+  +files/usbutils-0.11-fix-usb-ids-man-page-ref.patch,
+  +usbutils-0.11-r5.ebuild:
+  path fixing bug #62786
 
 *usbutils-0.11-r4 (22 Sep 2004)
 
index bbad558a3f0a5bcf8e83f5256aa58b8c28506da8..6ca35e27b6436a3575d89a32a7f513c95b56f6ef 100644 (file)
@@ -1,8 +1,11 @@
-MD5 bdd6de36e85f7f0cf43b48fe1490c496 ChangeLog 3512
-MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
+MD5 14e37677cce33d258fd639bb095fb88f usbutils-0.11-r5.ebuild 1474
 MD5 5891bb850ba9b34c67c037c90f3a1016 usbutils-0.11-r3.ebuild 1390
+MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
+MD5 bdd6de36e85f7f0cf43b48fe1490c496 ChangeLog 3512
 MD5 2a3ab2fbd47668ba8fb125e2f80aa898 usbutils-0.11-r4.ebuild 1396
 MD5 ff18a11aef5916bf61226bf1d9503b15 files/digest-usbutils-0.11-r3 128
+MD5 d20a32b2ea8220b81490216ee51cba82 files/usbutils-0.11-fix-usb-ids-man-page-ref.patch 384
+MD5 f703ade59119743d4225df9fb4623aa8 files/digest-usbutils-0.11-r5 128
 MD5 f703ade59119743d4225df9fb4623aa8 files/digest-usbutils-0.11-r4 128
-MD5 02a749d768d2c60df972e04643b4a071 files/0.11/lsusb-endian.patch 1834
 MD5 79f1705c48b215f002d9f6541cdca376 files/0.11/ppc64-usbutils-kheaderfix.patch 621
+MD5 02a749d768d2c60df972e04643b4a071 files/0.11/lsusb-endian.patch 1834
diff --git a/sys-apps/usbutils/files/digest-usbutils-0.11-r5 b/sys-apps/usbutils/files/digest-usbutils-0.11-r5
new file mode 100644 (file)
index 0000000..451d9c5
--- /dev/null
@@ -0,0 +1,2 @@
+MD5 05157bed61af65749f02713c10b8ef26 usbutils-0.11.tar.gz 229161
+MD5 efeabe86dc3ab36dc48a7c07b21cb7df usb.ids-20040902.gz 49178
diff --git a/sys-apps/usbutils/files/usbutils-0.11-fix-usb-ids-man-page-ref.patch b/sys-apps/usbutils/files/usbutils-0.11-fix-usb-ids-man-page-ref.patch
new file mode 100644 (file)
index 0000000..0297f4c
--- /dev/null
@@ -0,0 +1,12 @@
+diff -urN usbutils-0.11.orig/lsusb.8 usbutils-0.11/lsusb.8
+--- usbutils-0.11.orig/lsusb.8 2004-08-30 14:23:51.152236968 -0500
++++ usbutils-0.11/lsusb.8      2004-08-30 14:26:17.194035240 -0500
+@@ -80,7 +80,7 @@
+ 
+ .SH FILES
+ .TP
+-.B /usr/share/usb.ids
++.B /usr/share/misc/usb.ids
+ A list of all known USB ID's (vendors, products, classes, subclasses and protocols).
+ .TP
+ .B /proc/bus/usb
diff --git a/sys-apps/usbutils/usbutils-0.11-r5.ebuild b/sys-apps/usbutils/usbutils-0.11-r5.ebuild
new file mode 100644 (file)
index 0000000..d14cb38
--- /dev/null
@@ -0,0 +1,52 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/usbutils/usbutils-0.11-r5.ebuild,v 1.1 2004/10/09 08:42:37 cardoe Exp $
+
+inherit eutils gnuconfig
+
+# note: update these regularly from http://www.linux-usb.org/usb.ids
+#       and upload to gentoo mirrors - <liquidx@gentoo.org>
+USB_IDS_VER="20040902"
+
+DESCRIPTION="USB enumeration utilities"
+SRC_URI="http://usb.cs.tum.edu/download/usbutils/${P}.tar.gz
+       mirror://gentoo/usb.ids-${USB_IDS_VER}.gz"
+HOMEPAGE="http://usb.cs.tum.edu/"
+
+KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~hppa ~alpha ~ia64 ~ppc64 ~mips"
+IUSE=""
+SLOT="0"
+LICENSE="GPL-2"
+
+DEPEND="virtual/libc"
+
+src_unpack() {
+       unpack ${A}
+       gnuconfig_update
+
+       # replace usb.ids with an updated version
+       mv ${WORKDIR}/usb.ids-${USB_IDS_VER} ${S}/usb.ids || die "unable to replace usb.ids"
+
+       use ppc64 && ( cd ${S}; epatch ${FILESDIR}/0.11/ppc64-usbutils-kheaderfix.patch )
+
+       # Fix endian-issues
+       ( cd "${S}" && epatch "${FILESDIR}/0.11/lsusb-endian.patch" )
+
+       epatch ${FILESDIR}/usbutils-0.11-fix-usb-ids-man-page-ref.patch #bug #62786
+}
+
+src_compile() {
+       # put usb.ids in same place as pci.ids (/usr/share/misc)
+       econf \
+               --datadir=/usr/share/misc || die "./configure failed"
+       emake || die
+}
+
+src_install() {
+       make DESTDIR=${D} install || die
+
+       # we don't need libusb.* from usbutils because it conflicts
+       # with dev-libs/libusb
+       rm -rf ${D}/usr/lib
+       rm -rf ${D}/usr/include
+}