wok-current view pcmciautils/receipt @ rev 24868
updated lxc and lxc-dev (3.2.1 -> 4.0.12)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 30 17:49:17 2022 +0100 (2022-03-30) |
parents | d443265acbc1 |
children | 2b0142c9f248 |
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.bz2"
10 WEB_SITE="https://mirrors.edge.kernel.org/pub/linux/utils/kernel/pcmcia/"
11 #WGET_URL="https://www.kernel.org/pub/linux/utils/kernel/pcmcia/$TARBALL"
12 WGET_URL="http://sourceware.mirrors.tds.net/pub/kernel.org/linux/utils/kernel/pcmcia/$TARBALL"
14 DEPENDS="linux sysfsutils udev"
15 BUILD_DEPENDS="sysfsutils-dev bison flex"
17 current_version()
18 {
19 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
20 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 # We need lex...
27 make -j 1
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/sbin $fs/etc/udev/rules.d $fs/etc/pcmcia
34 cp -a $src/pccardctl $fs/sbin
35 cp -a $src/pcmcia-check-broken-cis $fs/sbin
36 cp -a $src/pcmcia-socket-startup $fs/sbin
37 # Udev rules and config.
38 cp -a $src/udev/60-pcmcia.rules $fs/etc/udev/rules.d
39 cp -a $src/config/config.opts $fs/etc/pcmcia
40 # Fix path
41 sed -i s#/lib/udev/pcmcia-check-broken-cis#/sbin/pcmcia-check-broken-cis# \
42 $fs/etc/udev/rules.d/60-pcmcia.rules
43 sed -i s#/lib/udev/pcmcia-socket-startup#/sbin/pcmcia-socket-startup# \
44 $fs/etc/udev/rules.d/60-pcmcia.rules
45 }
47 post_install()
48 {
49 echo
50 tazpkg reconfigure udev --root="$1"
51 echo
52 }