summaryrefslogtreecommitdiff
path: root/libre/lirc-parabola-lts
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-08-24 21:50:16 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-08-24 21:50:16 -0300
commite85b967806ad7c90b63ed31606bc9750da1f7169 (patch)
tree8e042f055712acb08ed6a754811041edc6fadfc3 /libre/lirc-parabola-lts
parentf959d8120b9ae842b6a4a161848f876521d9c589 (diff)
parenta49e5509b6e64ec78477008374de2708c6789a05 (diff)
downloadabslibre-e85b967806ad7c90b63ed31606bc9750da1f7169.tar.gz
abslibre-e85b967806ad7c90b63ed31606bc9750da1f7169.tar.bz2
abslibre-e85b967806ad7c90b63ed31606bc9750da1f7169.zip
Merge branch 'master' of ssh://lukeshu.com:1863/srv/git/mirror/parabola/abslibre
Diffstat (limited to 'libre/lirc-parabola-lts')
-rw-r--r--libre/lirc-parabola-lts/PKGBUILD137
-rw-r--r--libre/lirc-parabola-lts/irexec.service11
-rw-r--r--libre/lirc-parabola-lts/kmod.install14
-rw-r--r--libre/lirc-parabola-lts/lirc-utils.install13
-rw-r--r--libre/lirc-parabola-lts/lirc.logrotate5
-rw-r--r--libre/lirc-parabola-lts/lirc.tmpfiles1
-rw-r--r--libre/lirc-parabola-lts/wpc8769l-build-fix.patch90
7 files changed, 0 insertions, 271 deletions
diff --git a/libre/lirc-parabola-lts/PKGBUILD b/libre/lirc-parabola-lts/PKGBUILD
deleted file mode 100644
index 15a503e3a..000000000
--- a/libre/lirc-parabola-lts/PKGBUILD
+++ /dev/null
@@ -1,137 +0,0 @@
-# $Id: PKGBUILD 220120 2014-08-16 22:32:11Z lfleischer $
-# Maintainer (Arch): Paul Mattal <paul@archlinux.org>
-# Maintainer: André Silva <emulatorman@parabola.nu>
-# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
-# Contributor: Márcio Silva <coadde@parabola.nu>
-
-# Kernel info
-_basekernel=3.14
-_kernelname=-lts
-
-# Source info
-_pkgname=lirc-parabola${_kernelname}
-# Only build lirc-utils once; for the stock kernel
-if [[ -n "${_kernelname}" ]]; then
- pkgname=$_pkgname
-else
- pkgbase=$_pkgname
- pkgname=("$_pkgname" lirc-parabola-utils)
-fi
-
-_pkgver=0.9.1a
-[[ $_pkgver =~ [a-z]$ ]] && pkgver="${_pkgver:0:-1}.${_pkgver: -1}" || pkgver="$_pkgver"
-
-url="http://www.lirc.org/"
-license=('GPL')
-source=("http://prdownloads.sourceforge.net/lirc/lirc-${_pkgver}.tar.bz2"
- "wpc8769l-build-fix.patch"
- lirc.logrotate
- irexec.service
- lirc.tmpfiles)
-md5sums=('1f1fac162ed309dd50f307e96a292957'
- '9ec33169b3407f74264062d7679dd269'
- '3deb02604b37811d41816e9b4385fcc3'
- '32df3b9bc859565d6acf5f0e5b747083'
- 'febf25c154a7d36f01159e84f26c2d9a')
-
-# Package info
-pkgrel=1
-epoch=1
-arch=('i686' 'x86_64' 'mips64el')
-options=('!makeflags' '!strip')
-makedepends=('help2man' 'alsa-lib' 'libx11' 'libftdi-compat' 'libirman' 'python2')
-
-# Generic (you shouldn't have to modify any of these variables)
-_toohigh=$(IFS=. read a b <<<$_basekernel; echo $a.$((b+1)))
-_extramodules=extramodules-${_basekernel}${_kernelname}
-makedepends+=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}"
- "linux-libre${_kernelname}-headers>=${_basekernel}" "linux-libre${_kernelname}-headers<${_toohigh}")
-
-prepare() {
- cd "${srcdir}/lirc-${_pkgver}"
-
- patch -Np1 -i "${srcdir}/wpc8769l-build-fix.patch"
-
- sed -i '/AC_PATH_XTRA/d' configure.ac
- sed -e 's/@X_CFLAGS@//g' \
- -e 's/@X_LIBS@//g' \
- -e 's/@X_PRE_LIBS@//g' \
- -e 's/@X_EXTRA_LIBS@//g' -i Makefile.am tools/Makefile.am
-
- libtoolize
- autoreconf
-}
-
-build() {
- cd "${srcdir}/lirc-${_pkgver}"
- _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
-
- PYTHON=python2 ./configure --enable-sandboxed --prefix=/usr \
- --with-driver=all --with-kerneldir="/usr/lib/modules/${_kernver}/build/" \
- --with-moduledir="/usr/lib/modules/${_kernver}/kernel/drivers/misc" \
- --sbindir=/usr/bin --with-transmitter
-
- # Remove drivers already in kernel
- sed -e "s:lirc_dev::" -e "s:lirc_bt829::" -e "s:lirc_igorplugusb::" \
- -e "s:lirc_imon::" -e "s:lirc_parallel::" -e "s:lirc_sasem::" \
- -e "s:lirc_serial::" -e "s:lirc_sir::" -e "s:lirc_ttusbir::" \
- -e "s:lirc_atiusb::" -e "s:lirc_i2c::" \
- -i Makefile drivers/Makefile drivers/*/Makefile tools/Makefile
- make
-}
-
-_package_lirc() {
- pkgdesc="Linux Infrared Remote Control kernel modules (built for the linux-libre${_kernelname} kernel package)"
- depends=('lirc-utils' "linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}")
- replaces=('lirc+pctv')
- [[ -z "$_kernelname" ]] || provides=("lirc-parabola=${pkgver}")
- install=kmod.install
-
- replaces+=("lirc${_kernelname}")
- conflicts+=("lirc${_kernelname}")
- provides+=("lirc${_kernelname}=${pkgver}")
-
- cd "${srcdir}/lirc-${_pkgver}/drivers"
-
- # Set the correct extramodules directory for install
- cp -f "${startdir}/${install}" "${startdir}/${install}.pkg"
- true && install=${install}.pkg
- sed -r "s/(_extramodules=).*/\1${_extramodules}/" -i "${startdir}/${install}"
-
- make DESTDIR="${pkgdir}" moduledir="/usr/lib/modules/${_extramodules}" install
- gzip -9 "${pkgdir}/usr/lib/modules/${_extramodules}"/*.ko
-}
-if [[ -n "$_kernelname" ]]; then
- eval "package() { _package_lirc; }"
-else
- eval "package_${_pkgname}() { _package_lirc; }"
-fi
-
-package_lirc-parabola-utils() {
- pkgdesc="Linux Infrared Remote Control utilities"
- depends=('alsa-lib' 'libx11' 'libftdi-compat' 'libirman')
- optdepends=('python2: pronto2lirc utility')
- options=('strip')
- backup=('etc/lirc/lirc_options.conf' 'etc/lirc/lircd.conf' 'etc/lirc/lircmd.conf')
-
- replaces=('lirc-utils')
- conflicts=('lirc-utils')
- provides=("lirc-utils=$pkgver")
- install=kmod.install
-
- cd "${srcdir}/lirc-${_pkgver}"
-
- make DESTDIR="${pkgdir}" install
-
- install -Dm644 "${srcdir}"/irexec.service "${pkgdir}"/usr/lib/systemd/system/irexec.service
- install -Dm644 "${srcdir}"/lirc.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/lirc.conf
-
- cp -rp remotes "${pkgdir}/usr/share/lirc"
- chmod -R go-w "${pkgdir}/usr/share/lirc/"
-
- # install the logrotate config
- install -Dm644 "${srcdir}/lirc.logrotate" "${pkgdir}/etc/logrotate.d/lirc"
-
- # remove built modules
- rm -r "${pkgdir}/usr/lib/modules"
-}
diff --git a/libre/lirc-parabola-lts/irexec.service b/libre/lirc-parabola-lts/irexec.service
deleted file mode 100644
index dffbbf5e0..000000000
--- a/libre/lirc-parabola-lts/irexec.service
+++ /dev/null
@@ -1,11 +0,0 @@
-[Unit]
-Description=LIRC command handler
-After=network.target
-
-[Service]
-Type=forking
-ExecStart=/usr/bin/irexec --daemon
-
-[Install]
-WantedBy=multi-user.target
-Wants=lircd.service
diff --git a/libre/lirc-parabola-lts/kmod.install b/libre/lirc-parabola-lts/kmod.install
deleted file mode 100644
index d4bd8cb34..000000000
--- a/libre/lirc-parabola-lts/kmod.install
+++ /dev/null
@@ -1,14 +0,0 @@
-post_install() {
- _extramodules=THIS_IS_AUTOMATICALLY_SET_BY_PKGBUILD
- depmod $(cat /usr/lib/modules/${_extramodules}/version)
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- post_install
-}
-
-# vim: ts=2 sw=2 et:
diff --git a/libre/lirc-parabola-lts/lirc-utils.install b/libre/lirc-parabola-lts/lirc-utils.install
deleted file mode 100644
index f7faa07eb..000000000
--- a/libre/lirc-parabola-lts/lirc-utils.install
+++ /dev/null
@@ -1,13 +0,0 @@
-post_install() {
- systemd-tmpfiles --create lirc.conf
-}
-
-post_upgrade() {
- post_install
-
- if [[ "$(vercmp $2 1:0.9.1-1)" -lt 0 ]]; then
- echo ':: lirc.service and lircm.service have been replaced'
- echo ' by the upstream unit files lircd.service and'
- echo ' lircmd.service.'
- fi
-}
diff --git a/libre/lirc-parabola-lts/lirc.logrotate b/libre/lirc-parabola-lts/lirc.logrotate
deleted file mode 100644
index 623c4f328..000000000
--- a/libre/lirc-parabola-lts/lirc.logrotate
+++ /dev/null
@@ -1,5 +0,0 @@
-/var/log/lircd {
- missingok
- notifempty
- delaycompress
-}
diff --git a/libre/lirc-parabola-lts/lirc.tmpfiles b/libre/lirc-parabola-lts/lirc.tmpfiles
deleted file mode 100644
index 0b80e2e47..000000000
--- a/libre/lirc-parabola-lts/lirc.tmpfiles
+++ /dev/null
@@ -1 +0,0 @@
-d /run/lirc 0755 root root -
diff --git a/libre/lirc-parabola-lts/wpc8769l-build-fix.patch b/libre/lirc-parabola-lts/wpc8769l-build-fix.patch
deleted file mode 100644
index 5e25693ab..000000000
--- a/libre/lirc-parabola-lts/wpc8769l-build-fix.patch
+++ /dev/null
@@ -1,90 +0,0 @@
-diff --git a/drivers/lirc_wpc8769l/lirc_wpc8769l.c b/drivers/lirc_wpc8769l/lirc_wpc8769l.c
-index 790efa2..4248fe9 100644
---- a/drivers/lirc_wpc8769l/lirc_wpc8769l.c
-+++ b/drivers/lirc_wpc8769l/lirc_wpc8769l.c
-@@ -51,17 +51,13 @@
- #include <linux/irq.h>
-
- #include <linux/acpi.h>
-+#include <linux/types.h>
-
- #include <linux/platform_device.h>
-+#include <asm-generic/bitops/find.h>
-
--#include "drivers/kcompat.h"
--#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 35)
--#include <media/lirc.h>
--#include <media/lirc_dev.h>
--#else
--#include "drivers/lirc.h"
--#include "drivers/lirc_dev/lirc_dev.h"
--#endif
-+#include "media/lirc_dev.h"
-+#include "media/lirc.h"
-
- #include "lirc_wpc8769l.h"
-
-@@ -105,11 +101,11 @@ static unsigned int baseport2;
- static unsigned int irq;
-
- /* Debugging flag. */
--static int debug;
-+static bool debug;
-
- /* If true, we skip ACPI autodetection and use the parameter-supplied I/O and
- * IRQ. */
--static int skip_probe;
-+static bool skip_probe;
-
- /* Whether the device is open or not. */
- static int lirc_wpc8769l_is_open;
-@@ -360,14 +356,14 @@ static irqreturn_t irq_handler(int irqno, void *blah, struct pt_regs *regs)
- size = count << 3;
-
- ldata = (unsigned long *) data_buf;
-- next_one = generic_find_next_le_bit(ldata, size, 0);
-+ next_one = find_next_bit(ldata, size, 0);
-
- if (next_one > 0)
- put_pulse_bit(next_one
- * WPC8769L_USECS_PER_BIT);
-
- while (next_one < size) {
-- next_zero = generic_find_next_zero_le_bit(ldata,
-+ next_zero = find_next_zero_bit(ldata,
- size, next_one + 1);
-
- put_space_bit(
-@@ -375,7 +371,7 @@ static irqreturn_t irq_handler(int irqno, void *blah, struct pt_regs *regs)
- * WPC8769L_USECS_PER_BIT);
-
- if (next_zero < size) {
-- next_one = generic_find_next_le_bit(ldata,
-+ next_one = find_next_bit(ldata,
- size, next_zero + 1);
-
- put_pulse_bit(
-@@ -922,12 +918,12 @@ static int wpc8769l_acpi_detect(void)
- #ifdef MODULE
- static struct platform_device *lirc_wpc8769l_platform_dev;
-
--static int __devinit lirc_wpc8769l_probe(struct platform_device *dev)
-+static int lirc_wpc8769l_probe(struct platform_device *dev)
- {
- return 0;
- }
-
--static int __devexit lirc_wpc8769l_remove(struct platform_device *dev)
-+static int lirc_wpc8769l_remove(struct platform_device *dev)
- {
- return 0;
- }
-@@ -955,7 +951,7 @@ static int lirc_wpc8769l_resume(struct platform_device *dev)
-
- static struct platform_driver lirc_wpc8769l_platform_driver = {
- .probe = lirc_wpc8769l_probe,
-- .remove = __devexit_p(lirc_wpc8769l_remove),
-+ .remove = lirc_wpc8769l_remove,
- .suspend = lirc_wpc8769l_suspend,
- .resume = lirc_wpc8769l_resume,
- .driver = {