extra/lirc to 0.9.0-42

This commit is contained in:
Kevin Mihelich 2013-04-22 13:32:03 +00:00
parent 19737aa816
commit c8506af766
6 changed files with 2 additions and 155 deletions

View file

@ -8,7 +8,7 @@
pkgbase=lirc
pkgname=('lirc' 'lirc-utils')
pkgver=0.9.0
pkgrel=41
pkgrel=42
epoch=1
arch=('i686' 'x86_64')
url="http://www.lirc.org/"
@ -20,7 +20,7 @@ source=(http://prdownloads.sourceforge.net/${pkgbase}/${pkgbase}-${pkgver}.tar.b
lircd-handle-large-config.patch
lirc_atiusb-kfifo.patch
kernel-2.6.39.patch
lircd lircmd lirc.logrotate lircd.conf irexec.conf irexecd
lirc.logrotate
lirc.service lircm.service irexec.service
lirc.tmpfiles
)
@ -29,12 +29,7 @@ md5sums=('b232aef26f23fe33ea8305d276637086'
'b70cc9640505205446ec47b7d4779f38'
'1f8b104a2365d9f93404b143f499059b'
'087a7d102e1c96bf1179f38db2b0b237'
'8d0e238dc0eda95e340fe570605da492'
'85f7fdac55e5256967241864049bf5e9'
'3deb02604b37811d41816e9b4385fcc3'
'5b1f8c9cd788a39a6283f93302ce5c6e'
'f0c0ac930326168035f0c8e24357ae55'
'69d099e6deedfa3c1ee2b6e82d9b8bfb'
'dab8a73bcc5fd5479d8750493d8d97dc'
'c2e20fe68b034df752dba2773db16ebe'
'07131d117fcfe9dcd50c453c3a5e9531'
@ -78,13 +73,10 @@ package_lirc-utils() {
depends=('alsa-lib' 'libx11' 'libftdi' 'libirman')
optdepends=('python2: pronto2lirc utility')
options=('strip' '!libtool')
backup=('etc/conf.d/lircd.conf' 'etc/conf.d/irexec.conf')
install=lirc-utils.install
cd "${srcdir}/lirc-${pkgver}"
make DESTDIR="${pkgdir}" install
install -d "${pkgdir}/usr/share/lirc" "${pkgdir}/etc/rc.d"
cp "${srcdir}"/{lircd,lircmd,irexecd} "${pkgdir}/etc/rc.d"
install -D -m644 "${srcdir}"/lirc.service "${pkgdir}"/usr/lib/systemd/system/lirc.service
install -D -m644 "${srcdir}"/lircm.service "${pkgdir}"/usr/lib/systemd/system/lircm.service
install -D -m644 "${srcdir}"/irexec.service "${pkgdir}"/usr/lib/systemd/system/irexec.service
@ -95,11 +87,5 @@ package_lirc-utils() {
# install the logrotate config
install -Dm644 "${srcdir}/lirc.logrotate" "${pkgdir}/etc/logrotate.d/lirc"
# install conf.d file
install -Dm644 "${srcdir}/lircd.conf" "${pkgdir}/etc/conf.d/lircd.conf"
# install conf.d file
install -Dm644 "${srcdir}/irexec.conf" "${pkgdir}/etc/conf.d/irexec.conf"
install -d "${pkgdir}/etc/lirc"
}

View file

@ -1,5 +0,0 @@
#
# Parameters for irexec daemon (path to lircrc)
#
IREXEC_OPTS=""

View file

@ -1,38 +0,0 @@
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
. /etc/conf.d/irexec.conf
PID=`pidof -o %PPID /usr/bin/irexec`
case "$1" in
start)
stat_busy "Starting IREXEC Daemon"
[ -z "$PID" ] && /usr/bin/irexec --daemon $IREXEC_OPTS
if [ $? -gt 0 ]; then
stat_fail
else
add_daemon irexecd
stat_done
fi
;;
stop)
stat_busy "Stopping IREXEC Daemon"
[ ! -z "$PID" ] && kill $PID &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon irexecd
stat_done
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0

View file

@ -1,52 +0,0 @@
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
. /etc/conf.d/lircd.conf
PID=$(pidof -o %PPID /usr/sbin/lircd)
LIRCD_SYMLINKFILE=/dev/lircd
LIRCD_SOCKET=/var/run/lirc/lircd
case "$1" in
start)
stat_busy "Starting LIRC Daemon"
[ ! -d /var/run/lirc ] && install -d /var/run/lirc &>/dev/null
rm -f $LIRCD_SOCKET && ln -s $LIRCD_SOCKET $LIRCD_SYMLINKFILE
if [ $? -ne 0 ]; then
stat_fail
exit 0
fi
[ -n "$LIRC_DRIVER" ] && LIRC_EXTRAOPTS="-H $LIRC_DRIVER $LIRC_EXTRAOPTS"
[ -z "$PID" ] &&
if [ -n "$LIRC_DEVICE" ] ; then
eval /usr/sbin/lircd -d "$LIRC_DEVICE" $LIRC_EXTRAOPTS $LIRC_CONFIGFILE
else
/usr/sbin/lircd $LIRC_EXTRAOPTS $LIRC_CONFIGFILE
fi
if [ $? -gt 0 ]; then
stat_fail
else
add_daemon lircd
stat_done
fi
;;
stop)
stat_busy "Stopping LIRC Daemon"
rm -f $LIRCD_SYMLINKFILE
[ ! -z "$PID" ] && kill $PID &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon lircd
stat_done
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 start|stop|restart"
esac
exit 0

View file

@ -1,8 +0,0 @@
#
# Parameters for lirc daemon
#
LIRC_DEVICE="/dev/lirc0"
LIRC_DRIVER=""
LIRC_EXTRAOPTS=""
LIRC_CONFIGFILE=""

View file

@ -1,36 +0,0 @@
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
PID=`pidof -o %PPID /usr/sbin/lircmd`
case "$1" in
start)
stat_busy "Starting lircmd Daemon"
[ -z "$PID" ] && /usr/sbin/lircmd
if [ $? -gt 0 ]; then
stat_fail
else
add_daemon lircmd
stat_done
fi
;;
stop)
stat_busy "Stopping lircmd Daemon"
[ ! -z "$PID" ] && kill $PID &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon lircmd
stat_done
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0