3 usrbin_exec_PROGRAMS += last
4 dist_man_MANS += login-utils/last.1
5 last_SOURCES = login-utils/last.c
9 sbin_PROGRAMS += sulogin
10 dist_man_MANS += login-utils/sulogin.8
13 sulogin_LDADD = $(LDADD) libcommon.la
15 sulogin_LDADD += -lcrypt
18 sulogin_LDADD += -lselinux
25 dist_man_MANS += login-utils/login.1
28 login-utils/logindefs.c \
29 login-utils/logindefs.h
30 login_LDADD = $(LDADD) libcommon.la -lpam -lpam_misc
32 login_LDADD += -laudit
35 login_LDADD += -lselinux
41 usrbin_exec_PROGRAMS += utmpdump
42 dist_man_MANS += login-utils/utmpdump.1
43 utmpdump_SOURCES = login-utils/utmpdump.c
48 usrbin_exec_PROGRAMS += chfn chsh
54 login-utils/islocal.c \
55 login-utils/islocal.h \
56 login-utils/setpwnam.c \
57 login-utils/setpwnam.h
58 chfn_chsh_cflags = $(SUID_CFLAGS) $(AM_CFLAGS)
59 chfn_chsh_ldflags = $(SUID_LDFLAGS) $(AM_LDFLAGS)
60 chfn_chsh_ldadd = libcommon.la -lpam -lpam_misc
63 chfn_chsh_sources += \
64 login-utils/selinux_utils.c \
65 login-utils/selinux_utils.h
66 chfn_chsh_ldadd += -lselinux
69 chfn_SOURCES = login-utils/chfn.c $(chfn_chsh_sources)
70 chfn_CFLAGS = $(chfn_chsh_cflags)
71 chfn_LDFLAGS = $(chfn_chsh_ldflags)
72 chfn_LDADD = $(LDADD) $(chfn_chsh_ldadd)
74 chsh_SOURCES = login-utils/chsh.c $(chfn_chsh_sources)
75 chsh_CFLAGS = $(chfn_chsh_cflags)
76 chsh_LDFLAGS = $(chfn_chsh_ldflags)
77 chsh_LDADD = $(LDADD) $(chfn_chsh_ldadd)
78 endif # BUILD_CHFN_CHSH
83 dist_man_MANS += login-utils/su.1
86 login-utils/su-common.c \
87 login-utils/su-common.h \
88 login-utils/logindefs.c \
89 login-utils/logindefs.h
90 su_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS)
91 su_LDFLAGS = $(SUID_LDFLAGS) $(AM_LDFLAGS)
92 su_LDADD = $(LDADD) -lpam -lpam_misc
97 sbin_PROGRAMS += runuser
98 dist_man_MANS += login-utils/runuser.1
100 login-utils/runuser.c \
101 login-utils/su-common.c \
102 login-utils/su-common.h \
103 login-utils/logindefs.c \
104 login-utils/logindefs.h
105 runuser_LDADD = $(LDADD) -lpam -lpam_misc
110 usrbin_exec_PROGRAMS += newgrp
111 dist_man_MANS += login-utils/newgrp.1
112 newgrp_SOURCES = login-utils/newgrp.c
113 newgrp_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS)
114 newgrp_LDFLAGS = $(SUID_LDFLAGS) $(AM_LDFLAGS)
115 newgrp_LDADD = $(LDADD)
117 newgrp_LDADD += -lcrypt
123 usrsbin_exec_PROGRAMS += vipw
129 login-utils/setpwnam.h
130 vipw_LDADD = $(LDADD) libcommon.la
132 vipw_LDADD += -lselinux
134 install-exec-hook-vipw::
135 cd $(DESTDIR)$(usrsbin_execdir) && ln -sf vipw vigr
137 INSTALL_EXEC_HOOKS += install-exec-hook-vipw
145 test_islocal_SOURCES = login-utils/islocal.c
146 test_islocal_CPPFLAGS = -DTEST_PROGRAM $(AM_CPPFLAGS)
148 test_logindefs_SOURCES = \
149 login-utils/logindefs.c \
150 login-utils/logindefs.h
151 test_logindefs_CPPFLAGS = -DTEST_PROGRAM $(AM_CPPFLAGS)
156 if MAKEINSTALL_DO_SETUID
157 chmod 4755 $(DESTDIR)$(bindir)/su
161 cd $(DESTDIR)$(usrsbin_execdir) && ln -sf vipw vigr