[Initng-svn] r1924 - in initng: . plugins

svn at initng.thinktux.net svn at initng.thinktux.net
Fri Nov 4 15:34:51 CET 2005


Author: trigger
Date: Fri Nov  4 15:34:50 2005
New Revision: 1924

Modified:
   initng/configure.in
   initng/plugins/Makefile.am
Log:
Now we can add/remove every plugin with --with-PLUGIN[=ARGS]/--without-PLUGIN - Jimmy, do you really wanne kiss me ;)

Modified: initng/configure.in
==============================================================================
--- initng/configure.in	(original)
+++ initng/configure.in	Fri Nov  4 15:34:50 2005
@@ -114,16 +114,10 @@
 AC_SUBST(DOCDIR)
 
 AC_ARG_ENABLE(install-init, [  --enable-install-init          Initng will\
- install itself as new init system (default=disabled)],
+    install itself as new init system (default=disabled)],
     install_init=$enableval,
     install_init=no)
 
-if test "x$install_init" == "xyes"; then
-	install_init=yes
-else
-	installinit=no
-fi
-
 AC_ARG_ENABLE(debug, [  --disable-debug          debug mode (default=enabled)],
     with_debug=$enableval,
     with_debug=yes)
@@ -138,24 +132,190 @@
     CFLAGS="$DEFAULT_CFLAGS $ALL_CFLAGS"
 fi
 
-AC_ARG_WITH(splash, AC_HELP_STRING([--with-splash],[Build with splash plugin]))
-if test "x$with_splash" == "xyes"; then
-	with_splash=yes
-    else
-	with_splash=no
-fi
 
