wok-6.x view module-init-tools/receipt @ rev 12469
Add qiviewer (Light QT image viewer)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Apr 22 19:51:18 2012 +0200 (2012-04-22) |
parents | 9624c47bd4ee |
children | 380ffe05937a |
line source
1 # SliTaz package receipt.
3 PACKAGE="module-init-tools"
4 VERSION="3.12"
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
28 # Don't generate manpages to avoid failure.
29 echo '.so man5/modprobe.conf.5' > modprobe.d.5
31 ./configure --enable-zlib \
32 --sbindir=/sbin --bindir=/bin --sysconfdir=/etc \
33 $CONFIGURE_ARGS &&
34 make && make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/sbin $fs/etc
41 cp $_pkg/sbin/insmod $fs/sbin
42 cp $_pkg/sbin/modinfo $fs/sbin
43 cp $_pkg/sbin/modprobe $fs/sbin
44 cp $_pkg/sbin/rmmod $fs/sbin
45 # lsmod goes in /bin.
46 cp -a $_pkg/bin $fs
47 # Create the modprobe config directory
48 mkdir -p $fs/etc/modprobe.d
49 }
51 # Remove Busybox symlink before installing
52 pre_install()
53 {
54 rm -f $1/sbin/insmod
55 rm -f $1/sbin/modinfo
56 rm -f $1/sbin/modprobe
57 rm -f $1/sbin/rmmod
58 # BusyBox puts lsmod in /sbin, not /bin
59 rm -f $1/sbin/lsmod
60 }
62 post_remove()
63 {
64 ln -s /bin/busybox $1/sbin/insmod
65 ln -s /bin/busybox $1/sbin/modinfo
66 ln -s /bin/busybox $1/sbin/modprobe
67 ln -s /bin/busybox $1/sbin/rmmod
68 # BusyBox puts lsmod in /sbin, not /bin
69 ln -s /bin/busybox $1/sbin/lsmod
70 }