void-packages/srcpkgs/module-init-tools/template

31 lines
943 B
Text
Raw Normal View History

# Template file for 'module-init-tools'
pkgname=module-init-tools
2010-10-26 01:42:22 +00:00
version=3.12
distfiles="${KERNEL_SITE}//utils/kernel/$pkgname/$pkgname-$version.tar.bz2"
build_style=gnu_configure
configure_args="--enable-zlib --prefix="
short_desc="Tools for managing kernel modules"
maintainer="Juan RP <xtraeme@gmail.com>"
2010-10-26 01:42:22 +00:00
checksum=d012ab07ea26721467a85a775f34747c1c8897e37f16bec5317d8a72ef8b4f17
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."
Add_dependency run glibc
Add_dependency run zlib
Add_dependency build zlib-devel
2010-10-26 01:42:22 +00:00
pre_configure()
{
# Don't regenerate manpages.
touch ${wrksrc}/*.{5,8}
}
post_install()
{
2010-10-26 01:42:22 +00:00
sed -i "s#mod#man5/mod#" ${DESTDIR}/usr/share/man/man5/modprobe.d.5
# Some apps expect /sbin/lsmod, so make a symlink.
cd ${DESTDIR}/sbin && ln -sf ../bin/lsmod .
}