Summary: A set of GNU utilities commonly used in shell scripts. Name: sh-utils Version: 2.0.11 Release: 5vsd License: GPL Group: System Environment/Shells Source: ftp://ftp.gnu.org/pub/gnu/sh-utils/sh-utils-%{version}.tar.bz2 Source1: su.pamd Source2: help2man Source3: sh-utils-2.0.11-aclocal.add Patch: sh-utils-2.0.11-aclocal.patch Patch1: sh-utils-2.0.11-hostname.patch Patch2: sh-utils-2.0-utmp.patch Patch3: sh-utils-2.0.11-dateman.patch Patch4: sh-utils-1.16-paths.patch # RMS will never accept the PAM patch because it removes his historical # rant about Twenex and the wheel group, so we'll continue to maintain # it here indefinitely. Patch6: sh-utils-2.0.11-pam.patch Patch7: sh-utils-2.0.11-exit.patch Patch8: sh-utils-2.0-xauthority.patch Patch10: sh-utils-2.0-rfc822.patch Patch11: sh-utils-2.0-vsd.patch BuildRequires: automake >= 1.4 pam-devel # XXX generate per-os macro to test %{expand: %%global this_os_is_%{_os} %%{nil}} %ifos linux Requires: pam >= 0.66-12, /etc/pam.d/system-auth %endif Prereq: /sbin/install-info BuildRoot: %{_tmppath}/%{name}-root %description The GNU shell utilities are a set of useful system utilities which are often used in shell scripts. The sh-utils package includes basename (to remove the path prefix from a specified pathname), chroot (to change the root directory), date (to print/set the system time and date), dirname (to remove the last level or the filename from a given path), echo (to print a line of text), env (to display/modify the environment), expr (to evaluate expressions), factor (to print prime factors), false (to return an unsuccessful exit status), groups (to print the groups a specified user is a member of), id (to print the real/effective uid/gid), logname (to print the current login name), nice (to modify a scheduling priority), nohup (to allow a command to continue running after logging out), pathchk (to check a file name's portability), printenv (to print environment variables), printf (to format and print data), pwd (to print the current directory), seq (to print numeric sequences), sleep (to suspend execution for a specified time), stty (to print/change terminal settings), su (to become another user or the superuser), tee (to send output to multiple files), test (to evaluate an expression), true (to return a successful exit status), tty (to print the terminal name), uname (to print system information), users (to print current users' names), who (to print a list of the users who are currently logged in), whoami (to print the effective user id), and yes (to print a string indefinitely). %prep %setup -q %patch -p1 -b .aclocal %patch1 -p1 %ifos linux %patch2 -p1 %endif %patch3 -p1 -b .dateman %patch4 -p1 %patch6 -p1 -b .pam %patch7 -p1 -b .exit %patch8 -p1 -b .xauth %patch10 -p1 -b .rfc822 %patch11 -p1 # Get rid of an evil construct that isn't accepted by automake >= 1.4p perl -pi -e "s/^VERSION.*/VERSION = %{version}/g" aclocal.m4 # We don't have the right version of autoconf, so don't use it mv configure.in configure.in.sux touch configure find . -name \*.orig -exec rm -fv {} \; # XXX docs should say /var/run/[uw]tmp not /etc/[uw]tmp perl -pi -e 's,/etc/utmp,/var/run/utmp,g' doc/sh-utils.texi man/logname.1 man/users.1 man/who.1 perl -pi -e 's,/etc/wtmp,/var/run/wtmp,g' doc/sh-utils.texi man/logname.1 man/users.1 man/who.1 rm -f doc/sh-utils.info cp %{SOURCE2} man/help2man %build %configure %{?this_os_is_linux: --disable-largefile --enable-pam } # HACK: Workaround for the lack of a matching autoconf version # Get rid of this as soon as we have autoconf 2.50 cat >>config.h <missing < 2.0.11-5 - Add more build dependencies (#49697) * Sun Jul 22 2001 Bernhard Rosenkraenzer 2.0.11-4 - pass XAUTHORITY through su (Patch from Matthias Hensler ) * Wed Jul 18 2001 Bernhard Rosenkraenzer 2.0.11-3 - re-fix su exit code (#11029) * Tue May 15 2001 Bernhard Rosenkraenzer 2.0.11-2 - Fix PAM support (#40400) - Add comment on TZ environment variable in date.1 man page (#10233) * Sun May 13 2001 Bernhard Rosenkraenzer 2.0.11-1 - Update to 2.0.11 * Fri May 4 2001 Bernhard Rosenkraenzer 2.0-14 - Fix up RFC 822 compliance with -R if LANG != en_XX (Bug #38954) * Tue Jan 16 2001 Jeff Johnson - segfault with date -f datefile (#23875). * Sat Jan 6 2001 Jeff Johnson - update help2man to fix formatting problems in man pages (#12840). - add localization files (#19103). - hostid usage message wrong (#14615). * Wed Jul 12 2000 Prospector - automatic rebuild * Fri Jun 30 2000 Nalin Dahyabhai - modify pam_wheel setup in /etc/pam.d/su * Thu Jun 15 2000 Nalin Dahyabhai - add a commented call to pam_wheel to the PAM configuration file * Mon Jun 5 2000 Jeff Johnson - remove /usr/bin/uptime (conflicts with procps). * Sun Jun 4 2000 Jeff Johnson - FHS packaging. * Thu Jun 1 2000 Nalin Dahyabhai - don't build in an arch-specific subdirectory - modify PAM setup to use system-auth - miscellaneous FHS-compliance fixes * Tue Mar 7 2000 Jeff Johnson - rebuild for sparc baud rates > 38400. * Wed Feb 02 2000 Cristian Gafton - fix description * Wed Jan 5 2000 Jeff Johnson - add cest timezone (#8162). * Thu Nov 18 1999 Michael K. Johnson - export DISPLAY as part of "su -" so that pam_xauth works. (really ought to be exported anyways...) * Tue Aug 17 1999 Cristian Gafton - update to sh-utils 2.0 and port meaningfull patches (why the heck they keep ignoring the PAM patches?!) (Because our PAM patches, by necessity, remove RMS's rant about the wheel group and how evil he thinks it is... So we never expect the PAM patches to be accepted. -mkj) - sick thing: they still refer to /etc/[uw]tmp - fix bogus requirement for autoconf version 2.14.1, which is unreleased as of today... * Thu Aug 5 1999 Jeff Johnson - comment out "timestmap test stinks" hack. WTFO? - remove info page so that it is regenerated correctly. * Wed Aug 4 1999 Jeff Johnson - docs should say /var/run/[uw]tmp not /etc/[uw]tmp (#4319). * Wed Jul 28 1999 Cristian Gafton - fix date +yesterday/tomorrow (#3778) - fix #2308, #3954 * Tue Apr 13 1999 Michael K. Johnson - su.pamd now calls pam_xauth * Mon Apr 12 1999 Michael K. Johnson - merge pam patches - wait until in child process to drop priviledges as we need euid != ruid during pam_open_session and pam_close_session * Thu Apr 01 1999 Erik Troan - make sure standard in is a tty so we can't feed it from a pipe * Wed Mar 31 1999 Erik Troan - don't trust stdin for su (bug 1274) * Fri Mar 26 1999 Michael Maher - added stty patch, fixed bug #997 * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 16) * Fri Dec 18 1998 Cristian Gafton - build against glibc 2.1 * Mon Jun 8 1998 Michal Jaegermann - fixed reversed test for when to allocate in who.c and an incorrect use of xrealloc. * Thu Apr 30 1998 Donnie Barnes - moved /usr/bin/nice to /bin/nice * Fri Apr 24 1998 Prospector System - translations modified for de, fr, tr * Sat Apr 11 1998 Cristian Gafton - manhattan rebuild * Wed Oct 22 1997 Michael K. Johnson - added minor patch for glibc 2.1 * Wed Oct 21 1997 Cristian Gafton - fixed the URLs in spec file - cleaned up the spec file * Thu Oct 02 1997 Michael K. Johnson - BuildRoot - New pam standard. * Sun Sep 14 1997 Erik Troan - uses install-info * Mon Jun 02 1997 Erik Troan - built against glibc * Fri Apr 18 1997 Michael K. Johnson - Fixed the sense of the user and root default paths. * Mon Apr 14 1997 Erik Troan - Fixed getutent patch to define UTMP_READ_INCR - Modified su.c to define default paths w/o regard to other header files or -D style definitions * Wed Apr 02 1997 Erik Troan - Updated getutent patch for 1.16 - Added mktime patch for 64bit time_t * Tue Mar 25 1997 Michael K. Johnson - DEFPATH handling moved from ...path.patch to _PATH_DEFPATH* * Mon Mar 03 1997 Michael K. Johnson - Moved from pam.conf to pam.d