summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1996-11-09 16:47:08 +0000
committerjoerg <joerg@FreeBSD.org>1996-11-09 16:47:08 +0000
commit88d8c0377cc50df0ced7209f9f342e7c3af67066 (patch)
tree165a15c614d5bc396edc74dfd09ab06aea48e074 /usr.sbin/sade/Makefile
parentce411f960dcde291410b04a762525490f419123b (diff)
downloadFreeBSD-src-88d8c0377cc50df0ced7209f9f342e7c3af67066.zip
FreeBSD-src-88d8c0377cc50df0ced7209f9f342e7c3af67066.tar.gz
Sysinstall now offers the installation of a keymap early in the game!
Not all mappings are supported, most languages come only with one encoding since this should be sufficient to get up & running in using sysinstall, and we are already pretty tight on space. (My previous commit has already bumped the boot MFS size by another 50 KB for this.) This feature requires the `kbdcontrol -L' i've just committed. Plain text keymaps and the entire scanner are overkill for sysinstall. Also updated the list of available keymaps while i was at it. Reviewed by: jkh
Diffstat (limited to 'usr.sbin/sade/Makefile')
-rw-r--r--usr.sbin/sade/Makefile27
1 files changed, 26 insertions, 1 deletions
diff --git a/usr.sbin/sade/Makefile b/usr.sbin/sade/Makefile
index a056620..de1227e 100644
--- a/usr.sbin/sade/Makefile
+++ b/usr.sbin/sade/Makefile
@@ -7,7 +7,7 @@ CLEANFILES+= makedevs.c rtermcap dumpnlist
SRCS= anonFTP.c apache.c attr.c cdrom.c command.c config.c devices.c \
disks.c dispatch.c dist.c dmenu.c doc.c dos.c floppy.c ftp.c \
ftp_strat.c globals.c index.c install.c installUpgrade.c \
- label.c lndir.c main.c makedevs.c media.c menus.c misc.c \
+ keymap.c label.c lndir.c main.c makedevs.c media.c menus.c misc.c \
msg.c network.c nfs.c options.c package.c samba.c system.c \
tape.c tcpip.c termcap.c ufs.c variable.c wizard.c \
uc_eisa.c uc_isa.c uc_kmem.c uc_list.c uc_main.c uc_pci.c \
@@ -51,7 +51,32 @@ makedevs.c: Makefile rtermcap
rtermcap: ${.CURDIR}/rtermcap.c
${CC} -o rtermcap ${.CURDIR}/rtermcap.c -ltermcap
+KEYMAPS= be.iso br275.iso danish.iso fr.iso german.iso it.iso jp.106 \
+ norwegian.iso ru.koi8-r spanish.iso swedish.iso \
+ swissgerman.iso uk.iso us.dvorak us.iso
+
+CLEANFILES+= rtermcap rtermcap.tmp makedevs.c
+
+keymap.o: keymap.c keymap.h
+keymap.h: Makefile
+ rm -f keymap.tmp
+ for map in ${KEYMAPS} ; do \
+ kbdcontrol -L $$map >> keymap.tmp ; \
+ done
+ echo "static struct keymapInfo keymapInfos[] = {" >> keymap.tmp
+ for map in ${KEYMAPS} ; do \
+ echo -n ' { "'$$map'", ' >> keymap.tmp ; \
+ echo "&keymap_$$map }," | tr '[-.]' '_' >> keymap.tmp ; \
+ done
+ ( echo " { 0 }"; echo "};" ; echo "" ) >> keymap.tmp
+ mv keymap.tmp keymap.h
+
+CLEANFILES+= keymap.tmp keymap.h
+
+
testftp: ftp.c
cc -o testftp -I../libdisk -DSTANDALONE_FTP ftp.c
+CLEANFILES+= testftp
+
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud