wok-4.x annotate module-init-tools/receipt @ rev 178
Removed cat base-apps and dispatch pkgs
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Feb 02 01:23:02 2008 +0100 (2008-02-02) |
parents | 23d38a7a06cc |
children | d293797ba11d |
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@5 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@5 | 8 DEPENDS="zlib" |
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" |
pankso@5 | 12 |
pankso@5 | 13 # Rules to configure and make the package. |
pankso@5 | 14 compile_rules() |
pankso@5 | 15 { |
pankso@5 | 16 cd $src |
pankso@5 | 17 ./configure --enable-zlib --prefix=/usr \ |
pankso@5 | 18 --sbindir=/sbin --bindir=/bin --sysconfdir=/etc \ |
pankso@5 | 19 --infodir=/usr/share/info --mandir=/usr/share/man \ |
pankso@5 | 20 $CONFIGURE_ARGS |
pankso@5 | 21 make |
pankso@5 | 22 make DESTDIR=$PWD/_pkg install |
pankso@5 | 23 } |
pankso@5 | 24 |
pankso@5 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@5 | 26 genpkg_rules() |
pankso@5 | 27 { |
pankso@5 | 28 mkdir -p $fs/sbin $fs/etc |
pankso@5 | 29 cp $_pkg/sbin/depmod $fs/sbin |
pankso@5 | 30 cp $_pkg/sbin/insmod $fs/sbin |
pankso@5 | 31 cp $_pkg/sbin/modinfo $fs/sbin |
pankso@5 | 32 cp $_pkg/sbin/modprobe $fs/sbin |
pankso@5 | 33 cp $_pkg/sbin/rmmod $fs/sbin |
pankso@5 | 34 # lsmod goes in /bin. |
pankso@5 | 35 cp -a $_pkg/bin $fs |
pankso@5 | 36 strip -s $fs/sbin/* |
pankso@5 | 37 strip -s $fs/bin/* |
pankso@5 | 38 # Empty modprobe.conf |
pankso@5 | 39 echo "# /etc/modprobe.conf: Modprobe config file." > $fs/etc/modprobe.conf |
pankso@5 | 40 echo "#" >> $fs/etc/modprobe.conf |
pankso@5 | 41 } |