Summary: A collection of basic system utilities. Name: util-linux Version: 2.10m Release: 12 Copyright: distributable Group: System Environment/Base Source0: ftp://ftp.kernel.org/mirrors/linux/utils/util-linux/util-linux-%{version}.tar.gz Source1: util-linux-2.7-login.pamd Source2: util-linux-2.7-chfn.pamd Source3: util-linux-2.7-chsh.pamd Source4: util-linux-2.9w-kbdrate.pamd Source5: util-linux-2.9w-kbdrate.apps Patch0: util-linux-2.10c-rhconfig.patch Patch1: util-linux-2.10e-nochkdupexe.patch Patch2: util-linux-2.10m-gecos.patch # XXX apply next patch to enable mount-2.8 from util-linux (not applied) Patch4: util-linux-2.9i-mount.patch Patch6: util-linux-2.9i-fdiskwarning.patch Patch8: util-linux-2.9i-nomount.patch Patch11: util-linux-2.9o-btmp.patch Patch21: util-linux-2.9v-nonroot.patch Patch23: util-linux-2.9w-kbdrate.patch Patch27: util-linux-2.10f-moretc.patch Patch28: util-linux-2.10k-sparcraid.patch Patch31: util-linux-2.10k-overflow.patch Patch32: util-linux-2.10k-glibc.patch Patch33: util-linux-2.10m-vipath.patch Patch34: util-linux-ia64-hwclock.patch Patch35: util-linux-2.10m-loginpath.patch Patch36: util-linux-2.10m-dict.patch Patch37: util-linux-2.10m-fdwronly.patch Obsoletes: fdisk tunelp %ifarch alpha sparc sparc64 sparcv9 Obsoletes: clock %endif %ifarch alpha Conflicts: initscripts <= 4.58, timeconfig <= 3.0.1 %endif BuildRoot: %{_tmppath}/%{name}-root Requires: pam >= 0.66-4, kernel >= 2.2.12-7, /etc/pam.d/system-auth %description The util-linux package contains a large variety of low-level system utilities that are necessary for a Linux system to function. Among many features, Util-linux contains the fdisk configuration tool and the login program. %prep %setup -q %patch0 -p1 -b .rhconfig %patch1 -p1 -b .nochkdupexe %patch2 -p1 -b .gecos # mount comes from its own rpm (again) #%patch4 -p1 -b .mount %patch6 -p1 -b .fdiskwarning %patch8 -p1 -b .nomount %patch11 -p1 -b .btmp %patch21 -p1 -b .nonroot %patch23 -p1 -b .kbdrate %patch27 -p1 -b .moretc %patch28 -p1 -b .sparcraid %patch31 -p1 -b .overflow %patch32 -p1 -b .nonx86 %patch33 -p1 -b .vipath %patch34 -p1 -b .ia64-rtc %patch35 -p1 -b .loginpath %patch36 -p1 -b .dict %patch37 -p1 -b .fdwronly %build unset LINGUAS || : %configure make "RPM_OPT_FLAGS=$RPM_OPT_FLAGS" cd rescuept gcc $RPM_OPT_FLAGS -o rescuept rescuept.c cd .. %install rm -rf ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}/{bin,sbin} mkdir -p ${RPM_BUILD_ROOT}%{_prefix}/lib mkdir -p ${RPM_BUILD_ROOT}%{_bindir} mkdir -p ${RPM_BUILD_ROOT}%{_infodir} mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man{1,6,8} mkdir -p ${RPM_BUILD_ROOT}%{_sbindir} mkdir -p ${RPM_BUILD_ROOT}%{_prefix}/share/locale/{cs,de,fr,it,ja,nl,pt_BR}/LC_MESSAGES make install DESTDIR=${RPM_BUILD_ROOT} install -m 755 rescuept/rescuept ${RPM_BUILD_ROOT}/sbin if [ "%{_mandir}" != "%{_prefix}/man" -a -d ${RPM_BUILD_ROOT}%{_prefix}/man ]; then ( cd ${RPM_BUILD_ROOT}%{_prefix}/man; tar cf - ./* ) | ( cd ${RPM_BUILD_ROOT}%{_mandir}; tar xf - ) ( cd ${RPM_BUILD_ROOT}%{_prefix}; rm -rf ./man ) fi if [ "%{_infodir}" != "%{_prefix}/info" -a -d ${RPM_BUILD_ROOT}%{_prefix}/info ]; then ( cd ${RPM_BUILD_ROOT}%{_prefix}/info; tar cf - ./* ) | ( cd ${RPM_BUILD_ROOT}%{_infodir}; tar xf - ) ( cd ${RPM_BUILD_ROOT}%{_prefix}; rm -rf ./info ) fi %ifarch sparc sparc64 sparcv9 rm -rf ${RPM_BUILD_ROOT}%{_bindir}/sunhostid cat << E-O-F > ${RPM_BUILD_ROOT}%{_bindir}/sunhostid #!/bin/sh # this should be %{_bindir}/sunhostid or somesuch. # Copyright 1999 Peter Jones, . # GPL and all that good stuff apply. ( idprom=\`cat /proc/openprom/idprom\` echo \$idprom|dd bs=1 skip=2 count=2 echo \$idprom|dd bs=1 skip=27 count=6 echo ) 2>/dev/null E-O-F chmod 755 ${RPM_BUILD_ROOT}%{_bindir}/sunhostid %endif gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/ipc.info for i in /bin/login %{_bindir}/chfn %{_bindir}/chsh %{_bindir}/newgrp ; do strip ${RPM_BUILD_ROOT}/$i done strip ${RPM_BUILD_ROOT}/sbin/fdisk || : mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d { cd ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d install -m 644 ${RPM_SOURCE_DIR}/util-linux-2.7-login.pamd ./login install -m 644 ${RPM_SOURCE_DIR}/util-linux-2.7-chsh.pamd ./chsh install -m 644 ${RPM_SOURCE_DIR}/util-linux-2.7-chsh.pamd ./chfn install -m 644 ${RPM_SOURCE_DIR}/util-linux-2.9w-kbdrate.pamd ./kbdrate } mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/security/console.apps { cd ${RPM_BUILD_ROOT}%{_sysconfdir}/security/console.apps install -m 644 ${RPM_SOURCE_DIR}/util-linux-2.9w-kbdrate.apps ./kbdrate } ln -sf consolehelper ${RPM_BUILD_ROOT}%{_bindir}/kbdrate ln -sf hwclock ${RPM_BUILD_ROOT}/sbin/clock # We do not want dependencies on csh chmod 644 ${RPM_BUILD_ROOT}%{_prefix}/lib/getopt/* # This has dependencies on stuff in /usr %ifnarch sparc sparc64 sparcv9 mv ${RPM_BUILD_ROOT}/sbin/cfdisk ${RPM_BUILD_ROOT}/usr/sbin %endif %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,root) %{_prefix}/share/locale/*/LC_MESSAGES/* /sbin/clock /sbin/hwclock %{_mandir}/man8/hwclock.8* %{_sbindir}/tunelp %{_mandir}/man8/tunelp.8* %config %{_sysconfdir}/pam.d/login %config %{_sysconfdir}/pam.d/chfn %config %{_sysconfdir}/pam.d/chsh %config %{_sysconfdir}/pam.d/kbdrate %config %{_sysconfdir}/security/console.apps/kbdrate %{_bindir}/kbdrate /sbin/fdisk /sbin/rescuept %ifnarch sparc sparc64 sparcv9 /usr/sbin/cfdisk %endif %ifarch %{ix86} alpha ia64 /sbin/fsck.minix /sbin/mkfs.minix %endif %{_bindir}/raw %{_mandir}/man8/raw.8* /sbin/mkfs /sbin/mkswap %{_bindir}/fdformat %{_bindir}/setfdprm %config %{_sysconfdir}/fdprm %{_mandir}/man8/fdformat.8* %{_mandir}/man8/mkswap.8* %{_mandir}/man8/setfdprm.8* %{_prefix}/games/banner %{_mandir}/man6/banner.6* %{_bindir}/ddate %{_mandir}/man1/ddate.1* %attr(755,root,root) /bin/login %attr(4711,root,root) %{_bindir}/chfn %attr(4711,root,root) %{_bindir}/chsh %attr(4711,root,root) %{_bindir}/newgrp %{_sbindir}/vipw %{_sbindir}/vigr %{_mandir}/man1/chfn.1* %{_mandir}/man1/chsh.1* %{_mandir}/man1/login.1* %{_mandir}/man1/newgrp.1* %{_mandir}/man8/vipw.8* %{_mandir}/man8/vigr.8* /bin/kill %{_bindir}/cal %ifarch sparc sparc64 sparcv9 %{_bindir}/sunhostid %endif %{_bindir}/logger %{_bindir}/look %{_bindir}/mcookie %{_bindir}/namei %{_bindir}/script %{_bindir}/setterm #%{_bindir}/tsort %{_bindir}/whereis %attr(2755,root,tty) %{_bindir}/write %{_bindir}/getopt %{_mandir}/man1/cal.1* #%{_mandir}/man1/hostid.1* %{_mandir}/man1/kill.1* %{_mandir}/man1/logger.1* %{_mandir}/man1/look.1* %{_mandir}/man1/mcookie.1* %{_mandir}/man1/namei.1* %{_mandir}/man1/script.1* %{_mandir}/man1/setterm.1* #%{_mandir}/man1/tsort.1* %{_mandir}/man1/whereis.1* %{_mandir}/man1/write.1* %{_mandir}/man1/getopt.1* %{_prefix}/lib/getopt /bin/dmesg /sbin/ctrlaltdel /sbin/kbdrate #/sbin/sln /bin/arch %{_bindir}/ipcrm %{_bindir}/ipcs %{_bindir}/renice %{_sbindir}/readprofile %{_bindir}/setsid %ifarch %{ix86} alpha armv4l %{_bindir}/cytune %endif %{_mandir}/man1/arch.1* %{_mandir}/man1/readprofile.1* %ifnarch sparc sparc64 sparcv9 %{_mandir}/man8/cytune.8* %endif %{_mandir}/man8/ctrlaltdel.8* %{_mandir}/man8/dmesg.8* %{_mandir}/man8/ipcrm.8* %{_mandir}/man8/ipcs.8* %{_mandir}/man8/kbdrate.8* %{_mandir}/man8/renice.8* %{_mandir}/man8/setsid.8* %ifarch %{ix86} %{_sbindir}/rdev %{_sbindir}/ramsize %{_sbindir}/rootflags %{_sbindir}/swapdev %{_sbindir}/vidmode %{_mandir}/man8/rdev.8* %{_mandir}/man8/ramsize.8* %{_mandir}/man8/rootflags.8* %{_mandir}/man8/swapdev.8* %{_mandir}/man8/vidmode.8* %endif %{_infodir}/ipc.info* %{_bindir}/col %{_bindir}/colcrt %{_bindir}/colrm %{_bindir}/column %{_bindir}/hexdump %{_bindir}/rename %{_bindir}/rev %{_bindir}/ul %{_mandir}/man1/col.1* %{_mandir}/man1/colcrt.1* %{_mandir}/man1/colrm.1* %{_mandir}/man1/column.1* %{_mandir}/man1/hexdump.1* %{_mandir}/man1/rename.1* %{_mandir}/man1/rev.1* %{_mandir}/man1/ul.1* /bin/more %{_mandir}/man1/more.1* %{_prefix}/lib/more.help %ifarch %{ix86} alpha ia64 %{_mandir}/man8/fsck.minix.8* %{_mandir}/man8/mkfs.minix.8* %{_mandir}/man8/mkfs.8* %endif %{_mandir}/man8/fdisk.8* %ifnarch sparc sparc64 sparcv9 %{_mandir}/man8/cfdisk.8* %endif %doc */README.* %ifarch %{ix86} alpha ia64 /sbin/sfdisk %{_mandir}/man8/sfdisk.8* %doc fdisk/sfdisk.examples %endif %changelog * Wed Aug 30 2000 Matt Wilson - rebuild to cope with glibc locale binary incompatibility, again * Mon Aug 14 2000 Jeff Johnson - setfdprm should open with O_WRONLY, not 3. * Fri Aug 11 2000 Jeff Johnson - fdformat should open with O_WRONLY, not 3. * Fri Jul 21 2000 Nalin Dahyabhai - make 'look' look in /usr/share/dict * Fri Jul 21 2000 Bill Nottingham - put /usr/local/sbin:/usr/local/bin in root's path * Wed Jul 19 2000 Jakub Jelinek - rebuild to cope with glibc locale binary incompatibility * Thu Jul 13 2000 Prospector - automatic rebuild * Mon Jul 10 2000 Bill Nottingham - enable hwclock to use /dev/efirtc on ia64 (gettext is fun. :( ) * Mon Jul 3 2000 Bill Nottingham - move cfdisk to /usr/sbin, it depends on /usr stuff - add rescuept * Fri Jun 23 2000 Bernhard Rosenkraenzer - point more at the correct path to vi (for "v"), Bug #10882 * Sun Jun 4 2000 Jeff Johnson - FHS packaging changes. * Thu Jun 1 2000 Nalin Dahyabhai - modify PAM setup to use system-auth * Mon May 1 2000 Bill Nottingham - eek, where did login go? (specfile tweaks) * Mon Apr 17 2000 Bernhard Rosenkraenzer - 2.10k - fix compilation with current glibc * Tue Mar 21 2000 Bernhard Rosenkraenzer - 2.10h * Tue Mar 7 2000 Jeff Johnson - rebuild for sparc baud rates > 38400. * Sat Mar 4 2000 Matt Wilson - use snprintf - not sprintf - when doing sprintf ("%s\n", _("Some string")) to avoid overflows and segfaults. * Mon Feb 21 2000 Jeff Johnson - raw control file was /dev/raw, now /dev/rawctl. - raw access files were /dev/raw*, now /dev/raw/raw*. * Thu Feb 17 2000 Erik Troan - -v argument to mkswap wasn't working * Thu Feb 10 2000 Jakub Jelinek - Recognize 0xfd on Sun disklabels as RAID * Tue Feb 8 2000 Bill Nottingham - more lives in /bin, and was linked against /usr/lib/libnurses. Bad. * Thu Feb 03 2000 Jakub Jelinek - update to 2.10f - fix issues in the new realpath code, avoid leaking memory * Tue Feb 01 2000 Cristian Gafton - rebuild to fix dependencies - add NFSv3 patches * Fri Jan 28 2000 Bill Nottingham - don't require csh * Mon Jan 24 2000 Nalin Dahyabhai - update to 2.10e - add rename * Thu Jan 20 2000 Jeff Johnson - strip newlines in logger input. * Mon Jan 10 2000 Jeff Johnson - rebuild with correct ncurses libs. * Tue Dec 7 1999 Matt Wilson - updated to util-linux 2.10c - deprecated IMAP login mail notification patch17 - deprecated raw patch22 - depricated readprofile patch24 * Tue Dec 7 1999 Bill Nottingham - add patch for readprofile * Thu Nov 18 1999 Michael K. Johnson - tunelp should come from util-linux * Tue Nov 9 1999 Jakub Jelinek - kbdrate cannot use /dev/port on sparc. * Wed Nov 3 1999 Jakub Jelinek - fix kbdrate on sparc. * Wed Oct 27 1999 Bill Nottingham - ship hwclock on alpha. * Tue Oct 5 1999 Bill Nottingham - don't ship symlinks to rdev if we don't ship rdev. * Tue Sep 07 1999 Cristian Gafton - add rawIO support from sct * Mon Aug 30 1999 Preston Brown - don't display "new mail" message when the only piece of mail is from IMAP * Fri Aug 27 1999 Michael K. Johnson - kbdrate is now a console program * Thu Aug 26 1999 Jeff Johnson - hostid is now in sh-utils. On sparc, install hostid as sunhostid (#4581). - update to 2.9w: - Updated mount.8 (Yann Droneaud) - Improved makefiles - Fixed flaw in fdisk * Tue Aug 10 1999 Jeff Johnson - tsort is now in textutils. * Wed Aug 4 1999 Bill Nottingham - turn off setuid bit on login. Again. :( * Tue Aug 3 1999 Peter Jones, - hostid script for sparc (#3803). * Tue Aug 03 1999 Christian 'Dr. Disk' Hechelmann - added locale message catalogs to %file - added patch for non-root build - vigr.8 and /usr/lib/getopt man-page was missing from file list - /etc/fdprm really is a config file * Fri Jul 23 1999 Jeff Johnson - update to 2.9v: - cfdisk no longer believes the kernel's HDGETGEO (and may be able to partition a 2 TB disk) * Fri Jul 16 1999 Jeff Johnson - update to 2.9u: - Czech more.help and messages (Jiøí Pavlovský) - Japanese messages (Daisuke Yamashita) - fdisk fix (Klaus G. Wagner) - mount fix (Hirokazu Takahashi) - agetty: enable hardware flow control (Thorsten Kranzkowski) - minor cfdisk improvements - fdisk no longer accepts a default device - Makefile fix * Tue Jul 6 1999 Jeff Johnson - update to 2.9t: - national language support for hwclock - Japanese messages (both by Daisuke Yamashita) - German messages and some misc i18n fixes (Elrond) - Czech messages (Jiøí Pavlovský) - wall fixed for /dev/pts/xx ttys - make last and wall use getutent() (Sascha Schumann) [Maybe this is bad: last reading all of wtmp may be too slow. Revert in case people complain.] - documented UUID= and LABEL= in fstab.5 - added some partition types - swapon: warn only if verbose * Fri Jun 25 1999 Jeff Johnson - update to 2.9s. * Sat May 29 1999 Jeff Johnson - fix mkswap sets incorrect bits on sparc64 (#3140). * Thu Apr 15 1999 Jeff Johnson - on sparc64 random ioctls on clock interface cause kernel messages. * Thu Apr 15 1999 Jeff Johnson - improved raid patch (H.J. Lu). * Wed Apr 14 1999 Michael K. Johnson - added patch for smartraid controllers * Sat Apr 10 1999 Cristian Gafton - fix logging problems caused by setproctitle and PAM interaction (#2045) * Wed Mar 31 1999 Jeff Johnson - include docs and examples for sfdisk (#1164) * Mon Mar 29 1999 Matt Wilson - rtc is not working properly on alpha, we can't use hwclock yet. * Fri Mar 26 1999 Cristian Gafton - add patch to make mkswap more 64 bit friendly... Patch from eranian@hpl.hp.com (ahem!) * Thu Mar 25 1999 Jeff Johnson - include sfdisk (#1164) - fix write (#1784) - use positive logic in spec file (%ifarch rather than %ifnarch). - (re)-use 1st matching utmp slot if search by mypid not found. - update to 2.9o - lastb wants bad logins in wtmp clone /var/run/btmp (#884) * Thu Mar 25 1999 Jakub Jelinek - if hwclock is to be compiled on sparc, it must actually work. Also, it should obsolete clock, otherwise it clashes. - limit the swap size in mkswap for 2.2.1+ kernels by the actual maximum size kernel can handle. - fix kbdrate on sparc, patch by J. S. Connell * Wed Mar 24 1999 Matt Wilson - added pam_console back into pam.d/login * Tue Mar 23 1999 Matt Wilson - updated to 2.9i - added hwclock for sparcs and alpha * Mon Mar 22 1999 Erik Troan - added vigr to file list * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 12) * Thu Mar 18 1999 Cristian Gafton - remove most of the ifnarch arm stuff * Mon Mar 15 1999 Michael Johnson - added pam_console.so to /etc/pam.d/login * Thu Feb 4 1999 Michael K. Johnson - .perms patch to login to make it retain root in parent process for pam_close_session to work correctly * Tue Jan 12 1999 Jeff Johnson - strip fdisk in buildroot correctly (#718) * Mon Jan 11 1999 Cristian Gafton - have fdisk compiled on sparc and arm * Mon Jan 11 1999 Erik Troan - added beos partition type to fdisk * Wed Dec 30 1998 Cristian Gafton - incorporate fdisk on all arches * Sat Dec 5 1998 Jeff Johnson - restore PAM functionality at end of login (Bug #201) * Thu Dec 03 1998 Cristian Gafton - patch top build on the arm without PAM and related utilities, for now. - build hwclock only on intel * Wed Nov 18 1998 Cristian Gafton - upgraded to version 2.9 * Thu Oct 29 1998 Bill Nottingham - build for Raw Hide (slang-1.2.2) - patch kbdrate wackiness so it builds with egcs * Tue Oct 13 1998 Erik Troan - patched more to use termcap * Mon Oct 12 1998 Erik Troan - added warning about alpha/bsd label starting cylinder * Mon Sep 21 1998 Erik Troan - use sigsetjmp/siglongjmp in more rather then sig'less versions * Fri Sep 11 1998 Jeff Johnson - explicit attrs for setuid/setgid programs * Thu Aug 27 1998 Cristian Gafton - sln is now included in glibc * Sun Aug 23 1998 Jeff Johnson - add cbm1581 floppy definitions (problem #787) * Mon Jun 29 1998 Jeff Johnson - remove /etc/nologin at end of shutdown/halt. * Fri Jun 19 1998 Jeff Johnson - add mount/losetup. * Thu Jun 18 1998 Jeff Johnson - update to 2.8 with 2.8b clean up. hostid now defunct? * Mon Jun 01 1998 David S. Miller - "more" now works properly on sparc * Sat May 02 1998 Jeff Johnson - Fix "fdisk -l" fault on mounted cdrom. (prob #513) * Fri Apr 24 1998 Prospector System - translations modified for de, fr, tr * Sat Apr 11 1998 Cristian Gafton - manhattan rebuild * Mon Dec 29 1997 Erik Troan - more didn't suspend properly on glibc - use proper tc*() calls rather then ioctl's * Sun Dec 21 1997 Cristian Gafton - fixed a security problem in chfn and chsh accepting too long gecos fields * Fri Dec 19 1997 Mike Wangsmo - removed "." from default path * Tue Dec 02 1997 Cristian Gafton - added (again) the vipw patch * Wed Oct 22 1997 Michael Fulbright - minor cleanups for glibc 2.1 * Fri Oct 17 1997 Michael Fulbright - added vfat32 filesystem type to list recognized by fdisk * Fri Oct 10 1997 Erik Troan - don't build clock on the alpha - don't install chkdupexe * Thu Oct 02 1997 Michael K. Johnson - Update to new pam standard. - BuildRoot. * Thu Sep 25 1997 Cristian Gafton - added rootok and setproctitle patches - updated pam config files for chfn and chsh * Tue Sep 02 1997 Erik Troan - updated MCONFIG to automatically determine the architecture - added glibc header hacks to fdisk code - rdev is only available on the intel * Fri Jul 18 1997 Erik Troan - update to util-linux 2.7, fixed login problems * Wed Jun 25 1997 Erik Troan - Merged Red Hat changes into main util-linux source, updated package to development util-linux (nearly 2.7). * Tue Apr 22 1997 Michael K. Johnson - LOG_AUTH --> LOG_AUTHPRIV in login and shutdown * Mon Mar 03 1997 Michael K. Johnson - Moved to new pam and from pam.conf to pam.d * Tue Feb 25 1997 Michael K. Johnson - pam.patch differentiated between different kinds of bad logins. In particular, "user does not exist" and "bad password" were treated differently. This was a minor security hole.