DESCRIPTION = "These utilities are intended to make a Linux modular kernel \ manageable for all users, administrators and distribution maintainers." FILESDIR = "${@os.path.dirname(oe.data.getVar('FILE',d,1))}/files" PR = "r4" SRC_URI = "ftp://ftp.kernel.org/pub/linux/utils/kernel/modutils/v2.4/modutils-${PV}.tar.bz2 \ file://lex.l.diff;patch=1 \ file://modutils-notest.patch;patch=1 \ file://configure.patch;patch=1 \ file://program_prefix.patch;patch=1 \ file://armeb.patch;patch=1" inherit autotools # modutils go in /sbin sbindir = "/sbin" EXTRA_OECONF = "--disable-strip" export BUILDCC = "${BUILD_CC}" export BUILDCFLAGS = "${BUILD_CFLAGS}" do_install () { oe_runmake 'DESTDIR=${D}' install install -d ${D}/${sysconfdir} } pkg_postinst_modutils () { if test -n "$D"; then D="-r $D" if test -n "`which ${TARGET_PREFIX}depmod`"; then for kerneldir in `ls -p ${IMAGE_ROOTFS}/lib/modules|grep /`; do kernelver=`basename $kerneldir` ${TARGET_PREFIX}depmod -a -b ${IMAGE_ROOTFS} -C ${IMAGE_ROOTFS}/${sysconfdir}/modules.conf -r $kernelver done fi fi update-rc.d $D modutils.sh start 20 S . } pkg_prerm_modutils () { if test -n "$D"; then D="-r $D" fi update-rc.d $D modutils.sh remove } PACKAGES = "modutils-depmod modutils-modinfo modutils-doc modutils" FILES_modutils-depmod = "sbin/depmod" FILES_modutils-modinfo = "sbin/modinfo" RDEPENDS_modutils = "modutils-depmod"