wok view module-init-tools/receipt @ rev 3748
Upgrade: usbutils (0.81 to 0.84)
author | Matthew Sheets <rcx@zoominternet.net> |
---|---|
date | Thu Jul 23 14:12:37 2009 +0000 (2009-07-23) |
parents | 8316f5a7c11d |
children | d7919ef5a5de |
line source
1 # SliTaz package receipt.
3 PACKAGE="module-init-tools"
4 VERSION="3.10"
5 CATEGORY="base-system"
6 SHORT_DESC="Kernel modules manipulation tools."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 DEPENDS="glibc-base gcc-lib-base zlib lzlib depmod"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://ftp.kernel.org/pub/linux/utils/kernel/module-init-tools/"
11 WGET_URL="${WEB_SITE}$TARBALL"
12 BUILD_DEPENDS="zlib-dev lzlib-dev lzlib"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 for patch_file in lzlib depmod; do
19 if [ -f done.$patch_file ]; then
20 echo "Skipping $patch_file"
21 continue
22 fi
23 echo "Apply $patch_file.u"
24 patch -p1 < ../stuff/$patch_file.u || return 1
25 touch done.$patch_file
26 done
27 ./configure --enable-zlib --prefix=/usr \
28 --sbindir=/sbin --bindir=/bin --sysconfdir=/etc \
29 --infodir=/usr/share/info --mandir=/usr/share/man \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$PWD/_pkg install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/sbin $fs/etc
39 cp $_pkg/sbin/insmod $fs/sbin
40 cp $_pkg/sbin/modinfo $fs/sbin
41 cp $_pkg/sbin/modprobe $fs/sbin
42 cp $_pkg/sbin/rmmod $fs/sbin
43 # lsmod goes in /bin.
44 cp -a $_pkg/bin $fs
45 strip -s $fs/sbin/*
46 strip -s $fs/bin/*
47 # Empty modprobe.conf
48 echo "# /etc/modprobe.conf: Modprobe config file." > $fs/etc/modprobe.conf
49 echo "#" >> $fs/etc/modprobe.conf
50 }
52 # Remove Busybox symlink before installing
53 pre_install()
54 {
55 rm -f $1/sbin/insmod
56 rm -f $1/sbin/modinfo
57 rm -f $1/sbin/modprobe
58 rm -f $1/sbin/rmmod
59 # BusyBox puts lsmod in /sbin, not /bin
60 rm -f $1/sbin/lsmod
61 }
63 post_remove()
64 {
65 ln -s /bin/busybox /sbin/insmod
66 ln -s /bin/busybox /sbin/modinfo
67 ln -s /bin/busybox /sbin/modprobe
68 ln -s /bin/busybox /sbin/rmmod
69 # BusyBox puts lsmod in /sbin, not /bin
70 ln -s /bin/busybox /sbin/lsmod
71 }