Bug 156616 - New port: sysutils/aird Handles Apple IR receiver button events
Summary: New port: sysutils/aird Handles Apple IR receiver button events
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Chris Rees
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-24 17:40 UTC by Chris Rees
Modified: 2011-06-12 21:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Rees 2011-04-24 17:40:07 UTC
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

Fix: Shar attached.



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.--buKCiIGQTHycVjRLZfeo4bGyR0WDAuN6YskEvW7zSrzutZ9B
Content-Type: text/plain; name="aird.shar"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="aird.shar"

# 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
Comment 1 Chris Rees 2011-04-30 14:10:23 UTC
OK, apparently one needs absolute paths in the rc script because
%%PREFIX%%/bin isn't in the path on startup (d'oh).

This is what happens when you never reboot...

Not a big change, new shar at [1].

Chris

[1] http://www.bayofrum.net/~crees/patches/aird.shar
Comment 2 Rene Ladan freebsd_committer freebsd_triage 2011-06-03 14:59:42 UTC
Responsible Changed
From-To: freebsd-ports-bugs->rene

Grab
Comment 3 Rene Ladan freebsd_committer freebsd_triage 2011-06-11 18:00:37 UTC
Responsible Changed
From-To: rene->crees

Over to new committer
Comment 4 dfilter service freebsd_committer freebsd_triage 2011-06-12 21:21:23 UTC
crees       2011-06-12 20:21:13 UTC

  FreeBSD ports repository

  Modified files:
    sysutils             Makefile 
  Added files:
    sysutils/aird        Makefile distinfo pkg-descr 
    sysutils/aird/files  aird.in 
  Log:
  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.
  
  Apple IR receiver modules are found on:
  
             o   MacBook (any generation)
             o   MacBook Pro (any generation)
             o   Intel iMac
             o   Intel MacMini
  
  WWW: http://wiki.freebsd.org/AppleMacbook
  
  PR:             ports/156616
  Submitted by:   Chris Rees (myself)
  Approved by:    rene (mentor)
  
  Revision  Changes    Path
  1.1299    +1 -0      ports/sysutils/Makefile
  1.1       +26 -0     ports/sysutils/aird/Makefile (new)
  1.1       +2 -0      ports/sysutils/aird/distinfo (new)
  1.1       +43 -0     ports/sysutils/aird/files/aird.in (new)
  1.1       +14 -0     ports/sysutils/aird/pkg-descr (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 Chris Rees freebsd_committer freebsd_triage 2011-06-12 21:21:36 UTC
State Changed
From-To: open->closed

New port added.