mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
This is a driver for "homebrew" type serial LIRC reveivers as
described here: http://lirc.org/receivers.html It overrides the `normal' uart(4) driver, if you have that driver already loaded or statically in your kernel (like it is in GENERIC) then you need to load uartlirc.ko from loader.conf(5) (or manually via the loader prompt) for the override to work. The driver provides a /dev/lircX node for each serial port in addition to the normal tty nodes /dev/cuauX etc, so you can still use other serial ports normally should you have more than one. Note: it only supports PCI/motherboard serial ports not ones connected via USB, for USB you can use mceusb hardware supported via webcamd, or FTDI hardware supported by comms/lirc natively via libftdi, see: http://wiki.freebsd.org/WebcamCompat and the comms/lirc port's pkg-message. WWW: http://forums.freebsd.org/showthread.php?p=175029
This commit is contained in:
parent
eed462d207
commit
6a1d7c932a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=296538
@ -149,6 +149,7 @@
|
||||
SUBDIR += trustedqsl
|
||||
SUBDIR += twpsk
|
||||
SUBDIR += uarduno
|
||||
SUBDIR += uartlirc
|
||||
SUBDIR += uhso-kmod
|
||||
SUBDIR += uird
|
||||
SUBDIR += umcs7840
|
||||
|
53
comms/uartlirc/Makefile
Normal file
53
comms/uartlirc/Makefile
Normal file
@ -0,0 +1,53 @@
|
||||
# New ports collection makefile for: uarlirc
|
||||
# Date created: Sun May 13 17:39:40 CEST 2012
|
||||
# Whom: nox@FreeBSD.org
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= uartlirc
|
||||
PORTVERSION= 0.3
|
||||
CATEGORIES= comms kld
|
||||
MASTER_SITES= LOCAL/nox \
|
||||
http://people.freebsd.org/~nox/tmp/
|
||||
DISTNAME= ${PORTNAME}-preliminary-003
|
||||
EXTRACT_SUFX= .shar
|
||||
|
||||
MAINTAINER= nox@FreeBSD.org
|
||||
COMMENT= Driver for "homebrew" serial LIRC receivers
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
EXTRACT_CMD= ${SH}
|
||||
EXTRACT_BEFORE_ARGS=
|
||||
EXTRACT_AFTER_ARGS=
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
PLIST_FILES+= "@cwd /"
|
||||
PLIST_FILES+= ${KMODDIR:C,^/,,}/${PORTNAME}.ko
|
||||
PLIST_FILES+= "@exec kldxref ${KMODDIR}"
|
||||
PLIST_FILES+= "@unexec kldxref ${KMODDIR}"
|
||||
|
||||
# install where x11/nvidia-driver does also:
|
||||
KMODDIR= /boot/modules
|
||||
|
||||
MAKE_ENV+= KMODDIR="${KMODDIR}"
|
||||
|
||||
SYSDIR?= ${SRC_BASE}/sys
|
||||
MAKE_ENV+= SYSDIR="${SYSDIR}"
|
||||
|
||||
CFLAGS+= ${DEBUG_FLAGS}
|
||||
|
||||
.if ${OSVERSION} < 800000
|
||||
IGNORE= needs <sys/buf_ring.h>
|
||||
.endif
|
||||
|
||||
.if !exists(${SYSDIR}/Makefile)
|
||||
IGNORE= requires kernel source to be installed
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
${INSTALL} ${WRKSRC}/${PORTNAME}.ko ${KMODDIR}
|
||||
kldxref ${KMODDIR}
|
||||
|
||||
.include <bsd.port.post.mk>
|
2
comms/uartlirc/distinfo
Normal file
2
comms/uartlirc/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (uartlirc-preliminary-003.shar) = 3d65bbb8448760a1cbb42d4ea9517fe06689a20b363b5fef90358cc24cb399e1
|
||||
SIZE (uartlirc-preliminary-003.shar) = 254995
|
22
comms/uartlirc/pkg-descr
Normal file
22
comms/uartlirc/pkg-descr
Normal file
@ -0,0 +1,22 @@
|
||||
This is a driver for "homebrew" type serial LIRC reveivers as
|
||||
described here:
|
||||
|
||||
http://lirc.org/receivers.html
|
||||
|
||||
It overrides the `normal' uart(4) driver, if you have that driver
|
||||
already loaded or statically in your kernel (like it is in GENERIC)
|
||||
then you need to load uartlirc.ko from loader.conf(5) (or manually
|
||||
via the loader prompt) for the override to work. The driver provides
|
||||
a /dev/lircX node for each serial port in addition to the normal
|
||||
tty nodes /dev/cuauX etc, so you can still use other serial ports
|
||||
normally should you have more than one.
|
||||
|
||||
Note: it only supports PCI/motherboard serial ports not ones connected
|
||||
via USB, for USB you can use mceusb hardware supported via webcamd,
|
||||
or FTDI hardware supported by comms/lirc natively via libftdi, see:
|
||||
|
||||
http://wiki.freebsd.org/WebcamCompat
|
||||
|
||||
and the comms/lirc port's pkg-message.
|
||||
|
||||
WWW: http://forums.freebsd.org/showthread.php?p=175029
|
Loading…
Reference in New Issue
Block a user