summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/system/initng/initng.kconfig49
-rw-r--r--packages/system/initng/initng.mk51
-rw-r--r--packages/system/system.kconfig3
-rw-r--r--packages/system/system.mk3
4 files changed, 106 insertions, 0 deletions
diff --git a/packages/system/initng/initng.kconfig b/packages/system/initng/initng.kconfig
new file mode 100644
index 0000000..4590609
--- /dev/null
+++ b/packages/system/initng/initng.kconfig
@@ -0,0 +1,49 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2009-2012 Abdoulaye Walsimou GAYE.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file initng.kconfig
+# \brief initng.kconfig of Embtoolkit
+# \author Averell KINOUANI <averell.kinouani@embtoolkit.org>
+# \date July 2015
+################################################################################
+
+config EMBTK_HAVE_INITNG
+ bool "Have initng"
+ help
+ InitNG is a full replacement for the old and in many ways deprecated System V Init system.
+ It speeds up the boot process with parallel starts, allows you to monitor your running
+ daemons and has many more features.
+choice
+ prompt "initng version you wish"
+ depends on EMBTK_HAVE_INITNG
+ help
+ Here you can choose which version of initng you want to use.
+
+ config EMBTK_INITNG_VERSION_0_6_10_2
+ bool "initng-0.6.10.2"
+endchoice
+
+config EMBTK_INITNG_VERSION_STRING
+ string
+ default "0.6.10.2" if EMBTK_INITNG_VERSION_0_6_10_2
+
+config EMBTK_INITNG_NEED_PATCH
+ bool
+config EMBTK_INITNG_NEED_AUTORECONF
+ bool
diff --git a/packages/system/initng/initng.mk b/packages/system/initng/initng.mk
new file mode 100644
index 0000000..0df25bf
--- /dev/null
+++ b/packages/system/initng/initng.mk
@@ -0,0 +1,51 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2009-2012 Abdoulaye Walsimou GAYE.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file initng.mk
+# \brief initng.mk of Embtoolkit
+# \author Averell KINOUANI <averell.kinouani@embtoolkit.org>
+# \date July 2015
+################################################################################
+
+INITNG_NAME := initng
+INITNG_VERSION := $(call embtk_get_pkgversion,initng)
+INITNG_SITE := http://sourceforge.net/projects/initng/files/initng/v0.6/
+INITNG_PACKAGE := initng-$(INITNG_VERSION).tar.bz2
+INITNG_SRC_DIR := $(embtk_pkgb)/initng-$(INITNG_VERSION)
+INITNG_BUILD_DIR := $(embtk_pkgb)/initng-$(INITNG_VERSION)
+
+INITNG_BINS := initng
+INITNG_LIBS := libinitng.*
+
+INITNG_CMAKE_OPTS := "SET(CMAKE_SYSTEM_NAME Linux)\n\
+ SET(CMAKE_C_COMPILER $(TARGETCC))\n\
+ SET(CMAKE_CXX_COMPILER $(TARGETCXX))\n\
+ SET(CMAKE_FIND_ROOT_PATH $(embtk_tools))\n\
+ SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)\n\
+ SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY $(embtk_sysroot)/usr/lib)\n\
+ SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE $(embtk_sysroot)/usr/include)\n\
+ SET(CMAKE_INSTALL_PREFIX $(embtk_sysroot))\n"
+
+
+define embtk_install_initng
+ printf $(INITNG_CMAKE_OPTS) >> $(INITNG_BUILD_DIR)/CMakeLists.txt;
+ (cd $(INITNG_BUILD_DIR) && cmake . && make && make install)
+endef
+
+
diff --git a/packages/system/system.kconfig b/packages/system/system.kconfig
index 22150b9..e1fd046 100644
--- a/packages/system/system.kconfig
+++ b/packages/system/system.kconfig
@@ -28,3 +28,6 @@ source packages/system/dbus/dbus.kconfig
# OpenRC
source packages/system/openrc/openrc.kconfig
+
+# InitNG
+source packages/system/initng/initng.kconfig
diff --git a/packages/system/system.mk b/packages/system/system.mk
index 3285ac7..819ce59 100644
--- a/packages/system/system.mk
+++ b/packages/system/system.mk
@@ -33,3 +33,6 @@ $(call embtk_include_pkg,openrc)
# mtd-utils
$(call embtk_include_pkg,mtdutils)
+
+# initng
+$(call embtk_include_pkg, initng)