wok-next view module-init-tools/receipt @ rev 21144
Small updates.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jan 26 15:54:42 2019 +0200 (2019-01-26) |
parents | 757d032c55c7 |
children |
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="https://mirrors.edge.kernel.org/pub/linux/utils/kernel/module-init-tools/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}$TARBALL"
14 BUILD_DEPENDS="zlib-dev lzlib-dev lzlib"
15 SPLIT="depmod"
17 compile_rules() {
18 # Don't generate manpages to avoid failure.
19 echo '.so man5/modprobe.conf.5' > modprobe.d.5
21 ./configure \
22 --enable-zlib \
23 --sbindir=/sbin \
24 --bindir=/bin \
25 $CONFIGURE_ARGS &&
26 make &&
27 make install || return 1
29 # Create the modprobe config directory
30 mkdir -p $install/etc/modprobe.d
31 }
33 genpkg_rules() {
34 case $PACKAGE in
35 depmod)
36 copy depmod
37 CAT="base-system|Kernel modules dependancy tool"
38 DEPENDS="glibc-base gcc-lib-base zlib lzlib"
39 ;;
40 module-init-tools)
41 copy @std @rm
42 DEPENDS="glibc-base gcc-lib-base zlib lzlib depmod"
43 ;;
44 esac
45 }
47 # Remove Busybox symlink before installing
48 pre_install_module_init_tools() {
49 rm -f "$1/sbin/insmod"
50 rm -f "$1/sbin/modinfo"
51 rm -f "$1/sbin/modprobe"
52 rm -f "$1/sbin/rmmod"
53 # BusyBox puts lsmod in /sbin, not /bin
54 rm -f "$1/sbin/lsmod"
55 }
57 # Overlap busybox
58 pre_install_depmod() {
59 rm -f "$1/sbin/depmod"
60 }