Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37038826
en ru br
Репозитории ALT
S:4.14.0-alt1
5.1: 4.0.4.1-alt9
4.1: 4.0.4.1-alt9
4.0: 4.0.4.1-alt8
3.0: 4.0.4.1-alt5
www.altlinux.org/Changes

Группа :: Система/Основа
Пакет: shadow

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: shadow
Version: 4.0.4.1
Release: alt5
Serial: 1

Summary: Utilities for managing shadow password files and user/group accounts
License: BSD
Group: System/Base
Url: ftp://ftp.pld.org.pl/software/shadow

Source0: %url/%name-%version.tar.bz2
Source1: login.defs
Source2: useradd.default
Source3: user-group-mod.pamd
Source4: chage-chfn-chsh.pamd
Source5: chpasswd-newusers.pamd
Source6: chage.control
Source7: chfn.control
Source8: chsh.control
Source9: gpasswd.control
Source10: newgrp.control

Patch0: shadow-4.0.4.1-cvs-20041008-userdel.patch

# Owl

Patch1: shadow-4.0.4.1-owl-alt-check-reads.patch
Patch2: shadow-4.0.4.1-owl-usermod-unlock.patch
Patch3: shadow-4.0.4.1-owl-tmp.patch
Patch4: shadow-4.0.4.1-owl-pam-auth.patch
Patch5: shadow-4.0.4.1-owl-chage-drop-priv.patch
Patch6: shadow-4.0.4.1-alt-userdel-path_prefix.patch
Patch7: shadow-4.0.4.1-owl-pam_chauthtok.patch
Patch8: shadow-4.0.4.1-owl-usermod-update-lstchg.patch
Patch9: shadow-4.0.4.1-owl-alt-usergroupname_max.patch

Patch19: shadow-4.0.4.1-rh-owl-alt-redhat.patch
#Patch20: shadow-4.0.4.1-owl-man.patch
Patch21: shadow-4.0.4.1-owl-create-mailbox.patch
Patch22: shadow-4.0.4.1-owl-restrict-locale.patch
Patch23: shadow-4.0.4.1-owl-alt-crypt_gensalt.patch
Patch24: shadow-4.0.4.1-owl-newgrp.patch
Patch30: shadow-4.0.4.1-owl-tcb.patch

# ALT

Patch101: shadow-4.0.4.1-alt-doc-check_names.patch
Patch102: shadow-4.0.4.1-alt-default_skel.patch
Patch103: shadow-4.0.4.1-alt-progname.patch
Patch104: shadow-4.0.4.1-alt-configure.patch
Patch105: shadow-4.0.4.1-alt-makefile.patch
Patch106: shadow-4.0.4.1-alt-useradd-skel.patch
Patch107: shadow-4.0.4.1-alt-copy_tree-perms.patch
Patch108: shadow-4.0.4.1-alt-configure-passwd.patch
Patch109: shadow-4.0.4.1-alt-xmalloc.patch

%def_disable shared

BuildPreReq: mktemp >= 1:1.3.1, rpm-build >= 4.0.4-alt10

# Automatically added by buildreq on Mon Oct 28 2002

BuildRequires: cvs libpam-devel libtcb-devel pam_userpass-devel

%description
This package includes the tools necessary for manipulating local user and
group databases. It supports both traditional and tcb shadow password files.

%package -n lib%name
Summary: Shadow password file routines library
Group: System/Libraries

%description -n lib%name
Shadow library manipulates local user and group databases. It supports both
traditional and tcb shadow password files.
This package contains shared library required for various shadow utils.

%package -n lib%name-devel
Summary: Development files for the shadow password file routines library
Group: Development/C
PreReq: lib%name = %serial:%version-%release

%description -n lib%name-devel
Shadow library manipulates local user and group databases. It supports both
traditional and tcb shadow password files.
This package contains files required for development software based
on lib%name.

%package -n lib%name-devel-static
Summary: Shadow password file routines static library
Group: Development/C
PreReq: lib%name-devel = %serial:%version-%release

%description -n lib%name-devel-static
Shadow library manipulates local user and group databases. It supports both
traditional and tcb shadow password files.
This package contains static library required for development statically
linked software based on lib%name.

%package utils
Summary: Utilities for managing shadow password files and user/group accounts
Group: System/Base
PreReq: %name-convert = %serial:%version-%release, tcb-utils >= 0.9.8
Obsoletes: adduser

%description utils
This package includes utilities for managing shadow password files and
user/group accounts:
+ useradd: creates a new user or updates default new user information;
+ userdel: deletes a user account and related files;
+ usermod: modifies a user account;
+ groupadd: creates a new group;
+ groupdel: deletes a group;
+ groupmod: modifies a group;
+ newusers: updates and creates new users in batch;
+ chpasswd: updates password file in batch.

