[Buildroot] [PATCH] add insserv to use LSB compliant init scripts and dynamically configure init order
heiko at zuerker.org
heiko at zuerker.org
Sun Dec 5 22:26:19 UTC 2010
From: Heiko Zuerker <smiley73 at users.sourceforge.net>
Signed-off-by: Heiko Zuerker <smiley73 at users.sourceforge.net>
---
package/Config.in | 1 +
package/insserv/Config.in | 7 ++++++
package/insserv/insserv.mk | 45 ++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 53 insertions(+), 0 deletions(-)
create mode 100644 package/insserv/Config.in
create mode 100644 package/insserv/insserv.mk
diff --git a/package/Config.in b/package/Config.in
index 678db20..23636b7 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -469,6 +469,7 @@ endmenu
menu "System tools"
if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
source "package/bootutils/Config.in"
+source "package/insserv/Config.in"
source "package/module-init-tools/Config.in"
source "package/procps/Config.in"
source "package/psmisc/Config.in"
diff --git a/package/insserv/Config.in b/package/insserv/Config.in
new file mode 100644
index 0000000..1d968dc
--- /dev/null
+++ b/package/insserv/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_INSSERV
+ bool "insserv"
+ help
+ This small package provides a tool for process controlling
+ in System V boot scripts.
+ It works for LSB compliant init scripts.
+ http://wiki.debian.org/LSBInitScripts
diff --git a/package/insserv/insserv.mk b/package/insserv/insserv.mk
new file mode 100644
index 0000000..20f095d
--- /dev/null
+++ b/package/insserv/insserv.mk
@@ -0,0 +1,45 @@
+#############################################################
+#
+# insserv
+#
+#############################################################
+INSSERV_VERSION = 1.14.0
+INSSERV_SOURCE = insserv-$(INSSERV_VERSION).tar.bz2
+INSSERV_SITE = ftp://ftp.suse.com/pub/projects/init/
+
+INSSERV_INSTALL_TARGET_OPT = INSTALLROOT=$(TARGET_DIR)
+INSSERV_INSTALL_HOST_OPT = INSTALLROOT=$(HOST_DIR)
+
+#INSSERV_DEPENDENCIES=zlib
+#HOST_INSSERV_DEPENDENCIES=host-zlib
+
+define INSSERV_CONFIGURE_CMDS
+ echo "#!/bin/sh" > $(@D)/tests/common
+ echo "exit 0" >> $(@D)/tests/common
+ chmod +x $(@D)/tests/common
+endef
+
+define HOST_INSSERV_CONFIGURE_CMDS
+ echo "#!/bin/sh" > $(@D)/tests/common
+ echo "exit 0" >> $(@D)/tests/common
+ chmod +x $(@D)/tests/common
+endef
+
+define INSSERV_BUILD_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" RPM_OPT_FLAGS=-O2 -C $(@D) all
+endef
+
+define HOST_INSSERV_BUILD_CMDS
+ $(HOST_MAKE_ENV) $(MAKE) -C $(@D) all
+endef
+
+define INSSERV_INSTALL_TARGET_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
+endef
+
+define HOST_INSSERV_INSTALL_CMDS
+ $(HOST_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(HOST_DIR) install
+endef
+
+$(eval $(call GENTARGETS,package,insserv))
+$(eval $(call GENTARGETS,package,insserv,host))
--
1.7.3.2
More information about the buildroot
mailing list