Summary: Tools for configuring the console (keyboard, virtual terminals, etc.) Name: kbd Version: 1.06 Release: 21 License: GPL Group: System Environment/Base Source0: ftp://ftp.kernel.org/pub/linux/utils/kbd/kbd-%{version}.tar.bz2 Source1: kbdrate.apps Source2: kbdrate.pam Source3: keytable.init Source4: kbd-update-cyr.tar.bz2 Requires: pam >= 0.66-4, /etc/pam.d/system-auth, usermode BuildRoot: %{_tmppath}/%{name}-root Patch: kbd-1.05-sparc.patch Patch1: kbd-1.06-compose.patch Patch2: kbd-1.0.6-cflags.patch Patch3: kbd-1.06-nonroot.patch Patch4: kbd-1.06-othervt.patch Patch5: kbd-speakup.patch Obsoletes: console-tools Provides: console-tools Prereq: sed mktemp initscripts >= 5.86-1 %description The %{name} package contains tools for managing a Linux system's console's behavior, including the keyboard, the screen fonts, the virtual terminals and font files. %prep %setup -q -a 4 %patch -p1 -b .p0 %patch1 -p1 -b .p1 %patch2 -p1 -b .p2 %patch3 -p1 -b .p3 %patch4 -p1 -b .p4 %patch5 -p0 %build export OLD_PO_FILE_INPUT=yes # We don't want the backups to show up on an actually installed system # (But we want them after an rpm -bp kbd.spec, so don't remove -b) find . -name "*.p[0-9]" |xargs rm -f unset LINGUAS || : # we don't use % {configure} because the ./configure included here does not # understand most of the options CFLAGS="$RPM_OPT_FLAGS" ./configure --datadir=/lib/kbd \ --mandir=%{_mandir} cd src make %install rm -rf ${RPM_BUILD_ROOT} make install DESTDIR=${RPM_BUILD_ROOT} for binary in setfont dumpkeys kbd_mode unicode_start unicode_stop ; do mv $RPM_BUILD_ROOT%{_bindir}/$binary $RPM_BUILD_ROOT/bin done # Add init scripts install -d -m 755 $RPM_BUILD_ROOT/etc/rc.d/init.d install -m 755 %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/keytable mkdir -p $RPM_BUILD_ROOT%{_sbindir} $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps $RPM_BUILD_ROOT%{_sysconfdir}/pam.d mv $RPM_BUILD_ROOT%{_bindir}/kbdrate $RPM_BUILD_ROOT%{_sbindir} ln -s consolehelper $RPM_BUILD_ROOT%{_bindir}/kbdrate install -c -m644 %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps/kbdrate install -c -m644 %SOURCE2 $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/kbdrate %find_lang %{name} %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %post /sbin/ldconfig /sbin/chkconfig --add keytable %preun if [ $1 = 0 ]; then /sbin/chkconfig --del keytable fi %postun -p /sbin/ldconfig %triggerpostun -- kbd < 1.05-2 /sbin/chkconfig --add keytable %triggerpostun -- console-tools /sbin/chkconfig --add keytable # Convert /etc/sysconfig/i18n to a more usable format if [ -e /etc/sysconfig/i18n ]; then TMP=`mktemp /tmp/i18nXXXXXX` source /etc/sysconfig/i18n SYSFONT_NEW=`echo $SYSFONT |sed -e "s/sun//;s/lat0-/lat9-/"` CHARSET=`echo $SYSFONTACM |sed -e "s/iso0/8859-/;s/iso/8859-/"` [ "$CHARSET" = "8859-1" -a "`echo $SYSFONT_NEW | sed -e 's/-.*//'`" = "lat0" ] && CHARSET="8859-15" cat /etc/sysconfig/i18n |sed -e "s/^SYSFONT=.*/# &/g;s/^SYSFONTACM/# SYSFONTACM/g" >$TMP [ -n "$SYSFONT_NEW" ] && echo "SYSFONT=\"$SYSFONT_NEW\"" >>$TMP [ -n "$CHARSET" ] && echo "CHARSET=\"$CHARSET\"" >>$TMP mv -f $TMP /etc/sysconfig/i18n chmod 0644 /etc/sysconfig/i18n rm -f $TMP /sbin/setsysfont 2>/dev/null || : fi %files -f %{name}.lang %defattr(-,root,root) /bin/* %{_bindir}/* %{_sbindir}/* %{_mandir}/*/* /lib/kbd %config /etc/rc.d/init.d/keytable %config %{_sysconfdir}/security/console.apps/* %config %{_sysconfdir}/pam.d/* %changelog * Tue Aug 13 2002 Bill Nottingham 1.06-21 - remove Evil Hack in favor of slightly-less-evil-hack in initscripts * Tue Jul 9 2002 Bill Nottingham 1.06-20 - fix speakup keymap names * Tue Jul 09 2002 Phil Knirsch 1.06-19 - Evil hack to make setfont work correctly on all consoles (#68018) * Thu Jun 27 2002 Bill Nottingham 1.06-18 - move unicode_stop to /bin too - fix path to loadkeys in keytable.init - add in speakup keymaps * Fri Jun 21 2002 Tim Powers - automated rebuild * Tue Jun 11 2002 Nalin Dahyabhai 1.06-16 - fix incorrect path in console.apps configuration file * Thu May 30 2002 Bill Nottingham 1.06-14 - move some more stuff to /bin (unicode_start and dependencies) * Thu May 23 2002 Tim Powers - automated rebuild * Mon Feb 25 2002 Bernhard Rosenkraenzer 1.06-12 - Rebuild in new environment * Wed Jan 30 2002 Bernhard Rosenkraenzer 1.06-11 - Oops, actually list the pam files in %files * Tue Jan 29 2002 Bernhard Rosenkraenzer 1.06-10 - Add and consolehelper'ify kbdrate * Tue Jan 29 2002 Bernhard Rosenkraenzer 1.06-9 - Re-remove kbdrate * Thu Jan 24 2002 Bernhard Rosenkraenzer 1.06-7 - Fix build in current environment - Get rid of kbdrate, it's in util-linux these days * Wed Jul 18 2001 Matt Wilson - added a patch (Patch4) that allows --tty= in setfont - modified patch not to break translations * Tue Jul 3 2001 Bernhard Rosenkraenzer 1.06-4 - Add cyrillic patches from leon@geon.donetsk.ua (#47144) * Tue Jun 26 2001 Bernhard Rosenkraenzer 1.06-3 - Fix "Alt+AltGr=Compose" in qwertz-keyboards * Mon Jun 25 2001 Bernhard Rosenkraenzer 1.06-2 - Fix "make install" and init script (#45327) * Sat Jun 16 2001 Than Ngo - update to 1.0.6 - use %%{_tmppath} - use find_lang - support new gettext - remove some patch files, which are included in 1.0.6 - fix to use RPM_OPT_FLAGS * Thu May 3 2001 Bernhard Rosenkraenzer 1.05-3 - Fix up resizecons * Wed May 2 2001 Bernhard Rosenkraenzer 1.05-2 - Build everything, obsoletes console-tools - s/Copyright:/License:/ - License is GPL, not just distributable - Add our compose mappings from old console-tools - Add triggerpostun -- console-tools magic to get sane fonts and mappings * Tue Apr 17 2001 Erik Troan - initial packaging for kbdrate