summaryrefslogtreecommitdiff
path: root/modutils
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2004-05-05 22:01:07 +0000
committerMichael Lauer <mickey@vanille-media.de>2004-05-05 22:01:07 +0000
commit1fc85a7d0a7562f51a4ef2c4ec4a5e47ab041ceb (patch)
tree742ce28793905d7c5194772c9dcefb35cb669955 /modutils
parent78817545b117ec78e512afe7a26cb9cbc3eee2ba (diff)
Merge bk://openembedded@openembedded.bkbits.net/packages
into gandalf.tm.informatik.uni-frankfurt.de:/usr/local/projects/packages 2004/05/06 00:01:00+02:00 uni-frankfurt.de!mickeyl clear up confusion in postinst/prerm scripts - patch courtesy pb_. BKrev: 40996423eCuXGk1lKNaJTahliHxorw
Diffstat (limited to 'modutils')
-rw-r--r--modutils/modutils_2.4.27.oe49
1 files changed, 49 insertions, 0 deletions
diff --git a/modutils/modutils_2.4.27.oe b/modutils/modutils_2.4.27.oe
index e69de29bb2..2525ae84a9 100644
--- a/modutils/modutils_2.4.27.oe
+++ b/modutils/modutils_2.4.27.oe
@@ -0,0 +1,49 @@
+PR = "r1"
+DESCRIPTION = "These utilities are intended to make a Linux modular kernel \
+manageable for all users, administrators and distribution \
+maintainers."
+
+SRC_URI = "ftp://ftp.kernel.org/pub/linux/utils/kernel/modutils/v2.4/modutils-${PV}.tar.bz2 \
+ file://${FILESDIR}/modutils-notest.patch;patch=1 \
+ file://${FILESDIR}/configure.patch;patch=1 \
+ file://${FILESDIR}/program_prefix.patch;patch=1"
+
+inherit autotools
+
+# modutils go in /sbin
+sbindir = "/sbin"
+EXTRA_OECONF = "--disable-strip"
+export BUILDCC = "${BUILD_CC}"
+
+do_install () {
+ oe_runmake 'DESTDIR=${D}' install
+ install -d ${D}/${sysconfdir}
+ oe_machinstall -m 0644 ${FILESDIR}/modules ${D}/${sysconfdir}/modules
+ oe_machinstall -m 0644 ${FILESDIR}/modules.conf ${D}/${sysconfdir}/modules.conf
+}
+
+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 start 20 S .
+}
+
+pkg_prerm_modutils () {
+ if test -n "$D"; then
+ D="-r $D"
+ fi
+ update-rc.d $D modutils remove
+}
+
+PACKAGES = "modutils-depmod modutils"
+
+FILES_modutils-depmod = "sbin/depmod"
+
+RDEPENDS_modutils = "modutils-depmod"