aboutsummaryrefslogtreecommitdiff
path: root/comms/libirman
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2006-08-13 10:10:50 +0000
committerRong-En Fan <rafan@FreeBSD.org>2006-08-13 10:10:50 +0000
commit0c1485c98fd98275bb64c08567a4f5ff1257332f (patch)
tree1dea6fcae2a939abe7eddb65374910b0e193ad85 /comms/libirman
parent3bf8c7bb8a8195ff0b5c90faf3bf9ca13267fb84 (diff)
downloadports-0c1485c98fd98275bb64c08567a4f5ff1257332f.tar.gz
ports-0c1485c98fd98275bb64c08567a4f5ff1257332f.zip
Notes
Diffstat (limited to 'comms/libirman')
-rw-r--r--comms/libirman/Makefile3
-rw-r--r--comms/libirman/distinfo6
-rw-r--r--comms/libirman/files/patch-irio.c43
3 files changed, 47 insertions, 5 deletions
diff --git a/comms/libirman/Makefile b/comms/libirman/Makefile
index c8222cef8726..f6c064cef992 100644
--- a/comms/libirman/Makefile
+++ b/comms/libirman/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= libirman
-PORTVERSION= 0.4.2
-PORTREVISION= 1
+PORTVERSION= 0.4.4
CATEGORIES= comms
MASTER_SITES= http://lirc.sourceforge.net/software/snapshots/
diff --git a/comms/libirman/distinfo b/comms/libirman/distinfo
index 563f0e0ad820..0c74d76e6cea 100644
--- a/comms/libirman/distinfo
+++ b/comms/libirman/distinfo
@@ -1,3 +1,3 @@
-MD5 (libirman-0.4.2.tar.gz) = b99017d049685cb84a95098190a89de8
-SHA256 (libirman-0.4.2.tar.gz) = 43b12f243c6978ffa85dc4a606335b1e46b5df870e61e3381387edae4f20beb8
-SIZE (libirman-0.4.2.tar.gz) = 52665
+MD5 (libirman-0.4.4.tar.gz) = b3898fb7f0bc6995cee8950a1bd73368
+SHA256 (libirman-0.4.4.tar.gz) = b29d0858450c56fca97c03cb1032e3b469166d431bfa7327fa3183d31a9f64b2
+SIZE (libirman-0.4.4.tar.gz) = 52782
diff --git a/comms/libirman/files/patch-irio.c b/comms/libirman/files/patch-irio.c
new file mode 100644
index 000000000000..a1f47f3ecb1a
--- /dev/null
+++ b/comms/libirman/files/patch-irio.c
@@ -0,0 +1,43 @@
+--- irio.c.orig Mon Mar 29 00:42:41 1999
++++ irio.c Thu Aug 10 22:44:50 2006
+@@ -66,17 +66,11 @@
+ *
+ */
+
+-/*
+- * Ignore the things in SUNATTEMPT. They're not even needed for a Sun.
+- */
+-
+-
+ int ir_open_port(char *filename)
+ {
+ int parnum = 0;
+-#ifdef SUNATTEMPT
++ int clearhand = 0;
+ int hand = TIOCM_DTR | TIOCM_RTS;
+-#endif
+ int baudrate=B9600;
+
+ /* get a file descriptor */
+@@ -188,13 +182,19 @@
+ return -1;
+ }
+
+-#ifdef SUNATTEMPT
++ /* drop the control lines to cut power to the unit */
++ if (ioctl(portfd, TIOCMSET, &clearhand) < 0) {
++ printf("ioctl error\n");
++ return -1;
++ }
++
++ sleep(2);
++
+ /* raise the control lines to power the unit*/
+ if (ioctl(portfd, TIOCMSET, &hand) < 0) {
+ printf("ioctl error\n");
+ return -1;
+ }
+-#endif
+
+ /* wait a little while for everything to settle through */
+ ir_usleep(IR_POWER_ON_LATENCY);