mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
- Update to 0.8.0
- Hack configure so produced daemon binary is ready to use with third party kernel drivers. - Make libirman support optional. - Move daemon communication sockets under /var/run/lirc. - Add startup script. - Use bzip2. - Minor cleanups. Approved by: maintaner
This commit is contained in:
parent
0f3556420c
commit
4d529a51ea
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=182770
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= lirc
|
||||
PORTVERSION= 0.7.2
|
||||
PORTVERSION= 0.8.0
|
||||
CATEGORIES= comms
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= lirc
|
||||
@ -14,26 +14,36 @@ MASTER_SITE_SUBDIR= lirc
|
||||
MAINTAINER= doconnor@gsoft.com.au
|
||||
COMMENT= Linux Infared Remote Control
|
||||
|
||||
USE_BZIP2= yes
|
||||
USE_XLIB= yes
|
||||
USE_GETOPT_LONG=yes
|
||||
USE_GMAKE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
INSTALLS_SHLIB= yes
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
||||
CONFIGURE_ARGS= --disable-manage-devices --with-devdir=/var/lirc
|
||||
CONFIGURE_ARGS= --enable-sandboxed --with-devdir=/var/run/lirc
|
||||
|
||||
OPTIONS= IRMAN "Build with libirman support" On
|
||||
|
||||
USE_RC_SUBR= lircd.sh
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} == "i386"
|
||||
.if exists(${LOCALBASE}/lib/libvga.so.1)
|
||||
LIB_DEPENDS+= vga:${PORTSDIR}/graphics/svgalib
|
||||
PLIST_SUB+= SMODE2=
|
||||
.else
|
||||
PLIST_SUB+= SMODE2="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_IRMAN)
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/lib/libirman.a:${PORTSDIR}/comms/libirman
|
||||
CONFIGURE_ARGS+= --with-driver=irman
|
||||
.else
|
||||
CONFIGURE_ARGS+= --with-driver=any
|
||||
.endif
|
||||
|
||||
.if ${OSVERSION} >= 500041
|
||||
# These are already included in the getopt_long case on < 50041
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
@ -42,10 +52,11 @@ CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
||||
.endif
|
||||
|
||||
MAN1= ircat.1 irexec.1 irpty.1 irrecord.1 irsend.1 irw.1 \
|
||||
irxevent.1 mode2.1 smode2.1 xmode2.1
|
||||
irxevent.1 lircrcd.1 mode2.1 smode2.1 xmode2.1
|
||||
MAN8= lircd.8 lircmd.8
|
||||
|
||||
post-install:
|
||||
@${MKDIR} /var/run/lirc
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (lirc-0.7.2.tar.gz) = dbf6e75a744b4cf9125adb5390862a70
|
||||
SHA256 (lirc-0.7.2.tar.gz) = 794abf260d2d8e627494a702523fad54b65b10245f2f7c5680bf08b430f1ac36
|
||||
SIZE (lirc-0.7.2.tar.gz) = 662399
|
||||
MD5 (lirc-0.8.0.tar.bz2) = 0bf28bf82c7766a462f90927b6bf3af1
|
||||
SHA256 (lirc-0.8.0.tar.bz2) = cc8d7fb41a045278680ea530cffaf05181977f41244b9f0ed64075cd7630b5d2
|
||||
SIZE (lirc-0.8.0.tar.bz2) = 514359
|
||||
|
31
comms/lirc/files/lircd.sh.in
Normal file
31
comms/lirc/files/lircd.sh.in
Normal file
@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
# PROVIDE: lircd
|
||||
# REQUIRE: DAEMON
|
||||
#
|
||||
# Add the following line to /etc/rc.conf to enable lircd:
|
||||
#
|
||||
# lircd_enable="YES"
|
||||
#
|
||||
|
||||
. %%RC_SUBR%%
|
||||
|
||||
name="lircd"
|
||||
rcvar=`set_rcvar`
|
||||
|
||||
load_rc_config ${name}
|
||||
: ${lircd_enable="NO"}
|
||||
: ${lircd_device="/dev/lirc0"}
|
||||
|
||||
|
||||
prefix=%%PREFIX%%
|
||||
procname=${prefix}/sbin/lircd
|
||||
pidfile=/var/run/lircd.pid
|
||||
lircd_config="${prefix}/etc/lircd.conf"
|
||||
required_files=${lircd_config}
|
||||
command="${prefix}/sbin/lircd"
|
||||
command_args="-d ${lircd_device} ${lircd_config}"
|
||||
|
||||
run_rc_command "$1"
|
@ -1,6 +1,6 @@
|
||||
--- configure.orig Sun Oct 16 21:23:22 2005
|
||||
+++ configure Sun Oct 16 21:23:37 2005
|
||||
@@ -7815,6 +7815,7 @@
|
||||
--- configure.orig Sat Jan 21 18:03:45 2006
|
||||
+++ configure Wed Nov 15 12:58:20 2006
|
||||
@@ -7816,6 +7816,7 @@
|
||||
|
||||
# use fifo instead of devnode (required on mac os x)
|
||||
|
||||
@ -8,3 +8,20 @@
|
||||
|
||||
if test "$use_fifos" = "yes"; then
|
||||
USE_FIFOS_TRUE=
|
||||
@@ -9378,6 +9379,8 @@
|
||||
{ echo "configure: error: *** you need to have the ALSA libraries and drivers
|
||||
from at least version 1.0.9 for this driver" 1>&2; exit 1; }
|
||||
;;
|
||||
+ any)
|
||||
+ ;;
|
||||
*)
|
||||
{ echo "configure: error: *** it is not possible to install the specified driver
|
||||
on this system" 1>&2; exit 1; }
|
||||
@@ -9387,6 +9390,7 @@
|
||||
|
||||
|
||||
if test "$lirc_driver" = "none" || \
|
||||
+ test "$lirc_driver" = "any" || \
|
||||
test "$lirc_driver" = "alsa_usb" || \
|
||||
test "$lirc_driver" = "userspace" || \
|
||||
test "$lirc_driver" = "atilibusb" || \
|
||||
|
@ -5,14 +5,18 @@ bin/irrecord
|
||||
bin/irsend
|
||||
bin/irw
|
||||
bin/irxevent
|
||||
bin/lircrcd
|
||||
bin/mode2
|
||||
%%SMODE2%%bin/smode2
|
||||
bin/xmode2
|
||||
sbin/lircd
|
||||
sbin/lircmd
|
||||
include/lirc/lirc_client.h
|
||||
lib/liblirc_client.a
|
||||
lib/liblirc_client.la
|
||||
lib/liblirc_client.so
|
||||
lib/liblirc_client.so.0
|
||||
include/lirc/lirc_client.h
|
||||
lib/liblirc_client.so.1
|
||||
sbin/lircd
|
||||
sbin/lircmd
|
||||
@dirrm include/lirc
|
||||
@exec mkdir -p /var/run/lirc
|
||||
@unexec rm -f /var/run/lirc.pid 2> /dev/null || true
|
||||
@unexec rm -rf /var/run/lircd 2> /dev/null || true
|
||||
|
Loading…
Reference in New Issue
Block a user