wok-next view module-init-tools/receipt @ rev 19957
Up fuse-emulator, gpgme, libnetfilter_conntrack, libnetfilter_cthelper, libnetfilter_cttimeout, libnetfilter_queue, libnfnetlink, libsdl, libspectrum, libstatgrab, libstroke, subversion, sysfsutils, taglib, tcl, tcpcrypt, tidy, tk, tokyocabinet, udisks2. Add fuse-emulator-gtk3, libblockdev, libbytesize, libstroke, volume_key.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Oct 16 22:34:14 2017 +0300 (2017-10-16) |
parents | 9e01bc6321ea |
children | 4396aed7eb01 |
line source
1 # SliTaz package receipt.
3 PACKAGE="module-init-tools"
4 VERSION="3.12"
5 CATEGORY="base-system"
6 SHORT_DESC="Kernel modules manipulation tools."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.kernel.org/pub/linux/utils/kernel/module-init-tools/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}$TARBALL"
14 DEPENDS="glibc-base gcc-lib-base zlib lzlib depmod"
15 BUILD_DEPENDS="wget zlib-dev lzlib-dev lzlib"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 for patch_file in lzlib depmod; do
21 if [ -f done.$patch_file ]; then
22 echo "Skipping $patch_file"
23 continue
24 fi
25 echo "Apply $patch_file.u"
26 patch -p1 < $stuff/$patch_file.u || return 1
27 touch done.$patch_file
28 done
30 # Don't generate manpages to avoid failure.
31 echo '.so man5/modprobe.conf.5' > modprobe.d.5
33 ./configure \
34 --enable-zlib \
35 --sbindir=/sbin \
36 --bindir=/bin \
37 --sysconfdir=/etc \
38 $CONFIGURE_ARGS &&
39 make && make install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/sbin $fs/etc
46 cp $install/sbin/insmod $fs/sbin
47 cp $install/sbin/modinfo $fs/sbin
48 cp $install/sbin/modprobe $fs/sbin
49 cp $install/sbin/rmmod $fs/sbin
50 # lsmod goes in /bin.
51 cp -a $install/bin $fs
52 # Create the modprobe config directory
53 mkdir -p $fs/etc/modprobe.d
54 }
56 # Remove Busybox symlink before installing
57 pre_install()
58 {
59 rm -f "$1/sbin/insmod"
60 rm -f "$1/sbin/modinfo"
61 rm -f "$1/sbin/modprobe"
62 rm -f "$1/sbin/rmmod"
63 # BusyBox puts lsmod in /sbin, not /bin
64 rm -f "$1/sbin/lsmod"
65 }