summaryrefslogtreecommitdiff
path: root/converters/ru-d1489/patches
diff options
context:
space:
mode:
authoragc <agc>2002-07-12 21:01:17 +0000
committeragc <agc>2002-07-12 21:01:17 +0000
commite7775cb102e4d67fcb568812d4cb8d74f167da51 (patch)
tree2af472ea4057e39a86c58831133c3e9d21b45ee1 /converters/ru-d1489/patches
parentaa2cc24d6ab11ad60cfad9f310b3116d2737a7be (diff)
downloadpkgsrc-e7775cb102e4d67fcb568812d4cb8d74f167da51.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-aa34
-rw-r--r--converters/ru-d1489/patches/patch-ab27
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