wok-current annotate module-init-tools/receipt @ rev 22373
updated ilmbase and ilmbase-dev (2.2.0 -> 2.3.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Nov 27 16:43:45 2019 +0100 (2019-11-27) |
parents | 36278632a653 |
children | 71360a13cd94 |
rev | line source |
---|---|
pankso@5 | 1 # SliTaz package receipt. |
pankso@5 | 2 |
pankso@5 | 3 PACKAGE="module-init-tools" |
gokhlayeh@7897 | 4 VERSION="3.12" |
pankso@178 | 5 CATEGORY="base-system" |
pankso@5 | 6 SHORT_DESC="Kernel modules manipulation tools." |
pankso@289 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pankso@5 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@17923 | 10 WEB_SITE="https://www.kernel.org/pub/linux/utils/kernel/module-init-tools/" |
pankso@5 | 11 WGET_URL="${WEB_SITE}$TARBALL" |
pascal@15000 | 12 |
pascal@15000 | 13 DEPENDS="glibc-base gcc-lib-base zlib lzlib depmod" |
pascal@17923 | 14 BUILD_DEPENDS="wget zlib-dev lzlib-dev lzlib" |
pankso@5 | 15 |
pankso@5 | 16 # Rules to configure and make the package. |
pankso@5 | 17 compile_rules() |
pankso@5 | 18 { |
pascal@3436 | 19 for patch_file in lzlib depmod; do |
pascal@3436 | 20 if [ -f done.$patch_file ]; then |
pascal@3436 | 21 echo "Skipping $patch_file" |
pascal@3436 | 22 continue |
pascal@3436 | 23 fi |
pascal@3436 | 24 echo "Apply $patch_file.u" |
slaxemulator@9691 | 25 patch -p1 < $stuff/$patch_file.u || return 1 |
pascal@3436 | 26 touch done.$patch_file |
pascal@3436 | 27 done |
gokhlayeh@7897 | 28 |
gokhlayeh@7897 | 29 # Don't generate manpages to avoid failure. |
gokhlayeh@7897 | 30 echo '.so man5/modprobe.conf.5' > modprobe.d.5 |
gokhlayeh@7897 | 31 |
slaxemulator@9691 | 32 ./configure --enable-zlib \ |
slaxemulator@10139 | 33 --sbindir=/sbin --bindir=/bin --sysconfdir=/etc \ |
slaxemulator@10139 | 34 $CONFIGURE_ARGS && |
slaxemulator@10139 | 35 make && make install |
pankso@5 | 36 } |
pankso@5 | 37 |
pankso@5 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@5 | 39 genpkg_rules() |
pankso@5 | 40 { |
pankso@5 | 41 mkdir -p $fs/sbin $fs/etc |
pascal@15000 | 42 cp $install/sbin/insmod $fs/sbin |
pascal@15000 | 43 cp $install/sbin/modinfo $fs/sbin |
pascal@15000 | 44 cp $install/sbin/modprobe $fs/sbin |
pascal@15000 | 45 cp $install/sbin/rmmod $fs/sbin |
pankso@5 | 46 # lsmod goes in /bin. |
pascal@15000 | 47 cp -a $install/bin $fs |
rcx@4030 | 48 # Create the modprobe config directory |
rcx@4030 | 49 mkdir -p $fs/etc/modprobe.d |
pankso@5 | 50 } |
rcx@3742 | 51 |
rcx@3742 | 52 # Remove Busybox symlink before installing |
rcx@3742 | 53 pre_install() |
rcx@3742 | 54 { |
pascal@18730 | 55 rm -f "$1/sbin/insmod" |
pascal@18730 | 56 rm -f "$1/sbin/modinfo" |
pascal@18730 | 57 rm -f "$1/sbin/modprobe" |
pascal@18730 | 58 rm -f "$1/sbin/rmmod" |
rcx@3742 | 59 # BusyBox puts lsmod in /sbin, not /bin |
pascal@18730 | 60 rm -f "$1/sbin/lsmod" |
rcx@3742 | 61 } |
rcx@3742 | 62 |
rcx@3742 | 63 post_remove() |
rcx@3742 | 64 { |
pascal@18730 | 65 ln -s /bin/busybox "$1/sbin/insmod" |
pascal@18730 | 66 ln -s /bin/busybox "$1/sbin/modinfo" |
pascal@18730 | 67 ln -s /bin/busybox "$1/sbin/modprobe" |
pascal@18730 | 68 ln -s /bin/busybox "$1/sbin/rmmod" |
rcx@3742 | 69 # BusyBox puts lsmod in /sbin, not /bin |
pascal@18730 | 70 ln -s /bin/busybox "$1/sbin/lsmod" |
rcx@3742 | 71 } |