wok-6.x view pciutils/receipt @ rev 24461
updated daloradius (0.9-9 -> 1.1-2)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 16 17:15:55 2022 +0100 (2022-02-16) |
parents | cb9656914245 |
children | 2572b2076c7c |
line source
1 # SliTaz package receipt.
3 PACKAGE="pciutils"
4 VERSION="3.6.4"
5 CATEGORY="system-tools"
6 SHORT_DESC="Linux PCI Utilities."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://mj.ucw.cz/sw/pciutils/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://mj.ucw.cz/download/linux/pci/$TARBALL"
14 DEPENDS="glibc-base pciids zlib"
15 BUILD_DEPENDS=""
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 make all \
28 OPT="${CFLAGS} -fPIC -DPIC" \
29 SHARED=no PREFIX=/usr \
30 SHAREDIR=/usr/share/misc \
31 MANDIR=/usr/share/man &&
32 cp -a lib/libpci.a $WOK/$PACKAGE/source &&
33 make clean &&
34 make all \
35 OPT="${CFLAGS}" \
36 ZLIB=yes \
37 SHARED=yes \
38 PREFIX=/usr \
39 SHAREDIR=/usr/share/misc \
40 MANDIR=/usr/share/man &&
41 make install install-lib \
42 SHARED=yes \
43 PREFIX=/usr \
44 SHAREDIR=/usr/share/misc \
45 MANDIR=/usr/share/man \
46 DESTDIR="$DESTDIR" &&
47 cp -a $WOK/$PACKAGE/source/libpci.a $DESTDIR/usr/lib
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/usr/bin
54 mkdir -p $fs/usr/lib
56 cp -a $install/usr/sbin/lspci $fs/usr/bin
57 cp -a $install/usr/sbin/setpci $fs/usr/bin
58 cp -a $install/usr/lib/*.so* $fs/usr/lib
59 }
61 # Overlap busybox
62 pre_install()
63 {
64 rm -f "$1/usr/bin/lspci"
65 }
67 post_remove()
68 {
69 ln -s /bin/busybox "$1/usr/bin/lspci"
70 }