wok-current annotate module-init-tools/receipt @ rev 3674
Add ocsinventory-server
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sat Jul 11 12:17:23 2009 +0200 (2009-07-11) |
parents | f0a84dc0a7c2 |
children | 71c7aacfbbb2 |
rev | line source |
---|---|
pankso@5 | 1 # SliTaz package receipt. |
pankso@5 | 2 |
pankso@5 | 3 PACKAGE="module-init-tools" |
pascal@3320 | 4 VERSION="3.9" |
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@3436 | 18 for patch_file in lzlib depmod; do |
pascal@3436 | 19 if [ -f done.$patch_file ]; then |
pascal@3436 | 20 echo "Skipping $patch_file" |
pascal@3436 | 21 continue |
pascal@3436 | 22 fi |
pascal@3436 | 23 echo "Apply $patch_file.u" |
pascal@3436 | 24 patch -p1 < ../stuff/$patch_file.u || return 1 |
pascal@3436 | 25 touch done.$patch_file |
pascal@3436 | 26 done |
pankso@5 | 27 ./configure --enable-zlib --prefix=/usr \ |
pankso@5 | 28 --sbindir=/sbin --bindir=/bin --sysconfdir=/etc \ |
pankso@5 | 29 --infodir=/usr/share/info --mandir=/usr/share/man \ |
pascal@1553 | 30 $CONFIGURE_ARGS && |
pascal@1553 | 31 make && |
pankso@5 | 32 make DESTDIR=$PWD/_pkg install |
pankso@5 | 33 } |
pankso@5 | 34 |
pankso@5 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@5 | 36 genpkg_rules() |
pankso@5 | 37 { |
pankso@5 | 38 mkdir -p $fs/sbin $fs/etc |
pankso@5 | 39 cp $_pkg/sbin/insmod $fs/sbin |
pankso@5 | 40 cp $_pkg/sbin/modinfo $fs/sbin |
pankso@5 | 41 cp $_pkg/sbin/modprobe $fs/sbin |
pankso@5 | 42 cp $_pkg/sbin/rmmod $fs/sbin |
pankso@5 | 43 # lsmod goes in /bin. |
pankso@5 | 44 cp -a $_pkg/bin $fs |
pankso@5 | 45 strip -s $fs/sbin/* |
pankso@5 | 46 strip -s $fs/bin/* |
pankso@5 | 47 # Empty modprobe.conf |
pankso@5 | 48 echo "# /etc/modprobe.conf: Modprobe config file." > $fs/etc/modprobe.conf |
pankso@5 | 49 echo "#" >> $fs/etc/modprobe.conf |
pankso@5 | 50 } |