wok-current view module-init-tools/receipt @ rev 19914

python-gammu: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 13 15:41:26 2017 +0200 (2017-04-13)
parents 36278632a653
children 71360a13cd94
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="https://www.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="wget zlib-dev lzlib-dev lzlib"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 for patch_file in lzlib depmod; do
20 if [ -f done.$patch_file ]; then
21 echo "Skipping $patch_file"
22 continue
23 fi
24 echo "Apply $patch_file.u"
25 patch -p1 < $stuff/$patch_file.u || return 1
26 touch done.$patch_file
27 done
29 # Don't generate manpages to avoid failure.
30 echo '.so man5/modprobe.conf.5' > modprobe.d.5
32 ./configure --enable-zlib \
33 --sbindir=/sbin --bindir=/bin --sysconfdir=/etc \
34 $CONFIGURE_ARGS &&
35 make && make install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/sbin $fs/etc
42 cp $install/sbin/insmod $fs/sbin
43 cp $install/sbin/modinfo $fs/sbin
44 cp $install/sbin/modprobe $fs/sbin
45 cp $install/sbin/rmmod $fs/sbin
46 # lsmod goes in /bin.
47 cp -a $install/bin $fs
48 # Create the modprobe config directory
49 mkdir -p $fs/etc/modprobe.d
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 "$1/sbin/insmod"
66 ln -s /bin/busybox "$1/sbin/modinfo"
67 ln -s /bin/busybox "$1/sbin/modprobe"
68 ln -s /bin/busybox "$1/sbin/rmmod"
69 # BusyBox puts lsmod in /sbin, not /bin
70 ln -s /bin/busybox "$1/sbin/lsmod"
71 }