initramfs-tools: require and update for latest kbd pkg.

This commit is contained in:
Juan RP 2012-03-07 00:32:46 +01:00
parent 4919acb56d
commit d63975940b
2 changed files with 8 additions and 7 deletions

View file

@ -20,12 +20,13 @@ if [ "$KEYMAP" != "y" ] && [ "$KEYMAP" != "Y" ]; then
exit 0
fi
[ ! -x ${ROOTDIR}/sbin/loadkeys -a ! -x ${ROOTDIR}/sbin/dumpkeys ] && exit 0
[ ! -x ${ROOTDIR}/usr/sbin/loadkeys -a ! -x ${ROOTDIR}/usr/sbin/dumpkeys ] && exit 0
. ${ROOTDIR}/usr/share/initramfs-tools/hook-functions
${ROOTDIR}/sbin/dumpkeys > ${DESTDIR}/kmap-tmp
${ROOTDIR}/sbin/loadkeys -u -b ${DESTDIR}/kmap-tmp > ${DESTDIR}/etc/bkeymap
${ROOTDIR}/usr/sbin/dumpkeys > ${DESTDIR}/kmap-tmp
${ROOTDIR}/usr/sbin/loadkeys -u -b ${DESTDIR}/kmap-tmp \
> ${DESTDIR}/etc/bkeymap
rm -f ${DESTDIR}/kmap-tmp
exit 0

View file

@ -1,6 +1,6 @@
# Template file for 'initramfs-tools'
pkgname=initramfs-tools
_localver=116 # This is the XBPS version
_localver=117 # This is the XBPS version
_distver=0.99 # This should match debian version
version=${_distver}.${_localver}
short_desc="Tools for generating an initramfs"
@ -51,10 +51,10 @@ Add_dependency full xz
Add_dependency full udev
Add_dependency full busybox ">=1.19.2" # loadkmap
Add_dependency full klibc-resume
Add_dependency run module-init-tools ">=3.17"
Add_dependency full kbd ">=1.15.3_5" # switch to /usr.
Add_dependency full kmod
do_install()
{
do_install() {
# /etc config files
vinstall $FILESDIR/conf/initramfs.conf 644 etc/$pkgname
vinstall $FILESDIR/conf/update-initramfs.conf 644 etc/$pkgname