wok-current annotate module-init-tools/receipt @ rev 992
Add web-applications
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Jul 04 22:15:23 2008 +0200 (2008-07-04) |
parents | d293797ba11d |
children | 65d3dfc87776 |
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@897 | 8 DEPENDS="zlib lzlib" |
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@897 | 18 patch -p1 < ../stuff/lzlib.u |
pankso@5 | 19 ./configure --enable-zlib --prefix=/usr \ |
pankso@5 | 20 --sbindir=/sbin --bindir=/bin --sysconfdir=/etc \ |
pankso@5 | 21 --infodir=/usr/share/info --mandir=/usr/share/man \ |
pankso@5 | 22 $CONFIGURE_ARGS |
pankso@5 | 23 make |
pankso@5 | 24 make DESTDIR=$PWD/_pkg install |
pankso@5 | 25 } |
pankso@5 | 26 |
pankso@5 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@5 | 28 genpkg_rules() |
pankso@5 | 29 { |
pankso@5 | 30 mkdir -p $fs/sbin $fs/etc |
pankso@5 | 31 cp $_pkg/sbin/depmod $fs/sbin |
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 } |