From a440b2cc73827e1c46a817f60532f11392273753 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Sun, 24 Aug 2014 18:08:35 -0300 Subject: linux-libre kernels and dependencies: fix variable in archpkgver --- kernels/linux-libre-lts-knock/PKGBUILD | 2 +- kernels/linux-libre-pae/PKGBUILD | 2 +- kernels/linux-libre-rt/PKGBUILD | 2 +- kernels/linux-libre-xen/PKGBUILD | 2 +- libre/linux-libre-manpages/PKGBUILD | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/kernels/linux-libre-lts-knock/PKGBUILD b/kernels/linux-libre-lts-knock/PKGBUILD index 89228825f..497090999 100644 --- a/kernels/linux-libre-lts-knock/PKGBUILD +++ b/kernels/linux-libre-lts-knock/PKGBUILD @@ -15,7 +15,7 @@ _knockpatchver=3.10 _replaces=('kernel26%' 'linux%') # '%' gets replaced with _kernelname _srcname=linux-${_pkgbasever%-*} -_archpkgver=${pkgver%-*} +_archpkgver=${_pkgver%-*} pkgver=${_pkgver//-/.} pkgrel=1 arch=('i686' 'x86_64' 'mips64el') diff --git a/kernels/linux-libre-pae/PKGBUILD b/kernels/linux-libre-pae/PKGBUILD index f73b1afe4..4f6344e7e 100644 --- a/kernels/linux-libre-pae/PKGBUILD +++ b/kernels/linux-libre-pae/PKGBUILD @@ -14,7 +14,7 @@ _pkgver=3.16.1-gnu _replaces=('kernel26%' 'linux%') # '%' gets replaced with _kernelname _srcname=linux-${_pkgbasever%-*} -_archpkgver=${pkgver%-*} +_archpkgver=${_pkgver%-*} pkgver=${_pkgver//-/.} pkgrel=1 arch=('i686') diff --git a/kernels/linux-libre-rt/PKGBUILD b/kernels/linux-libre-rt/PKGBUILD index d8f6b4b31..11070f889 100644 --- a/kernels/linux-libre-rt/PKGBUILD +++ b/kernels/linux-libre-rt/PKGBUILD @@ -19,7 +19,7 @@ _rtpatchver=rt9 _replaces=('kernel26%' 'linux%') # '%' gets replaced with _kernelname _srcname=linux-${_pkgbasever%-*} -_archpkgver=${pkgver%-*}_${_rtpatchver} +_archpkgver=${_pkgver%-*}_${_rtpatchver} pkgver=${_pkgver//-/.}_${_rtpatchver} pkgrel=1 arch=('i686' 'x86_64' 'mips64el') diff --git a/kernels/linux-libre-xen/PKGBUILD b/kernels/linux-libre-xen/PKGBUILD index ac2e18378..84617de44 100644 --- a/kernels/linux-libre-xen/PKGBUILD +++ b/kernels/linux-libre-xen/PKGBUILD @@ -14,7 +14,7 @@ _pkgver=3.16.1-gnu _replaces=('kernel26%' 'linux%') # '%' gets replaced with _kernelname _srcname=linux-${_pkgbasever%-*} -_archpkgver=${pkgver%-*} +_archpkgver=${_pkgver%-*} pkgver=${_pkgver//-/.} pkgrel=1 arch=('i686') diff --git a/libre/linux-libre-manpages/PKGBUILD b/libre/linux-libre-manpages/PKGBUILD index 3abe280fd..f11dd9acc 100644 --- a/libre/linux-libre-manpages/PKGBUILD +++ b/libre/linux-libre-manpages/PKGBUILD @@ -8,7 +8,7 @@ pkgname=linux-libre-manpages _pkgver=3.14-gnu _srcname=linux-${_pkgver%-*} -_archpkgver=${pkgver%-*} +_archpkgver=${_pkgver%-*} pkgver=${_pkgver//-/.} pkgrel=1.1 pkgdesc="Kernel hackers manual - Section 9 manpages that comes with the Linux-libre kernel" -- cgit v1.2.3 From e8319462e19058a8d28bc77f03b6379af7cb9e08 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Sun, 24 Aug 2014 19:40:36 -0300 Subject: {{bbswitch,lirc,vhba-module}-parabola-{lts,grsec},{acpi_call,tp_smapi}-parabola-grsec}: move to [pcr] because those packages aren't official on Arch yet --- libre/acpi_call-parabola-grsec/PKGBUILD | 66 ---------- libre/acpi_call-parabola-grsec/kmod.install | 14 --- libre/bbswitch-parabola-grsec/PKGBUILD | 59 --------- libre/bbswitch-parabola-grsec/kmod.install | 14 --- libre/bbswitch-parabola-lts/PKGBUILD | 59 --------- libre/bbswitch-parabola-lts/kmod.install | 14 --- libre/lirc-parabola-grsec/PKGBUILD | 137 --------------------- libre/lirc-parabola-grsec/irexec.service | 11 -- libre/lirc-parabola-grsec/kmod.install | 14 --- libre/lirc-parabola-grsec/lirc-utils.install | 13 -- libre/lirc-parabola-grsec/lirc.logrotate | 5 - libre/lirc-parabola-grsec/lirc.tmpfiles | 1 - libre/lirc-parabola-grsec/wpc8769l-build-fix.patch | 90 -------------- libre/lirc-parabola-lts/PKGBUILD | 137 --------------------- libre/lirc-parabola-lts/irexec.service | 11 -- libre/lirc-parabola-lts/kmod.install | 14 --- libre/lirc-parabola-lts/lirc-utils.install | 13 -- libre/lirc-parabola-lts/lirc.logrotate | 5 - libre/lirc-parabola-lts/lirc.tmpfiles | 1 - libre/lirc-parabola-lts/wpc8769l-build-fix.patch | 90 -------------- libre/tp_smapi-parabola-grsec/PKGBUILD | 81 ------------ libre/tp_smapi-parabola-grsec/kmod.install | 14 --- libre/vhba-module-parabola-grsec/60-vhba.rules | 1 - libre/vhba-module-parabola-grsec/PKGBUILD | 62 ---------- .../vhba-module-parabola-grsec/vhba-module.install | 20 --- libre/vhba-module-parabola-lts/60-vhba.rules | 1 - libre/vhba-module-parabola-lts/PKGBUILD | 62 ---------- libre/vhba-module-parabola-lts/vhba-module.install | 20 --- pcr/acpi_call-parabola-grsec/PKGBUILD | 66 ++++++++++ pcr/acpi_call-parabola-grsec/kmod.install | 14 +++ pcr/bbswitch-parabola-grsec/PKGBUILD | 59 +++++++++ pcr/bbswitch-parabola-grsec/kmod.install | 14 +++ pcr/bbswitch-parabola-lts/PKGBUILD | 59 +++++++++ pcr/bbswitch-parabola-lts/kmod.install | 14 +++ pcr/lirc-parabola-grsec/PKGBUILD | 137 +++++++++++++++++++++ pcr/lirc-parabola-grsec/irexec.service | 11 ++ pcr/lirc-parabola-grsec/kmod.install | 14 +++ pcr/lirc-parabola-grsec/lirc-utils.install | 13 ++ pcr/lirc-parabola-grsec/lirc.logrotate | 5 + pcr/lirc-parabola-grsec/lirc.tmpfiles | 1 + pcr/lirc-parabola-grsec/wpc8769l-build-fix.patch | 90 ++++++++++++++ pcr/lirc-parabola-lts/PKGBUILD | 137 +++++++++++++++++++++ pcr/lirc-parabola-lts/irexec.service | 11 ++ pcr/lirc-parabola-lts/kmod.install | 14 +++ pcr/lirc-parabola-lts/lirc-utils.install | 13 ++ pcr/lirc-parabola-lts/lirc.logrotate | 5 + pcr/lirc-parabola-lts/lirc.tmpfiles | 1 + pcr/lirc-parabola-lts/wpc8769l-build-fix.patch | 90 ++++++++++++++ pcr/tp_smapi-parabola-grsec/PKGBUILD | 81 ++++++++++++ pcr/tp_smapi-parabola-grsec/kmod.install | 14 +++ pcr/vhba-module-parabola-grsec/60-vhba.rules | 1 + pcr/vhba-module-parabola-grsec/PKGBUILD | 62 ++++++++++ pcr/vhba-module-parabola-grsec/vhba-module.install | 20 +++ pcr/vhba-module-parabola-lts/60-vhba.rules | 1 + pcr/vhba-module-parabola-lts/PKGBUILD | 62 ++++++++++ pcr/vhba-module-parabola-lts/vhba-module.install | 20 +++ 56 files changed, 1029 insertions(+), 1029 deletions(-) delete mode 100644 libre/acpi_call-parabola-grsec/PKGBUILD delete mode 100644 libre/acpi_call-parabola-grsec/kmod.install delete mode 100644 libre/bbswitch-parabola-grsec/PKGBUILD delete mode 100644 libre/bbswitch-parabola-grsec/kmod.install delete mode 100644 libre/bbswitch-parabola-lts/PKGBUILD delete mode 100644 libre/bbswitch-parabola-lts/kmod.install delete mode 100644 libre/lirc-parabola-grsec/PKGBUILD delete mode 100644 libre/lirc-parabola-grsec/irexec.service delete mode 100644 libre/lirc-parabola-grsec/kmod.install delete mode 100644 libre/lirc-parabola-grsec/lirc-utils.install delete mode 100644 libre/lirc-parabola-grsec/lirc.logrotate delete mode 100644 libre/lirc-parabola-grsec/lirc.tmpfiles delete mode 100644 libre/lirc-parabola-grsec/wpc8769l-build-fix.patch delete mode 100644 libre/lirc-parabola-lts/PKGBUILD delete mode 100644 libre/lirc-parabola-lts/irexec.service delete mode 100644 libre/lirc-parabola-lts/kmod.install delete mode 100644 libre/lirc-parabola-lts/lirc-utils.install delete mode 100644 libre/lirc-parabola-lts/lirc.logrotate delete mode 100644 libre/lirc-parabola-lts/lirc.tmpfiles delete mode 100644 libre/lirc-parabola-lts/wpc8769l-build-fix.patch delete mode 100644 libre/tp_smapi-parabola-grsec/PKGBUILD delete mode 100644 libre/tp_smapi-parabola-grsec/kmod.install delete mode 100644 libre/vhba-module-parabola-grsec/60-vhba.rules delete mode 100644 libre/vhba-module-parabola-grsec/PKGBUILD delete mode 100644 libre/vhba-module-parabola-grsec/vhba-module.install delete mode 100644 libre/vhba-module-parabola-lts/60-vhba.rules delete mode 100644 libre/vhba-module-parabola-lts/PKGBUILD delete mode 100644 libre/vhba-module-parabola-lts/vhba-module.install create mode 100644 pcr/acpi_call-parabola-grsec/PKGBUILD create mode 100644 pcr/acpi_call-parabola-grsec/kmod.install create mode 100644 pcr/bbswitch-parabola-grsec/PKGBUILD create mode 100644 pcr/bbswitch-parabola-grsec/kmod.install create mode 100644 pcr/bbswitch-parabola-lts/PKGBUILD create mode 100644 pcr/bbswitch-parabola-lts/kmod.install create mode 100644 pcr/lirc-parabola-grsec/PKGBUILD create mode 100644 pcr/lirc-parabola-grsec/irexec.service create mode 100644 pcr/lirc-parabola-grsec/kmod.install create mode 100644 pcr/lirc-parabola-grsec/lirc-utils.install create mode 100644 pcr/lirc-parabola-grsec/lirc.logrotate create mode 100644 pcr/lirc-parabola-grsec/lirc.tmpfiles create mode 100644 pcr/lirc-parabola-grsec/wpc8769l-build-fix.patch create mode 100644 pcr/lirc-parabola-lts/PKGBUILD create mode 100644 pcr/lirc-parabola-lts/irexec.service create mode 100644 pcr/lirc-parabola-lts/kmod.install create mode 100644 pcr/lirc-parabola-lts/lirc-utils.install create mode 100644 pcr/lirc-parabola-lts/lirc.logrotate create mode 100644 pcr/lirc-parabola-lts/lirc.tmpfiles create mode 100644 pcr/lirc-parabola-lts/wpc8769l-build-fix.patch create mode 100644 pcr/tp_smapi-parabola-grsec/PKGBUILD create mode 100644 pcr/tp_smapi-parabola-grsec/kmod.install create mode 100644 pcr/vhba-module-parabola-grsec/60-vhba.rules create mode 100644 pcr/vhba-module-parabola-grsec/PKGBUILD create mode 100644 pcr/vhba-module-parabola-grsec/vhba-module.install create mode 100644 pcr/vhba-module-parabola-lts/60-vhba.rules create mode 100644 pcr/vhba-module-parabola-lts/PKGBUILD create mode 100644 pcr/vhba-module-parabola-lts/vhba-module.install diff --git a/libre/acpi_call-parabola-grsec/PKGBUILD b/libre/acpi_call-parabola-grsec/PKGBUILD deleted file mode 100644 index 05bf0c697..000000000 --- a/libre/acpi_call-parabola-grsec/PKGBUILD +++ /dev/null @@ -1,66 +0,0 @@ -# $Id: PKGBUILD 116819 2014-08-04 07:10:28Z tpowa $ -# Maintainer (Arch): Maxime Gauduin -# Contributor (Arch): mortzu -# Contributor (Arch): fnord0 -# Maintainer: André Silva -# Contributor: Luke Shumaker -# Contributor: Márcio Silva - -# Kernel info -_basekernel=3.15 -_kernelname=-grsec - -# Source info -_pkgname=acpi_call -pkgver=1.1.0 -pkgdesc="A linux kernel module that enables calls to ACPI methods through /proc/acpi/call (built for the linux-libre${_kernelname} kernel package)" -url="http://github.com/mkottman/${_pkgname}" -license=('GPL') -source=("${url}/archive/v${pkgver}.tar.gz") -sha256sums=('d0d14b42944282724fca76f57d598eed794ef97448f387d1c489d85ad813f2f0') - -# Package info -pkgrel=1 -arch=('i686' 'x86_64' 'mips64el') -install='kmod.install' -_replaces=("${_pkgname}" "${_pkgname}-libre") -_provides=("${_pkgname}") - -# Generic (you shouldn't have to modify any of these variables) -pkgname=${_pkgname}-parabola${_kernelname} -_toohigh=$(IFS=. read a b <<<$_basekernel; echo $a.$((b+1))) -_extramodules=extramodules-${_basekernel}${_kernelname} -depends=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}") -makedepends=("linux-libre${_kernelname}-headers>=${_basekernel}" "linux-libre${_kernelname}-headers<${_toohigh}") -replaces=( "${_replaces[@]/%/${_kernelname}}") -conflicts=("${_replaces[@]/%/${_kernelname}}") -provides=( "${_provides[@]/%/${_kernelname}=${pkgver}}") -if [[ -n "${_kernelname}" ]]; then - provides+=("${_pkgname}-parabola=${pkgver}") # pkgname without _kernelname -fi - -build() { - cd "${srcdir}/${_pkgname}-${pkgver}" - - _kernver="$(cat /usr/lib/modules/${_extramodules}/version)" - - make KVERSION="${_kernver}" -} - -package() { - cd "${srcdir}/${_pkgname}-${pkgver}" - - # 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}" - - # Actually install - install -dm 755 "${pkgdir}"/usr/lib/{modules/${_extramodules},modules-load.d} - install -m 644 ${_pkgname}.ko "${pkgdir}"/usr/lib/modules/${_extramodules} - gzip "${pkgdir}"/usr/lib/modules/${_extramodules}/${_pkgname}.ko - echo ${_pkgname} > "${pkgdir}"/usr/lib/modules-load.d/${pkgname}.conf - - install -dm 755 "${pkgdir}"/usr/share/${pkgname} - cp -dr --no-preserve='ownership' {examples,support} "${pkgdir}"/usr/share/${pkgname}/ -} diff --git a/libre/acpi_call-parabola-grsec/kmod.install b/libre/acpi_call-parabola-grsec/kmod.install deleted file mode 100644 index d4bd8cb34..000000000 --- a/libre/acpi_call-parabola-grsec/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/bbswitch-parabola-grsec/PKGBUILD b/libre/bbswitch-parabola-grsec/PKGBUILD deleted file mode 100644 index 393ef3d73..000000000 --- a/libre/bbswitch-parabola-grsec/PKGBUILD +++ /dev/null @@ -1,59 +0,0 @@ -# $Id: PKGBUILD 116821 2014-08-04 07:12:07Z tpowa $ -# Maintainer (Arch): Sven-Hendrik Haase -# Contributor (Arch): M0Rf30 -# Contributor (Arch): Samsagax -# Maintainer: André Silva -# Contributor: Luke Shumaker -# Contributor: Márcio Silva - -# Kernel info -_basekernel=3.15 -_kernelname=-grsec - -# Source info -_pkgname=bbswitch -pkgver=0.8 -pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus laptops (built for the linux-libre${_kernelname} kernel package)" -url="http://github.com/Bumblebee-Project/bbswitch" -license=('GPL') -source=("https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz") -md5sums=('5b116b31ace3604ddf9d1fc1f4bc5807') - -# Package info -pkgrel=1 -arch=('i686' 'x86_64' 'mips64el') -install='kmod.install' - -# Generic (you shouldn't have to modify any of these variables) -pkgname=${_pkgname}-parabola${_kernelname} -_toohigh=$(IFS=. read a b <<<$_basekernel; echo $a.$((b+1))) -_extramodules=extramodules-${_basekernel}${_kernelname} -depends=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}") -makedepends=("linux-libre${_kernelname}-headers>=${_basekernel}" "linux-libre${_kernelname}-headers<${_toohigh}") -replaces=("${_pkgname}${_kernelname}" "${_pkgname}-libre${_kernelname}") # for Arch-compatibility -conflicts=("${_pkgname}${_kernelname}" "${_pkgname}-libre${_kernelname}") # for Arch-compatibility -provides=("${_pkgname}${_kernelname}=${pkgver}") # for Arch-compatibility -if [[ -n "${_kernelname}" ]]; then - provides+=("${_pkgname}-parabola=${pkgver}") # pkgname without _kernelname -fi - -build() { - cd "${srcdir}/${_pkgname}-${pkgver}" - - _kernver="$(cat /usr/lib/modules/${_extramodules}/version)" - - make KDIR=/lib/modules/${_kernver}/build -} - -package() { - cd "${srcdir}/${_pkgname}-${pkgver}" - - # 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}" - - # Actually install - install -Dm644 bbswitch.ko "${pkgdir}"/usr/lib/modules/${_extramodules}/bbswitch.ko - gzip "${pkgdir}/usr/lib/modules/${_extramodules}/bbswitch.ko" -} diff --git a/libre/bbswitch-parabola-grsec/kmod.install b/libre/bbswitch-parabola-grsec/kmod.install deleted file mode 100644 index d4bd8cb34..000000000 --- a/libre/bbswitch-parabola-grsec/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/bbswitch-parabola-lts/PKGBUILD b/libre/bbswitch-parabola-lts/PKGBUILD deleted file mode 100644 index 6182e10c7..000000000 --- a/libre/bbswitch-parabola-lts/PKGBUILD +++ /dev/null @@ -1,59 +0,0 @@ -# $Id: PKGBUILD 116821 2014-08-04 07:12:07Z tpowa $ -# Maintainer (Arch): Sven-Hendrik Haase -# Contributor (Arch): M0Rf30 -# Contributor (Arch): Samsagax -# Maintainer: André Silva -# Contributor: Luke Shumaker -# Contributor: Márcio Silva - -# Kernel info -_basekernel=3.14 -_kernelname=-lts - -# Source info -_pkgname=bbswitch -pkgver=0.8 -pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus laptops (built for the linux-libre${_kernelname} kernel package)" -url="http://github.com/Bumblebee-Project/bbswitch" -license=('GPL') -source=("https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz") -md5sums=('5b116b31ace3604ddf9d1fc1f4bc5807') - -# Package info -pkgrel=1 -arch=('i686' 'x86_64' 'mips64el') -install='kmod.install' - -# Generic (you shouldn't have to modify any of these variables) -pkgname=${_pkgname}-parabola${_kernelname} -_toohigh=$(IFS=. read a b <<<$_basekernel; echo $a.$((b+1))) -_extramodules=extramodules-${_basekernel}${_kernelname} -depends=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}") -makedepends=("linux-libre${_kernelname}-headers>=${_basekernel}" "linux-libre${_kernelname}-headers<${_toohigh}") -replaces=("${_pkgname}${_kernelname}" "${_pkgname}-libre${_kernelname}") # for Arch-compatibility -conflicts=("${_pkgname}${_kernelname}" "${_pkgname}-libre${_kernelname}") # for Arch-compatibility -provides=("${_pkgname}${_kernelname}=${pkgver}") # for Arch-compatibility -if [[ -n "${_kernelname}" ]]; then - provides+=("${_pkgname}-parabola=${pkgver}") # pkgname without _kernelname -fi - -build() { - cd "${srcdir}/${_pkgname}-${pkgver}" - - _kernver="$(cat /usr/lib/modules/${_extramodules}/version)" - - make KDIR=/lib/modules/${_kernver}/build -} - -package() { - cd "${srcdir}/${_pkgname}-${pkgver}" - - # 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}" - - # Actually install - install -Dm644 bbswitch.ko "${pkgdir}"/usr/lib/modules/${_extramodules}/bbswitch.ko - gzip "${pkgdir}/usr/lib/modules/${_extramodules}/bbswitch.ko" -} diff --git a/libre/bbswitch-parabola-lts/kmod.install b/libre/bbswitch-parabola-lts/kmod.install deleted file mode 100644 index d4bd8cb34..000000000 --- a/libre/bbswitch-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-grsec/PKGBUILD b/libre/lirc-parabola-grsec/PKGBUILD deleted file mode 100644 index b0e04451f..000000000 --- a/libre/lirc-parabola-grsec/PKGBUILD +++ /dev/null @@ -1,137 +0,0 @@ -# $Id: PKGBUILD 220120 2014-08-16 22:32:11Z lfleischer $ -# Maintainer (Arch): Paul Mattal -# Maintainer: André Silva -# Contributor: Luke Shumaker -# Contributor: Márcio Silva - -# Kernel info -_basekernel=3.15 -_kernelname=-grsec - -# 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-grsec/irexec.service b/libre/lirc-parabola-grsec/irexec.service deleted file mode 100644 index dffbbf5e0..000000000 --- a/libre/lirc-parabola-grsec/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-grsec/kmod.install b/libre/lirc-parabola-grsec/kmod.install deleted file mode 100644 index d4bd8cb34..000000000 --- a/libre/lirc-parabola-grsec/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-grsec/lirc-utils.install b/libre/lirc-parabola-grsec/lirc-utils.install deleted file mode 100644 index f7faa07eb..000000000 --- a/libre/lirc-parabola-grsec/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-grsec/lirc.logrotate b/libre/lirc-parabola-grsec/lirc.logrotate deleted file mode 100644 index 623c4f328..000000000 --- a/libre/lirc-parabola-grsec/lirc.logrotate +++ /dev/null @@ -1,5 +0,0 @@ -/var/log/lircd { - missingok - notifempty - delaycompress -} diff --git a/libre/lirc-parabola-grsec/lirc.tmpfiles b/libre/lirc-parabola-grsec/lirc.tmpfiles deleted file mode 100644 index 0b80e2e47..000000000 --- a/libre/lirc-parabola-grsec/lirc.tmpfiles +++ /dev/null @@ -1 +0,0 @@ -d /run/lirc 0755 root root - diff --git a/libre/lirc-parabola-grsec/wpc8769l-build-fix.patch b/libre/lirc-parabola-grsec/wpc8769l-build-fix.patch deleted file mode 100644 index 5e25693ab..000000000 --- a/libre/lirc-parabola-grsec/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 - - #include -+#include - - #include -+#include - --#include "drivers/kcompat.h" --#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 35) --#include --#include --#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 = { 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 -# Maintainer: André Silva -# Contributor: Luke Shumaker -# Contributor: Márcio Silva - -# 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 - - #include -+#include - - #include -+#include - --#include "drivers/kcompat.h" --#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 35) --#include --#include --#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 = { diff --git a/libre/tp_smapi-parabola-grsec/PKGBUILD b/libre/tp_smapi-parabola-grsec/PKGBUILD deleted file mode 100644 index 79dc1f2ea..000000000 --- a/libre/tp_smapi-parabola-grsec/PKGBUILD +++ /dev/null @@ -1,81 +0,0 @@ -# $Id: PKGBUILD 116831 2014-08-04 07:32:08Z tpowa $ -# Maintainer (Arch): Lukas Fleischer -# Contributor (Arch): xduugu -# Contributor (Arch): nh2 -# Contributor (Arch): Steven Davidovitz -# Contributor (Arch): Nick B -# Contributor (Arch): Christof Musik -# Contributor (Arch): Stefan Rupp -# Contributor (Arch): Ignas Anikevicius -# Maintainer: André Silva -# Contributor: Luke Shumaker -# Contributor: Márcio Silva - -# Kernel info -_basekernel=3.15 -_kernelname=-grsec - -# Source info -_pkgname=tp_smapi -pkgver=0.41 -pkgdesc="Modules for ThinkPad's SMAPI functionality (built for the linux-libre${_kernelname} kernel package)" -url='https://github.com/evgeni/tp_smapi' -license=('GPL') -source=("https://github.com/downloads/evgeni/${_pkgname}/${_pkgname}-${pkgver}.tar.gz") -md5sums=('63c683415c764568f6bf17c7eabe4752') - -# Package info -pkgrel=1 -arch=('i686' 'x86_64' 'mips64el') -install='kmod.install' - -# Generic (you shouldn't have to modify any of these variables) -pkgname=${_pkgname}-parabola${_kernelname} -_toohigh=$(IFS=. read a b <<<$_basekernel; echo $a.$((b+1))) -_extramodules=extramodules-${_basekernel}${_kernelname} -depends=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}") -makedepends=("linux-libre${_kernelname}-headers>=${_basekernel}" "linux-libre${_kernelname}-headers<${_toohigh}") -replaces=("${_pkgname}${_kernelname}" "${_pkgname}-libre${_kernelname}") # for Arch-compatibility -conflicts=("${_pkgname}${_kernelname}" "${_pkgname}-libre${_kernelname}") # for Arch-compatibility -provides=("${_pkgname}${_kernelname}=${pkgver}") # for Arch-compatibility -if [[ -n "${_kernelname}" ]]; then - provides+=("${_pkgname}-parabola=${pkgver}") # pkgname without _kernelname -fi - -build() { - cd "${srcdir}/${_pkgname}-${pkgver}" - - _kernver="$(cat /usr/lib/modules/${_extramodules}/version)" - - sed -ri -e "s/^(KVER\s*:=).*$/\1 ${_kernver}/" \ - -e "s#^(KBASE\s*:=).*\$#\1 /usr/lib/modules/${_kernver}#" Makefile - - make HDAPS=1 -} - -package() { - cd "${srcdir}/${_pkgname}-${pkgver}" - - _kernver="$(cat /usr/lib/modules/${_extramodules}/version)" - - # 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}" - - # Actually install - make -C "/usr/lib/modules/${_kernver}/build" \ - INSTALL_MOD_PATH="${pkgdir}/usr" \ - M="${srcdir}/${_pkgname}-${pkgver}" modules_install - - cd "${pkgdir}/usr/lib/modules" - mv "${_kernver}/extra" "${_extramodules}" - rmdir "${_kernver}" - - # compress kernel modules - find "${pkgdir}" -name "*.ko" -exec gzip -9 {} + - - # load module on startup - install -dm 755 "${pkgdir}/usr/lib/modules-load.d" - echo ${_pkgname} > "${pkgdir}/usr/lib/modules-load.d/${pkgname}.conf" -} diff --git a/libre/tp_smapi-parabola-grsec/kmod.install b/libre/tp_smapi-parabola-grsec/kmod.install deleted file mode 100644 index d4bd8cb34..000000000 --- a/libre/tp_smapi-parabola-grsec/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/vhba-module-parabola-grsec/60-vhba.rules b/libre/vhba-module-parabola-grsec/60-vhba.rules deleted file mode 100644 index 39ae3a4ec..000000000 --- a/libre/vhba-module-parabola-grsec/60-vhba.rules +++ /dev/null @@ -1 +0,0 @@ -ACTION=="add", KERNEL=="vhba_ctl", NAME="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdemu", TAG+="uaccess" diff --git a/libre/vhba-module-parabola-grsec/PKGBUILD b/libre/vhba-module-parabola-grsec/PKGBUILD deleted file mode 100644 index 468d7ab0e..000000000 --- a/libre/vhba-module-parabola-grsec/PKGBUILD +++ /dev/null @@ -1,62 +0,0 @@ -# $Id: PKGBUILD 116828 2014-08-04 07:19:43Z tpowa $ -# Maintainer (Arch): Ray Rashif -# Contributor (Arch): Mateusz Herych -# Contributor (Arch): Charles Lindsay -# Maintainer: André Silva -# Contributor: Luke Shumaker -# Contributor: Márcio Silva - -# Kernel info -_basekernel=3.15 -_kernelname=-grsec - -# Source info -_pkgname=vhba-module -pkgver=20140629 -pkgdesc="Kernel module that emulates SCSI devices (built for the linux-libre${_kernelname} kernel package)" -url="http://cdemu.sourceforge.net/" -license=('GPL') -source=("http://downloads.sourceforge.net/cdemu/$_pkgname-$pkgver.tar.bz2" - '60-vhba.rules') -md5sums=('6b307a80df9c163768cc7ecb3ccebb71' - '4dc37dc348b5a2c83585829bde790dcc') - -# Package info -pkgrel=1 -arch=('i686' 'x86_64' 'mips64el') -options=(!makeflags) -install=$_pkgname.install - -# Generic (you shouldn't have to modify any of these variables) -pkgname=${_pkgname}-parabola${_kernelname} -_toohigh=$(IFS=. read a b <<<$_basekernel; echo $a.$((b+1))) -_extramodules=extramodules-${_basekernel}${_kernelname} -depends=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}") -makedepends=("linux-libre${_kernelname}-headers>=${_basekernel}" "linux-libre${_kernelname}-headers<${_toohigh}") -replaces=("${_pkgname}${_kernelname}" "${_pkgname}-libre${_kernelname}") # for Arch-compatibility -conflicts=("${_pkgname}${_kernelname}" "${_pkgname}-libre${_kernelname}") # for Arch-compatibility -provides=("${_pkgname}${_kernelname}=${pkgver}") # for Arch-compatibility -if [[ -n "${_kernelname}" ]]; then - provides+=("${_pkgname}-parabola=${pkgver}") # pkgname without _kernelname -fi - -build() { - cd "${srcdir}/${_pkgname}-${pkgver}" - - _kernver="$(cat /usr/lib/modules/${_extramodules}/version)" - - make KDIR=/usr/lib/modules/$_kernver/build -} - -package() { - cd "${srcdir}/${_pkgname}-${pkgver}" - - # 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}" - - # Actually install - install -Dm644 vhba.ko "$pkgdir/usr/lib/modules/$_extramodules/vhba.ko" - install -Dm644 ../60-vhba.rules "$pkgdir/usr/lib/udev/rules.d/60-vhba.rules" -} diff --git a/libre/vhba-module-parabola-grsec/vhba-module.install b/libre/vhba-module-parabola-grsec/vhba-module.install deleted file mode 100644 index 04d26b27b..000000000 --- a/libre/vhba-module-parabola-grsec/vhba-module.install +++ /dev/null @@ -1,20 +0,0 @@ -_updatemod() { - _extramodules=THIS_IS_AUTOMATICALLY_SET_BY_PKGBUILD - depmod $(cat /usr/lib/modules/${_extramodules}/version) -} - -post_install() { - getent group cdemu &>/dev/null || groupadd -r cdemu - _updatemod -} - -post_upgrade() { - post_install -} - -post_remove() { - _updatemod - groupdel cdemu -} - -# vim:set ts=2 sw=2 et: diff --git a/libre/vhba-module-parabola-lts/60-vhba.rules b/libre/vhba-module-parabola-lts/60-vhba.rules deleted file mode 100644 index 39ae3a4ec..000000000 --- a/libre/vhba-module-parabola-lts/60-vhba.rules +++ /dev/null @@ -1 +0,0 @@ -ACTION=="add", KERNEL=="vhba_ctl", NAME="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdemu", TAG+="uaccess" diff --git a/libre/vhba-module-parabola-lts/PKGBUILD b/libre/vhba-module-parabola-lts/PKGBUILD deleted file mode 100644 index ed17049c8..000000000 --- a/libre/vhba-module-parabola-lts/PKGBUILD +++ /dev/null @@ -1,62 +0,0 @@ -# $Id: PKGBUILD 116828 2014-08-04 07:19:43Z tpowa $ -# Maintainer (Arch): Ray Rashif -# Contributor (Arch): Mateusz Herych -# Contributor (Arch): Charles Lindsay -# Maintainer: André Silva -# Contributor: Luke Shumaker -# Contributor: Márcio Silva - -# Kernel info -_basekernel=3.14 -_kernelname=-lts - -# Source info -_pkgname=vhba-module -pkgver=20140629 -pkgdesc="Kernel module that emulates SCSI devices (built for the linux-libre${_kernelname} kernel package)" -url="http://cdemu.sourceforge.net/" -license=('GPL') -source=("http://downloads.sourceforge.net/cdemu/$_pkgname-$pkgver.tar.bz2" - '60-vhba.rules') -md5sums=('6b307a80df9c163768cc7ecb3ccebb71' - '4dc37dc348b5a2c83585829bde790dcc') - -# Package info -pkgrel=1 -arch=('i686' 'x86_64' 'mips64el') -options=(!makeflags) -install=$_pkgname.install - -# Generic (you shouldn't have to modify any of these variables) -pkgname=${_pkgname}-parabola${_kernelname} -_toohigh=$(IFS=. read a b <<<$_basekernel; echo $a.$((b+1))) -_extramodules=extramodules-${_basekernel}${_kernelname} -depends=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}") -makedepends=("linux-libre${_kernelname}-headers>=${_basekernel}" "linux-libre${_kernelname}-headers<${_toohigh}") -replaces=("${_pkgname}${_kernelname}" "${_pkgname}-libre${_kernelname}") # for Arch-compatibility -conflicts=("${_pkgname}${_kernelname}" "${_pkgname}-libre${_kernelname}") # for Arch-compatibility -provides=("${_pkgname}${_kernelname}=${pkgver}") # for Arch-compatibility -if [[ -n "${_kernelname}" ]]; then - provides+=("${_pkgname}-parabola=${pkgver}") # pkgname without _kernelname -fi - -build() { - cd "${srcdir}/${_pkgname}-${pkgver}" - - _kernver="$(cat /usr/lib/modules/${_extramodules}/version)" - - make KDIR=/usr/lib/modules/$_kernver/build -} - -package() { - cd "${srcdir}/${_pkgname}-${pkgver}" - - # 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}" - - # Actually install - install -Dm644 vhba.ko "$pkgdir/usr/lib/modules/$_extramodules/vhba.ko" - install -Dm644 ../60-vhba.rules "$pkgdir/usr/lib/udev/rules.d/60-vhba.rules" -} diff --git a/libre/vhba-module-parabola-lts/vhba-module.install b/libre/vhba-module-parabola-lts/vhba-module.install deleted file mode 100644 index 04d26b27b..000000000 --- a/libre/vhba-module-parabola-lts/vhba-module.install +++ /dev/null @@ -1,20 +0,0 @@ -_updatemod() { - _extramodules=THIS_IS_AUTOMATICALLY_SET_BY_PKGBUILD - depmod $(cat /usr/lib/modules/${_extramodules}/version) -} - -post_install() { - getent group cdemu &>/dev/null || groupadd -r cdemu - _updatemod -} - -post_upgrade() { - post_install -} - -post_remove() { - _updatemod - groupdel cdemu -} - -# vim:set ts=2 sw=2 et: diff --git a/pcr/acpi_call-parabola-grsec/PKGBUILD b/pcr/acpi_call-parabola-grsec/PKGBUILD new file mode 100644 index 000000000..05bf0c697 --- /dev/null +++ b/pcr/acpi_call-parabola-grsec/PKGBUILD @@ -0,0 +1,66 @@ +# $Id: PKGBUILD 116819 2014-08-04 07:10:28Z tpowa $ +# Maintainer (Arch): Maxime Gauduin +# Contributor (Arch): mortzu +# Contributor (Arch): fnord0 +# Maintainer: André Silva +# Contributor: Luke Shumaker +# Contributor: Márcio Silva + +# Kernel info +_basekernel=3.15 +_kernelname=-grsec + +# Source info +_pkgname=acpi_call +pkgver=1.1.0 +pkgdesc="A linux kernel module that enables calls to ACPI methods through /proc/acpi/call (built for the linux-libre${_kernelname} kernel package)" +url="http://github.com/mkottman/${_pkgname}" +license=('GPL') +source=("${url}/archive/v${pkgver}.tar.gz") +sha256sums=('d0d14b42944282724fca76f57d598eed794ef97448f387d1c489d85ad813f2f0') + +# Package info +pkgrel=1 +arch=('i686' 'x86_64' 'mips64el') +install='kmod.install' +_replaces=("${_pkgname}" "${_pkgname}-libre") +_provides=("${_pkgname}") + +# Generic (you shouldn't have to modify any of these variables) +pkgname=${_pkgname}-parabola${_kernelname} +_toohigh=$(IFS=. read a b <<<$_basekernel; echo $a.$((b+1))) +_extramodules=extramodules-${_basekernel}${_kernelname} +depends=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}") +makedepends=("linux-libre${_kernelname}-headers>=${_basekernel}" "linux-libre${_kernelname}-headers<${_toohigh}") +replaces=( "${_replaces[@]/%/${_kernelname}}") +conflicts=("${_replaces[@]/%/${_kernelname}}") +provides=( "${_provides[@]/%/${_kernelname}=${pkgver}}") +if [[ -n "${_kernelname}" ]]; then + provides+=("${_pkgname}-parabola=${pkgver}") # pkgname without _kernelname +fi + +build() { + cd "${srcdir}/${_pkgname}-${pkgver}" + + _kernver="$(cat /usr/lib/modules/${_extramodules}/version)" + + make KVERSION="${_kernver}" +} + +package() { + cd "${srcdir}/${_pkgname}-${pkgver}" + + # 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}" + + # Actually install + install -dm 755 "${pkgdir}"/usr/lib/{modules/${_extramodules},modules-load.d} + install -m 644 ${_pkgname}.ko "${pkgdir}"/usr/lib/modules/${_extramodules} + gzip "${pkgdir}"/usr/lib/modules/${_extramodules}/${_pkgname}.ko + echo ${_pkgname} > "${pkgdir}"/usr/lib/modules-load.d/${pkgname}.conf + + install -dm 755 "${pkgdir}"/usr/share/${pkgname} + cp -dr --no-preserve='ownership' {examples,support} "${pkgdir}"/usr/share/${pkgname}/ +} diff --git a/pcr/acpi_call-parabola-grsec/kmod.install b/pcr/acpi_call-parabola-grsec/kmod.install new file mode 100644 index 000000000..d4bd8cb34 --- /dev/null +++ b/pcr/acpi_call-parabola-grsec/kmod.install @@ -0,0 +1,14 @@ +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/pcr/bbswitch-parabola-grsec/PKGBUILD b/pcr/bbswitch-parabola-grsec/PKGBUILD new file mode 100644 index 000000000..393ef3d73 --- /dev/null +++ b/pcr/bbswitch-parabola-grsec/PKGBUILD @@ -0,0 +1,59 @@ +# $Id: PKGBUILD 116821 2014-08-04 07:12:07Z tpowa $ +# Maintainer (Arch): Sven-Hendrik Haase +# Contributor (Arch): M0Rf30 +# Contributor (Arch): Samsagax +# Maintainer: André Silva +# Contributor: Luke Shumaker +# Contributor: Márcio Silva + +# Kernel info +_basekernel=3.15 +_kernelname=-grsec + +# Source info +_pkgname=bbswitch +pkgver=0.8 +pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus laptops (built for the linux-libre${_kernelname} kernel package)" +url="http://github.com/Bumblebee-Project/bbswitch" +license=('GPL') +source=("https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz") +md5sums=('5b116b31ace3604ddf9d1fc1f4bc5807') + +# Package info +pkgrel=1 +arch=('i686' 'x86_64' 'mips64el') +install='kmod.install' + +# Generic (you shouldn't have to modify any of these variables) +pkgname=${_pkgname}-parabola${_kernelname} +_toohigh=$(IFS=. read a b <<<$_basekernel; echo $a.$((b+1))) +_extramodules=extramodules-${_basekernel}${_kernelname} +depends=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}") +makedepends=("linux-libre${_kernelname}-headers>=${_basekernel}" "linux-libre${_kernelname}-headers<${_toohigh}") +replaces=("${_pkgname}${_kernelname}" "${_pkgname}-libre${_kernelname}") # for Arch-compatibility +conflicts=("${_pkgname}${_kernelname}" "${_pkgname}-libre${_kernelname}") # for Arch-compatibility +provides=("${_pkgname}${_kernelname}=${pkgver}") # for Arch-compatibility +if [[ -n "${_kernelname}" ]]; then + provides+=("${_pkgname}-parabola=${pkgver}") # pkgname without _kernelname +fi + +build() { + cd "${srcdir}/${_pkgname}-${pkgver}" + + _kernver="$(cat /usr/lib/modules/${_extramodules}/version)" + + make KDIR=/lib/modules/${_kernver}/build +} + +package() { + cd "${srcdir}/${_pkgname}-${pkgver}" + + # 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}" + + # Actually install + install -Dm644 bbswitch.ko "${pkgdir}"/usr/lib/modules/${_extramodules}/bbswitch.ko + gzip "${pkgdir}/usr/lib/modules/${_extramodules}/bbswitch.ko" +} diff --git a/pcr/bbswitch-parabola-grsec/kmod.install b/pcr/bbswitch-parabola-grsec/kmod.install new file mode 100644 index 000000000..d4bd8cb34 --- /dev/null +++ b/pcr/bbswitch-parabola-grsec/kmod.install @@ -0,0 +1,14 @@ +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/pcr/bbswitch-parabola-lts/PKGBUILD b/pcr/bbswitch-parabola-lts/PKGBUILD new file mode 100644 index 000000000..6182e10c7 --- /dev/null +++ b/pcr/bbswitch-parabola-lts/PKGBUILD @@ -0,0 +1,59 @@ +# $Id: PKGBUILD 116821 2014-08-04 07:12:07Z tpowa $ +# Maintainer (Arch): Sven-Hendrik Haase +# Contributor (Arch): M0Rf30 +# Contributor (Arch): Samsagax +# Maintainer: André Silva +# Contributor: Luke Shumaker +# Contributor: Márcio Silva + +# Kernel info +_basekernel=3.14 +_kernelname=-lts + +# Source info +_pkgname=bbswitch +pkgver=0.8 +pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus laptops (built for the linux-libre${_kernelname} kernel package)" +url="http://github.com/Bumblebee-Project/bbswitch" +license=('GPL') +source=("https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz") +md5sums=('5b116b31ace3604ddf9d1fc1f4bc5807') + +# Package info +pkgrel=1 +arch=('i686' 'x86_64' 'mips64el') +install='kmod.install' + +# Generic (you shouldn't have to modify any of these variables) +pkgname=${_pkgname}-parabola${_kernelname} +_toohigh=$(IFS=. read a b <<<$_basekernel; echo $a.$((b+1))) +_extramodules=extramodules-${_basekernel}${_kernelname} +depends=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}") +makedepends=("linux-libre${_kernelname}-headers>=${_basekernel}" "linux-libre${_kernelname}-headers<${_toohigh}") +replaces=("${_pkgname}${_kernelname}" "${_pkgname}-libre${_kernelname}") # for Arch-compatibility +conflicts=("${_pkgname}${_kernelname}" "${_pkgname}-libre${_kernelname}") # for Arch-compatibility +provides=("${_pkgname}${_kernelname}=${pkgver}") # for Arch-compatibility +if [[ -n "${_kernelname}" ]]; then + provides+=("${_pkgname}-parabola=${pkgver}") # pkgname without _kernelname +fi + +build() { + cd "${srcdir}/${_pkgname}-${pkgver}" + + _kernver="$(cat /usr/lib/modules/${_extramodules}/version)" + + make KDIR=/lib/modules/${_kernver}/build +} + +package() { + cd "${srcdir}/${_pkgname}-${pkgver}" + + # 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}" + + # Actually install + install -Dm644 bbswitch.ko "${pkgdir}"/usr/lib/modules/${_extramodules}/bbswitch.ko + gzip "${pkgdir}/usr/lib/modules/${_extramodules}/bbswitch.ko" +} diff --git a/pcr/bbswitch-parabola-lts/kmod.install b/pcr/bbswitch-parabola-lts/kmod.install new file mode 100644 index 000000000..d4bd8cb34 --- /dev/null +++ b/pcr/bbswitch-parabola-lts/kmod.install @@ -0,0 +1,14 @@ +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/pcr/lirc-parabola-grsec/PKGBUILD b/pcr/lirc-parabola-grsec/PKGBUILD new file mode 100644 index 000000000..b0e04451f --- /dev/null +++ b/pcr/lirc-parabola-grsec/PKGBUILD @@ -0,0 +1,137 @@ +# $Id: PKGBUILD 220120 2014-08-16 22:32:11Z lfleischer $ +# Maintainer (Arch): Paul Mattal +# Maintainer: André Silva +# Contributor: Luke Shumaker +# Contributor: Márcio Silva + +# Kernel info +_basekernel=3.15 +_kernelname=-grsec + +# 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/pcr/lirc-parabola-grsec/irexec.service b/pcr/lirc-parabola-grsec/irexec.service new file mode 100644 index 000000000..dffbbf5e0 --- /dev/null +++ b/pcr/lirc-parabola-grsec/irexec.service @@ -0,0 +1,11 @@ +[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/pcr/lirc-parabola-grsec/kmod.install b/pcr/lirc-parabola-grsec/kmod.install new file mode 100644 index 000000000..d4bd8cb34 --- /dev/null +++ b/pcr/lirc-parabola-grsec/kmod.install @@ -0,0 +1,14 @@ +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/pcr/lirc-parabola-grsec/lirc-utils.install b/pcr/lirc-parabola-grsec/lirc-utils.install new file mode 100644 index 000000000..f7faa07eb --- /dev/null +++ b/pcr/lirc-parabola-grsec/lirc-utils.install @@ -0,0 +1,13 @@ +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/pcr/lirc-parabola-grsec/lirc.logrotate b/pcr/lirc-parabola-grsec/lirc.logrotate new file mode 100644 index 000000000..623c4f328 --- /dev/null +++ b/pcr/lirc-parabola-grsec/lirc.logrotate @@ -0,0 +1,5 @@ +/var/log/lircd { + missingok + notifempty + delaycompress +} diff --git a/pcr/lirc-parabola-grsec/lirc.tmpfiles b/pcr/lirc-parabola-grsec/lirc.tmpfiles new file mode 100644 index 000000000..0b80e2e47 --- /dev/null +++ b/pcr/lirc-parabola-grsec/lirc.tmpfiles @@ -0,0 +1 @@ +d /run/lirc 0755 root root - diff --git a/pcr/lirc-parabola-grsec/wpc8769l-build-fix.patch b/pcr/lirc-parabola-grsec/wpc8769l-build-fix.patch new file mode 100644 index 000000000..5e25693ab --- /dev/null +++ b/pcr/lirc-parabola-grsec/wpc8769l-build-fix.patch @@ -0,0 +1,90 @@ +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 + + #include ++#include + + #include ++#include + +-#include "drivers/kcompat.h" +-#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 35) +-#include +-#include +-#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 = { diff --git a/pcr/lirc-parabola-lts/PKGBUILD b/pcr/lirc-parabola-lts/PKGBUILD new file mode 100644 index 000000000..15a503e3a --- /dev/null +++ b/pcr/lirc-parabola-lts/PKGBUILD @@ -0,0 +1,137 @@ +# $Id: PKGBUILD 220120 2014-08-16 22:32:11Z lfleischer $ +# Maintainer (Arch): Paul Mattal +# Maintainer: André Silva +# Contributor: Luke Shumaker +# Contributor: Márcio Silva + +# 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/pcr/lirc-parabola-lts/irexec.service b/pcr/lirc-parabola-lts/irexec.service new file mode 100644 index 000000000..dffbbf5e0 --- /dev/null +++ b/pcr/lirc-parabola-lts/irexec.service @@ -0,0 +1,11 @@ +[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/pcr/lirc-parabola-lts/kmod.install b/pcr/lirc-parabola-lts/kmod.install new file mode 100644 index 000000000..d4bd8cb34 --- /dev/null +++ b/pcr/lirc-parabola-lts/kmod.install @@ -0,0 +1,14 @@ +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/pcr/lirc-parabola-lts/lirc-utils.install b/pcr/lirc-parabola-lts/lirc-utils.install new file mode 100644 index 000000000..f7faa07eb --- /dev/null +++ b/pcr/lirc-parabola-lts/lirc-utils.install @@ -0,0 +1,13 @@ +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/pcr/lirc-parabola-lts/lirc.logrotate b/pcr/lirc-parabola-lts/lirc.logrotate new file mode 100644 index 000000000..623c4f328 --- /dev/null +++ b/pcr/lirc-parabola-lts/lirc.logrotate @@ -0,0 +1,5 @@ +/var/log/lircd { + missingok + notifempty + delaycompress +} diff --git a/pcr/lirc-parabola-lts/lirc.tmpfiles b/pcr/lirc-parabola-lts/lirc.tmpfiles new file mode 100644 index 000000000..0b80e2e47 --- /dev/null +++ b/pcr/lirc-parabola-lts/lirc.tmpfiles @@ -0,0 +1 @@ +d /run/lirc 0755 root root - diff --git a/pcr/lirc-parabola-lts/wpc8769l-build-fix.patch b/pcr/lirc-parabola-lts/wpc8769l-build-fix.patch new file mode 100644 index 000000000..5e25693ab --- /dev/null +++ b/pcr/lirc-parabola-lts/wpc8769l-build-fix.patch @@ -0,0 +1,90 @@ +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 + + #include ++#include + + #include ++#include + +-#include "drivers/kcompat.h" +-#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 35) +-#include +-#include +-#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 = { diff --git a/pcr/tp_smapi-parabola-grsec/PKGBUILD b/pcr/tp_smapi-parabola-grsec/PKGBUILD new file mode 100644 index 000000000..79dc1f2ea --- /dev/null +++ b/pcr/tp_smapi-parabola-grsec/PKGBUILD @@ -0,0 +1,81 @@ +# $Id: PKGBUILD 116831 2014-08-04 07:32:08Z tpowa $ +# Maintainer (Arch): Lukas Fleischer +# Contributor (Arch): xduugu +# Contributor (Arch): nh2 +# Contributor (Arch): Steven Davidovitz +# Contributor (Arch): Nick B +# Contributor (Arch): Christof Musik +# Contributor (Arch): Stefan Rupp +# Contributor (Arch): Ignas Anikevicius +# Maintainer: André Silva +# Contributor: Luke Shumaker +# Contributor: Márcio Silva + +# Kernel info +_basekernel=3.15 +_kernelname=-grsec + +# Source info +_pkgname=tp_smapi +pkgver=0.41 +pkgdesc="Modules for ThinkPad's SMAPI functionality (built for the linux-libre${_kernelname} kernel package)" +url='https://github.com/evgeni/tp_smapi' +license=('GPL') +source=("https://github.com/downloads/evgeni/${_pkgname}/${_pkgname}-${pkgver}.tar.gz") +md5sums=('63c683415c764568f6bf17c7eabe4752') + +# Package info +pkgrel=1 +arch=('i686' 'x86_64' 'mips64el') +install='kmod.install' + +# Generic (you shouldn't have to modify any of these variables) +pkgname=${_pkgname}-parabola${_kernelname} +_toohigh=$(IFS=. read a b <<<$_basekernel; echo $a.$((b+1))) +_extramodules=extramodules-${_basekernel}${_kernelname} +depends=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}") +makedepends=("linux-libre${_kernelname}-headers>=${_basekernel}" "linux-libre${_kernelname}-headers<${_toohigh}") +replaces=("${_pkgname}${_kernelname}" "${_pkgname}-libre${_kernelname}") # for Arch-compatibility +conflicts=("${_pkgname}${_kernelname}" "${_pkgname}-libre${_kernelname}") # for Arch-compatibility +provides=("${_pkgname}${_kernelname}=${pkgver}") # for Arch-compatibility +if [[ -n "${_kernelname}" ]]; then + provides+=("${_pkgname}-parabola=${pkgver}") # pkgname without _kernelname +fi + +build() { + cd "${srcdir}/${_pkgname}-${pkgver}" + + _kernver="$(cat /usr/lib/modules/${_extramodules}/version)" + + sed -ri -e "s/^(KVER\s*:=).*$/\1 ${_kernver}/" \ + -e "s#^(KBASE\s*:=).*\$#\1 /usr/lib/modules/${_kernver}#" Makefile + + make HDAPS=1 +} + +package() { + cd "${srcdir}/${_pkgname}-${pkgver}" + + _kernver="$(cat /usr/lib/modules/${_extramodules}/version)" + + # 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}" + + # Actually install + make -C "/usr/lib/modules/${_kernver}/build" \ + INSTALL_MOD_PATH="${pkgdir}/usr" \ + M="${srcdir}/${_pkgname}-${pkgver}" modules_install + + cd "${pkgdir}/usr/lib/modules" + mv "${_kernver}/extra" "${_extramodules}" + rmdir "${_kernver}" + + # compress kernel modules + find "${pkgdir}" -name "*.ko" -exec gzip -9 {} + + + # load module on startup + install -dm 755 "${pkgdir}/usr/lib/modules-load.d" + echo ${_pkgname} > "${pkgdir}/usr/lib/modules-load.d/${pkgname}.conf" +} diff --git a/pcr/tp_smapi-parabola-grsec/kmod.install b/pcr/tp_smapi-parabola-grsec/kmod.install new file mode 100644 index 000000000..d4bd8cb34 --- /dev/null +++ b/pcr/tp_smapi-parabola-grsec/kmod.install @@ -0,0 +1,14 @@ +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/pcr/vhba-module-parabola-grsec/60-vhba.rules b/pcr/vhba-module-parabola-grsec/60-vhba.rules new file mode 100644 index 000000000..39ae3a4ec --- /dev/null +++ b/pcr/vhba-module-parabola-grsec/60-vhba.rules @@ -0,0 +1 @@ +ACTION=="add", KERNEL=="vhba_ctl", NAME="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdemu", TAG+="uaccess" diff --git a/pcr/vhba-module-parabola-grsec/PKGBUILD b/pcr/vhba-module-parabola-grsec/PKGBUILD new file mode 100644 index 000000000..468d7ab0e --- /dev/null +++ b/pcr/vhba-module-parabola-grsec/PKGBUILD @@ -0,0 +1,62 @@ +# $Id: PKGBUILD 116828 2014-08-04 07:19:43Z tpowa $ +# Maintainer (Arch): Ray Rashif +# Contributor (Arch): Mateusz Herych +# Contributor (Arch): Charles Lindsay +# Maintainer: André Silva +# Contributor: Luke Shumaker +# Contributor: Márcio Silva + +# Kernel info +_basekernel=3.15 +_kernelname=-grsec + +# Source info +_pkgname=vhba-module +pkgver=20140629 +pkgdesc="Kernel module that emulates SCSI devices (built for the linux-libre${_kernelname} kernel package)" +url="http://cdemu.sourceforge.net/" +license=('GPL') +source=("http://downloads.sourceforge.net/cdemu/$_pkgname-$pkgver.tar.bz2" + '60-vhba.rules') +md5sums=('6b307a80df9c163768cc7ecb3ccebb71' + '4dc37dc348b5a2c83585829bde790dcc') + +# Package info +pkgrel=1 +arch=('i686' 'x86_64' 'mips64el') +options=(!makeflags) +install=$_pkgname.install + +# Generic (you shouldn't have to modify any of these variables) +pkgname=${_pkgname}-parabola${_kernelname} +_toohigh=$(IFS=. read a b <<<$_basekernel; echo $a.$((b+1))) +_extramodules=extramodules-${_basekernel}${_kernelname} +depends=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}") +makedepends=("linux-libre${_kernelname}-headers>=${_basekernel}" "linux-libre${_kernelname}-headers<${_toohigh}") +replaces=("${_pkgname}${_kernelname}" "${_pkgname}-libre${_kernelname}") # for Arch-compatibility +conflicts=("${_pkgname}${_kernelname}" "${_pkgname}-libre${_kernelname}") # for Arch-compatibility +provides=("${_pkgname}${_kernelname}=${pkgver}") # for Arch-compatibility +if [[ -n "${_kernelname}" ]]; then + provides+=("${_pkgname}-parabola=${pkgver}") # pkgname without _kernelname +fi + +build() { + cd "${srcdir}/${_pkgname}-${pkgver}" + + _kernver="$(cat /usr/lib/modules/${_extramodules}/version)" + + make KDIR=/usr/lib/modules/$_kernver/build +} + +package() { + cd "${srcdir}/${_pkgname}-${pkgver}" + + # 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}" + + # Actually install + install -Dm644 vhba.ko "$pkgdir/usr/lib/modules/$_extramodules/vhba.ko" + install -Dm644 ../60-vhba.rules "$pkgdir/usr/lib/udev/rules.d/60-vhba.rules" +} diff --git a/pcr/vhba-module-parabola-grsec/vhba-module.install b/pcr/vhba-module-parabola-grsec/vhba-module.install new file mode 100644 index 000000000..04d26b27b --- /dev/null +++ b/pcr/vhba-module-parabola-grsec/vhba-module.install @@ -0,0 +1,20 @@ +_updatemod() { + _extramodules=THIS_IS_AUTOMATICALLY_SET_BY_PKGBUILD + depmod $(cat /usr/lib/modules/${_extramodules}/version) +} + +post_install() { + getent group cdemu &>/dev/null || groupadd -r cdemu + _updatemod +} + +post_upgrade() { + post_install +} + +post_remove() { + _updatemod + groupdel cdemu +} + +# vim:set ts=2 sw=2 et: diff --git a/pcr/vhba-module-parabola-lts/60-vhba.rules b/pcr/vhba-module-parabola-lts/60-vhba.rules new file mode 100644 index 000000000..39ae3a4ec --- /dev/null +++ b/pcr/vhba-module-parabola-lts/60-vhba.rules @@ -0,0 +1 @@ +ACTION=="add", KERNEL=="vhba_ctl", NAME="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdemu", TAG+="uaccess" diff --git a/pcr/vhba-module-parabola-lts/PKGBUILD b/pcr/vhba-module-parabola-lts/PKGBUILD new file mode 100644 index 000000000..ed17049c8 --- /dev/null +++ b/pcr/vhba-module-parabola-lts/PKGBUILD @@ -0,0 +1,62 @@ +# $Id: PKGBUILD 116828 2014-08-04 07:19:43Z tpowa $ +# Maintainer (Arch): Ray Rashif +# Contributor (Arch): Mateusz Herych +# Contributor (Arch): Charles Lindsay +# Maintainer: André Silva +# Contributor: Luke Shumaker +# Contributor: Márcio Silva + +# Kernel info +_basekernel=3.14 +_kernelname=-lts + +# Source info +_pkgname=vhba-module +pkgver=20140629 +pkgdesc="Kernel module that emulates SCSI devices (built for the linux-libre${_kernelname} kernel package)" +url="http://cdemu.sourceforge.net/" +license=('GPL') +source=("http://downloads.sourceforge.net/cdemu/$_pkgname-$pkgver.tar.bz2" + '60-vhba.rules') +md5sums=('6b307a80df9c163768cc7ecb3ccebb71' + '4dc37dc348b5a2c83585829bde790dcc') + +# Package info +pkgrel=1 +arch=('i686' 'x86_64' 'mips64el') +options=(!makeflags) +install=$_pkgname.install + +# Generic (you shouldn't have to modify any of these variables) +pkgname=${_pkgname}-parabola${_kernelname} +_toohigh=$(IFS=. read a b <<<$_basekernel; echo $a.$((b+1))) +_extramodules=extramodules-${_basekernel}${_kernelname} +depends=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}") +makedepends=("linux-libre${_kernelname}-headers>=${_basekernel}" "linux-libre${_kernelname}-headers<${_toohigh}") +replaces=("${_pkgname}${_kernelname}" "${_pkgname}-libre${_kernelname}") # for Arch-compatibility +conflicts=("${_pkgname}${_kernelname}" "${_pkgname}-libre${_kernelname}") # for Arch-compatibility +provides=("${_pkgname}${_kernelname}=${pkgver}") # for Arch-compatibility +if [[ -n "${_kernelname}" ]]; then + provides+=("${_pkgname}-parabola=${pkgver}") # pkgname without _kernelname +fi + +build() { + cd "${srcdir}/${_pkgname}-${pkgver}" + + _kernver="$(cat /usr/lib/modules/${_extramodules}/version)" + + make KDIR=/usr/lib/modules/$_kernver/build +} + +package() { + cd "${srcdir}/${_pkgname}-${pkgver}" + + # 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}" + + # Actually install + install -Dm644 vhba.ko "$pkgdir/usr/lib/modules/$_extramodules/vhba.ko" + install -Dm644 ../60-vhba.rules "$pkgdir/usr/lib/udev/rules.d/60-vhba.rules" +} diff --git a/pcr/vhba-module-parabola-lts/vhba-module.install b/pcr/vhba-module-parabola-lts/vhba-module.install new file mode 100644 index 000000000..04d26b27b --- /dev/null +++ b/pcr/vhba-module-parabola-lts/vhba-module.install @@ -0,0 +1,20 @@ +_updatemod() { + _extramodules=THIS_IS_AUTOMATICALLY_SET_BY_PKGBUILD + depmod $(cat /usr/lib/modules/${_extramodules}/version) +} + +post_install() { + getent group cdemu &>/dev/null || groupadd -r cdemu + _updatemod +} + +post_upgrade() { + post_install +} + +post_remove() { + _updatemod + groupdel cdemu +} + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3 From 025e5ffa5d8a726e217481b9384de15b86e68cf0 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Sun, 24 Aug 2014 20:03:20 -0300 Subject: linux-libre-firmware-3.16-2: updating revision --- libre/linux-libre-firmware/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libre/linux-libre-firmware/PKGBUILD b/libre/linux-libre-firmware/PKGBUILD index 7634b5110..8bb1a3c5e 100644 --- a/libre/linux-libre-firmware/PKGBUILD +++ b/libre/linux-libre-firmware/PKGBUILD @@ -7,7 +7,7 @@ _pkgver=3.16-gnu _srcname=linux-${_pkgver%-*} pkgver=${_pkgver//-/.} -pkgrel=1 +pkgrel=2 pkgdesc='Firmware files for Linux-libre' arch=('any') url=('http://linux-libre.fsfla.org/') -- cgit v1.2.3 From 350d712918d71602a34f93f4cb7fd426622ea0fb Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Sun, 24 Aug 2014 20:18:06 -0300 Subject: linux-libre-manpages: remove kernel26-libre-manpages from replaces and provides --- libre/linux-libre-manpages/PKGBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libre/linux-libre-manpages/PKGBUILD b/libre/linux-libre-manpages/PKGBUILD index f11dd9acc..cd413c18e 100644 --- a/libre/linux-libre-manpages/PKGBUILD +++ b/libre/linux-libre-manpages/PKGBUILD @@ -16,8 +16,8 @@ arch=('any') url="http://linux-libre.fsfla.org/" license=('GPL2') makedepends=('xmlto' 'docbook-xsl') -replaces=('kernel26-manpages' 'kernel26-libre-manpages' 'linux-manpages') -conflicts=('kernel26-manpages' 'kernel26-libre-manpages' 'linux-manpages') +replaces=('kernel26-manpages' 'linux-manpages') +conflicts=('kernel26-manpages' 'linux-manpages') provides=('kernel26-manpages' "linux-manpages=${_archpkgver}") source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/${_pkgver}/linux-libre-${_pkgver}.tar.xz") sha256sums=('477555c709b9407fe37dbd70d3331ff9dde1f9d874aba2741f138d07ae6f281b') -- cgit v1.2.3 From 1c8a4821eaf3a9b7838ce99e9e0433f31c517b13 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Sun, 24 Aug 2014 20:23:08 -0300 Subject: bfgminer-parabola: add bfgminer-libre on replaces and conflicts --- libre/bfgminer-parabola/PKGBUILD | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libre/bfgminer-parabola/PKGBUILD b/libre/bfgminer-parabola/PKGBUILD index a7309d7ee..51fbc80a4 100644 --- a/libre/bfgminer-parabola/PKGBUILD +++ b/libre/bfgminer-parabola/PKGBUILD @@ -10,9 +10,9 @@ pkgdesc="Bitcoin miner featuring overclocking, monitoring, fan speed control and arch=('i686' 'x86_64' 'mips64el') depends=('curl' 'jansson' 'libevent' 'libmicrohttpd' 'libusb' 'lm_sensors') makedepends=('uthash' 'yasm') -replaces=($_pkgname) -conflicts=($_pkgname) -provides=($_pkgname=$pkgver) +replaces=("${_pkgname}" "${_pkgname}-libre") +conflicts=("${_pkgname}" "${_pkgname}-libre") +provides=("${_pkgname}=$pkgver") url='http://bfgminer.org/' license=('GPL3') source=(http://luke.dashjr.org/programs/bitcoin/files/$_pkgname/$pkgver/$_pkgname-$pkgver.txz -- cgit v1.2.3 From a49e5509b6e64ec78477008374de2708c6789a05 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Sun, 24 Aug 2014 20:23:35 -0300 Subject: cups-filters-parabola: add cups-filters-libre on replaces and conflicts --- libre/cups-filters-parabola/PKGBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libre/cups-filters-parabola/PKGBUILD b/libre/cups-filters-parabola/PKGBUILD index fd91bd6dc..7d8af05b1 100644 --- a/libre/cups-filters-parabola/PKGBUILD +++ b/libre/cups-filters-parabola/PKGBUILD @@ -18,8 +18,8 @@ backup=(etc/fonts/conf.d/99pdftoopvp.conf etc/cups/cups-browsed.conf) source=(http://www.openprinting.org/download/cups-filters/$_pkgname-$pkgver.tar.gz) provides=("${_pkgname}=${pkgver}" 'foomatic-filters') -replaces=("${_pkgname}" 'foomatic-filters') -conflicts=("${_pkgname}" 'foomatic-filters') +replaces=("${_pkgname}" 'foomatic-filters' "${_pkgname}-libre") +conflicts=("${_pkgname}" 'foomatic-filters' "${_pkgname}-libre") md5sums=('0143ef62cd229e99fd3b03e827b1c122') build() { -- cgit v1.2.3