2007-10-07 17:14:02 +05:30
|
|
|
|
2007-10-07 17:16:25 +05:30
|
|
|
EXTRA_DIST = \
|
|
|
|
.indent.pro
|
2007-10-07 17:14:02 +05:30
|
|
|
|
|
|
|
ubindir = ${prefix}/bin
|
|
|
|
usbindir = ${prefix}/sbin
|
2007-11-14 19:02:25 +05:30
|
|
|
suidperms = 4755
|
2007-10-07 17:14:02 +05:30
|
|
|
|
2007-10-07 17:15:23 +05:30
|
|
|
INCLUDES = \
|
2007-10-07 17:14:51 +05:30
|
|
|
-I${top_srcdir}/lib \
|
|
|
|
-I$(top_srcdir)/libmisc
|
2007-10-07 17:14:02 +05:30
|
|
|
|
|
|
|
# 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...)
|
|
|
|
|
2007-10-07 17:16:34 +05:30
|
|
|
bin_PROGRAMS = groups login su
|
2007-10-07 17:17:45 +05:30
|
|
|
sbin_PROGRAMS = nologin
|
2007-10-07 17:16:34 +05:30
|
|
|
ubin_PROGRAMS = faillog lastlog chage chfn chsh expiry gpasswd newgrp passwd
|
2007-10-07 17:15:23 +05:30
|
|
|
usbin_PROGRAMS = \
|
2007-10-07 17:17:22 +05:30
|
|
|
chgpasswd \
|
2007-10-07 17:15:23 +05:30
|
|
|
chpasswd \
|
|
|
|
groupadd \
|
|
|
|
groupdel \
|
2007-10-07 17:17:57 +05:30
|
|
|
groupmems \
|
2007-10-07 17:15:23 +05:30
|
|
|
groupmod \
|
|
|
|
grpck \
|
|
|
|
grpconv \
|
|
|
|
grpunconv \
|
|
|
|
logoutd \
|
|
|
|
newusers \
|
|
|
|
pwck \
|
|
|
|
pwconv \
|
|
|
|
pwunconv \
|
|
|
|
useradd \
|
|
|
|
userdel \
|
|
|
|
usermod \
|
|
|
|
vipw
|
2007-10-07 17:14:02 +05:30
|
|
|
|
2007-10-07 17:14:59 +05:30
|
|
|
# id and groups are from gnu, sulogin from sysvinit
|
2007-10-07 17:16:34 +05:30
|
|
|
noinst_PROGRAMS = id sulogin
|
2007-10-07 17:14:02 +05:30
|
|
|
|
2007-10-07 17:16:34 +05:30
|
|
|
suidbins = su
|
|
|
|
suidubins = chage chfn chsh expiry gpasswd newgrp passwd
|
2007-10-07 17:14:02 +05:30
|
|
|
|
* lib/Makefile.am: Do not link libshadow.la with the intl, crypt,
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).
2008-01-06 19:49:32 +05:30
|
|
|
LDADD = $(INTLLIBS) \
|
|
|
|
$(top_builddir)/libmisc/libmisc.a \
|
2007-10-07 17:16:34 +05:30
|
|
|
$(top_builddir)/lib/libshadow.la
|
|
|
|
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\"
|
2007-10-07 17:14:51 +05:30
|
|
|
|
2007-10-07 17:17:22 +05:30
|
|
|
chage_LDADD = $(LDADD) $(LIBPAM) $(LIBAUDIT) $(LIBSELINUX)
|
* lib/Makefile.am: Do not link libshadow.la with the intl, crypt,
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).
2008-01-06 19:49:32 +05:30
|
|
|
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)
|
2007-10-07 17:17:22 +05:30
|
|
|
groupadd_LDADD = $(LDADD) $(LIBPAM) $(LIBAUDIT) $(LIBSELINUX)
|
|
|
|
groupdel_LDADD = $(LDADD) $(LIBPAM) $(LIBAUDIT) $(LIBSELINUX)
|
2007-10-07 17:17:57 +05:30
|
|
|
groupmems_LDADD = $(LDADD) $(LIBPAM) $(LIBSELINUX)
|
2007-10-07 17:17:22 +05:30
|
|
|
groupmod_LDADD = $(LDADD) $(LIBPAM) $(LIBAUDIT) $(LIBSELINUX)
|
|
|
|
grpck_LDADD = $(LDADD) $(LIBSELINUX)
|
|
|
|
grpconv_LDADD = $(LDADD) $(LIBSELINUX)
|
|
|
|
grpunconv_LDADD = $(LDADD) $(LIBSELINUX)
|
* lib/Makefile.am: Do not link libshadow.la with the intl, crypt,
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).
2008-01-06 19:49:32 +05:30
|
|
|
login_SOURCES = \
|
2007-10-07 17:16:34 +05:30
|
|
|
login.c \
|
|
|
|
login_nopam.c
|
* lib/Makefile.am: Do not link libshadow.la with the intl, crypt,
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).
2008-01-06 19:49:32 +05:30
|
|
|
login_LDADD = $(LDADD) $(LIBPAM) $(LIBAUDIT) $(LIBCRYPT) $(LIBSKEY) $(LIBMD)
|
|
|
|
newgrp_LDADD = $(LDADD) $(LIBPAM) $(LIBAUDIT) $(LIBCRYPT)
|
|
|
|
newusers_LDADD = $(LDADD) $(LIBPAM) $(LIBSELINUX) $(LIBCRYPT)
|
2007-10-07 17:17:11 +05:30
|
|
|
nologin_LDADD =
|
* lib/Makefile.am: Do not link libshadow.la with the intl, crypt,
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).
2008-01-06 19:49:32 +05:30
|
|
|
passwd_LDADD = $(LDADD) $(LIBPAM) $(LIBCRACK) $(LIBAUDIT) $(LIBSELINUX) $(LIBCRYPT)
|
2007-10-07 17:17:22 +05:30
|
|
|
pwck_LDADD = $(LDADD) $(LIBSELINUX)
|
|
|
|
pwconv_LDADD = $(LDADD) $(LIBSELINUX)
|
|
|
|
pwunconv_LDADD = $(LDADD) $(LIBSELINUX)
|
2007-10-07 17:16:34 +05:30
|
|
|
su_SOURCES = \
|
|
|
|
su.c \
|
|
|
|
suauth.c
|
* lib/Makefile.am: Do not link libshadow.la with the intl, crypt,
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).
2008-01-06 19:49:32 +05:30
|
|
|
su_LDADD = $(LDADD) $(LIBPAM) $(LIBCRYPT) $(LIBSKEY) $(LIBMD)
|
|
|
|
sulogin_LDADD = $(LDADD) $(LIBCRYPT)
|
2007-10-07 17:17:22 +05:30
|
|
|
useradd_LDADD = $(LDADD) $(LIBPAM) $(LIBAUDIT) $(LIBSELINUX)
|
|
|
|
userdel_LDADD = $(LDADD) $(LIBPAM) $(LIBAUDIT) $(LIBSELINUX)
|
|
|
|
usermod_LDADD = $(LDADD) $(LIBPAM) $(LIBAUDIT) $(LIBSELINUX)
|
|
|
|
vipw_LDADD = $(LDADD) $(LIBSELINUX)
|
2007-10-07 17:14:51 +05:30
|
|
|
|
2007-10-07 17:15:40 +05:30
|
|
|
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
|
2007-10-07 17:14:02 +05:30
|
|
|
for i in $(suidbins); do \
|
2007-11-14 19:02:25 +05:30
|
|
|
chmod -f $(suidperms) $(DESTDIR)$(bindir)/$$i; \
|
2007-10-07 17:14:02 +05:30
|
|
|
done
|
|
|
|
for i in $(suidubins); do \
|
2007-11-14 19:02:25 +05:30
|
|
|
chmod -f $(suidperms) $(DESTDIR)$(ubindir)/$$i; \
|
2007-10-07 17:14:02 +05:30
|
|
|
done
|