partx
endif
+if BUILD_INIT
+SUBDIRS += simpleinit
+endif
+
if BUILD_MOUNT
SUBDIRS += mount
endif
getopt/Makefile
hwclock/Makefile
include/Makefile
+simpleinit/Makefile
lib/Makefile
login-utils/Makefile
Makefile
login
newgrp
vipw
-initctl
last
-shutdown
-simpleinit
mesg
endif
endif
-if BUILD_INIT
-
-sbin_PROGRAMS += simpleinit shutdown initctl
-dist_man_MANS += fastboot.8 fasthalt.8 halt.8 reboot.8 simpleinit.8 shutdown.8 \
- initctl.8
-
-simpleinit_SOURCES = simpleinit.c my_crypt.h simpleinit.h
-initctl_SOURCES = initctl.c simpleinit.h
-
-if NEED_LIBCRYPT
-simpleinit_LDADD = -lcrypt
-endif
-
-endif # BUILD_INIT
-
if BUILD_LAST
usrbin_exec_PROGRAMS += last
dist_man_MANS += last.1
endif
endif
-if BUILD_INIT
-
-install-exec-hook::
- cd $(DESTDIR)$(sbindir) && ln -sf shutdown reboot
- cd $(DESTDIR)$(sbindir) && ln -sf shutdown fastboot
- cd $(DESTDIR)$(sbindir) && ln -sf shutdown halt
- cd $(DESTDIR)$(sbindir) && ln -sf shutdown fasthalt
- cd $(DESTDIR)$(sbindir) && ln -sf initctl need
- cd $(DESTDIR)$(sbindir) && ln -sf initctl display-services
- cd $(DESTDIR)$(sbindir) && ln -sf initctl provide
-
-install-data-hook:
- cd $(DESTDIR)$(mandir)/man8 && ln -sf initctl.8 need.8
- cd $(DESTDIR)$(mandir)/man8 && ln -sf initctl.8 display-services.8
- cd $(DESTDIR)$(mandir)/man8 && ln -sf initctl.8 provide.8
-
-endif
-
noinst_PROGRAMS = checktty_test islocal_test
checktty_test_SOURCES = checktty.c login.h
checktty_test_CPPFLAGS = -DMAIN_TEST_CHECKTTY $(AM_CPPFLAGS)
--- /dev/null
+initctl
+shutdown
+simpleinit
--- /dev/null
+include $(top_srcdir)/config/include-Makefile.am
+
+sbin_PROGRAMS = simpleinit shutdown initctl
+dist_man_MANS = fastboot.8 fasthalt.8 halt.8 reboot.8 simpleinit.8 shutdown.8 \
+ initctl.8
+
+simpleinit_SOURCES = simpleinit.c my_crypt.h simpleinit.h
+initctl_SOURCES = initctl.c simpleinit.h
+
+if NEED_LIBCRYPT
+simpleinit_LDADD = -lcrypt
+endif
+
+install-exec-hook::
+ cd $(DESTDIR)$(sbindir) && ln -sf shutdown reboot
+ cd $(DESTDIR)$(sbindir) && ln -sf shutdown fastboot
+ cd $(DESTDIR)$(sbindir) && ln -sf shutdown halt
+ cd $(DESTDIR)$(sbindir) && ln -sf shutdown fasthalt
+ cd $(DESTDIR)$(sbindir) && ln -sf initctl need
+ cd $(DESTDIR)$(sbindir) && ln -sf initctl display-services
+ cd $(DESTDIR)$(sbindir) && ln -sf initctl provide
+
+install-data-hook:
+ cd $(DESTDIR)$(mandir)/man8 && ln -sf initctl.8 need.8
+ cd $(DESTDIR)$(mandir)/man8 && ln -sf initctl.8 display-services.8
+ cd $(DESTDIR)$(mandir)/man8 && ln -sf initctl.8 provide.8
+
#ifdef SHADOW_PWD
# include <shadow.h>
#endif
-#include "my_crypt.h"
+
+#if defined (__GNU_LIBRARY__) && __GNU_LIBRARY__ > 1
+#include <crypt.h>
+#endif
+
#include "pathnames.h"
#include "linux_reboot.h"
#include "strutils.h"
#include "nls.h"
#include "simpleinit.h"
+
#define CMDSIZ 150 /* max size of a line in inittab */
#define NUMCMD 30 /* max number of lines in inittab */
#define NUMTOK 20 /* max number of tokens in inittab command */