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