rev |
line source |
pankso@26
|
1 # SliTaz package receipt.
|
pankso@26
|
2
|
pankso@26
|
3 PACKAGE="pcmciautils"
|
slaxemulator@11059
|
4 VERSION="018"
|
pankso@202
|
5 CATEGORY="system-tools"
|
pankso@26
|
6 SHORT_DESC="Utils to use with PCMCIA cards"
|
pankso@26
|
7 MAINTAINER="pankso@slitaz.org"
|
pankso@54
|
8 DEPENDS="linux sysfsutils udev"
|
slaxemulator@7294
|
9 BUILD_DEPENDS="sysfsutils-dev bison flex"
|
pankso@26
|
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
|
pankso@26
|
11 WEB_SITE="http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html"
|
slaxemulator@11060
|
12 #WGET_URL="http://www.kernel.org/pub/linux/utils/kernel/pcmcia/$TARBALL"
|
slaxemulator@11060
|
13 WGET_URL="http://sourceware.mirrors.tds.net/pub/kernel.org/linux/utils/kernel/pcmcia/$TARBALL"
|
pankso@26
|
14
|
pankso@26
|
15 # Rules to configure and make the package.
|
pankso@26
|
16 compile_rules()
|
pankso@26
|
17 {
|
pankso@26
|
18 # We need lex...
|
pankso@26
|
19 cd $src
|
pankso@26
|
20 make
|
pankso@26
|
21 }
|
pankso@26
|
22
|
pankso@26
|
23 # Rules to gen a SliTaz package suitable for Tazpkg.
|
pankso@26
|
24 genpkg_rules()
|
pankso@26
|
25 {
|
pankso@26
|
26 mkdir -p $fs/sbin $fs/etc/udev/rules.d $fs/etc/pcmcia
|
pankso@26
|
27 cp -a $src/pccardctl $fs/sbin
|
pankso@26
|
28 cp -a $src/pcmcia-check-broken-cis $fs/sbin
|
pankso@26
|
29 cp -a $src/pcmcia-socket-startup $fs/sbin
|
pankso@26
|
30 # Udev rules and config.
|
pankso@26
|
31 cp -a $src/udev/60-pcmcia.rules $fs/etc/udev/rules.d
|
pankso@26
|
32 cp -a $src/config/config.opts $fs/etc/pcmcia
|
pankso@2301
|
33 # Fix path
|
pankso@2301
|
34 sed -i s#/lib/udev/pcmcia-check-broken-cis#/sbin/pcmcia-check-broken-cis# \
|
pankso@2301
|
35 $fs/etc/udev/rules.d/60-pcmcia.rules
|
pankso@2301
|
36 sed -i s#/lib/udev/pcmcia-socket-startup#/sbin/pcmcia-socket-startup# \
|
pankso@2301
|
37 $fs/etc/udev/rules.d/60-pcmcia.rules
|
pankso@26
|
38 }
|
pascal@3175
|
39
|
pascal@3175
|
40 post_install()
|
pascal@3175
|
41 {
|
pascal@3175
|
42 tazpkg reconfigure udev --root=$1
|
pascal@3175
|
43 }
|