Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

5
comms/lirc/DESCR Normal file
View File

@@ -0,0 +1,5 @@
LIRC is a package that supports receiving and sending IR signals of
the most common IR remote controls. It contains a daemon that decodes
and sends IR signals, a mouse daemon that translates IR signals to
mouse movements and a couple of user programs that allow to control
your computer with a remote control.

47
comms/lirc/Makefile Normal file
View File

@@ -0,0 +1,47 @@
# $NetBSD: Makefile,v 1.3 2012/12/25 11:41:25 cheusov Exp $
#
DISTNAME= lirc-0.9.0
PKGREVISION= 2
CATEGORIES= comms
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=lirc/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= cheusov@NetBSD.org
HOMEPAGE= http://www.lirc.org/
COMMENT= Linux Infrared Remote Control
LICENSE= gnu-gpl-v2
USE_LIBTOOL= yes
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-syslog --with-driver=userspace
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
# I don't want to see python in dependencies but
# make pronto2lirc script usable if python is installed
CONFIGURE_ENV+= ac_cv_path_PYTHON=${PREFIX}/bin/python
CHECK_INTERPRETER_SKIP+= bin/pronto2lirc
RCD_SCRIPTS= lircd
EGDIR= ${PREFIX}/share/examples/lirc
EGFILES= lircd.conf lircmd.conf
INSTALLATION_DIRS= ${EGDIR}
post-install:
.for i in ${EGFILES}
${INSTALL_DATA} ${WRKSRC}/contrib/${i} ${DESTDIR}${EGDIR}
.endfor
.include "available.mk"
.if ${LIRC_AVAILABLE} == no
PKG_FAIL_REASON= "lirc is not available for this platform"
.endif
.include "options.mk"
.include "../../devel/libusb/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

32
comms/lirc/PLIST Normal file
View File

@@ -0,0 +1,32 @@
@comment $NetBSD: PLIST,v 1.1 2012/12/02 01:21:50 cheusov Exp $
bin/ircat
bin/irexec
bin/irpty
bin/irrecord
bin/irsend
bin/irw
${PLIST.x11}bin/irxevent
bin/lircrcd
bin/mode2
bin/pronto2lirc
${PLIST.x11}bin/xmode2
include/lirc/lirc_client.h
lib/liblirc_client.la
man/man1/ircat.1
man/man1/irexec.1
man/man1/irpty.1
man/man1/irrecord.1
man/man1/irsend.1
man/man1/irw.1
man/man1/irxevent.1
man/man1/lircrcd.1
man/man1/mode2.1
man/man1/smode2.1
man/man1/xmode2.1
man/man8/lircd.8
man/man8/lircmd.8
sbin/lircd
sbin/lircmd
share/examples/lirc/lircd.conf
share/examples/lirc/lircmd.conf
share/examples/rc.d/lircd

13
comms/lirc/available.mk Normal file
View File

@@ -0,0 +1,13 @@
# $NetBSD: available.mk,v 1.1 2012/12/02 01:21:50 cheusov Exp $
.include "../../mk/bsd.prefs.mk"
# At the moment LIRC is available only for Linux. The following
# condition is here to NOT repeat supported platforms in multiple
# places, i.e. mplayer, xine, xbmc etc.
# Also, have a look at buildlink3.mk.
.if ${OPSYS} == "Linux"
LIRC_AVAILABLE= yes
.else
LIRC_AVAILABLE= no
.endif

17
comms/lirc/buildlink3.mk Normal file
View File

@@ -0,0 +1,17 @@
# $NetBSD: buildlink3.mk,v 1.2 2012/12/02 01:27:16 cheusov Exp $
# Check whether LIRC is available on this platform
.include "available.mk"
.if ${LIRC_AVAILABLE} == "yes"
BUILDLINK_TREE+= lirc
. if !defined(LIRC_BUILDLINK3_MK)
LIRC_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.lirc+= lirc>=0.9.0
BUILDLINK_PKGSRCDIR.lirc?= ../../comms/lirc
. endif # LIRC_BUILDLINK3_MK
BUILDLINK_TREE+= -lirc
.endif # LIRC_AVAILABLE

5
comms/lirc/distinfo Normal file
View File

@@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1 2012/12/02 01:21:51 cheusov Exp $
SHA1 (lirc-0.9.0.tar.bz2) = 8456bf7101d4f2d31d61c5073357a4981b458581
RMD160 (lirc-0.9.0.tar.bz2) = d8f1cf3a03573be36787e87adc71beba3e678a37
Size (lirc-0.9.0.tar.bz2) = 857286 bytes

18
comms/lirc/files/lircd.sh Normal file
View File

@@ -0,0 +1,18 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: lircd.sh,v 1.1 2012/12/02 01:21:51 cheusov Exp $
#
# PROVIDE: lircd
# REQUIRE: LOGIN
. /etc/rc.subr
name="lircd"
lircd_flags=${lircd_flags--H default -d /dev/lirc0}
rcvar=$name
command="@PREFIX@/sbin/${name}"
pidfile="/var/run/lirc/${name}.pid"
required_files="@PKG_SYSCONFDIR@/lircd.conf"
load_rc_config $name
run_rc_command "$1"

17
comms/lirc/options.mk Normal file
View File

@@ -0,0 +1,17 @@
# $NetBSD: options.mk,v 1.1 2012/12/02 01:21:51 cheusov Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.lirc
PKG_SUPPORTED_OPTIONS= x11
PKG_SUGGESTED_OPTIONS= x11
.include "../../mk/bsd.options.mk"
PLIST_VARS+= x11
.if !empty(PKG_OPTIONS:Mx11)
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libSM/buildlink3.mk"
PLIST.x11= yes
.else
CONFIGURE_ARGS+= --without-x
.endif