diff options
author | agc <agc@pkgsrc.org> | 2002-07-12 21:01:17 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2002-07-12 21:01:17 +0000 |
commit | 4e18b55a7fcc0bb50060403321a5b6703e8b7392 (patch) | |
tree | 2af472ea4057e39a86c58831133c3e9d21b45ee1 /converters/ru-d1489/patches | |
parent | 2c6a4629ba0f080d5916af7044ad6ce4e99dfce0 (diff) | |
download | pkgsrc-4e18b55a7fcc0bb50060403321a5b6703e8b7392.tar.gz |
Initial import of ru-d1489-1.4 into the NetBSD packages collection.
Provided in PR 17585 by Mishka (mishka@terabyte.com.ua)
These are useful tools for Russian users:
todos/fromdos: point-to-point cp866<->koi8-r decoder with CR/LF translation
towin/fromwin: best match cp1251<->koi8-r decoder with CR/LF translation
a2kfcnv: EGA/VGA raw screen fonts converter: cp866 font -> koi8-r font
All programs written according to RFC 1489
Diffstat (limited to 'converters/ru-d1489/patches')
-rw-r--r-- | converters/ru-d1489/patches/patch-aa | 34 | ||||
-rw-r--r-- | converters/ru-d1489/patches/patch-ab | 27 |
2 files changed, 61 insertions, 0 deletions
diff --git a/converters/ru-d1489/patches/patch-aa b/converters/ru-d1489/patches/patch-aa new file mode 100644 index 00000000000..b262a0a7953 --- /dev/null +++ b/converters/ru-d1489/patches/patch-aa @@ -0,0 +1,34 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/07/12 21:01:17 agc Exp $ + +--- todos.c Tue Dec 22 01:50:00 1998 ++++ todos.nb.c Sun Jun 23 17:02:54 2002 +@@ -97,6 +97,7 @@ + main(int ac, char **av) + { + char *name, *tmpn, *srcn, *s, *incode, *outcode; ++ int tmpfd; + FILE *fin, *fout; + struct stat statb; + int got_stat = FALSE; +@@ -251,10 +252,11 @@ + } + + sprintf(tmp_name, "%s%s%s", outdir, *outdir ? "/" : "", tmp_pat); +- if ((tmpn = mktemp(tmp_name)) == NULL) { ++ if ((tmpfd = mkstemp(tmp_name)) < 0) { + perror(tmp_name); + return 1; + } ++ strcpy(tmpn, tmp_name); + + while (ac-- > 1) { + srcn = av[1]; +@@ -267,7 +269,7 @@ + perror(srcn); + goto usage; + } +- if ((fout = fopen(tmpn, WB)) == NULL) { ++ if ((fout = fdopen(tmpfd, WB)) == NULL) { + perror(tmpn); + return 1; + } diff --git a/converters/ru-d1489/patches/patch-ab b/converters/ru-d1489/patches/patch-ab new file mode 100644 index 00000000000..df2ac6a2867 --- /dev/null +++ b/converters/ru-d1489/patches/patch-ab @@ -0,0 +1,27 @@ +$NetBSD: patch-ab,v 1.1.1.1 2002/07/12 21:01:17 agc Exp $ + +--- Makefile.orig Wed Nov 5 01:25:46 1997 ++++ Makefile Fri Jul 12 21:48:50 2002 +@@ -36,14 +36,14 @@ + $(CC) $(CFLAGS) $(LDFLAGS) a2kfcnv.c -o $@ + + install: todos a2kfcnv +- cp todos /usr/local/bin +- -rm /usr/local/bin/fromdos +- -rm /usr/local/bin/fromwin +- -rm /usr/local/bin/towin +- ln /usr/local/bin/todos /usr/local/bin/fromdos +- ln /usr/local/bin/todos /usr/local/bin/fromwin +- ln /usr/local/bin/todos /usr/local/bin/towin +- cp a2kfcnv /usr/local/bin ++ cp todos $(PREFIX)/bin ++ -rm -f $(PREFIX)/bin/fromdos ++ -rm -f $(PREFIX)/bin/fromwin ++ -rm -f $(PREFIX)/bin/towin ++ ln $(PREFIX)/bin/todos $(PREFIX)/bin/fromdos ++ ln $(PREFIX)/bin/todos $(PREFIX)/bin/fromwin ++ ln $(PREFIX)/bin/todos $(PREFIX)/bin/towin ++ cp a2kfcnv $(PREFIX)/bin + + clean: + -rm -f todos a2kfcnv |