wok-6.x view pciutils/receipt @ rev 8878
kbd, lzma, ncursesw, netatalk-pam, pciutils, postfix, procps: restore busybox links in port_remove()
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 27 01:38:28 2011 +0100 (2011-02-27) |
parents | aa920dfe273d |
children | bab6e96ebac3 |
line source
1 # SliTaz package receipt.
3 PACKAGE="pciutils"
4 VERSION="3.1.7"
5 CATEGORY="system-tools"
6 SHORT_DESC="Utilities to list PCI device by name (lspci)."
7 MAINTAINER="pankso@slitaz.org"
8 BUILD_DEPENDS="wget"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 DEPENDS="glibc-base zlib"
11 WEB_SITE="http://mj.ucw.cz/pciutils.html"
12 WGET_URL="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./update-pciids.sh
19 make PREFIX=/usr IDSDIR=/usr/share/misc
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr/bin $fs/usr/share/misc
26 if [ ! -f $src/pci.ids.gz ]; then
27 gzip $src/pci.ids
28 fi
29 cp -a $src/pci.ids.gz $fs/usr/share/misc
30 cp -a $src/lspci $fs/usr/bin
31 cp -a $src/setpci $fs/usr/bin
32 }
34 # Overlap busybox
35 pre_install()
36 {
37 rm -f $1/usr/bin/lspci
38 }
40 post_remove()
41 {
42 ln -s /bin/busybox /usr/bin/lspci
43 }