summaryrefslogtreecommitdiff
path: root/converters/ru-d1489
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2002-07-12 21:01:17 +0000
committeragc <agc@pkgsrc.org>2002-07-12 21:01:17 +0000
commit4e18b55a7fcc0bb50060403321a5b6703e8b7392 (patch)
tree2af472ea4057e39a86c58831133c3e9d21b45ee1 /converters/ru-d1489
parent2c6a4629ba0f080d5916af7044ad6ce4e99dfce0 (diff)
downloadpkgsrc-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')
-rw-r--r--converters/ru-d1489/DESCR7
-rw-r--r--converters/ru-d1489/Makefile13
-rw-r--r--converters/ru-d1489/PLIST6
-rw-r--r--converters/ru-d1489/distinfo6
-rw-r--r--converters/ru-d1489/patches/patch-aa34
-rw-r--r--converters/ru-d1489/patches/patch-ab27
6 files changed, 93 insertions, 0 deletions
diff --git a/converters/ru-d1489/DESCR b/converters/ru-d1489/DESCR
new file mode 100644
index 00000000000..54f8edf20fa
--- /dev/null
+++ b/converters/ru-d1489/DESCR
@@ -0,0 +1,7 @@
+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
diff --git a/converters/ru-d1489/Makefile b/converters/ru-d1489/Makefile
new file mode 100644
index 00000000000..e413cf6cf17
--- /dev/null
+++ b/converters/ru-d1489/Makefile
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/07/12 21:01:17 agc Exp $
+
+DISTNAME= d1489-1.4
+PKGNAME= ru-d1489-1.4
+CATEGORIES= converters
+MASTER_SITES= ftp://ftp.kiarchive.ru/pub/unix/convert/char/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= mishka@terabyte.com.ua
+#HOMEPAGE=
+COMMENT= CP866<->KOI8-R, CP1251<->KOI8-R and font converters acc. to RFC1489
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/converters/ru-d1489/PLIST b/converters/ru-d1489/PLIST
new file mode 100644
index 00000000000..4b12f1a513c
--- /dev/null
+++ b/converters/ru-d1489/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/07/12 21:01:17 agc Exp $
+bin/a2kfcnv
+bin/fromdos
+bin/fromwin
+bin/todos
+bin/towin
diff --git a/converters/ru-d1489/distinfo b/converters/ru-d1489/distinfo
new file mode 100644
index 00000000000..4e86acaa061
--- /dev/null
+++ b/converters/ru-d1489/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/07/12 21:01:17 agc Exp $
+
+SHA1 (d1489-1.4.tgz) = 648dc8f7af860237d09d55784bb869bd80584910
+Size (d1489-1.4.tgz) = 9588 bytes
+SHA1 (patch-aa) = 554cd0e768142e45e702828cd02f4cd01cb1b1e6
+SHA1 (patch-ab) = db98895b1aa87b6c3844df57a6c48951011fecd8
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