wok view isapnptools/receipt @ rev 20257

Add giflossy
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 13 23:27:32 2018 +0100 (2018-03-13)
parents c57fa7519ccd
children 8dd8bab3f0ca
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="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 }