IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=2.1.11 PROGNAME="pciutils $VERSION" DESC="\ pciutils (PCI utilities) \n\ \n\ lspci displays detailed information about all PCI buses and devices \n\ in the system, replacing the original /proc/pci interface. \n\ \n\ setpci allows reading from and writing to PCI device configuration \n\ registers. For example, you can adjust the latency timers with it. \n\ \n\ pcimodules lists the kernel modules for all plugged in PCI devices." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/ PKGNAME=pciutils-$VERSION-s390-$BUILD TAG=OPT compile() { tar -yxvf $CWD/pciutils-$VERSION.tar.bz2 cd pciutils-$VERSION/ chown -R root.root . # This file gets created by patch. It should not exist already, or patch # will just keep adding the same code onto the end, over, and over, and over. if [ -f pcimodules.c ]; then rm pcimodules.c fi zcat $CWD/pcimodules-pciutils-$VERSION.diff.gz | patch -p1 --verbose # Fixes memory allocation and strcpy bugs that cause pcimodules # to hang on systems using libsafe: zcat $CWD/pcimodules.overflow.diff.gz | patch -p1 --verbose # Change prefix from /usr/local to /usr: zcat $CWD/pciutils.prefix.diff.gz | patch -p1 --verbose # Fetch the latest pci.ids: rm -f pci.ids wget http://pciids.sourceforge.net/pci.ids make } install() { make install PREFIX=/package-pciutils/usr ROOT=/package-pciutils mkdir -p /package-pciutils/usr/doc/pciutils-$VERSION cp -a README ChangeLog TODO \ /package-pciutils/usr/doc/pciutils-$VERSION mkdir -p /package-pciutils/usr/include/pci/ ( cd lib cp -a config.h header.h pci.h /package-pciutils/usr/include/pci/ ) mkdir -p /package-pciutils/usr/lib/ cp -a lib/libpci.a /package-pciutils/usr/lib/ rm /package-pciutils/usr/sbin/update-pciids mv /package-pciutils/usr/sbin /package-pciutils/ rm /package-pciutils/usr/man/man8/update-pciids.8 ( cd /package-pciutils/usr/man/man8 rm -f *.gz gzip -9 *.8 ) } attributes() { chown -R root.bin $PKG/package-pciutils/sbin } special() { cd $PKG mv package-pciutils/* ./ rmdir package-pciutils cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-pciutils/%%' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }