#!/bin/bash
-# --enable-zlib-dynamic: To handle compressed kernel modules.
-CONFIGURE_OPTS="\
- --enable-zlib-dynamic \
- --mandir=/usr/share/man \
- ${CONFIGURE_OPTS}"
+hvconfig_pre()
+{
+ # To avoid a problem with regenerating the man pages when not needed,
+ # first rewrite a file that just points to another man page:
+ echo '.so man5/modprobe.conf.5' > ${LFS_TMP}/${PACKAGE}/modprobe.d.5
+
+ # --enable-zlib-dynamic: To handle compressed kernel modules.
+ CONFIGURE_OPTS="\
+ --prefix=/usr \
+ --bindir=/bin \
+ --sbindir=/sbin \
+ --sysconfdir=/etc \
+ --enable-zlib-dynamic"
+}
hvbuild()
{
- make -j ${MAKEJOBS}
+ make
# INSTALL=install
# Normally, make install will not install the binaries if they already
hvbuild_post()
{
- cat > /etc/modprobe.conf << "EOF"
-# modprobe.conf
-EOF
+ install -dv ${LFS}/etc/modprobe.d
}