wok-next annotate module-init-tools/receipt @ rev 2306

lighttpd: backup config files
author Christophe Lincoln <pankso@slitaz.org>
date Tue Feb 24 23:20:43 2009 +0100 (2009-02-24)
parents cf7f6d5ad5ca
children 8785eea6ab59
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@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/depmod $fs/sbin
pankso@5 33 cp $_pkg/sbin/insmod $fs/sbin
pankso@5 34 cp $_pkg/sbin/modinfo $fs/sbin
pankso@5 35 cp $_pkg/sbin/modprobe $fs/sbin
pankso@5 36 cp $_pkg/sbin/rmmod $fs/sbin
pankso@5 37 # lsmod goes in /bin.
pankso@5 38 cp -a $_pkg/bin $fs
pankso@5 39 strip -s $fs/sbin/*
pankso@5 40 strip -s $fs/bin/*
pankso@5 41 # Empty modprobe.conf
pankso@5 42 echo "# /etc/modprobe.conf: Modprobe config file." > $fs/etc/modprobe.conf
pankso@5 43 echo "#" >> $fs/etc/modprobe.conf
pankso@5 44 }