3 usrbin_exec_PROGRAMS += last
7 last_SOURCES = login-utils/last.c lib/monotonic.c
8 last_LDADD = $(LDADD) libcommon.la $(REALTIME_LIBS)
10 install-exec-hook-last:
11 cd $(DESTDIR)$(usrbin_execdir) && ln -sf last lastb
13 INSTALL_EXEC_HOOKS += install-exec-hook-last
17 sbin_PROGRAMS += sulogin
18 dist_man_MANS += login-utils/sulogin.8
20 login-utils/sulogin.c \
21 login-utils/sulogin-consoles.c \
22 login-utils/sulogin-consoles.h
23 sulogin_LDADD = $(LDADD) libcommon.la
26 sulogin_LDADD += -lcrypt
29 sulogin_LDADD += -lselinux
32 check_PROGRAMS += test_consoles
33 test_consoles_SOURCES = login-utils/sulogin-consoles.c
34 test_consoles_CFLAGS = $(AM_CFLAGS) -DTEST_PROGRAM
35 test_consoles_LDADD = $(LDADD) libcommon.la
41 dist_man_MANS += login-utils/login.1
44 login-utils/logindefs.c \
45 login-utils/logindefs.h
46 login_LDADD = $(LDADD) libcommon.la -lpam
48 login_LDADD += -lpam_misc
51 login_LDADD += -laudit
54 login_LDADD += -lselinux
60 sbin_PROGRAMS += nologin
61 dist_man_MANS += login-utils/nologin.8
62 nologin_SOURCES = login-utils/nologin.c
67 usrbin_exec_PROGRAMS += utmpdump
68 dist_man_MANS += login-utils/utmpdump.1
69 utmpdump_SOURCES = login-utils/utmpdump.c
70 utmpdump_LDADD = $(LDADD) libcommon.la
75 usrbin_exec_PROGRAMS += chfn chsh
81 login-utils/ch-common.h \
82 login-utils/ch-common.c
83 chfn_chsh_cflags = $(SUID_CFLAGS) $(AM_CFLAGS)
84 chfn_chsh_ldflags = $(SUID_LDFLAGS) $(AM_LDFLAGS)
85 chfn_chsh_ldadd = libcommon.la $(READLINE_LIBS)
88 chfn_chsh_ldadd += -lpam
90 chfn_chsh_ldadd += -lpam_misc
92 chfn_chsh_sources += \
95 endif # CHFN_CHSH_PASSWORD
98 chfn_chsh_ldflags += $(LIBUSER_LIBS)
99 chfn_chsh_cflags += $(LIBUSER_CFLAGS)
100 chfn_chsh_sources+= \
101 login-utils/libuser.c \
102 login-utils/libuser.h
104 chfn_chsh_sources += \
105 login-utils/islocal.c \
106 login-utils/islocal.h \
107 login-utils/setpwnam.c \
108 login-utils/setpwnam.h
112 chfn_chsh_sources += \
113 login-utils/selinux_utils.c \
114 login-utils/selinux_utils.h
115 chfn_chsh_ldadd += -lselinux
120 login-utils/logindefs.c \
121 login-utils/logindefs.h \
123 chfn_CFLAGS = $(chfn_chsh_cflags)
124 chfn_LDFLAGS = $(chfn_chsh_ldflags)
125 chfn_LDADD = $(LDADD) $(chfn_chsh_ldadd)
127 chsh_SOURCES = login-utils/chsh.c $(chfn_chsh_sources)
128 chsh_CFLAGS = $(chfn_chsh_cflags)
129 chsh_LDFLAGS = $(chfn_chsh_ldflags)
130 chsh_LDADD = $(LDADD) $(chfn_chsh_ldadd)
131 endif # BUILD_CHFN_CHSH
136 dist_man_MANS += login-utils/su.1
139 login-utils/su-common.c \
140 login-utils/su-common.h \
141 login-utils/logindefs.c \
142 login-utils/logindefs.h
143 su_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS)
144 su_LDFLAGS = $(SUID_LDFLAGS) $(AM_LDFLAGS)
145 su_LDADD = $(LDADD) libcommon.la -lpam
147 su_LDADD += -lpam_misc
153 sbin_PROGRAMS += runuser
154 dist_man_MANS += login-utils/runuser.1
156 login-utils/runuser.c \
157 login-utils/su-common.c \
158 login-utils/su-common.h \
159 login-utils/logindefs.c \
160 login-utils/logindefs.h
161 runuser_LDADD = $(LDADD) libcommon.la -lpam
163 runuser_LDADD += -lpam_misc
165 endif # BUILD_RUNUSER
169 usrbin_exec_PROGRAMS += newgrp
170 dist_man_MANS += login-utils/newgrp.1
171 newgrp_SOURCES = login-utils/newgrp.c
172 newgrp_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS)
173 newgrp_LDFLAGS = $(SUID_LDFLAGS) $(AM_LDFLAGS)
174 newgrp_LDADD = $(LDADD)
176 newgrp_LDADD += -lcrypt
181 usrbin_exec_PROGRAMS += lslogins
182 dist_man_MANS += login-utils/lslogins.1
184 login-utils/lslogins.c \
185 login-utils/logindefs.c \
186 login-utils/logindefs.h
187 lslogins_LDADD = $(LDADD) libcommon.la libsmartcols.la
188 lslogins_CFLAGS = $(AM_CFLAGS) -I$(ul_libsmartcols_incdir)
190 lslogins_LDADD += -lselinux
193 lslogins_LDADD += $(SYSTEMD_LIBS) $(SYSTEMD_JOURNAL_LIBS)
194 lslogins_CFLAGS += $(SYSTEMD_CFLAGS) $(SYSTEMD_JOURNAL_CFLAGS)
196 endif # BUILD_LSLOGINS
199 usrsbin_exec_PROGRAMS += vipw
205 login-utils/setpwnam.h
206 vipw_LDADD = $(LDADD) libcommon.la
208 vipw_LDADD += -lselinux
210 install-exec-hook-vipw::
211 cd $(DESTDIR)$(usrsbin_execdir) && ln -sf vipw vigr
213 INSTALL_EXEC_HOOKS += install-exec-hook-vipw
221 test_islocal_SOURCES = login-utils/islocal.c
222 test_islocal_CPPFLAGS = -DTEST_PROGRAM $(AM_CPPFLAGS)
224 test_logindefs_SOURCES = \
225 login-utils/logindefs.c \
226 login-utils/logindefs.h
227 test_logindefs_CPPFLAGS = -DTEST_PROGRAM $(AM_CPPFLAGS)
232 if MAKEINSTALL_DO_CHOWN
233 chown root:root $(DESTDIR)$(bindir)/su
235 if MAKEINSTALL_DO_SETUID
236 chmod 4755 $(DESTDIR)$(bindir)/su
240 cd $(DESTDIR)$(usrsbin_execdir) && ln -sf vipw vigr