wok-6.x view module-init-tools/receipt @ rev 15583
Add some licenses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 30 15:44:51 2013 +0000 (2013-11-30) |
parents | 6d21eea8cdc5 |
children | 36278632a653 |
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 LICENSE="GPL2"
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"
13 DEPENDS="glibc-base gcc-lib-base zlib lzlib depmod"
14 BUILD_DEPENDS="zlib-dev lzlib-dev lzlib"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 for patch_file in lzlib depmod; do
21 if [ -f done.$patch_file ]; then
22 echo "Skipping $patch_file"
23 continue
24 fi
25 echo "Apply $patch_file.u"
26 patch -p1 < $stuff/$patch_file.u || return 1
27 touch done.$patch_file
28 done
30 # Don't generate manpages to avoid failure.
31 echo '.so man5/modprobe.conf.5' > modprobe.d.5
33 ./configure --enable-zlib \
34 --sbindir=/sbin --bindir=/bin --sysconfdir=/etc \
35 $CONFIGURE_ARGS &&
36 make && make install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/sbin $fs/etc
43 cp $install/sbin/insmod $fs/sbin
44 cp $install/sbin/modinfo $fs/sbin
45 cp $install/sbin/modprobe $fs/sbin
46 cp $install/sbin/rmmod $fs/sbin
47 # lsmod goes in /bin.
48 cp -a $install/bin $fs
49 # Create the modprobe config directory
50 mkdir -p $fs/etc/modprobe.d
51 }
53 # Remove Busybox symlink before installing
54 pre_install()
55 {
56 rm -f $1/sbin/insmod
57 rm -f $1/sbin/modinfo
58 rm -f $1/sbin/modprobe
59 rm -f $1/sbin/rmmod
60 # BusyBox puts lsmod in /sbin, not /bin
61 rm -f $1/sbin/lsmod
62 }
64 post_remove()
65 {
66 ln -s /bin/busybox $1/sbin/insmod
67 ln -s /bin/busybox $1/sbin/modinfo
68 ln -s /bin/busybox $1/sbin/modprobe
69 ln -s /bin/busybox $1/sbin/rmmod
70 # BusyBox puts lsmod in /sbin, not /bin
71 ln -s /bin/busybox $1/sbin/lsmod
72 }