wok-current view pcmciautils/receipt @ rev 10628
gambas2: fix last commit
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 26 22:24:08 2011 +0200 (2011-05-26) |
parents | 71052cebb5a7 |
children | 48a8ecc07cf7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="pcmciautils"
4 VERSION="017"
5 CATEGORY="system-tools"
6 SHORT_DESC="Utils to use with PCMCIA cards"
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="linux sysfsutils udev"
9 BUILD_DEPENDS="sysfsutils-dev bison flex"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html"
12 WGET_URL="http://www.kernel.org/pub/linux/utils/kernel/pcmcia/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 # We need lex...
18 cd $src
19 make
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/sbin $fs/etc/udev/rules.d $fs/etc/pcmcia
26 cp -a $src/pccardctl $fs/sbin
27 cp -a $src/pcmcia-check-broken-cis $fs/sbin
28 cp -a $src/pcmcia-socket-startup $fs/sbin
29 # Udev rules and config.
30 cp -a $src/udev/60-pcmcia.rules $fs/etc/udev/rules.d
31 cp -a $src/config/config.opts $fs/etc/pcmcia
32 # Fix path
33 sed -i s#/lib/udev/pcmcia-check-broken-cis#/sbin/pcmcia-check-broken-cis# \
34 $fs/etc/udev/rules.d/60-pcmcia.rules
35 sed -i s#/lib/udev/pcmcia-socket-startup#/sbin/pcmcia-socket-startup# \
36 $fs/etc/udev/rules.d/60-pcmcia.rules
37 }
39 post_install()
40 {
41 tazpkg reconfigure udev --root=$1
42 }