wok view pcmciautils/receipt @ rev 25005

updated ntl (11.4.3 -> 11.5.1)
author Hans-G?nter Theisgen
date Mon May 16 16:29:07 2022 +0100 (2022-05-16)
parents 5d79829fa876
children
line source
1 # SliTaz package receipt.
3 PACKAGE="pcmciautils"
4 VERSION="018"
5 CATEGORY="system-tools"
6 SHORT_DESC="Utilities for inserting and removing PCMCIA cards"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://mirrors.edge.kernel.org/pub/linux/utils/kernel/pcmcia/"
11 WGET_URL="$WEB_SITE$TARBALL"
13 DEPENDS="linux sysfsutils udev"
14 BUILD_DEPENDS="sysfsutils-dev bison flex"
16 current_version()
17 {
18 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
19 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 # We need lex...
26 make -j 1
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/sbin $fs/etc/udev/rules.d $fs/etc/pcmcia
33 cp -a $src/pccardctl $fs/sbin
34 cp -a $src/pcmcia-check-broken-cis $fs/sbin
35 cp -a $src/pcmcia-socket-startup $fs/sbin
36 # Udev rules and config.
37 cp -a $src/udev/60-pcmcia.rules $fs/etc/udev/rules.d
38 cp -a $src/config/config.opts $fs/etc/pcmcia
39 # Fix path
40 sed -i s#/lib/udev/pcmcia-check-broken-cis#/sbin/pcmcia-check-broken-cis# \
41 $fs/etc/udev/rules.d/60-pcmcia.rules
42 sed -i s#/lib/udev/pcmcia-socket-startup#/sbin/pcmcia-socket-startup# \
43 $fs/etc/udev/rules.d/60-pcmcia.rules
44 }
46 post_install()
47 {
48 echo
49 tazpkg reconfigure udev --root="$1"
50 echo
51 }