From 57ac4cc808d29a8c7c8a5081d9d27fe5b2f6a0eb Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Tue, 2 Dec 2008 17:44:46 +0100
Subject: Also installing build-essential manually in module example hooks, as
 module-assistant doesn't do it automatically.

---
 examples/hooks/aufs.sh          | 2 ++
 examples/hooks/ipw2100.sh       | 2 ++
 examples/hooks/ipw2200.sh       | 2 ++
 examples/hooks/ipw3945.sh       | 2 ++
 examples/hooks/madwifi.sh       | 2 ++
 examples/hooks/nvidia-legacy.sh | 2 ++
 examples/hooks/rt2570.sh        | 2 ++
 examples/hooks/rt2x00.sh        | 2 ++
 examples/hooks/squashfs.sh      | 2 ++
 examples/hooks/unionfs.sh       | 2 ++
 10 files changed, 20 insertions(+)

diff --git a/examples/hooks/aufs.sh b/examples/hooks/aufs.sh
index c5d2b9f..e70dcc7 100755
--- a/examples/hooks/aufs.sh
+++ b/examples/hooks/aufs.sh
@@ -7,6 +7,8 @@
 # Note: You only want to use this hook if there is no prebuild aufs-modules-*
 # package available for your kernel flavour.
 
+apt-get install --yes build-essential
+
 # Building kernel module
 which module-assistant || apt-get install --yes module-assistant
 module-assistant update
diff --git a/examples/hooks/ipw2100.sh b/examples/hooks/ipw2100.sh
index bff50e7..e246eb2 100755
--- a/examples/hooks/ipw2100.sh
+++ b/examples/hooks/ipw2100.sh
@@ -7,6 +7,8 @@
 # Note: This hook requires packages from the contrib category. Make sure you enabled
 # it in your configuration.
 
+apt-get install --yes build-essential
+
 # Building kernel module
 which module-assistant || apt-get install --yes module-assistant
 module-assistant update
diff --git a/examples/hooks/ipw2200.sh b/examples/hooks/ipw2200.sh
index 5304b6b..145ca8b 100755
--- a/examples/hooks/ipw2200.sh
+++ b/examples/hooks/ipw2200.sh
@@ -7,6 +7,8 @@
 # Note: This hook requires packages from the contrib category. Make sure you enabled
 # it in your configuration.
 
+apt-get install --yes build-essential
+
 # Building kernel mdoule
 which module-assistant || apt-get install --yes module-assistant
 module-assistant update
diff --git a/examples/hooks/ipw3945.sh b/examples/hooks/ipw3945.sh
index 96c2823..f805cf9 100755
--- a/examples/hooks/ipw3945.sh
+++ b/examples/hooks/ipw3945.sh
@@ -7,6 +7,8 @@
 # Note: This hook requires packages from the contrib and non-free category. Make
 # sure you enabled it in your configuration.
 
+apt-get install --yes build-essential
+
 # Building kernel module
 which module-assistant || apt-get install --yes module-assistant
 module-assistant update
diff --git a/examples/hooks/madwifi.sh b/examples/hooks/madwifi.sh
index 7b00530..0686c12 100755
--- a/examples/hooks/madwifi.sh
+++ b/examples/hooks/madwifi.sh
@@ -7,6 +7,8 @@
 # Note: This hook requires packages from the contrib category. Make sure you enabled
 # it in your configuration.
 
+apt-get install --yes build-essential
+
 # Building kernel module
 which module-assistant || apt-get install --yes module-assistant
 module-assistant update
diff --git a/examples/hooks/nvidia-legacy.sh b/examples/hooks/nvidia-legacy.sh
index b7d3389..66d67bc 100755
--- a/examples/hooks/nvidia-legacy.sh
+++ b/examples/hooks/nvidia-legacy.sh
@@ -7,6 +7,8 @@
 # Note: This hook requires packages from the non-free category. Make sure you
 # enabled it in your configuration.
 
+apt-get install --yes build-essential
+
 # Building kernel module
 which module-assistant || apt-get install --yes module-assistant nvidia-kernel-common
 module-assistant update
diff --git a/examples/hooks/rt2570.sh b/examples/hooks/rt2570.sh
index 9be3ae4..408b138 100755
--- a/examples/hooks/rt2570.sh
+++ b/examples/hooks/rt2570.sh
@@ -4,6 +4,8 @@
 # To enable it, copy or symlink this hook into your config/chroot_local-hooks
 # directory.
 
+apt-get install --yes build-essential
+
 which module-assistant || apt-get install --yes module-assistant
 module-assistant update
 
diff --git a/examples/hooks/rt2x00.sh b/examples/hooks/rt2x00.sh
index ab99f7d..9da6f72 100755
--- a/examples/hooks/rt2x00.sh
+++ b/examples/hooks/rt2x00.sh
@@ -6,6 +6,8 @@
 #
 # FIXME: it runs in interactive mode
 
+apt-get install --yes build-essential
+
 # Building kernel modules
 which module-assistant || apt-get install --yes module-assistant
 module-assistant update
diff --git a/examples/hooks/squashfs.sh b/examples/hooks/squashfs.sh
index 29eea0c..20667e2 100755
--- a/examples/hooks/squashfs.sh
+++ b/examples/hooks/squashfs.sh
@@ -7,6 +7,8 @@
 # Note: You only want to use this hook if there is no prebuild
 # squashfs-modules-* package available for your kernel flavour.
 
+apt-get install --yes build-essential
+
 # Building kernel module
 which module-assistant || apt-get install --yes module-assistant
 module-assistant update
diff --git a/examples/hooks/unionfs.sh b/examples/hooks/unionfs.sh
index c1d85b4..20f0886 100755
--- a/examples/hooks/unionfs.sh
+++ b/examples/hooks/unionfs.sh
@@ -7,6 +7,8 @@
 # Note: You only want to use this hook if there is no prebuild unionfs-modules-*
 # package available for your kernel flavour.
 
+apt-get install --yes build-essential
+
 # Building kernel module
 which module-assistant || apt-get install --yes module-assistant
 module-assistant update
-- 
cgit v1.0