[pkg-fso-commits] [SCM] linux-2.6-openmoko, the Linux 2.6 kernel tree from Openmoko branch, debian, updated. debian/20090702.gitd1c828aa-1-2-g0314114
Luca Capello
luca at pca.it
Wed Jul 22 00:26:27 UTC 2009
The following commit has been merged in the debian branch:
commit 03141143fd2f321bf429f142ff695a80e1073bf7
Author: Luca Capello <luca at pca.it>
Date: Wed Jul 22 02:22:51 2009 +0200
debian/*: manage depmod modules.* files at postinst/prerm
diff --git a/debian/changelog b/debian/changelog
index 8f7c823..048fbd6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,10 @@ linux-2.6-openmoko (20090702.gitd1c828aa-2) UNRELEASED; urgency=low
* debian/config.gta02:
+ CONFIG_TASKSTAT=y, CONFIG_TASK_DELAY_ACCT=y, CONFIG_TASK_XACCT=y
and CONFIG_TASK_IO_ACCOUNTING=y.
+ * debian/postinst.in:
+ + generate the depmod modules.* files when configuring.
+ * debian/prerm.in:
+ - remove the depmod modules.* files when removing or upgrading.
--
diff --git a/debian/postinst.in b/debian/postinst.in
index 10908a9..74c5cd3 100644
--- a/debian/postinst.in
+++ b/debian/postinst.in
@@ -2,11 +2,17 @@
set -e
+VERSION=@PACKAGE_VERSION@
+
# Create the /boot/uImage.bin symlink
if [ "$1" = "configure" ]; then
- VERSION=@PACKAGE_VERSION@
UBOOT_IMAGE=/boot/uImage.bin
if [ ! -e "$UBOOT_IMAGE" ]; then
cd /boot && ln -s uImage.bin-"$VERSION" "$UBOOT_IMAGE"
fi
fi
+
+# Generate the depmod modules.* files
+if [ "$1" = "configure" ]; then
+ depmod -a "$VERSION"
+fi
diff --git a/debian/prerm.in b/debian/prerm.in
index 1aafab4..7aa7635 100644
--- a/debian/prerm.in
+++ b/debian/prerm.in
@@ -2,11 +2,22 @@
set -e
+VERSION=@PACKAGE_VERSION@
+
# Remove the /boot/uImage.bin symlink
if [ "$1" = "remove" -o "$1" = "upgrade" ]; then
- VERSION=@PACKAGE_VERSION@
UBOOT_IMAGE=/boot/uImage.bin
if [ "`readlink $UBOOT_IMAGE`" = "uImage.bin-$VERSION" ]; then
rm -f "$UBOOT_IMAGE"
fi
fi
+
+# Remove the depmod modules.* files
+if [ "$1" = "remove" -o "$1" = "upgrade" ]; then
+ MODULES_BASE="/lib/modules/$VERSION/"
+ for I in modules.alias modules.alias.bin \
+ modules.dep modules.dep.bin \
+ modules.symbols modules.symbols.bin; do
+ rm -f "$MODULES_BASE/$I"
+ done
+fi
--
linux-2.6-openmoko, the Linux 2.6 kernel tree from Openmoko
More information about the pkg-fso-commits
mailing list