3 usrbin_exec_PROGRAMS += last
7 last_SOURCES = login-utils/last.c lib/strutils.c
9 install-exec-hook-last:
10 cd $(DESTDIR)$(usrsbin_execdir) && ln -sf last lastb
12 INSTALL_EXEC_HOOKS += install-exec-hook-last
15 if BUILD_DEPRECATED_LAST
16 usrbin_exec_PROGRAMS += last
17 dist_man_MANS += login-utils/last-deprecated.1
18 last_SOURCES = login-utils/last-deprecated.c
19 endif # BUILD_DEPRECATED_LAST
23 sbin_PROGRAMS += sulogin
24 dist_man_MANS += login-utils/sulogin.8
26 login-utils/sulogin.c \
27 login-utils/sulogin-consoles.c \
28 login-utils/sulogin-consoles.h
29 sulogin_LDADD = $(LDADD) libcommon.la
32 sulogin_LDADD += -lcrypt
35 sulogin_LDADD += -lselinux
38 check_PROGRAMS += test_consoles
39 test_consoles_SOURCES = login-utils/sulogin-consoles.c
40 test_consoles_CFLAGS = -DTEST_PROGRAM
41 test_consoles_LDADD = libcommon.la
47 dist_man_MANS += login-utils/login.1
50 login-utils/logindefs.c \
51 login-utils/logindefs.h
52 login_LDADD = $(LDADD) libcommon.la -lpam -lpam_misc
54 login_LDADD += -laudit
57 login_LDADD += -lselinux
63 usrbin_exec_PROGRAMS += utmpdump
64 dist_man_MANS += login-utils/utmpdump.1
65 utmpdump_SOURCES = login-utils/utmpdump.c
70 usrbin_exec_PROGRAMS += chfn chsh
76 chfn_chsh_cflags = $(SUID_CFLAGS) $(AM_CFLAGS)
77 chfn_chsh_ldflags = $(SUID_LDFLAGS) $(AM_LDFLAGS)
78 chfn_chsh_ldadd = libcommon.la
81 chfn_chsh_ldadd += -lpam -lpam_misc
82 chfn_chsh_sources += \
88 chfn_chsh_ldflags += $(LIBUSER_LIBS)
89 chfn_chsh_cflags += $(LIBUSER_CFLAGS)
91 login-utils/libuser.c \
94 chfn_chsh_sources += \
95 login-utils/islocal.c \
96 login-utils/islocal.h \
97 login-utils/setpwnam.c \
98 login-utils/setpwnam.h
102 chfn_chsh_sources += \
103 login-utils/selinux_utils.c \
104 login-utils/selinux_utils.h
105 chfn_chsh_ldadd += -lselinux
108 chfn_SOURCES = login-utils/chfn.c $(chfn_chsh_sources)
109 chfn_CFLAGS = $(chfn_chsh_cflags)
110 chfn_LDFLAGS = $(chfn_chsh_ldflags)
111 chfn_LDADD = $(LDADD) $(chfn_chsh_ldadd)
113 chsh_SOURCES = login-utils/chsh.c $(chfn_chsh_sources)
114 chsh_CFLAGS = $(chfn_chsh_cflags)
115 chsh_LDFLAGS = $(chfn_chsh_ldflags)
116 chsh_LDADD = $(LDADD) $(chfn_chsh_ldadd)
117 endif # BUILD_CHFN_CHSH
122 dist_man_MANS += login-utils/su.1
125 login-utils/su-common.c \
126 login-utils/su-common.h \
127 login-utils/logindefs.c \
128 login-utils/logindefs.h
129 su_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS)
130 su_LDFLAGS = $(SUID_LDFLAGS) $(AM_LDFLAGS)
131 su_LDADD = $(LDADD) libcommon.la -lpam -lpam_misc
136 sbin_PROGRAMS += runuser
137 dist_man_MANS += login-utils/runuser.1
139 login-utils/runuser.c \
140 login-utils/su-common.c \
141 login-utils/su-common.h \
142 login-utils/logindefs.c \
143 login-utils/logindefs.h
144 runuser_LDADD = $(LDADD) libcommon.la -lpam -lpam_misc
149 usrbin_exec_PROGRAMS += newgrp
150 dist_man_MANS += login-utils/newgrp.1
151 newgrp_SOURCES = login-utils/newgrp.c
152 newgrp_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS)
153 newgrp_LDFLAGS = $(SUID_LDFLAGS) $(AM_LDFLAGS)
154 newgrp_LDADD = $(LDADD)
156 newgrp_LDADD += -lcrypt
162 usrsbin_exec_PROGRAMS += vipw
168 login-utils/setpwnam.h
169 vipw_LDADD = $(LDADD) libcommon.la
171 vipw_LDADD += -lselinux
173 install-exec-hook-vipw::
174 cd $(DESTDIR)$(usrsbin_execdir) && ln -sf vipw vigr
176 INSTALL_EXEC_HOOKS += install-exec-hook-vipw
184 test_islocal_SOURCES = login-utils/islocal.c
185 test_islocal_CPPFLAGS = -DTEST_PROGRAM $(AM_CPPFLAGS)
187 test_logindefs_SOURCES = \
188 login-utils/logindefs.c \
189 login-utils/logindefs.h
190 test_logindefs_CPPFLAGS = -DTEST_PROGRAM $(AM_CPPFLAGS)
195 if MAKEINSTALL_DO_SETUID
196 chmod 4755 $(DESTDIR)$(bindir)/su
200 cd $(DESTDIR)$(usrsbin_execdir) && ln -sf vipw vigr