%if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1} %define WITH_SELINUX 1 %endif %if %{?WITH_AUDIT:0}%{!?WITH_AUDIT:1} %define WITH_AUDIT 1 %endif Summary: The passwd utility for setting/changing passwords using PAM. Name: passwd Version: 0.71 Release: 2.1 License: BSD Group: System Environment/Base Source: %{name}-%{version}.tar.bz2 Patch1: passwd-0.71-audit.patch Buildroot: %{_tmppath}/passwd-root Requires: pam >= 0.78, /etc/pam.d/system-auth, %if %{WITH_SELINUX} BuildPrereq: glib2-devel, libuser-devel, pam-devel, libselinux-devel BuildPrereq: libuser >= 0.53-1 %else BuildPrereq: glib2-devel, libuser-devel, pam-devel, libuser >= 0.53-1 %endif %if %{WITH_AUDIT} BuildPrereq: audit-libs-devel >= 1.0.8 Requires: audit-libs >= 1.0.8 %endif %description The passwd package contains a system utility (passwd) which sets and/or changes passwords, using PAM (Pluggable Authentication Modules). To use passwd, you should have PAM installed on your system. %prep %setup -q -n %{name}-%{version} %patch1 -p1 %build %configure make DEBUG= RPM_OPT_FLAGS="$RPM_OPT_FLAGS" \ %if %{WITH_SELINUX} WITH_SELINUX=yes %endif %install make install DESTDIR=$RPM_BUILD_ROOT bindir=%{_bindir} mandir=%{_mandir} strip $RPM_BUILD_ROOT%{_bindir}/passwd install -m 755 -d $RPM_BUILD_ROOT/etc/pam.d/ install -m 644 passwd.pamd $RPM_BUILD_ROOT/etc/pam.d/passwd %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %config /etc/pam.d/passwd %attr(4511,root,root) %{_bindir}/passwd %{_mandir}/man1/passwd.1* %changelog * Fri Dec 09 2005 Jesse Keating - rebuilt * Tue Oct 25 2005 Steve Grubb 0.71-2 - adjust audit communication to use common logging functions * Fri Oct 7 2005 Tomas Mraz 0.71-1 - use include instead of pam_stack in pam config * Fri Jun 17 2005 Tomas Mraz 0.70-1 - replace laus with audit - auto* build changes * Fri Jan 28 2005 Jindrich Novy 0.69-1 - spec file fixes - add libuser >= 0.53-1 BuildPrereq (#139331) * Tue Jan 25 2005 Dan Walsh - improve SELinux priv checking * Mon Aug 23 2004 Jindrich Novy - applied cleanup patch from Steve Grubb #120060 - fixed man page #115380 - added libselinux-devel to BuildPrereq #123750, #119416 * Wed Aug 19 2004 Jindrich Novy 0.68-10 - moved to 0.68-10 to fix problem with RHEL4-Alpha4 #129548 - updated GNU build scripts and file structure to recent style * Wed Feb 4 2004 Dan Walsh 0.68-8 - add check for enforcing mode * Mon Jan 26 2004 Dan Walsh 0.68-7 - fix is_selinux_enabled * Fri Sep 5 2003 Dan Walsh 0.68-6 - turn off selinux * Fri Sep 5 2003 Dan Walsh 0.68-5.sel - Add SELinux support * Mon Jul 28 2003 Dan Walsh 0.68-4 - Add SELinux support * Thu Feb 13 2003 Nalin Dahyabhai 0.68-3 - add aging adjustment flags to passwd(1)'s synopsis, were just in the reference section before * Mon Jan 27 2003 Nalin Dahyabhai 0.68-2 - rebuild * Mon Dec 9 2002 Nalin Dahyabhai 0.68-1 - implement aging adjustments for pwdb * Mon Nov 11 2002 Nalin Dahyabhai 0.67-4 - modify default PAM configuration file to not specify directories, so that the same configuration can be used for all arches on multilib systems - fix BuildPrereq on glib-devel to specify glib2-devel instead - remove unpackaged files in %%install phase * Tue May 28 2002 Nalin Dahyabhai 0.67-3 - rebuild * Mon May 20 2002 Nalin Dahyabhai 0.67-2 - rebuild in new environment * Wed Mar 13 2002 Nalin Dahyabhai 0.67-1 - add the -i, -n, -w, and -x options to passwd * Mon Mar 11 2002 Nalin Dahyabhai 0.65-5 - rebuild * Mon Feb 25 2002 Nalin Dahyabhai 0.65-4 - rebuild * Fri Feb 22 2002 Nalin Dahyabhai 0.65-3 - rebuild * Thu Jan 31 2002 Nalin Dahyabhai 0.65-2 - rebuild to get dependencies right * Tue Jan 29 2002 Nalin Dahyabhai 0.65-1 - change dependency from pwdb to libuser * Fri Jan 25 2002 Nalin Dahyabhai 0.64.1-9 - rebuild * Thu Aug 30 2001 Nalin Dahyabhai 0.64.1-8 - man page fix (-r is the opposite of -l, not --stdin, which precedes it) from Felipe Gustavo de Almeida * Mon Aug 6 2001 Nalin Dahyabhai 0.64.1-7 - fix unguarded printf() (noted by Chris Evans) - add missing build dependency on pwdb and pam-devel (#49550) * Sun Jun 24 2001 Elliot Lee - Bump release + rebuild. * Wed Jul 12 2000 Prospector - automatic rebuild * Mon Jun 5 2000 Nalin Dahyabhai - move man pages to %{_mandir} * Thu Jun 1 2000 Nalin Dahyabhai - modify PAM setup to use system-auth - modify for building as non-root users * Mon Feb 7 2000 Bill Nottingham - fix manpage links * Fri Feb 04 2000 Nalin Dahyabhai - document --stdin in man page - fix for gzipped man pages * Sat Apr 10 1999 Cristian Gafton - first build from the new source code base.