8a1abbe80b
skey and md libraries... * src/Makefile.am: ...Specify for each binary which library is required. skey and md are required for the binaries with authentication of the user (chfn, chsh, login, passwd, su). intl is required for all. mcrypt is required for user (chfn, chsh, login, passwd, su, sulogin) and group (newgrp, gpasswd) authentication and for the creation of passwords (chpasswd, chgpasswd, gpasswd, newusers, passwd).
102 lines
3.1 KiB
Makefile
102 lines
3.1 KiB
Makefile
|
|
EXTRA_DIST = \
|
|
.indent.pro
|
|
|
|
ubindir = ${prefix}/bin
|
|
usbindir = ${prefix}/sbin
|
|
suidperms = 4755
|
|
|
|
INCLUDES = \
|
|
-I${top_srcdir}/lib \
|
|
-I$(top_srcdir)/libmisc
|
|
|
|
# XXX why are login and su in /bin anyway (other than for
|
|
# historical reasons)?
|
|
#
|
|
# if the system is screwed so badly that it can't mount /usr,
|
|
# you can (hopefully) boot single user, and then you're root
|
|
# so you don't need these programs for recovery.
|
|
#
|
|
# also /lib/libshadow.so.x.xx (if any) could be moved to /usr/lib
|
|
# and installation would be much simpler (just two directories,
|
|
# $prefix/bin and $prefix/sbin, no install-data hacks...)
|
|
|
|
bin_PROGRAMS = groups login su
|
|
sbin_PROGRAMS = nologin
|
|
ubin_PROGRAMS = faillog lastlog chage chfn chsh expiry gpasswd newgrp passwd
|
|
usbin_PROGRAMS = \
|
|
chgpasswd \
|
|
chpasswd \
|
|
groupadd \
|
|
groupdel \
|
|
groupmems \
|
|
groupmod \
|
|
grpck \
|
|
grpconv \
|
|
grpunconv \
|
|
logoutd \
|
|
newusers \
|
|
pwck \
|
|
pwconv \
|
|
pwunconv \
|
|
useradd \
|
|
userdel \
|
|
usermod \
|
|
vipw
|
|
|
|
# id and groups are from gnu, sulogin from sysvinit
|
|
noinst_PROGRAMS = id sulogin
|
|
|
|
suidbins = su
|
|
suidubins = chage chfn chsh expiry gpasswd newgrp passwd
|
|
|
|
LDADD = $(INTLLIBS) \
|
|
$(top_builddir)/libmisc/libmisc.a \
|
|
$(top_builddir)/lib/libshadow.la
|
|
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\"
|
|
|
|
chage_LDADD = $(LDADD) $(LIBPAM) $(LIBAUDIT) $(LIBSELINUX)
|
|
chfn_LDADD = $(LDADD) $(LIBPAM) $(LIBSELINUX) $(LIBCRYPT) $(LIBSKEY) $(LIBMD)
|
|
chgpasswd_LDADD = $(LDADD) $(LIBPAM) $(LIBSELINUX) $(LIBCRYPT)
|
|
chsh_LDADD = $(LDADD) $(LIBPAM) $(LIBSELINUX) $(LIBCRYPT) $(LIBSKEY) $(LIBMD)
|
|
chpasswd_LDADD = $(LDADD) $(LIBPAM) $(LIBSELINUX) $(LIBCRYPT)
|
|
gpasswd_LDADD = $(LDADD) $(LIBAUDIT) $(LIBSELINUX) $(LIBCRYPT)
|
|
groupadd_LDADD = $(LDADD) $(LIBPAM) $(LIBAUDIT) $(LIBSELINUX)
|
|
groupdel_LDADD = $(LDADD) $(LIBPAM) $(LIBAUDIT) $(LIBSELINUX)
|
|
groupmems_LDADD = $(LDADD) $(LIBPAM) $(LIBSELINUX)
|
|
groupmod_LDADD = $(LDADD) $(LIBPAM) $(LIBAUDIT) $(LIBSELINUX)
|
|
grpck_LDADD = $(LDADD) $(LIBSELINUX)
|
|
grpconv_LDADD = $(LDADD) $(LIBSELINUX)
|
|
grpunconv_LDADD = $(LDADD) $(LIBSELINUX)
|
|
login_SOURCES = \
|
|
login.c \
|
|
login_nopam.c
|
|
login_LDADD = $(LDADD) $(LIBPAM) $(LIBAUDIT) $(LIBCRYPT) $(LIBSKEY) $(LIBMD)
|
|
newgrp_LDADD = $(LDADD) $(LIBPAM) $(LIBAUDIT) $(LIBCRYPT)
|
|
newusers_LDADD = $(LDADD) $(LIBPAM) $(LIBSELINUX) $(LIBCRYPT)
|
|
nologin_LDADD =
|
|
passwd_LDADD = $(LDADD) $(LIBPAM) $(LIBCRACK) $(LIBAUDIT) $(LIBSELINUX) $(LIBCRYPT)
|
|
pwck_LDADD = $(LDADD) $(LIBSELINUX)
|
|
pwconv_LDADD = $(LDADD) $(LIBSELINUX)
|
|
pwunconv_LDADD = $(LDADD) $(LIBSELINUX)
|
|
su_SOURCES = \
|
|
su.c \
|
|
suauth.c
|
|
su_LDADD = $(LDADD) $(LIBPAM) $(LIBCRYPT) $(LIBSKEY) $(LIBMD)
|
|
sulogin_LDADD = $(LDADD) $(LIBCRYPT)
|
|
useradd_LDADD = $(LDADD) $(LIBPAM) $(LIBAUDIT) $(LIBSELINUX)
|
|
userdel_LDADD = $(LDADD) $(LIBPAM) $(LIBAUDIT) $(LIBSELINUX)
|
|
usermod_LDADD = $(LDADD) $(LIBPAM) $(LIBAUDIT) $(LIBSELINUX)
|
|
vipw_LDADD = $(LDADD) $(LIBSELINUX)
|
|
|
|
install-am: all-am
|
|
$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
|
ln -sf newgrp $(DESTDIR)$(ubindir)/sg
|
|
ln -sf vipw $(DESTDIR)$(usbindir)/vigr
|
|
for i in $(suidbins); do \
|
|
chmod -f $(suidperms) $(DESTDIR)$(bindir)/$$i; \
|
|
done
|
|
for i in $(suidubins); do \
|
|
chmod -f $(suidperms) $(DESTDIR)$(ubindir)/$$i; \
|
|
done
|