diff options
author | rafan <rafan@FreeBSD.org> | 2006-08-13 18:10:50 +0800 |
---|---|---|
committer | rafan <rafan@FreeBSD.org> | 2006-08-13 18:10:50 +0800 |
commit | 13b12f91c4b4d4a387c84bbc48bce9904be8fd57 (patch) | |
tree | 101e0dfe92a50325020af65a95edb87f07eade73 /comms | |
parent | 6c7bcf695bd290853046a1e345c9944aa5ecfef2 (diff) | |
download | freebsd-ports-gnome-13b12f91c4b4d4a387c84bbc48bce9904be8fd57.tar.gz freebsd-ports-gnome-13b12f91c4b4d4a387c84bbc48bce9904be8fd57.tar.zst freebsd-ports-gnome-13b12f91c4b4d4a387c84bbc48bce9904be8fd57.zip |
- Update to 0.4.4
- Fix the issue with reopening the device (patch-irio.c)
PR: ports/101790
Submitted by: Mark Hobden <markhobden at gmail.com>
Approved by: Douglas K. Rand <rand at meridian-enviro.com> (maintainer)
Diffstat (limited to 'comms')
-rw-r--r-- | comms/libirman/Makefile | 3 | ||||
-rw-r--r-- | comms/libirman/distinfo | 6 | ||||
-rw-r--r-- | comms/libirman/files/patch-irio.c | 43 |
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); |