Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jan 2003 01:42:25 -0500 (EST)
From:      Mike Heffner <mheffner@acm.vt.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/46774: New port: comms/lirc: Linux Infared Remote Control
Message-ID:  <200301050642.h056gPS7024074@cowpie.acm.vt.edu>

next in thread | raw e-mail | index | archive | help

>Number:         46774
>Category:       ports
>Synopsis:       New port: comms/lirc: Linux Infared Remote Control
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 04 22:50:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Mike Heffner <mikeh@FreeBSD.org>
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:

	FreeBSD 4.7-STABLE i386
	
>Description:

	This is a port of the LIRC, Linux Infrared Remote Control,
	package (www.lirc.org). This port installs the daemons and
	tools for interacting with device drivers that support the
	LIRC device interface. The port does not install any FreeBSD
	infrared device drivers yet; the user must obtain these from
	third parties or port the existing Linux drivers.

	
>How-To-Repeat:
	
	N/A
	
>Fix:

	

--- lirc.port.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	/usr/ports/comms/lirc
#	/usr/ports/comms/lirc/Makefile
#	/usr/ports/comms/lirc/distinfo
#	/usr/ports/comms/lirc/files
#	/usr/ports/comms/lirc/files/patch-aa
#	/usr/ports/comms/lirc/files/patch-ab
#	/usr/ports/comms/lirc/files/patch-ac
#	/usr/ports/comms/lirc/files/patch-ad
#	/usr/ports/comms/lirc/pkg-comment
#	/usr/ports/comms/lirc/pkg-message
#	/usr/ports/comms/lirc/pkg-plist
#	/usr/ports/comms/lirc/pkg-descr
#
echo c - /usr/ports/comms/lirc
mkdir -p /usr/ports/comms/lirc > /dev/null 2>&1
echo x - /usr/ports/comms/lirc/Makefile
sed 's/^X//' >/usr/ports/comms/lirc/Makefile << 'END-of-/usr/ports/comms/lirc/Makefile'
X# New ports collection makefile for:	lirc
X# Date created:		4 January 2003
X# Whom:			Mike Heffner <mikeh@FreeBSD.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	lirc
XPORTVERSION=	0.6.6
XCATEGORIES=	comms
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	lirc
X
XMAINTAINER=	mikeh@FreeBSD.org
X
XLIB_DEPENDS=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
X
XUSE_GMAKE=	yes
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS+=--with-driver=any --disable-manage-devices
X
XMAN1=		irexec.1 ircat.1 irpty.1 irrecord.1 irw.1 irxevent.1 \
X		mode2.1 smode2.1 xmode2.1 rc.1
XMAN8=		lircd.8 lircmd.8
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-/usr/ports/comms/lirc/Makefile
echo x - /usr/ports/comms/lirc/distinfo
sed 's/^X//' >/usr/ports/comms/lirc/distinfo << 'END-of-/usr/ports/comms/lirc/distinfo'
XMD5 (lirc-0.6.6.tar.gz) = 03e200d518c8d07eff94596dbd573350
END-of-/usr/ports/comms/lirc/distinfo
echo c - /usr/ports/comms/lirc/files
mkdir -p /usr/ports/comms/lirc/files > /dev/null 2>&1
echo x - /usr/ports/comms/lirc/files/patch-aa
sed 's/^X//' >/usr/ports/comms/lirc/files/patch-aa << 'END-of-/usr/ports/comms/lirc/files/patch-aa'
X--- drivers/lirc.h.orig	Sat Jan  4 19:45:07 2003
X+++ drivers/lirc.h	Sat Jan  4 19:44:24 2003
X@@ -3,9 +3,6 @@
X #ifndef _LINUX_LIRC_H
X #define _LINUX_LIRC_H
X 
X-#include <asm/types.h>
X-#include <linux/ioctl.h>
X-
X #define PULSE_BIT  0x01000000
X #define PULSE_MASK 0x00FFFFFF
X 
X@@ -64,32 +61,32 @@
X  * IOCTL commands for lirc driver
X  */
X 
X-#define LIRC_GET_FEATURES              _IOR('i', 0x00000000, __u32)
X+#define LIRC_GET_FEATURES              _IOR('i', 0x00000000, u_int32_t)
X 
X-#define LIRC_GET_SEND_MODE             _IOR('i', 0x00000001, __u32)
X-#define LIRC_GET_REC_MODE              _IOR('i', 0x00000002, __u32)
X-#define LIRC_GET_SEND_CARRIER          _IOR('i', 0x00000003, __u32)
X-#define LIRC_GET_REC_CARRIER           _IOR('i', 0x00000004, __u32)
X-#define LIRC_GET_SEND_DUTY_CYCLE       _IOR('i', 0x00000005, __u32)
X-#define LIRC_GET_REC_DUTY_CYCLE        _IOR('i', 0x00000006, __u32)
X+#define LIRC_GET_SEND_MODE             _IOR('i', 0x00000001, u_int32_t)
X+#define LIRC_GET_REC_MODE              _IOR('i', 0x00000002, u_int32_t)
X+#define LIRC_GET_SEND_CARRIER          _IOR('i', 0x00000003, u_int32_t)
X+#define LIRC_GET_REC_CARRIER           _IOR('i', 0x00000004, u_int32_t)
X+#define LIRC_GET_SEND_DUTY_CYCLE       _IOR('i', 0x00000005, u_int32_t)
X+#define LIRC_GET_REC_DUTY_CYCLE        _IOR('i', 0x00000006, u_int32_t)
X 
X /* code length in bits, currently only for LIRC_MODE_LIRCCODE */
X-#define LIRC_GET_LENGTH                _IOR('i', 0x0000000f, __u32)
X+#define LIRC_GET_LENGTH                _IOR('i', 0x0000000f, u_int32_t)
X 
X-#define LIRC_SET_SEND_MODE             _IOW('i', 0x00000011, __u32)
X-#define LIRC_SET_REC_MODE              _IOW('i', 0x00000012, __u32)
X+#define LIRC_SET_SEND_MODE             _IOW('i', 0x00000011, u_int32_t)
X+#define LIRC_SET_REC_MODE              _IOW('i', 0x00000012, u_int32_t)
X /* Note: these can reset the according pulse_width */
X-#define LIRC_SET_SEND_CARRIER          _IOW('i', 0x00000013, __u32)
X-#define LIRC_SET_REC_CARRIER           _IOW('i', 0x00000014, __u32)
X-#define LIRC_SET_SEND_DUTY_CYCLE       _IOW('i', 0x00000015, __u32)
X-#define LIRC_SET_REC_DUTY_CYCLE        _IOW('i', 0x00000016, __u32)
X+#define LIRC_SET_SEND_CARRIER          _IOW('i', 0x00000013, u_int32_t)
X+#define LIRC_SET_REC_CARRIER           _IOW('i', 0x00000014, u_int32_t)
X+#define LIRC_SET_SEND_DUTY_CYCLE       _IOW('i', 0x00000015, u_int32_t)
X+#define LIRC_SET_REC_DUTY_CYCLE        _IOW('i', 0x00000016, u_int32_t)
X 
X /* to set a range use
X    LIRC_SET_REC_DUTY_CYCLE_RANGE/LIRC_SET_REC_CARRIER_RANGE with the
X    lower bound first and later
X    LIRC_SET_REC_DUTY_CYCLE/LIRC_SET_REC_CARRIER with the upper bound */
X 
X-#define LIRC_SET_REC_DUTY_CYCLE_RANGE  _IOW('i', 0x0000001e, __u32)
X-#define LIRC_SET_REC_CARRIER_RANGE     _IOW('i', 0x0000001f, __u32)
X+#define LIRC_SET_REC_DUTY_CYCLE_RANGE  _IOW('i', 0x0000001e, u_int32_t)
X+#define LIRC_SET_REC_CARRIER_RANGE     _IOW('i', 0x0000001f, u_int32_t)
X 
X #endif
END-of-/usr/ports/comms/lirc/files/patch-aa
echo x - /usr/ports/comms/lirc/files/patch-ab
sed 's/^X//' >/usr/ports/comms/lirc/files/patch-ab << 'END-of-/usr/ports/comms/lirc/files/patch-ab'
X--- daemons/Makefile.in.orig	Sun Oct  6 05:24:53 2002
X+++ daemons/Makefile.in	Sat Jan  4 21:28:01 2003
X@@ -231,7 +231,7 @@
X DEFAULT_INCLUDES =  -I. -I$(srcdir) -I$(top_builddir)
X CPPFLAGS = @CPPFLAGS@
X LDFLAGS = @LDFLAGS@
X-LIBS = @LIBS@
X+LIBS = @LIBS@ -L$(LOCALBASE)/lib -lgnugetopt
X depcomp = $(SHELL) $(top_srcdir)/depcomp
X @AMDEP_TRUE@DEP_FILES = $(DEPDIR)/config_file.Po \
X @AMDEP_TRUE@	$(DEPDIR)/dump_config.Po $(DEPDIR)/hw-types.Po \
X@@ -265,7 +265,7 @@
X CCLD = $(CC)
X LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
X 	$(AM_LDFLAGS) $(LDFLAGS) -o $@
X-CFLAGS = @CFLAGS@
X+CFLAGS = @CFLAGS@ -I$(LOCALBASE)/include
X DIST_SOURCES = $(irrecord_SOURCES) $(EXTRA_irrecord_SOURCES) \
X 	$(lircd_SOURCES) $(EXTRA_lircd_SOURCES) $(lircd_simrec_SOURCES) \
X 	$(lircd_simsend_SOURCES) $(lircmd_SOURCES) $(slinke_SOURCES)
X--- tools/Makefile.in.orig	Sat Jan  4 22:02:21 2003
X+++ tools/Makefile.in	Sat Jan  4 22:03:09 2003
X@@ -192,7 +192,7 @@
X DEFAULT_INCLUDES =  -I. -I$(srcdir) -I$(top_builddir)
X CPPFLAGS = @CPPFLAGS@
X LDFLAGS = @LDFLAGS@
X-LIBS = @LIBS@
X+LIBS = @LIBS@ -L$(LOCALBASE)/lib -lgnugetopt
X depcomp = $(SHELL) $(top_srcdir)/depcomp
X @AMDEP_TRUE@DEP_FILES = $(DEPDIR)/ircat.Po $(DEPDIR)/irexec.Po \
X @AMDEP_TRUE@	$(DEPDIR)/irpty.Po $(DEPDIR)/irw.Po \
X@@ -206,7 +206,7 @@
X CCLD = $(CC)
X LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
X 	$(AM_LDFLAGS) $(LDFLAGS) -o $@
X-CFLAGS = @CFLAGS@
X+CFLAGS = @CFLAGS@ -I$(LOCALBASE)/include
X DIST_SOURCES = $(liblirc_client_la_SOURCES) $(ircat_SOURCES) \
X 	$(irexec_SOURCES) $(irpty_SOURCES) $(irw_SOURCES) \
X 	$(irxevent_SOURCES) $(mode2_SOURCES) $(rc_SOURCES) \
END-of-/usr/ports/comms/lirc/files/patch-ab
echo x - /usr/ports/comms/lirc/files/patch-ac
sed 's/^X//' >/usr/ports/comms/lirc/files/patch-ac << 'END-of-/usr/ports/comms/lirc/files/patch-ac'
X--- configure.orig	Sun Oct  6 05:22:41 2002
X+++ configure	Sat Jan  4 21:23:16 2003
X@@ -9410,7 +9410,7 @@
X echo "$as_me:9410: result: " >&5
X echo "${ECHO_T}" >&6
X 
X-possible_drivers="(none) (udp) (dsp) (remotemaster) (pctv) (logitech) \
X+possible_drivers="(none) (dsp) (remotemaster) (pctv) (logitech) \
X 	(slinke) (silitek) (mediafocusI) (irreal)"
X 
X if test x${no_kernel} != xyes; then
X@@ -9698,11 +9698,11 @@
X   esac
X   done
X   #remove duplicates
X-  #hw_module=`echo ${hw_module}| tr ' ' '\n' | sort -u | tr '\n' ' '`
X-  hw_module=`echo ${hw_module}| sed \
X-  			-e':again' \
X-			-e's/\(.*\)\(\<.*\) \(.*\) \2\(.*\)$/\1\2 \3\4/' \
X-			-e'tagain'`
X+  hw_module=`echo ${hw_module}| tr ' ' '\n' | sort -u | tr '\n' ' '`
X+  #hw_module=`echo ${hw_module}| sed \
X+  #			-e':again' \
X+  #  		-e's/\(.*\)\(\<.*\) \(.*\) \2\(.*\)$/\1\2 \3\4/' \
X+  #			-e'tagain'`
X fi
X 
X if test "$driver" = "irman"; then
X--- daemons/hw-types.c.orig	Sat Jul 27 03:58:40 2002
X+++ daemons/hw-types.c	Sat Jan  4 21:13:11 2003
X@@ -15,7 +15,6 @@
X extern struct hardware hw_silitek;
X extern struct hardware hw_slinke;
X extern struct hardware hw_dsp;
X-extern struct hardware hw_udp;
X 
X #ifndef HW_DEFAULT
X # define HW_DEFAULT hw_default
X@@ -54,7 +53,6 @@
X 	&hw_silitek,
X 	&hw_slinke,
X 	&hw_dsp,
X-	&hw_udp,
X 	&hw_null,
X #else
X 	&HW_DEFAULT,
END-of-/usr/ports/comms/lirc/files/patch-ac
echo x - /usr/ports/comms/lirc/files/patch-ad
sed 's/^X//' >/usr/ports/comms/lirc/files/patch-ad << 'END-of-/usr/ports/comms/lirc/files/patch-ad'
X--- tools/irpty.c.orig	Sat Jan  4 22:10:23 2003
X+++ tools/irpty.c	Sat Jan  4 22:11:26 2003
X@@ -36,7 +36,7 @@
X #include <unistd.h>
X 
X #ifdef HAVE_FORKPTY
X-#include <pty.h>
X+#include <libutil.h>
X #endif
X 
X #include "lirc_client.h"
END-of-/usr/ports/comms/lirc/files/patch-ad
echo x - /usr/ports/comms/lirc/pkg-comment
sed 's/^X//' >/usr/ports/comms/lirc/pkg-comment << 'END-of-/usr/ports/comms/lirc/pkg-comment'
XLinux Infared Remote Control
END-of-/usr/ports/comms/lirc/pkg-comment
echo x - /usr/ports/comms/lirc/pkg-message
sed 's/^X//' >/usr/ports/comms/lirc/pkg-message << 'END-of-/usr/ports/comms/lirc/pkg-message'
X**********************************************************************
XThis port does not contain any FreeBSD device drivers for infrared
Xdevices. This port installs the LIRC daemons and tools for interacting
Xwith drivers that support the LIRC device interface.
X
XYou will need to obtain third party device drivers or port the Linux
Xdrivers in ${WRKSRC}/drivers to use the LIRC port.
X**********************************************************************
END-of-/usr/ports/comms/lirc/pkg-message
echo x - /usr/ports/comms/lirc/pkg-plist
sed 's/^X//' >/usr/ports/comms/lirc/pkg-plist << 'END-of-/usr/ports/comms/lirc/pkg-plist'
Xbin/ircat
Xbin/irexec
Xbin/irpty
Xbin/irrecord
Xbin/irw
Xbin/irxevent
Xbin/mode2
Xbin/rc
Xbin/xmode2
Xinclude/lirc/lirc_client.h
X@dirrm include/lirc
Xlib/liblirc_client.a
Xlib/liblirc_client.la
Xlib/liblirc_client.so
Xlib/liblirc_client.so.0
Xsbin/lircd
Xsbin/lircmd
END-of-/usr/ports/comms/lirc/pkg-plist
echo x - /usr/ports/comms/lirc/pkg-descr
sed 's/^X//' >/usr/ports/comms/lirc/pkg-descr << 'END-of-/usr/ports/comms/lirc/pkg-descr'
XLIRC is a package that allows you to decode and send infra-red signals
Xof many (but not all) commonly used remote controls.
X
XThe most important part of LIRC is the lircd daemon that will decode
XIR signals received by the device drivers and provide the information
Xon a socket. It will also accept commands for IR signals to be sent if
Xthe hardware supports this. The second daemon program called lircmd
Xwill connect to lircd and translate the decoded IR signals to mouse
Xmovements. You can e.g. configure X to use your remote control as an
Xinput device.
X
XThe user space applications will allow you to control your computer
Xwith your remote control. You can send X events to applications, start
Xprograms and much more on just one button press. The possible
Xapplications are obvious: Infra-red mouse, remote control for your TV
Xtuner card or CD-ROM, shutdown by remote, program your VCR and/or
Xsatellite tuner with your computer, etc.
X
XWWW: http://www.lirc.org/
X
X- Mike
Xmikeh@FreeBSD.org
END-of-/usr/ports/comms/lirc/pkg-descr
exit
--- lirc.port.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301050642.h056gPS7024074>