2009-03-08 01:52:55 +01:00
|
|
|
# Template file for 'klibc-module-init-tools'
|
|
|
|
pkgname=klibc-module-init-tools
|
|
|
|
version=3.6
|
|
|
|
wrksrc="module-init-tools-${version}"
|
2009-04-19 00:31:39 +02:00
|
|
|
distfiles="${KERNEL_SITE}/utils/kernel/module-init-tools/module-init-tools-$version.tar.bz2"
|
2009-03-08 01:52:55 +01:00
|
|
|
build_style=custom-install
|
|
|
|
short_desc="Tools for managing kernel modules for initramfs"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
checksum=64a0b3b058f2236be1a8138356306c91e5f23f149a131428e4c7d97b1c050728
|
|
|
|
long_desc="
|
|
|
|
The module-init-tools package provides many of the utilities
|
|
|
|
needed by Linux systems for managing loadable Linux Kernel Modules. This
|
|
|
|
includes depmod, insmod, rmmod, modprobe and tools like modinfo.
|
|
|
|
|
|
|
|
This package uses klibc for use in the initramfs."
|
|
|
|
|
2009-03-08 04:12:54 +01:00
|
|
|
Add_dependency build klibc
|
2009-03-08 01:52:55 +01:00
|
|
|
Add_dependency run klibc
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
|
|
|
cd $wrksrc
|
2009-03-08 04:12:54 +01:00
|
|
|
CFLAGS="-O2 -DCONFIG_NO_BACKWARDS_COMPAT" \
|
2009-03-08 01:52:55 +01:00
|
|
|
CC=klcc LD=klcc ./configure --prefix=
|
|
|
|
# klibc lacks getc_unlocked, so use getc instead
|
|
|
|
sed 's|getc_unlocked|getc|g' -i *.c
|
|
|
|
make || return 1
|
|
|
|
|
2009-03-11 06:31:56 +01:00
|
|
|
install -d ${DESTDIR}/usr/lib/klibc/sbin
|
2009-03-08 01:52:55 +01:00
|
|
|
for f in depmod modinfo modprobe insmod lsmod rmmod; do
|
2009-03-11 06:31:56 +01:00
|
|
|
install -s -m755 ${f} ${DESTDIR}/usr/lib/klibc/sbin
|
2009-03-08 01:52:55 +01:00
|
|
|
done
|
|
|
|
}
|