wok-6.x annotate pciutils/receipt @ rev 18275
Add daloradius
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Aug 07 18:53:05 2015 +0200 (2015-08-07) |
parents | b1569e676919 |
children | 9e01bc6321ea |
rev | line source |
---|---|
pankso@26 | 1 # SliTaz package receipt. |
pankso@26 | 2 |
pankso@26 | 3 PACKAGE="pciutils" |
pankso@15954 | 4 VERSION="3.2.1" |
pankso@202 | 5 CATEGORY="system-tools" |
al@17992 | 6 SHORT_DESC="Linux PCI Utilities" |
pankso@26 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15001 | 8 LICENSE="GPL2" |
pankso@26 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
rcx@3754 | 10 WEB_SITE="http://mj.ucw.cz/pciutils.html" |
pankso@26 | 11 WGET_URL="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/$TARBALL" |
pankso@26 | 12 |
slaxemulator@11043 | 13 DEPENDS="glibc-base zlib pciids" |
slaxemulator@11043 | 14 BUILD_DEPENDS="wget" |
slaxemulator@11043 | 15 |
pankso@26 | 16 # Rules to configure and make the package. |
pankso@26 | 17 compile_rules() |
pankso@26 | 18 { |
slaxemulator@12765 | 19 make OPT="${CFLAGS} -fPIC -DPIC" SHARED=no PREFIX=/usr SHAREDIR=/usr/share/misc MANDIR=/usr/share/man all |
slaxemulator@12765 | 20 cp -a lib/libpci.a $WOK/$PACKAGE/source |
slaxemulator@12765 | 21 make clean |
samuel_trassare@13547 | 22 make OPT="${CFLAGS}" ZLIB=yes SHARED=yes PREFIX=/usr SHAREDIR=/usr/share/misc MANDIR=/usr/share/man all |
slaxemulator@12765 | 23 make SHARED=yes PREFIX=/usr SHAREDIR=/usr/share/misc MANDIR=/usr/share/man DESTDIR="$DESTDIR" install install-lib |
slaxemulator@12765 | 24 cp -a $WOK/$PACKAGE/source/libpci.a $DESTDIR/usr/lib |
pankso@26 | 25 } |
pankso@26 | 26 |
pankso@26 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@26 | 28 genpkg_rules() |
pankso@26 | 29 { |
slaxemulator@12765 | 30 mkdir -p $fs/usr/bin $fs/usr/lib |
slaxemulator@12765 | 31 cp -a $install/usr/sbin/lspci $fs/usr/bin |
slaxemulator@12765 | 32 cp -a $install/usr/sbin/setpci $fs/usr/bin |
slaxemulator@12765 | 33 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@26 | 34 } |
pascal@8878 | 35 |
pascal@8878 | 36 # Overlap busybox |
pascal@8878 | 37 pre_install() |
pascal@8878 | 38 { |
pascal@8878 | 39 rm -f $1/usr/bin/lspci |
pascal@8878 | 40 } |
pascal@8878 | 41 |
pascal@8878 | 42 post_remove() |
pascal@8878 | 43 { |
slaxemulator@11043 | 44 ln -s /bin/busybox $1/usr/bin/lspci |
pascal@8878 | 45 } |