wok view isapnptools/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents 8dd8bab3f0ca
children
line source
1 # SliTaz package receipt.
3 PACKAGE="isapnptools"
4 VERSION="1.27"
5 CATEGORY="system-tools"
6 SHORT_DESC="ISA Plug-And-Play configuration."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tgz"
10 WEB_SITE="https://web.archive.org/web/20140210040320/http://www.roestock.demon.co.uk/isapnptools/"
11 WGET_URL="http://metalab.unc.edu/pub/Linux/system/hardware/$TARBALL"
13 current_version()
14 {
15 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
16 sed "/$PACKAGE-/!d;/lsm/!d;s|.*$PACKAGE-\\(.*\\).lsm.*\".*|\\1|;q"
17 }
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 sed -i 's/pnpdump_main.$(OBJEXT)/isapnp_main.$(OBJEXT) &/' src/Makefile.*
23 sed -i 's/return/if (!strcmp(basename(argv[0]),"isapnp")) return (isapnp_main(argc, argv));\n&/' src/pnpdump.c
24 ./configure --prefix=/usr --bindir=/bin \
25 --libexecdir=/usr/bin --mandir=/usr/share/man \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 # move /usr/sbin/* /sbin to use pnptools *before* mounting /usr
35 mkdir -p $fs/sbin
36 cp -a $install/usr/sbin/pnpdump $fs/sbin
37 ln $fs/sbin/pnpdump $fs/sbin/isapnp
38 }