auto-import changelog data from kbd-1.06-12.src.rpm
Mon Feb 25 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.06-12 - Rebuild in new environment Wed Jan 30 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.06-11 - Oops, actually list the pam files in %files Tue Jan 29 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.06-10 - Add and consolehelper'ify kbdrate Tue Jan 29 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.06-9 - Re-remove kbdrate Thu Jan 24 2002 Bernhard Rosenkraenzer <bero@redhat.com> 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 <msw@redhat.com> - added a patch (Patch4) that allows --tty= in setfont - modified patch not to break translations Tue Jul 03 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.06-4 - Add cyrillic patches from leon@geon.donetsk.ua (#47144) Tue Jun 26 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.06-3 - Fix "Alt+AltGr=Compose" in qwertz-keyboards Mon Jun 25 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.06-2 - Fix "make install" and init script (#45327) Sat Jun 16 2001 Than Ngo <than@redhat.com> - 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 03 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.05-3 - Fix up resizecons Wed May 02 2001 Bernhard Rosenkraenzer <bero@redhat.com> 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 <ewt@redhat.com> - initial packaging for kbdrate
This commit is contained in:
parent
16c5410d54
commit
2d6cbbc57d
@ -0,0 +1,2 @@
|
||||
kbd-1.06.tar.bz2
|
||||
kbd-update-cyr.tar.bz2
|
167
kbd.spec
Normal file
167
kbd.spec
Normal file
@ -0,0 +1,167 @@
|
||||
Summary: Tools for configuring the console (keyboard, virtual terminals, etc.)
|
||||
Name: kbd
|
||||
Version: 1.06
|
||||
Release: 12
|
||||
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
|
||||
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
|
||||
|
||||
%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}
|
||||
mv $RPM_BUILD_ROOT%{_bindir}/setfont $RPM_BUILD_ROOT/bin
|
||||
|
||||
# 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//"`
|
||||
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
|
||||
* Mon Feb 25 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.06-12
|
||||
- Rebuild in new environment
|
||||
|
||||
* Wed Jan 30 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.06-11
|
||||
- Oops, actually list the pam files in %files
|
||||
|
||||
* Tue Jan 29 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.06-10
|
||||
- Add and consolehelper'ify kbdrate
|
||||
|
||||
* Tue Jan 29 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.06-9
|
||||
- Re-remove kbdrate
|
||||
|
||||
* Thu Jan 24 2002 Bernhard Rosenkraenzer <bero@redhat.com> 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 <msw@redhat.com>
|
||||
- added a patch (Patch4) that allows --tty= in setfont
|
||||
- modified patch not to break translations
|
||||
|
||||
* Tue Jul 3 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.06-4
|
||||
- Add cyrillic patches from leon@geon.donetsk.ua (#47144)
|
||||
|
||||
* Tue Jun 26 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.06-3
|
||||
- Fix "Alt+AltGr=Compose" in qwertz-keyboards
|
||||
|
||||
* Mon Jun 25 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.06-2
|
||||
- Fix "make install" and init script (#45327)
|
||||
|
||||
* Sat Jun 16 2001 Than Ngo <than@redhat.com>
|
||||
- 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 <bero@redhat.com> 1.05-3
|
||||
- Fix up resizecons
|
||||
|
||||
* Wed May 2 2001 Bernhard Rosenkraenzer <bero@redhat.com> 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 <ewt@redhat.com>
|
||||
- initial packaging for kbdrate
|
3
kbdrate.apps
Normal file
3
kbdrate.apps
Normal file
@ -0,0 +1,3 @@
|
||||
USER=<user>
|
||||
PROGRAM=/sbin/kbdrate
|
||||
SESSION=false
|
4
kbdrate.pam
Normal file
4
kbdrate.pam
Normal file
@ -0,0 +1,4 @@
|
||||
#%PAM-1.0
|
||||
auth sufficient /lib/security/pam_rootok.so
|
||||
auth required /lib/security/pam_console.so
|
||||
account required /lib/security/pam_permit.so
|
Loading…
Reference in New Issue
Block a user