-AC_ARG_WITH(splashy, AC_HELP_STRING([--with-splashy],[Build with splashy plugin]))
-if test "x$with_splashy" == "xyes"; then
-	with_splashy=yes
-    else
-	with_splashy=no
-fi
+AC_ARG_WITH(also, 
+    AC_HELP_STRING([--with-also],[Build with also plugin]),
+    [with_also=$withval], [with_also=yes])
+
+AC_ARG_WITH(bash_launcher, 
+    AC_HELP_STRING([--with-bash_launcher],[Build with bash_launcher plugin]),
+    [with_bash_launcher=$withval], [with_bash_launcher=yes])
+
+AC_ARG_WITH(chdir, 
+    AC_HELP_STRING([--with-chdir],[Build with chdir plugin]),
+    [with_chdir=$withval], [with_chdir=yes])
+
+AC_ARG_WITH(chroot, 
+    AC_HELP_STRING([--with-chroot],[Build with chroot plugin]),
+    [with_chroot=$withval], [with_chroot=yes])
+
+AC_ARG_WITH(cpout, 
+    AC_HELP_STRING([--with-cpout],[Build with cpout plugin]),
+    [with_cpout=$withval], [with_cpout=yes])
+
+
+AC_ARG_WITH(critical, 
+    AC_HELP_STRING([--with-critical],[Build withcritical  plugin]),
+    [with_critical=$withval], [with_critical=yes])
+
+AC_ARG_WITH(depend, 
+    AC_HELP_STRING([--with-depend],[Build with depend plugin]),
+    [with_depend=$withval], [with_depend=yes])
+
+AC_ARG_WITH(dllaunch, 
+    AC_HELP_STRING([--with-dllaunch],[Build with dllaunch plugin]),
+    [with_dllaunch=$withval], [with_dllaunch=no])
+
+AC_ARG_WITH(dparser, 
+    AC_HELP_STRING([--with-dparser],[Build with dparser plugin]),
+    [with_dparser=$withval], [with_dparser=yes])
+
+AC_ARG_WITH(envparser, 
+    AC_HELP_STRING([--with-envparser],[Build with envparser plugin]),
+    [with_envparser=$withval], [with_envparser=yes])
+
+AC_ARG_WITH(find, 
+    AC_HELP_STRING([--with-find],[Build with find plugin]),
+    [with_find=$withval], [with_find=yes])
+
+AC_ARG_WITH(fstat, 
+    AC_HELP_STRING([--with-fstat],[Build with fstat plugin]),
+    [with_fstat=$withval], [with_fstat=yes])
+
+AC_ARG_WITH(history, 
+    AC_HELP_STRING([--with-history],[Build with history plugin]),
+    [with_history=$withval], [with_history=yes])
+
+AC_ARG_WITH(initctl, 
+    AC_HELP_STRING([--with-initctl],[Build with initctl plugin]),
+    [with_initctl=$withval], [with_initctl=yes])
+
+AC_ARG_WITH(interactive, 
+    AC_HELP_STRING([--with-interactive],[Build with interactive plugin]),
+    [with_interactive=$withval], [with_interactive=yes])
+
+AC_ARG_WITH(iparser, 
+    AC_HELP_STRING([--with-iparser],[Build with iparser plugin]),
+    [with_iparser=$withval], [with_iparser=yes])
+
+AC_ARG_WITH(last, 
+    AC_HELP_STRING([--with-last],[Build with last plugin]),
+    [with_last=$withval], [with_last=yes])
+
+AC_ARG_WITH(logfile, 
+    AC_HELP_STRING([--with-logfile],[Build with logfile plugin]),
+    [with_logfile=$withval], [with_logfile=no])
+
+AC_ARG_WITH(netprobe, 
+    AC_HELP_STRING([--with-netprobe],[Build with netprobe plugin]),
+    [with_netprobe=$withval], [with_netprobe=yes])
+
+AC_ARG_WITH(ngc2, 
+    AC_HELP_STRING([--with-ngc2],[Build with ngc2 plugin]),
+    [with_ngc2=$withval], [with_ngc2=yes])
+
+AC_ARG_WITH(pause, 
+    AC_HELP_STRING([--with-pause],[Build with pause plugin]),
+    [with_pause=$withval], [with_pause=yes])
+
+AC_ARG_WITH(pidfile, 
+    AC_HELP_STRING([--with-pidfile],[Build with pidfile plugin]),
+    [with_pidfile=$withval], [with_pidfile=yes])
+
+AC_ARG_WITH(provide, 
+    AC_HELP_STRING([--with-provide],[Build with provide plugin]),
+    [with_provide=$withval], [with_provide=no])
+
+AC_ARG_WITH(reload, 
+    AC_HELP_STRING([--with-reload],[Build with reload plugin]),
+    [with_reload=$withval], [with_reload=yes])
+
+AC_ARG_WITH(renice, 
+    AC_HELP_STRING([--with-renice],[Build with renice plugin]),
+    [with_renice=$withval], [with_renice=yes])
+
+AC_ARG_WITH(respawn, 
+    AC_HELP_STRING([--with-respawn],[Build with respawn plugin]),
+    [with_respawn=$withval], [with_respawn=yes])
+
+AC_ARG_WITH(rlparser, 
+    AC_HELP_STRING([--with-rlparser],[Build with rlparser plugin]),
+    [with_rlparser=$withval], [with_rlparser=yes])
+
+AC_ARG_WITH(simple_launcher, 
+    AC_HELP_STRING([--with-simple_launcher],[Build with simple_launcher plugin]),
+    [with_simple_launcher=$withval], [with_simple_launcher=yes])
+
+AC_ARG_WITH(splash, 
+    AC_HELP_STRING([--with-splash],[Build with splashy plugin]),
+    [with_splash=$withval], [with_splash=no])
+
+AC_ARG_WITH(splashy, 
+    AC_HELP_STRING([--with-splashy],[Build with splashy plugin]),
+    [with_splashy=$withval], [with_splashy=no])
+
+AC_ARG_WITH(stcmd, 
+    AC_HELP_STRING([--with-stcmd],[Build with stcmd plugin]),
+    [with_stcmd=$withval], [with_stcmd=yes])
+
+AC_ARG_WITH(stdout, 
+    AC_HELP_STRING([--with-stdout],[Build with stdout plugin]),
+    [with_stdout=$withval], [with_stdout=yes])
+
+AC_ARG_WITH(suid, 
+    AC_HELP_STRING([--with-suid],[Build with suid plugin]),
+    [with_suid=$withval], [with_suid=yes])
+
+AC_ARG_WITH(syncron, 
+    AC_HELP_STRING([--with-syncron],[Build with syncron plugin]),
+    [with_syncron=$withval], [with_syncron=yes])
+
+AC_ARG_WITH(syslog, 
+    AC_HELP_STRING([--with-syslog],[Build with syslog plugin]),
+    [with_syslog=$withval], [with_syslog=yes])
+
+AC_ARG_WITH(unneeded, 
+    AC_HELP_STRING([--with-unneeded],[Build with unneeded plugin]),
+    [with_unneeded=$withval], [with_unneeded=yes])
 
 
+AM_CONDITIONAL(INSTALL_AS_INIT, test "$install_init" = "yes")
+AM_CONDITIONAL(BUILD_ALSO, test "$with_also" = "yes")
+AM_CONDITIONAL(BUILD_BASH_LAUNCHER, test "$with_bash_launcher" = "yes")
+AM_CONDITIONAL(BUILD_CHDIR, test "$with_chdir" = "yes")
+AM_CONDITIONAL(BUILD_CHROOT, test "$with_chroot" = "yes")
+AM_CONDITIONAL(BUILD_CPOUT, test "$with_cpout" = "yes")
+AM_CONDITIONAL(BUILD_CRITICAL, test "$with_critical" = "yes")
+AM_CONDITIONAL(BUILD_DEPEND, test "$with_depend" = "yes")
+AM_CONDITIONAL(BUILD_DLLAUNCH, test "$with_dllaunch" = "yes")
+AM_CONDITIONAL(BUILD_DPARSER, test "$with_dparser" = "yes")
+AM_CONDITIONAL(BUILD_ENVPARSER, test "$with_envparser" = "yes")
+AM_CONDITIONAL(BUILD_FIND, test "$with_find" = "yes")
+AM_CONDITIONAL(BUILD_FSTAT, test "$with_fstat" = "yes")
+AM_CONDITIONAL(BUILD_HISTORY, test "$with_history" = "yes")
+AM_CONDITIONAL(BUILD_INITCTL, test "$with_initctl" = "yes")
+AM_CONDITIONAL(BUILD_INTERACTIVE, test "$with_interactice" = "yes")
+AM_CONDITIONAL(BUILD_IPARSER, test "$with_iparser" = "yes")
+AM_CONDITIONAL(BUILD_LAST, test "$with_last" = "yes")
+AM_CONDITIONAL(BUILD_LOGFILE, test "$with_logfile" = "yes")
+AM_CONDITIONAL(BUILD_NETPROBE, test "$with_netprobe" = "yes")
+AM_CONDITIONAL(BUILD_NGC2, test "$with_ngc2" = "yes")
+AM_CONDITIONAL(BUILD_PAUSE, test "$with_pause" = "yes")
+AM_CONDITIONAL(BUILD_PIDFILE, test "$with_pidfile" = "yes")
+AM_CONDITIONAL(BUILD_PROVIDE, test "$with_provide" = "yes")
+AM_CONDITIONAL(BUILD_RELOAD, test "$with_reload" = "yes")
+AM_CONDITIONAL(BUILD_RENICE, test "$with_renice" = "yes")
+AM_CONDITIONAL(BUILD_RESPAWN, test "$with_respawn" = "yes")
+AM_CONDITIONAL(BUILD_RLPARSER, test "$with_rlparser" = "yes")
+AM_CONDITIONAL(BUILD_SIMPLE_LAUNCHER, test "$with_simple_launcher" = "yes")
 AM_CONDITIONAL(BUILD_SPLASH, test "$with_splash" = "yes")
 AM_CONDITIONAL(BUILD_SPLASHY, test "$with_splashy" = "yes")
