summaryrefslogtreecommitdiff
path: root/archivers/torrentzip
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2014-01-09 15:40:55 +0000
committerjperkin <jperkin@pkgsrc.org>2014-01-09 15:40:55 +0000
commitb7043bde483cab3d7422b895c59d6f6be4d0539e (patch)
tree8d644ccacfa343efa43cb3e4718827c5cde31b52 /archivers/torrentzip
parentee412f9e4a34696f2a6e7e79bc2ec48e5487cacd (diff)
downloadpkgsrc-b7043bde483cab3d7422b895c59d6f6be4d0539e.tar.gz
Add cfmakeraw compatability for SunOS.
Diffstat (limited to 'archivers/torrentzip')
-rw-r--r--archivers/torrentzip/distinfo3
-rw-r--r--archivers/torrentzip/patches/patch-src_platform.c22
2 files changed, 24 insertions, 1 deletions
diff --git a/archivers/torrentzip/distinfo b/archivers/torrentzip/distinfo
index 538457e3e64..7d89cb96917 100644
--- a/archivers/torrentzip/distinfo
+++ b/archivers/torrentzip/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.2 2013/01/26 23:00:32 wiz Exp $
+$NetBSD: distinfo,v 1.3 2014/01/09 15:40:55 jperkin Exp $
SHA1 (trrntzip_v02_src.tar.gz) = ad2487d7e9edc6608358104df8367da3d535fd2b
RMD160 (trrntzip_v02_src.tar.gz) = 1a6718babc3cfb42e99fadbb53360ecb4f15b5b9
Size (trrntzip_v02_src.tar.gz) = 46971 bytes
SHA1 (patch-aa) = 639626aab0ab5f3a359cde057d83f0291f1476cb
SHA1 (patch-configure.ac) = f6657e42c74ad4722c852c733c819ebb0c58e8ef
+SHA1 (patch-src_platform.c) = ef7d4dae6b40dfea623a882141316ddf80e4c6eb
diff --git a/archivers/torrentzip/patches/patch-src_platform.c b/archivers/torrentzip/patches/patch-src_platform.c
new file mode 100644
index 00000000000..3fd417c6d19
--- /dev/null
+++ b/archivers/torrentzip/patches/patch-src_platform.c
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_platform.c,v 1.1 2014/01/09 15:40:55 jperkin Exp $
+
+cfmakeraw compatability for SunOS.
+
+--- src/platform.c.orig 2005-04-17 08:36:15.000000000 +0000
++++ src/platform.c
+@@ -45,7 +45,15 @@ getch (void)
+
+ tcgetattr (1, &t);
+ t2 = t;
++#ifdef __sun
++ t2.c_iflag &= ~(IMAXBEL|IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
++ t2.c_oflag &= ~OPOST;
++ t2.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
++ t2.c_cflag &= ~(CSIZE|PARENB);
++ t2.c_cflag |= CS8;
++#else
+ cfmakeraw (&t2);
++#endif
+ tcsetattr (1, TCSANOW, &t2);
+ fread (&c, 1, 1, stdin);
+ tcsetattr (1, TCSANOW, &t);