Summary: A collection of basic system utilities. Summary(ja): ´ðËÜ¥·¥¹¥Æ¥à¥æ¡¼¥Æ¥£¥ê¥Æ¥£¡¼¤Î¥³¥ì¥¯¥·¥ç¥ó Name: util-linux Version: 2.10f Release: 7vl4a Copyright: distributable Group: System Environment/Base Source0: ftp://ftp.kernel.org/mirrors/linux/utils/util-linux/util-linux-%{version}.tar.bz2 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.7-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 Patch13: util-linux-2.9o-openlog.patch Patch16: util-linux-2.9o-mkswap2.patch Patch21: util-linux-2.9v-nonroot.patch Patch23: util-linux-2.9w-kbdrate.patch Patch24: util-linux-2.9o-mount-nfsv3.patch patch25: util-linux-2.9w-mount-nfsv3try.patch Patch26: util-linux-2.10f-realpath.patch Patch27: util-linux-2.10f-moretc.patch Patch28: util-linux-2.10f-sparcraid.patch Patch29: util-linux-2.10f-varg.patch Patch30: util-linux-2.10f-raw.patch Patch31: util-linux-2.10f-overflow.patch Patch32: util-linux-2.10f.ja.po.patch # patch for Vine Patch100: util-linux-2.9z-japo.patch Patch101: util-linux-2.10f-ipcs.patch Patch102: util-linux-2.10f-fdisk.patch Obsoletes: fdisk tunelp %ifarch sparc alpha ppc 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 Vendor: Project Vine Distribution: Vine Linux %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. %description -l ja Util-linux ¥Ñ¥Ã¥±¡¼¥¸¤Ï Linux ¥·¥¹¥Æ¥à¤¬µ¡Ç½¤¹¤ë¤¿¤á¤ËɬÍפʤµ¤Þ¤¶¤Þ¤Ê Äã¥ì¥Ù¥ë¤Î¥·¥¹¥Æ¥à¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤ò´Þ¤ó¤Ç¤¤¤Þ¤¹¡£fdisk ÀßÄê¥Ä¡¼¥ë¤ä¥í¥° ¥¤¥ó¥×¥í¥°¥é¥à¤â´Þ¤ó¤Ç¤¤¤Þ¤¹¡£ %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 %patch13 -p1 -b .openlog %patch16 -p1 -b .mkswap2 %patch21 -p1 -b .nonroot %patch23 -p1 -b .kbdrate %patch24 -p1 %patch25 -p1 %patch26 -p1 %patch27 -p1 -b .moretc %patch28 -p1 -b .sparcraid %patch29 -p1 -b .varg #%patch30 -p1 -b .raw %patch31 -p1 -b .overflow %patch32 -p1 %patch100 -p1 -b .japo %patch101 -p0 %patch102 -p1 %build unset LINGUAS || : ./configure make "RPM_OPT_FLAGS=$RPM_OPT_FLAGS" %ifarch ppc cd clock gcc $RPM_OPT_FLAGS -Wall -o clock clock-ppc.c cd .. %endif %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/{bin,etc/pam.d,sbin} mkdir -p $RPM_BUILD_ROOT/usr/{bin,info,lib,man/man1,man/man6,man/man8,sbin} mkdir -p $RPM_BUILD_ROOT/usr/share/locale/{cs,de,fr,it,ja,nl,pt_BR}/LC_MESSAGES mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps make install DESTDIR=$RPM_BUILD_ROOT %ifarch ppc install -m 755 clock/clock $RPM_BUILD_ROOT/sbin/clock install -m 644 clock/clock.8 $RPM_BUILD_ROOT/usr/man/man8/clock.8 %endif %ifarch sparc rm -rf $RPM_BUILD_ROOT/usr/bin/sunhostid cat << E-O-F > $RPM_BUILD_ROOT/usr/bin/sunhostid #!/bin/sh # this should be /usr/bin/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/usr/bin/sunhostid %endif gzip -9nf $RPM_BUILD_ROOT/usr/info/ipc.info for i in /bin/login /usr/bin/chfn /usr/bin/chsh /usr/bin/newgrp ; do strip $RPM_BUILD_ROOT/$i done strip $RPM_BUILD_ROOT/sbin/fdisk || : install -m 644 ${RPM_SOURCE_DIR}/util-linux-2.7-login.pamd $RPM_BUILD_ROOT/etc/pam.d/login install -m 644 ${RPM_SOURCE_DIR}/util-linux-2.7-chsh.pamd $RPM_BUILD_ROOT/etc/pam.d/chsh install -m 644 ${RPM_SOURCE_DIR}/util-linux-2.7-chsh.pamd $RPM_BUILD_ROOT/etc/pam.d/chfn install -m 644 ${RPM_SOURCE_DIR}/util-linux-2.9w-kbdrate.pamd $RPM_BUILD_ROOT/etc/pam.d/kbdrate install -m 644 ${RPM_SOURCE_DIR}/util-linux-2.9w-kbdrate.apps $RPM_BUILD_ROOT/etc/security/console.apps/kbdrate (cd $RPM_BUILD_ROOT/usr/bin ; ln -s consolehelper kbdrate) %ifnarch ppc rm -f $RPM_BUILD_ROOT/sbin/clock ln -s hwclock $RPM_BUILD_ROOT/sbin/clock %endif # We do not want dependencies on csh chmod 644 $RPM_BUILD_ROOT/usr/lib/getopt/* %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) /usr/share/locale/*/LC_MESSAGES/* /sbin/clock /sbin/hwclock %ifarch ppc /usr/man/man8/clock.8* %endif /usr/man/man8/hwclock.8* /usr/sbin/tunelp /usr/man/man8/tunelp.8* %config /etc/pam.d/login %config /etc/pam.d/chfn %config /etc/pam.d/chsh %config /etc/pam.d/kbdrate %config /etc/security/console.apps/kbdrate /usr/bin/kbdrate /sbin/fdisk %ifarch i386 i586 i686 alpha armv4l /sbin/cfdisk %endif %ifarch i386 i586 i686 alpha /sbin/fsck.minix /sbin/mkfs.minix %endif /usr/bin/raw /usr/man/man8/raw.8* /sbin/mkfs /sbin/mkswap /usr/bin/fdformat /usr/bin/setfdprm %config /etc/fdprm /usr/man/man8/fdformat.8* /usr/man/man8/mkswap.8* /usr/man/man8/setfdprm.8* /usr/games/banner /usr/man/man6/banner.6* /usr/bin/ddate /usr/man/man1/ddate.1* %ifarch i386 i586 i686 alpha sparc sparc64 ppc %attr(755,root,root) /bin/login %attr(4711,root,root) /usr/bin/chfn %attr(4711,root,root) /usr/bin/chsh %attr(4711,root,root) /usr/bin/newgrp /usr/sbin/vipw /usr/sbin/vigr /usr/man/man1/chfn.1* /usr/man/man1/chsh.1* /usr/man/man1/login.1* /usr/man/man1/newgrp.1* /usr/man/man8/vipw.8* /usr/man/man8/vigr.8* %endif /bin/kill /usr/bin/cal %ifarch sparc /usr/bin/sunhostid %endif /usr/bin/logger /usr/bin/look /usr/bin/mcookie /usr/bin/namei /usr/bin/script /usr/bin/setterm #/usr/bin/tsort /usr/bin/whereis %attr(2755,root,tty) /usr/bin/write /usr/bin/getopt /usr/man/man1/cal.1* #/usr/man/man1/hostid.1* /usr/man/man1/kill.1* /usr/man/man1/logger.1* /usr/man/man1/look.1* /usr/man/man1/mcookie.1* /usr/man/man1/namei.1* /usr/man/man1/script.1* /usr/man/man1/setterm.1* #/usr/man/man1/tsort.1* /usr/man/man1/whereis.1* /usr/man/man1/write.1* /usr/man/man1/getopt.1* /usr/lib/getopt /bin/dmesg /sbin/ctrlaltdel /sbin/kbdrate #/sbin/sln /bin/arch /usr/bin/ipcrm /usr/bin/ipcs /usr/bin/renice /usr/sbin/readprofile /usr/bin/setsid %ifarch i386 i586 i686 alpha armv4l /usr/bin/cytune %endif /usr/man/man1/arch.1* /usr/man/man1/readprofile.1* %ifarch i386 alpha armv4l /usr/man/man8/cytune.8* %endif /usr/man/man8/ctrlaltdel.8* /usr/man/man8/dmesg.8* /usr/man/man8/ipcrm.8* /usr/man/man8/ipcs.8* /usr/man/man8/kbdrate.8* /usr/man/man8/renice.8* /usr/man/man8/setsid.8* %ifarch i386 i586 i686 /usr/sbin/rdev /usr/sbin/ramsize /usr/sbin/rootflags /usr/sbin/swapdev /usr/sbin/vidmode /usr/man/man8/rdev.8* /usr/man/man8/ramsize.8* /usr/man/man8/rootflags.8* /usr/man/man8/swapdev.8* /usr/man/man8/vidmode.8* %endif /usr/info/ipc.info.gz /usr/bin/col /usr/bin/colcrt /usr/bin/colrm /usr/bin/column /usr/bin/hexdump /usr/bin/rename /usr/bin/rev /usr/bin/ul /usr/man/man1/col.1* /usr/man/man1/colcrt.1* /usr/man/man1/colrm.1* /usr/man/man1/column.1* /usr/man/man1/hexdump.1* /usr/man/man1/rename.1* /usr/man/man1/rev.1* /usr/man/man1/ul.1* /bin/more /usr/man/man1/more.1* /usr/lib/more.help %ifarch i386 i586 i686 alpha /usr/man/man8/fsck.minix.8* /usr/man/man8/mkfs.minix.8* /usr/man/man8/mkfs.8* %endif /usr/man/man8/fdisk.8* %ifarch i386 i586 i686 alpha armv4l /usr/man/man8/cfdisk.8* %endif %doc */README.* %ifarch i386 i586 i686 alpha /sbin/sfdisk /usr/man/man8/sfdisk.8* %doc fdisk/sfdisk.examples %endif %changelog * Sun Oct 15 2000 Tomoya TAKA - 2.10f-7vl4 - added hwclock for alpha, again * Fri Oct 13 2000 Jun Nishii - update fdisk to 2.10m * Thu Oct 05 2000 KOBAYAHSI R. Taizo - added clock for ppc - Obsoletes: clock (ppc) * Wed May 17 2000 Yasuyuki Furukawa - sync with RH 6.2 - FIXME! unpatched raw patch for unknown reason (difference of glibc version?). * 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 * Thu Feb 03 2000 MATSUBAYASHI 'Shaolin' Kohji - 2.9z-2vl1 - added %ifarch ppc and %ifnarch ppc lines * 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. * Sat Jan 8 2000 Jun Nishii - use EUC in spec * 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. * Fri Oct 29 1999 Yasuhide OOMORI - Removed newmail.patch because it is included in upstream. - Modified util-linux-2.9z-raw.patch. The source and fixed man page are in upstream, but no modification in Makefile. - Modified japo.patch. All but one modification are included in upstream. - Removed barterly.patch because it is included in upstream. * 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. * Mon Sep 28 1999 Norihito Ohmori - Add Japanese Summary and description. - fix fdisk crash bug. (By Tohohoru Hoshina) * Mon Sep 20 1999 Norihito Ohmori - fix ja.po again * Sun Sep 19 1999 Norihito Ohmori - fix ja.po (have carsh bug) * 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.