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

cairo-dock: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 21 18:36:22 2017 +0200 (2017-10-21)
parents 9e01bc6321ea
children 4396aed7eb01
rev   line source
pankso@5 1 # SliTaz package receipt.
pankso@5 2
pankso@5 3 PACKAGE="module-init-tools"
gokhlayeh@7897 4 VERSION="3.12"
pankso@178 5 CATEGORY="base-system"
pankso@5 6 SHORT_DESC="Kernel modules manipulation tools."
pankso@289 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
al@19601 9 WEB_SITE="https://www.kernel.org/pub/linux/utils/kernel/module-init-tools/"
al@19601 10
pankso@5 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@5 12 WGET_URL="${WEB_SITE}$TARBALL"
pascal@15000 13
pascal@15000 14 DEPENDS="glibc-base gcc-lib-base zlib lzlib depmod"
pascal@17923 15 BUILD_DEPENDS="wget zlib-dev lzlib-dev lzlib"
pankso@5 16
pankso@5 17 # Rules to configure and make the package.
pankso@5 18 compile_rules()
pankso@5 19 {
pascal@3436 20 for patch_file in lzlib depmod; do
pascal@3436 21 if [ -f done.$patch_file ]; then
pascal@3436 22 echo "Skipping $patch_file"
pascal@3436 23 continue
pascal@3436 24 fi
pascal@3436 25 echo "Apply $patch_file.u"
slaxemulator@9691 26 patch -p1 < $stuff/$patch_file.u || return 1
pascal@3436 27 touch done.$patch_file
pascal@3436 28 done
gokhlayeh@7897 29
gokhlayeh@7897 30 # Don't generate manpages to avoid failure.
gokhlayeh@7897 31 echo '.so man5/modprobe.conf.5' > modprobe.d.5
gokhlayeh@7897 32
al@19601 33 ./configure \
al@19601 34 --enable-zlib \
al@19601 35 --sbindir=/sbin \
al@19601 36 --bindir=/bin \
al@19601 37 --sysconfdir=/etc \
slaxemulator@10139 38 $CONFIGURE_ARGS &&
slaxemulator@10139 39 make && make install
pankso@5 40 }
pankso@5 41
pankso@5 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@5 43 genpkg_rules()
pankso@5 44 {
pankso@5 45 mkdir -p $fs/sbin $fs/etc
pascal@15000 46 cp $install/sbin/insmod $fs/sbin
pascal@15000 47 cp $install/sbin/modinfo $fs/sbin
pascal@15000 48 cp $install/sbin/modprobe $fs/sbin
pascal@15000 49 cp $install/sbin/rmmod $fs/sbin
pankso@5 50 # lsmod goes in /bin.
pascal@15000 51 cp -a $install/bin $fs
rcx@4030 52 # Create the modprobe config directory
rcx@4030 53 mkdir -p $fs/etc/modprobe.d
pankso@5 54 }
rcx@3742 55
rcx@3742 56 # Remove Busybox symlink before installing
rcx@3742 57 pre_install()
rcx@3742 58 {
pascal@18730 59 rm -f "$1/sbin/insmod"
pascal@18730 60 rm -f "$1/sbin/modinfo"
pascal@18730 61 rm -f "$1/sbin/modprobe"
pascal@18730 62 rm -f "$1/sbin/rmmod"
rcx@3742 63 # BusyBox puts lsmod in /sbin, not /bin
pascal@18730 64 rm -f "$1/sbin/lsmod"
rcx@3742 65 }