wok-current view module-init-tools/receipt @ rev 1119
Add xruskb (keyboard switcher) - Need more X11 fonts
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Jul 20 19:25:43 2008 +0200 (2008-07-20) |
parents | d293797ba11d |
children | 65d3dfc87776 |
line source
1 # SliTaz package receipt.
3 PACKAGE="module-init-tools"
4 VERSION="3.2"
5 CATEGORY="base-system"
6 SHORT_DESC="Kernel modules manipulation tools."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 DEPENDS="zlib lzlib"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://ftp.kernel.org/pub/linux/utils/kernel/module-init-tools/"
11 WGET_URL="${WEB_SITE}$TARBALL"
12 BUILD_DEPENDS="zlib-dev lzlib-dev lzlib"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 patch -p1 < ../stuff/lzlib.u
19 ./configure --enable-zlib --prefix=/usr \
20 --sbindir=/sbin --bindir=/bin --sysconfdir=/etc \
21 --infodir=/usr/share/info --mandir=/usr/share/man \
22 $CONFIGURE_ARGS
23 make
24 make DESTDIR=$PWD/_pkg install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/sbin $fs/etc
31 cp $_pkg/sbin/depmod $fs/sbin
32 cp $_pkg/sbin/insmod $fs/sbin
33 cp $_pkg/sbin/modinfo $fs/sbin
34 cp $_pkg/sbin/modprobe $fs/sbin
35 cp $_pkg/sbin/rmmod $fs/sbin
36 # lsmod goes in /bin.
37 cp -a $_pkg/bin $fs
38 strip -s $fs/sbin/*
39 strip -s $fs/bin/*
40 # Empty modprobe.conf
41 echo "# /etc/modprobe.conf: Modprobe config file." > $fs/etc/modprobe.conf
42 echo "#" >> $fs/etc/modprobe.conf
43 }