include schedutils/Makemodule.am
include text-utils/Makemodule.am
include term-utils/Makemodule.am
+include agetty-cmd/Makemodule.am
include login-utils/Makemodule.am
include sys-utils/Makemodule.am
include misc-utils/Makemodule.am
--- /dev/null
+if BUILD_AGETTY
+sbin_PROGRAMS += agetty
+MANPAGES += term-utils/agetty.8
+dist_noinst_DATA += term-utils/agetty.8.adoc
+
+agetty_SOURCES = agetty-cmd/agetty.c
+
+if USE_PLYMOUTH_SUPPORT
+agetty_SOURCES += lib/plymouth-ctrl.c
+endif
+
+if LINUX
+agetty_SOURCES += lib/netlink.c lib/netaddrq.c
+endif
+
+agetty_LDADD = $(LDADD) libcommon.la libcommon_logindefs.la
+
+if BSD
+agetty_LDADD += -lutil
+endif
+
+if HAVE_SYSTEMD
+agetty_LDADD += $(SYSTEMD_LIBS)
+agetty_CFLAGS = $(SYSTEMD_CFLAGS)
+endif
+endif # BUILD_AGETTY
__attribute__((__format__(printf, 1, 2)));
static void log_warn (const char *, ...)
__attribute__((__format__(printf, 1, 2)));
+#ifdef KDGKBLED
static ssize_t append(char *dest, size_t len, const char *sep, const char *src);
+#endif
static void check_username (const char* nm);
static void login_options_to_argv(char *argv[], int *argc, char *str, char *username);
static void reload_agettys(void);
*q = '\0';
}
+#ifdef KDGKBLED
/*
* Appends @str to @dest and if @dest is not empty then use @sep as a
* separator. The maximal final length of the @dest is @len.
return dsz + ssz + sz;
}
+#endif /* KDGKBLED */
/*
* Do not allow the user to pass an option as a user name
--- /dev/null
+agetty_sources = files(
+ 'agetty.c',
+)
+
+if LINUX
+ agetty_sources += netlink_files_c
+endif
+
+agetty_manadocs = files('../term-utils/agetty.8.adoc')
subdir('schedutils')
subdir('text-utils')
subdir('term-utils')
+subdir('agetty-cmd')
subdir('lsfd-cmd')
subdir('lsblk-cmd')
subdir('po')
endif # BUILD_SCRIPTLIVE
-if BUILD_AGETTY
-sbin_PROGRAMS += agetty
-MANPAGES += term-utils/agetty.8
-dist_noinst_DATA += term-utils/agetty.8.adoc
-agetty_SOURCES = term-utils/agetty.c
-if USE_PLYMOUTH_SUPPORT
-agetty_SOURCES += lib/plymouth-ctrl.c
-endif
-if LINUX
-agetty_SOURCES += lib/netlink.c lib/netaddrq.c
-endif
-agetty_LDADD = $(LDADD) libcommon.la libcommon_logindefs.la
-if BSD
-agetty_LDADD += -lutil
-endif
-if HAVE_SYSTEMD
-agetty_LDADD += $(SYSTEMD_LIBS)
-agetty_CFLAGS = $(SYSTEMD_CFLAGS)
-endif
-endif # BUILD_AGETTY
-
if BUILD_SETTERM
usrbin_exec_PROGRAMS += setterm
)
scriptreplay_manadocs = files('scriptreplay.1.adoc')
-agetty_sources = files(
- 'agetty.c',
-)
-if LINUX
- agetty_sources += netlink_files_c
-endif
-agetty_manadocs = files('agetty.8.adoc')
setterm_sources = files(
'setterm.c',