wok view isapnptools/receipt @ rev 21747

tazboot: spare 2k
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jun 14 17:17:16 2019 +0200 (15 months ago)
parents 8b8fae260ab7
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="ftp://metalab.unc.edu/pub/Linux/system/hardware/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 sed -i 's/pnpdump_main.$(OBJEXT)/isapnp_main.$(OBJEXT) &/' src/Makefile.*
17 sed -i 's/return/if (!strcmp(basename(argv[0]),"isapnp")) return (isapnp_main(argc, argv));\n&/' src/pnpdump.c
18 ./configure --prefix=/usr --bindir=/bin \
19 --libexecdir=/usr/bin --mandir=/usr/share/man \
20 $CONFIGURE_ARGS &&
21 make &&
22 make DESTDIR=$DESTDIR install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 # move /usr/sbin/* /sbin to use pnptools *before* mounting /usr
29 mkdir -p $fs/sbin
30 cp -a $install/usr/sbin/pnpdump $fs/sbin
31 ln $fs/sbin/pnpdump $fs/sbin/isapnp
32 }