wok-stable diff module-init-tools/receipt @ rev 3742
Upgrade: module-init-tools (3.9 to 3.10)
author | Matthew Sheets <rcx@zoominternet.net> |
---|---|
date | Thu Jul 23 11:18:35 2009 +0000 (2009-07-23) |
parents | 8316f5a7c11d |
children | d7919ef5a5de |
line diff
1.1 --- a/module-init-tools/receipt Sat Jun 13 16:45:39 2009 +0200 1.2 +++ b/module-init-tools/receipt Thu Jul 23 11:18:35 2009 +0000 1.3 @@ -1,11 +1,11 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="module-init-tools" 1.7 -VERSION="3.9" 1.8 +VERSION="3.10" 1.9 CATEGORY="base-system" 1.10 SHORT_DESC="Kernel modules manipulation tools." 1.11 MAINTAINER="pascal.bellard@slitaz.org" 1.12 -DEPENDS="zlib lzlib depmod" 1.13 +DEPENDS="glibc-base gcc-lib-base zlib lzlib depmod" 1.14 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.15 WEB_SITE="http://ftp.kernel.org/pub/linux/utils/kernel/module-init-tools/" 1.16 WGET_URL="${WEB_SITE}$TARBALL" 1.17 @@ -48,3 +48,24 @@ 1.18 echo "# /etc/modprobe.conf: Modprobe config file." > $fs/etc/modprobe.conf 1.19 echo "#" >> $fs/etc/modprobe.conf 1.20 } 1.21 + 1.22 +# Remove Busybox symlink before installing 1.23 +pre_install() 1.24 +{ 1.25 + rm -f $1/sbin/insmod 1.26 + rm -f $1/sbin/modinfo 1.27 + rm -f $1/sbin/modprobe 1.28 + rm -f $1/sbin/rmmod 1.29 + # BusyBox puts lsmod in /sbin, not /bin 1.30 + rm -f $1/sbin/lsmod 1.31 +} 1.32 + 1.33 +post_remove() 1.34 +{ 1.35 + ln -s /bin/busybox /sbin/insmod 1.36 + ln -s /bin/busybox /sbin/modinfo 1.37 + ln -s /bin/busybox /sbin/modprobe 1.38 + ln -s /bin/busybox /sbin/rmmod 1.39 + # BusyBox puts lsmod in /sbin, not /bin 1.40 + ln -s /bin/busybox /sbin/lsmod 1.41 +}