Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Apr 2011 17:38:16 +0100 (BST)
From:      Chris Rees <utisoft@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/156616: New port: sysutils/aird Handles Apple IR receiver button events
Message-ID:  <201104241638.p3OGcFjK025229@zeus.bayofrum.net>
Resent-Message-ID: <201104241640.p3OGe8MW046947@freefall.freebsd.org>

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

>Number:         156616
>Category:       ports
>Synopsis:       New port: sysutils/aird Handles Apple IR receiver button events
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 24 16:40:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Chris Rees
>Release:        FreeBSD 8.2-RELEASE i386
>Organization:
>Environment:
System: FreeBSD zeus.bayofrum.net 8.2-RELEASE FreeBSD 8.2-RELEASE #1: Sun Feb 27 22:19:51 UTC 2011 root@zeus.bayofrum.net:/usr/obj/usr/src/sys/ZEUS i386


	
>Description:
The aird daemon handles Apple IR receiver button events.  If your system
has an USB Apple IR receiver, most likely you'll also have an Apple
Remote.  An Apple remote has six (6) buttons: Volume up, Volume down,
Play/Pause, Forward, Backward and Menu.  For each button you can assign a
command to execute.

WWW: http://wiki.freebsd.org/AppleMacbook
>How-To-Repeat:
	
>Fix:

Shar attached.

--- aird.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:
#
#	aird
#	aird/distinfo
#	aird/Makefile
#	aird/pkg-descr
#	aird/files
#	aird/files/aird.in
#
echo c - aird
mkdir -p aird > /dev/null 2>&1
echo x - aird/distinfo
sed 's/^X//' >aird/distinfo << '87e6076e9c884ab1f43469eba9b0a306'
XSHA256 (aird-1.0.tar.gz) = e9f7251bf2099d1d299f6e56ac307e8eda9bdeea50704d9f4a8a63d950809f2f
XSIZE (aird-1.0.tar.gz) = 4515
87e6076e9c884ab1f43469eba9b0a306
echo x - aird/Makefile
sed 's/^X//' >aird/Makefile << '3b7b0c2d76ec5eff042d6f1857138b34'
X# New ports collection Makefile for:	aird
X# Date created:				23 April 2011
X# Whom:					Chris Rees (utisoft@gmail.com)
X#
X# $FreeBSD$
X#
X
XPORTNAME=	aird
XPORTVERSION=	1.0
XCATEGORIES=	sysutils
XMASTER_SITES=	http://www.bayofrum.net/dist/${PORTNAME}/
X
XMAINTAINER=	utisoft@gmail.com
XCOMMENT=	Handles Apple IR receiver button events
X
XUSE_RC_SUBR=	${PORTNAME}
XMAN1=		${PORTNAME}.1
XMANCOMPRESSED=	yes
X
XPLIST_FILES=	bin/${PORTNAME}
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
X	${INSTALL_MAN} ${WRKSRC}/${MAN1}.gz ${MAN1PREFIX}/man/man1
X
X.include <bsd.port.mk>
3b7b0c2d76ec5eff042d6f1857138b34
echo x - aird/pkg-descr
sed 's/^X//' >aird/pkg-descr << '55f54febd0ea24f0a16748e28c38d0fd'
XThe aird daemon handles Apple IR receiver button events.  If your system
Xhas an USB Apple IR receiver, most likely you'll also have an Apple
XRemote.  An Apple remote has six (6) buttons: Volume up, Volume down,
XPlay/Pause, Forward, Backward and Menu.  For each button you can assign a
Xcommand to execute.
X
XApple IR receiver modules are found on:
X
X           o   MacBook (any generation)
X           o   MacBook Pro (any generation)
X           o   Intel iMac
X           o   Intel MacMini
X
XWWW: http://wiki.freebsd.org/AppleMacbook
55f54febd0ea24f0a16748e28c38d0fd
echo c - aird/files
mkdir -p aird/files > /dev/null 2>&1
echo x - aird/files/aird.in
sed 's/^X//' >aird/files/aird.in << '5d401068e7a99be46934a25af0b5619c'
X#!/bin/sh
X
X# PROVIDE: aird
X# REQUIRE: LOGIN
X
X# Add the following lines to /etc/rc.conf or /etc/rc.conf.local to
X# enable aird:
X# aird_enable (bool):	Set to "NO" by default.
X# aird_key:		Unset by default; see man page on pairing.
X#
X# The following options have defaults sane for musicpd, they can be reassigned
X# in /etc/rc.conf
X#
X# aird_play, aird_forward, aird_up, aird_down, aird_back, aird_menu
X
X. /etc/rc.subr
X
Xname="aird"
Xrcvar=`set_rcvar`
X
Xload_rc_config $name
X
X: ${aird_enable="NO"}
X: ${aird_play="mpc toggle"}
X: ${aird_forward="mpc next"}
X: ${aird_up="mixer vol +2"}
X: ${aird_down="mixer vol -2"}
X: ${aird_back="mpc prev"}
X: ${aird_menu="xterm -e ncmpc"}
X
X[ -z "${aird_key}" ] || aird_key="-k ${aird_key}"
X
Xcommand="%%PREFIX%%/bin/aird"
Xpidfile="/var/run/aird.pid"
Xcommand_args="-p ${pidfile} -f /dev/uhid1 ${aird_key}\
X	-P \"${aird_play}\"	\
X	-F \"${aird_forward}\"	\
X	-U \"${aird_up}\"	\
X	-D \"${aird_down}\"	\
X	-B \"${aird_back}\"	\
X	-M \"${aird_menu}\""
X
Xrun_rc_command "$1"
5d401068e7a99be46934a25af0b5619c
exit
--- aird.shar ends here ---



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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



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