%package check
Summary: Utilities for checking integrity of the password, group, shadow-password, or shadow-group files
Group: System/Base
PreReq: %name-convert = %serial:%version-%release

%description check
This package includes utilities for checking integrity of the password, group,
shadow-password, or shadow-group files:
+ pwck: verifies the integrity of the system password authentication information;
+ grpck: verifies the integrity of the system group authentication information.

%package convert
Summary: Utilities for convertion to and from shadow passwords and groups
Group: System/Base
%if_enabled shadow
PreReq: lib%name = %serial:%version-%release
%endif

%description convert
This package includes utilities for convertion to and from shadow passwords
and groups:
+ pwconv: creates shadow from passwd and an optionally existing shadow;
+ pwunconv: creates passwd from passwd and shadow and then removes shadow;
+ grpconv: creates gshadow from group and an optionally existing gshadow;
+ grpunconv: creates group from group and gshadow and then removes gshadow.

%package change
Summary: Utilities for changing user shell, finger and password information
Group: System/Base
PreReq: %name-utils = %serial:%version-%release, control

%description change
This package includes utilities for changing user shell, finger and password
information:
+ chage: changes the number of days between password changes and the date of
        the last password change;
+ chfn: changes user fullname, office number, office extension, and home phone
       number information for a user's account;
+ chsh: changes the user login shell.

%package edit
Summary: Utilities for editing the password, group, shadow-password, or shadow-group files
Group: System/Base
PreReq: %name-utils = %serial:%version-%release

%description edit
This package includes utilities for editing the password, group,
shadow-password, or shadow-group files:
+ vipw: edits the /etc/passwd and /etc/shadow files;
+ vigr: edits the /etc/group and /etc/gshadow files.

%package groups
Summary: Utilities for execute command as different group ID
Group: System/Base
PreReq: %name-utils = %serial:%version-%release, control

%description groups
This package includes utilities for execute command as different group ID:
+ gpasswd: is used to administer the /etc/group and etc/gshadow files;
+ newgrp: is used to change the current group ID during a login session;
+ sg: is used to execute command as different group ID.

%package log
Summary: Utilities for examining lastlog and faillog files
Group: System/Base
PreReq: %name-utils = %serial:%version-%release

%description log
This package includes utilities for examining lastlog and faillog files:
+ faillog: formats the contents of the system failure log file, and maintains
          failure counts and limits;
+ lastlog: formats the contents of the system last login file.

%package suite
Summary: The shadow suite
Group: System/Base
Requires: %name-change = %serial:%version-%release
Requires: %name-check = %serial:%version-%release
Requires: %name-convert = %serial:%version-%release
Requires: %name-edit = %serial:%version-%release
Requires: %name-groups = %serial:%version-%release
Requires: %name-log = %serial:%version-%release
Requires: %name-utils = %serial:%version-%release

%description suite
This virtual package unifies all shadow suite subpackages.

%prep
%setup -q

%patch0 -p0

# Owl

%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch19 -p1
#%patch20 -p1
%patch21 -p1
%patch22 -p1
%patch23 -p1
%patch24 -p1
%patch30 -p1

# ALT

%patch101 -p1
%patch102 -p1
%patch103 -p1
%patch104 -p1
%patch105 -p1
%patch106 -p1
%patch107 -p1
%patch108 -p1
%patch109 -p1

find -type f -name \*.orig -delete -print

%build
autoreconf -fisv
%add_optflags -DEXTRA_CHECK_HOME_DIR -DSHADOWTCB
%configure \
%{subst_enable shared} \
--disable-desrpc \
--with-libcrypt \
--with-libpam \
--without-libcrack
%make_build
bzip2 -9fk ChangeLog NEWS

%install
%makeinstall

%__install -pD -m640 %SOURCE1 $RPM_BUILD_ROOT%_sysconfdir/login.defs
%__install -pD -m600 %SOURCE2 $RPM_BUILD_ROOT%_sysconfdir/default/useradd

%__mkdir_p $RPM_BUILD_ROOT%_sysconfdir/pam.d
pushd $RPM_BUILD_ROOT%_sysconfdir/pam.d
%__install -p -m600 $RPM_SOURCE_DIR/user-group-mod.pamd user-group-mod
%__ln_s user-group-mod groupadd
%__ln_s user-group-mod groupdel
%__ln_s user-group-mod groupmod
%__ln_s user-group-mod useradd
%__ln_s user-group-mod userdel
%__ln_s user-group-mod usermod
%__install -p -m640 $RPM_SOURCE_DIR/chage-chfn-chsh.pamd chage-chfn-chsh
%__ln_s chage-chfn-chsh chage
%__ln_s chage-chfn-chsh chfn
%__ln_s chage-chfn-chsh chsh
%__install -p -m600 $RPM_SOURCE_DIR/chpasswd-newusers.pamd chpasswd-newusers
%__ln_s chpasswd-newusers chpasswd
%__ln_s chpasswd-newusers newusers
popd

