mirror of
https://github.com/troglobit/finit.git
synced 2026-11-07 16:01:08 +00:00
Overhaul build system and add support for disabling inetd support.
This patch adds support for a configure script and with it
support for disabling inetd support. See the output from
./configure --help
* Add configure script
* Sprinkle #ifdef fairy dust on svc.c when inetd support is disabled
* Use GCC built-in autodep calculator (-MMD -MP)
* Fix name space issue with include files, use relative paths
* Disable username/group name to uid/gid functions in static builds
* Bug out (error) if a user tries to build the bootmisc plugin static
Possibly fixes GitHub issue #5 and issue #6.
NOTE: The static build has not received any testing at all!
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
a74b640507
commit
32587d341c
25 files changed
+392
-118
No files matched your search
@@ -35,7 +35,7 @@
|
||||
#include "svc.h"
|
||||
#include "sig.h"
|
||||
#include "tty.h"
|
||||
#include "lite.h"
|
||||
#include "libite/lite.h"
|
||||
#include "inetd.h"
|
||||
|
||||
int debug = 0;
|
||||
@@ -137,7 +137,11 @@ static int client(int argc, char *argv[])
|
||||
static void banner(void)
|
||||
{
|
||||
delline();
|
||||
#ifdef INIT_HEADING
|
||||
echo("%s", INIT_HEADING);
|
||||
#else
|
||||
echo("Finit version " VERSION " (" WHOAMI ") " __DATE__ " " __TIME__);
|
||||
#endif
|
||||
}
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
|
||||
Reference in new issue
Block a user