wok-stable annotate pciutils/receipt @ rev 9148
fix ovz-web-panel
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 06 22:15:32 2011 +0100 (2011-03-06) |
parents | aa920dfe273d |
children | bab6e96ebac3 |
rev | line source |
---|---|
pankso@26 | 1 # SliTaz package receipt. |
pankso@26 | 2 |
pankso@26 | 3 PACKAGE="pciutils" |
slaxemulator@7295 | 4 VERSION="3.1.7" |
pankso@202 | 5 CATEGORY="system-tools" |
pankso@26 | 6 SHORT_DESC="Utilities to list PCI device by name (lspci)." |
pankso@26 | 7 MAINTAINER="pankso@slitaz.org" |
gokhlayeh@7905 | 8 BUILD_DEPENDS="wget" |
pankso@26 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
rcx@3754 | 10 DEPENDS="glibc-base zlib" |
rcx@3754 | 11 WEB_SITE="http://mj.ucw.cz/pciutils.html" |
pankso@26 | 12 WGET_URL="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/$TARBALL" |
pankso@26 | 13 |
pankso@26 | 14 # Rules to configure and make the package. |
pankso@26 | 15 compile_rules() |
pankso@26 | 16 { |
pankso@26 | 17 cd $src |
pankso@26 | 18 ./update-pciids.sh |
pankso@26 | 19 make PREFIX=/usr IDSDIR=/usr/share/misc |
pankso@26 | 20 } |
pankso@26 | 21 |
pankso@26 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@26 | 23 genpkg_rules() |
pankso@26 | 24 { |
pankso@26 | 25 mkdir -p $fs/usr/bin $fs/usr/share/misc |
slaxemulator@7298 | 26 if [ ! -f $src/pci.ids.gz ]; then |
slaxemulator@7298 | 27 gzip $src/pci.ids |
slaxemulator@7298 | 28 fi |
pankso@673 | 29 cp -a $src/pci.ids.gz $fs/usr/share/misc |
pankso@26 | 30 cp -a $src/lspci $fs/usr/bin |
pascal@1622 | 31 cp -a $src/setpci $fs/usr/bin |
pankso@26 | 32 } |
pascal@8878 | 33 |
pascal@8878 | 34 # Overlap busybox |
pascal@8878 | 35 pre_install() |
pascal@8878 | 36 { |
pascal@8878 | 37 rm -f $1/usr/bin/lspci |
pascal@8878 | 38 } |
pascal@8878 | 39 |
pascal@8878 | 40 post_remove() |
pascal@8878 | 41 { |
pascal@8878 | 42 ln -s /bin/busybox /usr/bin/lspci |
pascal@8878 | 43 } |