wok-current annotate module-init-tools/receipt @ rev 2925
Do not use busybox depmod
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 07 09:09:46 2009 +0200 (2009-05-07) |
parents | 65d3dfc87776 |
children | f0a84dc0a7c2 |
rev | line source |
---|---|
pankso@5 | 1 # SliTaz package receipt. |
pankso@5 | 2 |
pankso@5 | 3 PACKAGE="module-init-tools" |
pankso@5 | 4 VERSION="3.2" |
pankso@178 | 5 CATEGORY="base-system" |
pankso@5 | 6 SHORT_DESC="Kernel modules manipulation tools." |
pankso@289 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@2925 | 8 DEPENDS="zlib lzlib depmod" |
pankso@5 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@5 | 10 WEB_SITE="http://ftp.kernel.org/pub/linux/utils/kernel/module-init-tools/" |
pankso@5 | 11 WGET_URL="${WEB_SITE}$TARBALL" |
pascal@897 | 12 BUILD_DEPENDS="zlib-dev lzlib-dev lzlib" |
pankso@5 | 13 |
pankso@5 | 14 # Rules to configure and make the package. |
pankso@5 | 15 compile_rules() |
pankso@5 | 16 { |
pankso@5 | 17 cd $src |
pascal@1553 | 18 [ -f done.lzlib.u ] || patch -p1 < ../stuff/lzlib.u |
pascal@1553 | 19 touch done.lzlib.u |
pankso@5 | 20 ./configure --enable-zlib --prefix=/usr \ |
pankso@5 | 21 --sbindir=/sbin --bindir=/bin --sysconfdir=/etc \ |
pankso@5 | 22 --infodir=/usr/share/info --mandir=/usr/share/man \ |
pascal@1553 | 23 $CONFIGURE_ARGS && |
pascal@1553 | 24 make && |
pankso@5 | 25 make DESTDIR=$PWD/_pkg install |
pankso@5 | 26 } |
pankso@5 | 27 |
pankso@5 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@5 | 29 genpkg_rules() |
pankso@5 | 30 { |
pankso@5 | 31 mkdir -p $fs/sbin $fs/etc |
pankso@5 | 32 cp $_pkg/sbin/insmod $fs/sbin |
pankso@5 | 33 cp $_pkg/sbin/modinfo $fs/sbin |
pankso@5 | 34 cp $_pkg/sbin/modprobe $fs/sbin |
pankso@5 | 35 cp $_pkg/sbin/rmmod $fs/sbin |
pankso@5 | 36 # lsmod goes in /bin. |
pankso@5 | 37 cp -a $_pkg/bin $fs |
pankso@5 | 38 strip -s $fs/sbin/* |
pankso@5 | 39 strip -s $fs/bin/* |
pankso@5 | 40 # Empty modprobe.conf |
pankso@5 | 41 echo "# /etc/modprobe.conf: Modprobe config file." > $fs/etc/modprobe.conf |
pankso@5 | 42 echo "#" >> $fs/etc/modprobe.conf |
pankso@5 | 43 } |