%__ln_s useradd $RPM_BUILD_ROOT%_sbindir/adduser

%__install -pD -m755 $RPM_SOURCE_DIR/chage.control $RPM_BUILD_ROOT/etc/control.d/facilities/chage
%__install -pD -m755 $RPM_SOURCE_DIR/chfn.control $RPM_BUILD_ROOT/etc/control.d/facilities/chfn
%__install -pD -m755 $RPM_SOURCE_DIR/chsh.control $RPM_BUILD_ROOT/etc/control.d/facilities/chsh
%__install -pD -m755 $RPM_SOURCE_DIR/gpasswd.control $RPM_BUILD_ROOT/etc/control.d/facilities/gpasswd
%__install -pD -m755 $RPM_SOURCE_DIR/newgrp.control $RPM_BUILD_ROOT/etc/control.d/facilities/newgrp

%find_lang %name

%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig

%post convert
if [ $1 = 1 ]; then
if [ ! -e /etc/gshadow ]; then
%_sbindir/grpconv
fi
if [ ! -e /etc/shadow -a ! -e /etc/tcb ]; then
%_sbindir/pwconv
fi
fi

%pre change
%pre_control chage chfn chsh

%post change
%post_control -s restricted chage chfn chsh

%pre groups
%pre_control gpasswd newgrp

%post groups
%post_control -s restricted gpasswd newgrp

%if_enabled shadow
%files -n lib%name
%_libdir/*.so*

%files -n lib%name-devel
%_libdir/*.so
%_libdir/*.la
%_man3dir/*

%files -n lib%name-devel-static
%_libdir/*.a
%endif

%files utils -f %name.lang
%attr(751,root,root) %dir %_sysconfdir/default
%attr(600,root,root) %config(noreplace) %_sysconfdir/default/useradd
%attr(640,root,shadow) %config(noreplace) %_sysconfdir/login.defs
%config(noreplace) %_sysconfdir/pam.d/user-group-mod
%_sysconfdir/pam.d/groupadd
%_sysconfdir/pam.d/groupdel
%_sysconfdir/pam.d/groupmod
%_sysconfdir/pam.d/useradd
%_sysconfdir/pam.d/userdel
%_sysconfdir/pam.d/usermod
%config(noreplace) %_sysconfdir/pam.d/chpasswd-newusers
%_sysconfdir/pam.d/chpasswd
%_sysconfdir/pam.d/newusers
%_sbindir/user*
%_sbindir/group*
%_sbindir/adduser
%_sbindir/newusers
%_sbindir/chpasswd
%_man5dir/login.defs.*
%_man5dir/shadow.*
%_man8dir/adduser.*
%_man8dir/chpasswd.*
%_man8dir/group*.*
%_man8dir/newusers.*
%_man8dir/user*.*
%doc ChangeLog.bz2 NEWS.bz2 README TODO doc/LICENSE

%files check
%_sbindir/*ck
%_mandir/man?/*ck.*

%files convert
%_sbindir/*conv
%_mandir/man?/*conv.*

%files change
%config /etc/control.d/facilities/chage
%config /etc/control.d/facilities/chfn
%config /etc/control.d/facilities/chsh
%attr(640,root,shadow) %config(noreplace) %_sysconfdir/pam.d/chage-chfn-chsh
%_sysconfdir/pam.d/chage
%_sysconfdir/pam.d/chfn
%_sysconfdir/pam.d/chsh
%attr(700,root,root) %verify(not mode,group) %_bindir/chage
%attr(700,root,root) %verify(not mode) %_bindir/chfn
%attr(700,root,root) %verify(not mode) %_bindir/chsh
%_mandir/man?/chage.*
%_mandir/man?/chfn.*
%_mandir/man?/chsh.*

%files edit
%_sbindir/vi??
%_mandir/man?/vi??.*

%files groups
%config /etc/control.d/facilities/gpasswd
%config /etc/control.d/facilities/newgrp
%attr(700,root,root) %verify(not mode,group) %_bindir/gpasswd
%attr(700,root,root) %verify(not mode,group) %_bindir/newgrp
%_bindir/sg
%_mandir/man?/gpasswd.*
%_mandir/man?/newgrp.*
%_mandir/man?/sg.*

%files log
%_bindir/*log
%_mandir/man?/*log.*

%files suite

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin