cvsdist 101567b
%define build6x 0
cvsdist 101567b
Summary: Graphical tools for certain user account management tasks.
cvsdist 101567b
Name: usermode
cvsdist 30eab18
Version: 1.46
cvsdist 6965ad1
Release: 1s.1
cvsdist a467c40
License: GPL
cvsdist 101567b
Group: Applications/System
cvsdist 60c5728
Source: usermode-%{version}.tar.bz2
cvsdist 101567b
%if %{build6x}
cvsdist 101567b
Requires: util-linux, pam >= 0.66-5
cvsdist 101567b
%else
cvsdist 101567b
Requires: util-linux, pam >= 0.66-5, /etc/pam.d/system-auth
cvsdist 101567b
%endif
cvsdist 101567b
Conflicts: SysVinit < 2.74-14
cvsdist a467c40
BuildPrereq: glib-devel, gtk+-devel, pam-devel
cvsdist 8e1c33a
BuildRoot: %{_tmppath}/%{name}-root
cvsdist 101567b
cvsdist 101567b
%description
cvsdist 101567b
The usermode package contains several graphical tools for users:
cvsdist a467c40
userinfo, usermount, and userpasswd. Userinfo allows users to change
cvsdist a467c40
their finger information. Usermount lets users mount, unmount, and
cvsdist a467c40
format filesystems. Userpasswd allows users to change their
cvsdist 101567b
passwords.
cvsdist 101567b
cvsdist 101567b
%prep
cvsdist 101567b
%setup -q
cvsdist 101567b
cvsdist 101567b
%build
cvsdist 101567b
make
cvsdist 101567b
cvsdist 101567b
%install
cvsdist 101567b
rm -rf $RPM_BUILD_ROOT
cvsdist 101567b
make PREFIX=$RPM_BUILD_ROOT \
cvsdist 101567b
	bindir=%{_bindir} \
cvsdist 101567b
	mandir=%{_mandir} \
cvsdist 101567b
	sbindir=%{_sbindir} \
cvsdist 101567b
	datadir=%{_datadir} \
cvsdist 101567b
	install install-man install-po
cvsdist 101567b
cvsdist 101567b
# Stuff from pam_console, for sysvinit. Here for lack of a better
cvsdist 101567b
# place....
cvsdist 101567b
mkdir -p $RPM_BUILD_ROOT/etc/pam.d $RPM_BUILD_ROOT/etc/security/console.apps
cvsdist 101567b
for wrapapp in halt reboot poweroff ; do
cvsdist a467c40
  ln -s consolehelper $RPM_BUILD_ROOT/usr/bin/${wrapapp}
cvsdist a467c40
  touch $RPM_BUILD_ROOT/etc/security/console.apps/${wrapapp}
cvsdist 101567b
%if %{build6x}
cvsdist a467c40
  cp shutdown.pamd.6x $RPM_BUILD_ROOT/etc/pam.d/${wrapapp}
cvsdist 101567b
%else
cvsdist a467c40
  cp shutdown.pamd $RPM_BUILD_ROOT/etc/pam.d/${wrapapp}
cvsdist 101567b
%endif
cvsdist 101567b
done
cvsdist 101567b
cvsdist 101567b
install -m755 shutdown $RPM_BUILD_ROOT%{_bindir}/
cvsdist 101567b
cvsdist 101567b
# Strip it!
cvsdist 101567b
strip $RPM_BUILD_ROOT%{_bindir}/* $RPM_BUILD_ROOT%{_sbindir}/* || :
cvsdist 101567b
      
cvsdist 8e1c33a
%find_lang %{name}
cvsdist 8e1c33a
cvsdist 101567b
%clean
cvsdist 101567b
rm -rf $RPM_BUILD_ROOT
cvsdist 101567b
cvsdist 8e1c33a
%files -f %{name}.lang
cvsdist 101567b
%defattr(-,root,root)
cvsdist 101567b
%{_bindir}/usermount
cvsdist 101567b
%{_mandir}/man1/usermount.1*
cvsdist 101567b
%{_bindir}/userinfo
cvsdist 101567b
%{_mandir}/man1/userinfo.1*
cvsdist 8e1c33a
%attr(4711,root,root) /usr/sbin/userhelper
cvsdist 101567b
%{_mandir}/man8/userhelper.8*
cvsdist 101567b
%{_bindir}/userpasswd
cvsdist 101567b
%{_mandir}/man1/userpasswd.1*
cvsdist 101567b
%{_bindir}/consolehelper
cvsdist 101567b
%{_mandir}/man8/consolehelper.8*
cvsdist 101567b
%config /etc/X11/applnk/System/*
cvsdist 101567b
# PAM console wrappers
cvsdist 101567b
%{_bindir}/halt
cvsdist 101567b
%{_bindir}/reboot
cvsdist 101567b
%{_bindir}/poweroff
cvsdist 464b59f
%if %{build6x}
cvsdist 101567b
%{_bindir}/shutdown
cvsdist 464b59f
%endif
cvsdist 101567b
%{_datadir}/pixmaps/*
cvsdist 101567b
%config(noreplace) /etc/pam.d/halt
cvsdist 101567b
%config(noreplace) /etc/pam.d/reboot
cvsdist 101567b
%config(noreplace) /etc/pam.d/poweroff
cvsdist 101567b
%config(missingok) /etc/security/console.apps/halt
cvsdist 101567b
%config(missingok) /etc/security/console.apps/reboot
cvsdist 101567b
%config(missingok) /etc/security/console.apps/poweroff
cvsdist 101567b
cvsdist 30eab18
# If you're updating translations, do me a favor and bump the RELEASE number,
cvsdist 30eab18
# and not the VERSION number.  Version numbers indicate CODE changes.
cvsdist 101567b
%changelog
cvsdist 6965ad1
* Wed Mar 18 2003 D. Marlin <dmarlin@redhat.com>
cvsdist 6965ad1
- new s390 release number and rebuild for s390 (bug #85960)
cvsdist 6965ad1
cvsdist 30eab18
* Fri Nov  9 2001 Nalin Dahyabhai <nalin@redhat.com> 1.46-1
cvsdist 30eab18
- restore the previous XAUTHORITY setting before opening PAM sessions
cvsdist 30eab18
cvsdist 30eab18
* Fri Nov  2 2001 Nalin Dahyabhai <nalin@redhat.com> 1.45-1
cvsdist 30eab18
- propagate environment variables from libpam to applications
cvsdist 30eab18
cvsdist 30eab18
* Fri Oct  3 2001 Nalin Dahyabhai <nalin@redhat.com> 1.44-1
cvsdist 30eab18
- only try to call gtk_main_quit() if we've got a loop to get out of (#54109)
cvsdist 30eab18
- obey RPM_OPT_FLAGS, obey
cvsdist 30eab18
cvsdist 8f20f7c
* Tue Aug 28 2001 Trond Eivind Glomsrød <teg@redhat.com> 1.43-1
cvsdist 8f20f7c
- Update translations
cvsdist 8f20f7c
cvsdist a467c40
* Mon Aug  6 2001 Nalin Dahyabhai <nalin@redhat.com>
cvsdist a467c40
- add build requirements on glib-devel, gtk+-devel, pam-devel (#49726)
cvsdist a467c40
cvsdist 7d3d116
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
cvsdist 7d3d116
- Bump release + rebuild.
cvsdist 7d3d116
cvsdist 8e1c33a
* Wed Feb 14 2001 Preston Brown <pbrown@redhat.com>
cvsdist 8e1c33a
- final translation merge.
cvsdist 8e1c33a
cvsdist 8e1c33a
* Wed Feb 14 2001 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 8e1c33a
- clear the supplemental groups list before running binaries as root (#26851)
cvsdist 8e1c33a
cvsdist 8e1c33a
* Wed Feb  7 2001 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 8e1c33a
- set XAUTHORITY if we fall back to regular behavior (#26343)
cvsdist 8e1c33a
- make the suid helper 04711 instead of 04755
cvsdist 8e1c33a
cvsdist 8e1c33a
* Mon Feb  5 2001 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 8e1c33a
- refresh translations
cvsdist 8e1c33a
cvsdist 8e1c33a
* Mon Jan 29 2001 Preston Brown <pbrown@redhat.com>
cvsdist 8e1c33a
- use lang finding script.
cvsdist 8e1c33a
cvsdist 8e1c33a
* Thu Jan 25 2001 Yukihiro Nakai <ynakai@redhat.com>
cvsdist 8e1c33a
- Some fix for Japanese environment.
cvsdist 8e1c33a
- Use gtk_set_locale() instead of setlocale()
cvsdist 8e1c33a
- Copyright update.
cvsdist 8e1c33a
cvsdist 8e1c33a
* Sun Jan  7 2001 Yukihiro Nakai <ynakai@redhat.com>
cvsdist 8e1c33a
- Add gettextized
cvsdist 8e1c33a
cvsdist 60c5728
* Thu Nov  2 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 60c5728
- fix segfault in userhelper (#20027)
cvsdist 60c5728
cvsdist 60c5728
* Tue Oct 24 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 60c5728
- /sbin/shutdown, not /usr/sbin/shutdown (#19034)
cvsdist 60c5728
cvsdist 464b59f
* Fri Oct  6 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 464b59f
- don't pass on arguments to halt and reboot, because they error out
cvsdist 464b59f
cvsdist 464b59f
* Thu Oct  5 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 464b59f
- fix the /usr/bin/shutdown wrapper so that root can call shutdown
cvsdist 464b59f
- only include the /usr/bin/shutdown wrapper on 6.x
cvsdist 464b59f
- also sanitize LC_MESSAGES
cvsdist 464b59f
- tweak sanitizing checks (from mkj)
cvsdist 464b59f
cvsdist 464b59f
* Wed Oct  4 2000 Jakub Jelinek <jakub@redhat.com>
cvsdist 464b59f
- fix a security bug with LC_ALL/LANG variables (#18046)
cvsdist 464b59f
cvsdist 464b59f
* Mon Aug 28 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 464b59f
- mark defined strings translateable (#17006)
cvsdist 464b59f
cvsdist 101567b
* Thu Aug 24 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 101567b
- fix incorrect user name
cvsdist 101567b
- add a shell wrapper version of /usr/bin/shutdown
cvsdist 101567b
- build for 6.x errata
cvsdist 101567b
- bump revision to upgrade the errata
cvsdist 101567b
cvsdist 101567b
* Wed Aug 23 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 101567b
- fix stdin/stdout redirection shenanigans (#11706)
cvsdist 101567b
- fix authentication and execution as users other than root
cvsdist 101567b
- make sure the right descriptors are terminals before dup2()ing them
cvsdist 101567b
- cut out an extra-large CPU waster that breaks GUI apps
cvsdist 101567b
cvsdist 101567b
* Mon Aug 21 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 101567b
- fix typo (#16664)
cvsdist 101567b
cvsdist 101567b
* Sun Aug 20 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 101567b
- previous fix, part two
cvsdist 101567b
cvsdist 101567b
* Sat Aug 19 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 101567b
- fix inadvertent breakage of the shell-changing code
cvsdist 101567b
cvsdist 101567b
* Fri Aug 18 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 101567b
- fix the "run unprivileged" option
cvsdist 101567b
cvsdist 101567b
* Mon Aug 14 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 101567b
- actually use the right set of translations
cvsdist 101567b
cvsdist 101567b
* Fri Aug 11 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 101567b
- remove the shutdown command from the list of honored commands
cvsdist 101567b
cvsdist 101567b
* Wed Aug  9 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 101567b
- merge in updated translations
cvsdist 101567b
- set XAUTHORITY after successful authentication (#11006)
cvsdist 101567b
cvsdist 101567b
* Wed Aug  2 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 101567b
- install translations
cvsdist 101567b
- fixup a messy text string
cvsdist 101567b
- make "Mount"/"Unmount" translatable
cvsdist 101567b
- stop prompting for passwords to shut down -- we can hit ctrl-alt-del anyway,
cvsdist 101567b
  and gdm users can just shut down without logging in
cvsdist 101567b
cvsdist 101567b
* Mon Jul 31 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 101567b
- attempt to add i18n support
cvsdist 101567b
cvsdist 101567b
* Wed Jul 12 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 101567b
- attempt to get a usable icon for userhelper-wrap (#13616, #13768)
cvsdist 101567b
cvsdist 101567b
* Wed Jul  5 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 101567b
- fix them right this time
cvsdist 101567b
cvsdist 101567b
* Mon Jul  3 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 101567b
- fix verbosity problems
cvsdist 101567b
cvsdist 101567b
* Mon Jun 19 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 101567b
- strip all binaries by default
cvsdist 101567b
- add the name of the program being run to the userhelper dialog
cvsdist 101567b
- add a graphic to the userhelper-wrap package
cvsdist 101567b
- add a button to jump straight to nonprivileged operation when supported
cvsdist 101567b
cvsdist 101567b
* Sun Jun 18 2000 Matt Wilson <msw@redhat.com>
cvsdist 101567b
- rebuilt to see if we get stripped binaries
cvsdist 101567b
cvsdist 101567b
* Mon Jun  5 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 101567b
- move man pages to %%{_mandir}
cvsdist 101567b
cvsdist 101567b
* Thu Jun  1 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 101567b
- modify PAM setup to use system-auth
cvsdist 101567b
- bzip2 compress tarball
cvsdist 101567b
cvsdist 101567b
* Fri Mar 17 2000 Ngo Than <than@redhat.de>
cvsdist 101567b
- fix problem with LANG and LC_ALL
cvsdist 101567b
- compress source with bzip2
cvsdist 101567b
cvsdist 101567b
* Thu Mar 09 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 101567b
- fix problem parsing userhelper's -w flag with other args
cvsdist 101567b
cvsdist 101567b
* Wed Mar 08 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 101567b
- ignore read() == 0 because the child exits
cvsdist 101567b
cvsdist 101567b
* Tue Mar 07 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 101567b
- queue notice messages until we get prompts in userhelper to fix bug #8745
cvsdist 101567b
cvsdist 101567b
* Fri Feb 03 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 101567b
- free trip through the build system
cvsdist 101567b
cvsdist 101567b
* Tue Jan 11 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 101567b
- grab keyboard input focus for dialogs
cvsdist 101567b
cvsdist 101567b
* Fri Jan 07 2000 Michael K. Johnson <johnsonm@redhat.com>
cvsdist 101567b
- The root exploit fix created a bug that only showed up in certain
cvsdist 101567b
  circumstances.  Unfortunately, we didn't test in those circumstances...
cvsdist 101567b
cvsdist 101567b
* Mon Jan 03 2000 Michael K. Johnson <johnsonm@redhat.com>
cvsdist 101567b
- fixed local root exploit
cvsdist 101567b
cvsdist 101567b
* Thu Sep 30 1999 Michael K. Johnson <johnsonm@redhat.com>
cvsdist 101567b
- fixed old complex broken gecos parsing, replaced with simple working parsing
cvsdist 101567b
- can now blank fields (was broken by previous fix for something else...)
cvsdist 101567b
cvsdist 101567b
* Tue Sep 21 1999 Michael K. Johnson <johnsonm@redhat.com>
cvsdist 101567b
- FALLBACK/RETRY in consolehelper/userhelper
cvsdist 101567b
- session management fixed for consolehelper/userhelper SESSION=true
cvsdist 101567b
- fix memory leak and failure to close in error condition (#3614)
cvsdist 101567b
- fix various bugs where not all elements in userinfo got set
cvsdist 101567b
cvsdist 101567b
* Mon Sep 20 1999 Michael K. Johnson <johnsonm@redhat.com>
cvsdist 101567b
- set $HOME when acting as consolehelper
cvsdist 101567b
- rebuild against new pwdb
cvsdist 101567b
cvsdist 101567b
* Tue Sep 14 1999 Michael K. Johnson <johnsonm@redhat.com>
cvsdist 101567b
- honor "owner" flag to mount
cvsdist 101567b
- ask for passwords with username
cvsdist 101567b
cvsdist 101567b
* Tue Jul 06 1999 Bill Nottingham <notting@redhat.com>
cvsdist 101567b
- import pam_console wrappers from SysVinit, since they require usermode
cvsdist 101567b
cvsdist 101567b
* Mon Apr 12 1999 Michael K. Johnson <johnsonm@redhat.com>
cvsdist 101567b
- even better check for X availability
cvsdist 101567b
cvsdist 101567b
* Wed Apr 07 1999 Michael K. Johnson <johnsonm@redhat.com>
cvsdist 101567b
- better check for X availability
cvsdist 101567b
- center windows to make authentication easier (improve later with
cvsdist 101567b
  transients and embedded windows where possible)
cvsdist 101567b
- applink -> applnk
cvsdist 101567b
- added a little padding, especially important when running without
cvsdist 101567b
  a window manager, as happens when running from session manager at
cvsdist 101567b
  logout time
cvsdist 101567b
cvsdist 101567b
* Wed Mar 31 1999 Michael K. Johnson <johnsonm@redhat.com>
cvsdist 101567b
- hm, need to be root...
cvsdist 101567b
cvsdist 101567b
* Fri Mar 19 1999 Michael K. Johnson <johnsonm@redhat.com>
cvsdist 101567b
- updated userhelper.8 man page for consolehelper capabilities
cvsdist 101567b
- moved from wmconfig to desktop entries
cvsdist 101567b
cvsdist 101567b
* Thu Mar 18 1999 Michael K. Johnson <johnsonm@redhat.com>
cvsdist 101567b
- added consolehelper
cvsdist 101567b
- Changed conversation architecture to follow PAM spec
cvsdist 101567b
cvsdist 101567b
* Wed Mar 17 1999 Bill Nottingham <notting@redhat.com>
cvsdist 101567b
- remove gdk_input_remove (causing segfaults)
cvsdist 101567b
cvsdist 101567b
* Tue Jan 12 1999 Michael K. Johnson <johnsonm@redhat.com>
cvsdist 101567b
- fix missing include files
cvsdist 101567b
cvsdist 101567b
* Mon Oct 12 1998 Cristian Gafton <gafton@redhat.com>
cvsdist 101567b
- strip binaries
cvsdist 101567b
- use defattr
cvsdist 101567b
- fix spec file ( rm -rf $(RPM_BUILD_ROOT) is a stupid thing to do ! )
cvsdist 101567b
cvsdist 101567b
* Tue Oct 06 1998 Preston Brown <pbrown@redhat.com>
cvsdist 101567b
- fixed so that the close button on window managers quits the program properly
cvsdist 101567b
cvsdist 101567b
* Thu Apr 16 1998 Erik Troan <ewt@redhat.com>
cvsdist 101567b
- use gtk-config during build
cvsdist 101567b
- added make archive rule to Makefile
cvsdist 101567b
- uses a build root
cvsdist 101567b
cvsdist 101567b
* Fri Nov  7 1997 Otto Hammersmith <otto@redhat.com>
cvsdist 101567b
- new version that fixed memory leak bug.
cvsdist 101567b
cvsdist 101567b
* Mon Nov  3 1997 Otto Hammersmith <otto@redhat.com>
cvsdist 101567b
- updated version to fix bugs
cvsdist 101567b
cvsdist 101567b
* Fri Oct 17 1997 Otto Hammersmith <otto@redhat.com>
cvsdist 101567b
- Wrote man pages for userpasswd and userhelper.
cvsdist 101567b
cvsdist 101567b
* Tue Oct 14 1997 Otto Hammersmith <otto@redhat.com>
cvsdist 101567b
- Updated the packages... now includes userpasswd for changing passwords
cvsdist 101567b
  and newer versions of usermount and userinfo.  No known bugs or
cvsdist 101567b
  misfeatures. 
cvsdist 101567b
- Fixed the file list...
cvsdist 101567b
cvsdist 101567b
* Mon Oct 6 1997 Otto Hammersmith <otto@redhat.com>
cvsdist 101567b
- Created the spec file.