wok annotate pcmciautils/receipt @ rev 25464
httpfs2-fuse: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 30 09:07:42 2022 +0000 (2022-09-30) |
parents | 5d79829fa876 |
children |
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" |
al@17992 | 6 SHORT_DESC="Utilities for inserting and removing PCMCIA cards" |
pankso@26 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15375 | 8 LICENSE="GPL2" |
pascal@24984 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20674 | 10 WEB_SITE="https://mirrors.edge.kernel.org/pub/linux/utils/kernel/pcmcia/" |
pascal@24984 | 11 WGET_URL="$WEB_SITE$TARBALL" |
pankso@26 | 12 |
pascal@15375 | 13 DEPENDS="linux sysfsutils udev" |
pascal@15375 | 14 BUILD_DEPENDS="sysfsutils-dev bison flex" |
pascal@15375 | 15 |
pascal@24072 | 16 current_version() |
pascal@24072 | 17 { |
pascal@24072 | 18 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24072 | 19 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24072 | 20 } |
pascal@24072 | 21 |
pankso@26 | 22 # Rules to configure and make the package. |
pankso@26 | 23 compile_rules() |
pankso@26 | 24 { |
pankso@26 | 25 # We need lex... |
pascal@23623 | 26 make -j 1 |
pankso@26 | 27 } |
pankso@26 | 28 |
pankso@26 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@26 | 30 genpkg_rules() |
pankso@26 | 31 { |
pankso@26 | 32 mkdir -p $fs/sbin $fs/etc/udev/rules.d $fs/etc/pcmcia |
pankso@26 | 33 cp -a $src/pccardctl $fs/sbin |
pankso@26 | 34 cp -a $src/pcmcia-check-broken-cis $fs/sbin |
pankso@26 | 35 cp -a $src/pcmcia-socket-startup $fs/sbin |
pankso@26 | 36 # Udev rules and config. |
pankso@26 | 37 cp -a $src/udev/60-pcmcia.rules $fs/etc/udev/rules.d |
pankso@26 | 38 cp -a $src/config/config.opts $fs/etc/pcmcia |
pankso@2301 | 39 # Fix path |
pankso@2301 | 40 sed -i s#/lib/udev/pcmcia-check-broken-cis#/sbin/pcmcia-check-broken-cis# \ |
pankso@2301 | 41 $fs/etc/udev/rules.d/60-pcmcia.rules |
pankso@2301 | 42 sed -i s#/lib/udev/pcmcia-socket-startup#/sbin/pcmcia-socket-startup# \ |
pankso@2301 | 43 $fs/etc/udev/rules.d/60-pcmcia.rules |
pankso@26 | 44 } |
pascal@3175 | 45 |
pascal@3175 | 46 post_install() |
pascal@3175 | 47 { |
al@18964 | 48 echo |
pascal@18730 | 49 tazpkg reconfigure udev --root="$1" |
al@18964 | 50 echo |
pascal@3175 | 51 } |