-AM_CONDITIONAL(INSTALL_AS_INIT, test "$install_init" = "yes")
+AM_CONDITIONAL(BUILD_STDCMD, test "$with_stdcmd" = "yes")
+AM_CONDITIONAL(BUILD_STDOUT, test "$with_stdout" = "yes")
+AM_CONDITIONAL(BUILD_SUID, test "$with_suid" = "yes")
+AM_CONDITIONAL(BUILD_SYNCRON, test "$with_syncron" = "yes")
+AM_CONDITIONAL(BUILD_SYSLOG, test "$with_syslog" = "yes")
+AM_CONDITIONAL(BUILD_UNNEEDED, test "$with_unneeded" = "yes")
 
 AC_OUTPUT(Makefile \
 	  src/Makefile \
@@ -215,8 +375,42 @@
 echo Install as init........................ : $install_init
 echo Debug.................................. : $with_debug
 echo Docdir. ............................... : $DOCDIR
+echo Build also plugin...................... : $with_also
+echo Build bash_launcher plugin............. : $with_bash_launcher
+echo Build chdir plugin..................... : $with_chdir
+echo Build chroot plugin.................... : $with_chroot
+echo Build cpout plugin..................... : $with_cpout
+echo Build critical plugin.................. : $with_critical
+echo Build depend plugin.................... : $with_depend
+echo Build dllaunch plugin.................. : $with_dllaunch
+echo Build dparser plugin................... : $with_dparser
+echo Build envparser plugin................. : $with_envparser
+echo Build find plugin...................... : $with_find
+echo Build fstat plugin..................... : $with_fstat
+echo Build history plugin................... : $with_history
+echo Build initctl plugin................... : $with_initctl
+echo Build interactive plugin............... : $with_interactive
+echo Build iparser plugin................... : $with_iparser
+echo Build last plugin...................... : $with_last
+echo Build logfile plugin................... : $with_logfile
+echo Build netprobe plugin.................. : $with_netprobe
+echo Build ngc2 plugin...................... : $with_ngc2
+echo Build pause plugin..................... : $with_pause
+echo Build pidfile plugin................... : $with_pidfile
+echo Build provide plugin................... : $with_provide
+echo Build reload plugin.................... : $with_reload
+echo Build renice plugin.................... : $with_renice
+echo Build respawn plugin................... : $with_respawn
+echo Build rlparser plugin.................. : $with_rlparser
+echo Build simple_launcher plugin........... : $with_simple_launcher
 echo Build splash plugin.................... : $with_splash
 echo Build splashy plugin................... : $with_splashy
+echo Build stcmd plugin..................... : $with_stcmd
+echo Build stdout plugin.................... : $with_stdout
+echo Build suid plugin...................... : $with_suid
+echo Build syncron plugin................... : $with_syncron
+echo Build syslog plugin.................... : $with_syslog
+echo Build unneeded plugin.................. : $with_unneeded
 echo
 
 AC_SUBST(DOCDIR)

Modified: initng/plugins/Makefile.am
==============================================================================
--- initng/plugins/Makefile.am	(original)
+++ initng/plugins/Makefile.am	Fri Nov  4 15:34:50 2005
@@ -1,43 +1,182 @@
-#conditional build
+if BUILD_ALSO
+    ALSO=also
+endif
+
+if BUILD_BASH_LAUNCHER
+    BASH_LAUNCHER=bash_launcher
+endif
+
+if BUILD_CHDIR
+    CHDIR=chdir
+endif
+
+if BUILD_CHROOT
+    CHROOT=chroot
+endif
+
+if BUILD_CPOUT
+    CPOUT=cpout
+endif
+
+if BUILD_CRITICAL
+    CRITICAL=critical
+endif
+
+if BUILD_DEPEND
+    DEPEND=depend
+endif
+
+if BUILD_DLLAUNCH
+    DLLAUNCH=dllaunch
+endif
+
+if BUILD_DPARSER
+    DPARSER=dparser
+endif
+
+if BUILD_ENVPARSER
+    ENVPARSER=envparser
+endif
+
+if BUILD_FIND
+    FIND=find
+endif
+
+if BUILD_FSTAT
+    FSTAT=fstat
+endif
+
+if BUILD_HISTORY
+    HISTORY=history
+endif
+
+if BUILD_INITCTL
+    INITCTL=initctl
+endif
+
+if BUILD_INTERACTIVE
+    INTERACTIVE=interactive
+endif
+
+if BUILD_IPARSER
+    IPARSER=iparser
+endif
+
+if BUILD_LAST
+    LAST=last
+endif
+
+if BUILD_LOGFILE
+    LOGFILE=logfile
+endif
+
+if BUILD_NETPROBE
+    NETPROBE=netprobe
+endif
+
+if BUILD_NGC2
+    NGC2=ngc2
+endif
+
+if BUILD_PAUSE
+    PAUSE=pause
+endif
+
+if BUILD_PIDFILE
+    PIDFILE=pidfile
+endif
+
+if BUILD_PROVIDE
+    PROVIDE=provide
+endif
+
+if BUILD_RELOAD
+    RELOAD=reload
+endif
+
+if BUILD_RENICE
+    RENICE=renice
+endif
+
+if BUILD_RESPAWN
+    RESPAWN=respawn
+endif
+
+if BUILD_RLPARSER
+    RLPARSER=rlparser
+endif
+
+if BUILD_SIMPLE_LAUNCHER
+    SIMPLE_LAUNCHER=simple_launcher
+endif
+
 if BUILD_SPLASH
-SPLASH=splash
+    SPLASH=splash
 endif
 
 if BUILD_SPLASHY
-SPLASHY=splashy
+    SPLASHY=splashy
 endif
 
+if BUILD_STDCMD
+    STDCMD=stdcmd
+endif
+
+if BUILD_STDOUT
+    STDOUT=stdout
+endif
+
+if BUILD_SUID
+    SUID=suid
+endif
+
+if BUILD_SYNCRON
+    SYNCRON=synchron
+endif
+
+if BUILD_SYSLOG
+    SYSLOG=syslog
+endif
+
+if BUILD_UNNEEDED
+    UNNEDED=unneeded
+endif
+
+
 SUBDIRS = \
-	bash_launcher \
-	chdir \
-	chroot \
-	cpout \
-	critical \
-	depend \
-	initctl \
-	fstat \
-	interactive \
-	iparser \
-	ngc2 \
-	pause \
-	pidfile \
-	netprobe \
-	renice \
-	rlparser \
-	simple_launcher \
-	stcmd \
-	suid \
-	syncron \
-	stdout \
-	reload \
-	respawn \
-	unneeded \
-	dparser \
-	envparser \
-	also \
-	find \
-	history \
-	syslog \
-	last \
+	$(ALSO) \
+	$(BASH_LAUNCHER) \
+	$(CHDIR) \
+	$(CHROOT) \
+	$(CPOUT) \
+	$(CRITICAL) \
+	$(DEPEND) \
+	$(DLLAUNCH) \
+	$(DPARSER) \
+	$(ENVPARSER) \
+	$(FIND) \
+	$(FSTAT) \
+	$(HISTORY) \
+	$(INITCTL) \
+	$(INTERACTIVE) \
+	$(IPARSER) \
+	$(LAST) \
+	$(LOGFILE) \
+	$(NETPROBE) \
+	$(NGC2) \
+	$(PAUSE) \
+	$(PIDFILE) \
+	$(PROVIDE) \
+	$(RELOAD) \
+	$(RENICE) \
+	$(RESPAWN) \
+	$(RLPARSER) \
+	$(SIMPLE_LAUNCHER) \
 	$(SPLASH) \
 	$(SPLASHY)
+	$(STDCMD) \
+	$(STDOUT) \
+	$(SUID) \
+	$(SYNCHRON) \
+	$(SYSLOG) \
+	$(UNNEEDED)


More information about the Initng-svn mailing list