summaryrefslogtreecommitdiff
path: root/print
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 /print
parentee412f9e4a34696f2a6e7e79bc2ec48e5487cacd (diff)
downloadpkgsrc-b7043bde483cab3d7422b895c59d6f6be4d0539e.tar.gz
Add cfmakeraw compatability for SunOS.
Diffstat (limited to 'print')
-rw-r--r--print/stylewriter/distinfo4
-rw-r--r--print/stylewriter/patches/patch-aa28
2 files changed, 25 insertions, 7 deletions
diff --git a/print/stylewriter/distinfo b/print/stylewriter/distinfo
index 25015f71d63..0dc94afe30a 100644
--- a/print/stylewriter/distinfo
+++ b/print/stylewriter/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.5 2013/09/10 14:41:18 joerg Exp $
+$NetBSD: distinfo,v 1.6 2014/01/09 15:45:18 jperkin Exp $
SHA1 (stylewriter.tar.gz) = 8efbbe7510341584ac5170b178f8e6c50c0f6f91
RMD160 (stylewriter.tar.gz) = 86484c2e8e357d891533c2d52c8e5f5ff64eb544
Size (stylewriter.tar.gz) = 30136 bytes
-SHA1 (patch-aa) = 753d1eff4a1ca6d4048cc0bc4074f4f4f0f25ceb
+SHA1 (patch-aa) = d8879e10a8f4ca831bbaa6af70c3fe5bf6fd0dba
diff --git a/print/stylewriter/patches/patch-aa b/print/stylewriter/patches/patch-aa
index e8ca5239a3e..2ba0d9758c9 100644
--- a/print/stylewriter/patches/patch-aa
+++ b/print/stylewriter/patches/patch-aa
@@ -1,8 +1,26 @@
-$NetBSD: patch-aa,v 1.2 2013/09/10 14:41:18 joerg Exp $
+$NetBSD: patch-aa,v 1.3 2014/01/09 15:45:18 jperkin Exp $
+
+cfmakeraw compatability for SunOS.
--- lpstyl.c.orig 1999-03-31 09:05:21.000000000 +0000
+++ lpstyl.c
-@@ -1015,10 +1015,13 @@ size_t readFileScanline(char *bufK, char
+@@ -443,7 +443,15 @@ int main(int argc, char **argv)
+ struct termios t;
+
+ tcgetattr(1, &t);
++#ifdef __sun
++ t.c_iflag &= ~(IMAXBEL|IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
++ t.c_oflag &= ~OPOST;
++ t.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
++ t.c_cflag &= ~(CSIZE|PARENB);
++ t.c_cflag |= CS8;
++#else
+ cfmakeraw(&t);
++#endif
+ cfsetispeed(&t, B57600);
+ cfsetospeed(&t, B57600);
+ if(tcsetattr(1, TCSAFLUSH, &t) == -1)
+@@ -1015,10 +1023,13 @@ size_t readFileScanline(char *bufK, char
if((i & 0x03) == 0)
{
/* write the output */
@@ -20,7 +38,7 @@ $NetBSD: patch-aa,v 1.2 2013/09/10 14:41:18 joerg Exp $
cmyk = 0;
}
}
-@@ -1031,10 +1034,10 @@ size_t readFileScanline(char *bufK, char
+@@ -1031,10 +1042,10 @@ size_t readFileScanline(char *bufK, char
}
/* write the final part */
@@ -35,7 +53,7 @@ $NetBSD: patch-aa,v 1.2 2013/09/10 14:41:18 joerg Exp $
}
else
{
-@@ -1327,7 +1330,7 @@ void sendEncodedData(unsigned char *buff
+@@ -1327,7 +1338,7 @@ void sendEncodedData(unsigned char *buff
if(verbose)
{
@@ -44,7 +62,7 @@ $NetBSD: patch-aa,v 1.2 2013/09/10 14:41:18 joerg Exp $
ProcName, size);
}
begin[0] = 'G';
-@@ -1827,7 +1830,8 @@ void waitStatus(int stat, int canHandleP
+@@ -1827,7 +1838,8 @@ void waitStatus(int stat, int canHandleP
static int inputBack = -1;
size_t inputRead(void *buffer, size_t size)
{