summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/acpi_call-libre-lts/PKGBUILD45
-rw-r--r--libre/acpi_call-libre/PKGBUILD45
-rw-r--r--libre/acpi_call-parabola-grsec/PKGBUILD64
-rw-r--r--libre/acpi_call-parabola-grsec/kmod.install (renamed from libre/acpi_call-libre-lts/acpi_call.install)2
-rw-r--r--libre/acpi_call-parabola-lts/PKGBUILD64
-rw-r--r--libre/acpi_call-parabola-lts/kmod.install (renamed from libre/acpi_call-libre/acpi_call.install)2
-rw-r--r--libre/acpi_call-parabola/PKGBUILD64
-rw-r--r--libre/acpi_call-parabola/kmod.install14
-rw-r--r--libre/bbswitch-libre/PKGBUILD38
-rw-r--r--libre/bbswitch-libre/bbswitch.install12
-rw-r--r--libre/bbswitch-parabola-grsec/PKGBUILD58
-rw-r--r--libre/bbswitch-parabola-grsec/kmod.install14
-rw-r--r--libre/bbswitch-parabola-lts/PKGBUILD58
-rw-r--r--libre/bbswitch-parabola-lts/kmod.install14
-rw-r--r--libre/bbswitch-parabola/PKGBUILD58
-rw-r--r--libre/bbswitch-parabola/kmod.install14
-rw-r--r--libre/linux-libre-api-headers/PKGBUILD38
-rw-r--r--libre/linux-libre-firmware/PKGBUILD28
-rw-r--r--libre/linux-libre-manpages/PKGBUILD16
-rw-r--r--libre/linux-libre-tools/PKGBUILD213
-rw-r--r--libre/lirc-libre/lirc.install14
-rw-r--r--libre/lirc-parabola-grsec/PKGBUILD136
-rw-r--r--libre/lirc-parabola-grsec/irexec.service (renamed from libre/lirc-libre/irexec.service)0
-rw-r--r--libre/lirc-parabola-grsec/kmod.install14
-rw-r--r--libre/lirc-parabola-grsec/lirc-utils.install (renamed from libre/lirc-libre/lirc-utils.install)0
-rw-r--r--libre/lirc-parabola-grsec/lirc.logrotate (renamed from libre/lirc-libre/lirc.logrotate)0
-rw-r--r--libre/lirc-parabola-grsec/lirc.tmpfiles (renamed from libre/lirc-libre/lirc.tmpfiles)0
-rw-r--r--libre/lirc-parabola-grsec/wpc8769l-build-fix.patch (renamed from libre/lirc-libre/wpc8769l-build-fix.patch)0
-rw-r--r--libre/lirc-parabola-lts/PKGBUILD136
-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
-rw-r--r--libre/lirc-parabola/PKGBUILD (renamed from libre/lirc-libre/PKGBUILD)86
-rw-r--r--libre/lirc-parabola/irexec.service11
-rw-r--r--libre/lirc-parabola/kmod.install14
-rw-r--r--libre/lirc-parabola/lirc-utils.install13
-rw-r--r--libre/lirc-parabola/lirc.logrotate5
-rw-r--r--libre/lirc-parabola/lirc.tmpfiles1
-rw-r--r--libre/lirc-parabola/wpc8769l-build-fix.patch90
-rw-r--r--libre/tp_smapi-libre-lts/PKGBUILD61
-rw-r--r--libre/tp_smapi-libre-lts/tp_smapi-lts.install13
-rw-r--r--libre/tp_smapi-libre/PKGBUILD64
-rw-r--r--libre/tp_smapi-libre/tp_smapi.install13
-rw-r--r--libre/tp_smapi-parabola-grsec/PKGBUILD80
-rw-r--r--libre/tp_smapi-parabola-grsec/kmod.install14
-rw-r--r--libre/tp_smapi-parabola-lts/PKGBUILD80
-rw-r--r--libre/tp_smapi-parabola-lts/kmod.install14
-rw-r--r--libre/tp_smapi-parabola/PKGBUILD80
-rw-r--r--libre/tp_smapi-parabola/kmod.install14
-rwxr-xr-xlibre/update-kernel-modules.sh28
-rw-r--r--libre/vhba-module-libre/PKGBUILD45
-rw-r--r--libre/vhba-module-parabola-grsec/60-vhba.rules (renamed from libre/vhba-module-libre/60-vhba.rules)0
-rw-r--r--libre/vhba-module-parabola-grsec/PKGBUILD61
-rw-r--r--libre/vhba-module-parabola-grsec/vhba-module.install (renamed from libre/vhba-module-libre/vhba-module.install)12
-rw-r--r--libre/vhba-module-parabola-lts/60-vhba.rules1
-rw-r--r--libre/vhba-module-parabola-lts/PKGBUILD61
-rw-r--r--libre/vhba-module-parabola-lts/vhba-module.install20
-rw-r--r--libre/vhba-module-parabola/60-vhba.rules1
-rw-r--r--libre/vhba-module-parabola/PKGBUILD61
-rw-r--r--libre/vhba-module-parabola/vhba-module.install20
63 files changed, 1716 insertions, 542 deletions
diff --git a/libre/acpi_call-libre-lts/PKGBUILD b/libre/acpi_call-libre-lts/PKGBUILD
deleted file mode 100644
index 184c5dec1..000000000
--- a/libre/acpi_call-libre-lts/PKGBUILD
+++ /dev/null
@@ -1,45 +0,0 @@
-# $Id: PKGBUILD 115349 2014-07-09 09:06:25Z fyan $
-# Maintainer (Arch): Maxime Gauduin <alucryd@gmail.com>
-# Contributor (Arch): mortzu <me@mortzu.de>
-# Contributor (Arch): fnord0 <fnord0@riseup.net>
-# Maintainer: André Silva <emulatorman@parabola.nu>
-
-_pkgname=acpi_call-lts
-pkgname=acpi_call-libre-lts
-pkgver=1.1.0
-pkgrel=7
-_extramodules=extramodules-3.14-libre-lts
-pkgdesc='A linux kernel module that enables calls to ACPI methods through /proc/acpi/call (built for the linux-libre-lts kernel package)'
-arch=('i686' 'x86_64')
-url="http://github.com/mkottman/${_pkgname%-*}"
-license=('GPL')
-depends=('linux-libre-lts>=3.14.11')
-makedepends=('linux-libre-lts-headers>=3.14.11')
-replaces=("${_pkgname}")
-conflicts=("${_pkgname}")
-provides=("${_pkgname%-*}" "${_pkgname}=${pkgver}")
-install="${_pkgname%-*}.install"
-source=("${url}/archive/v${pkgver}.tar.gz")
-sha256sums=('d0d14b42944282724fca76f57d598eed794ef97448f387d1c489d85ad813f2f0')
-
-build() {
- cd ${_pkgname%-*}-${pkgver}
-
- _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
-
- make KVERSION="${_kernver}"
-}
-
-package() {
- cd ${_pkgname%-*}-${pkgver}
-
- 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}/
-}
-
-# vim: ts=2 sw=2 et:
diff --git a/libre/acpi_call-libre/PKGBUILD b/libre/acpi_call-libre/PKGBUILD
deleted file mode 100644
index 8fa5a4279..000000000
--- a/libre/acpi_call-libre/PKGBUILD
+++ /dev/null
@@ -1,45 +0,0 @@
-# $Id: PKGBUILD 116819 2014-08-04 07:10:28Z tpowa $
-# Maintainer (Arch): Maxime Gauduin <alucryd@gmail.com>
-# Contributor (Arch): mortzu <me@mortzu.de>
-# Contributor (Arch): fnord0 <fnord0@riseup.net>
-# Maintainer: André Silva <emulatorman@parabola.nu>
-
-_pkgname=acpi_call
-pkgname=acpi_call-libre
-pkgver=1.1.0
-pkgrel=11
-_extramodules=extramodules-3.16-libre
-pkgdesc='A linux kernel module that enables calls to ACPI methods through /proc/acpi/call (built for the linux-libre kernel package)'
-arch=('i686' 'x86_64')
-url="http://github.com/mkottman/${_pkgname}"
-license=('GPL')
-depends=('linux-libre>=3.16' 'linux-libre<3.17')
-makedepends=('linux-libre-headers>=3.16' 'linux-libre-headers<3.17')
-replaces=("${_pkgname}")
-conflicts=("${_pkgname}")
-provides=("${_pkgname}=${pkgver}")
-install="${_pkgname}.install"
-source=("${url}/archive/v${pkgver}.tar.gz")
-sha256sums=('d0d14b42944282724fca76f57d598eed794ef97448f387d1c489d85ad813f2f0')
-
-build() {
- cd ${_pkgname}-${pkgver}
-
- _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
-
- make KVERSION="${_kernver}"
-}
-
-package() {
- cd ${_pkgname}-${pkgver}
-
- 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}/
-}
-
-# vim: ts=2 sw=2 et:
diff --git a/libre/acpi_call-parabola-grsec/PKGBUILD b/libre/acpi_call-parabola-grsec/PKGBUILD
new file mode 100644
index 000000000..af2e44bf2
--- /dev/null
+++ b/libre/acpi_call-parabola-grsec/PKGBUILD
@@ -0,0 +1,64 @@
+# $Id: PKGBUILD 116819 2014-08-04 07:10:28Z tpowa $
+# Maintainer (Arch): Maxime Gauduin <alucryd@gmail.com>
+# Contributor (Arch): mortzu <me@mortzu.de>
+# Contributor (Arch): fnord0 <fnord0@riseup.net>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
+
+# 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=12.${_basekernel/./}
+arch=('i686' 'x86_64')
+install='kmod.install'
+_replaces=("${_pkgname}" "${_pkgname}-libre")
+
+# 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:--PARABOLA}
+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=( "${_replaces[@]/%/${_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-libre-lts/acpi_call.install b/libre/acpi_call-parabola-grsec/kmod.install
index 890b0dfeb..d4bd8cb34 100644
--- a/libre/acpi_call-libre-lts/acpi_call.install
+++ b/libre/acpi_call-parabola-grsec/kmod.install
@@ -1,5 +1,5 @@
post_install() {
- _extramodules=extramodules-3.14-libre-lts
+ _extramodules=THIS_IS_AUTOMATICALLY_SET_BY_PKGBUILD
depmod $(cat /usr/lib/modules/${_extramodules}/version)
}
diff --git a/libre/acpi_call-parabola-lts/PKGBUILD b/libre/acpi_call-parabola-lts/PKGBUILD
new file mode 100644
index 000000000..8f03cbfb5
--- /dev/null
+++ b/libre/acpi_call-parabola-lts/PKGBUILD
@@ -0,0 +1,64 @@
+# $Id: PKGBUILD 116819 2014-08-04 07:10:28Z tpowa $
+# Maintainer (Arch): Maxime Gauduin <alucryd@gmail.com>
+# Contributor (Arch): mortzu <me@mortzu.de>
+# Contributor (Arch): fnord0 <fnord0@riseup.net>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
+
+# Kernel info
+_basekernel=3.14
+_kernelname=-lts
+
+# 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=12.${_basekernel/./}
+arch=('i686' 'x86_64')
+install='kmod.install'
+_replaces=("${_pkgname}" "${_pkgname}-libre")
+
+# 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:--PARABOLA}
+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=( "${_replaces[@]/%/${_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-libre/acpi_call.install b/libre/acpi_call-parabola-lts/kmod.install
index 7c2497c99..d4bd8cb34 100644
--- a/libre/acpi_call-libre/acpi_call.install
+++ b/libre/acpi_call-parabola-lts/kmod.install
@@ -1,5 +1,5 @@
post_install() {
- _extramodules=extramodules-3.16-libre
+ _extramodules=THIS_IS_AUTOMATICALLY_SET_BY_PKGBUILD
depmod $(cat /usr/lib/modules/${_extramodules}/version)
}
diff --git a/libre/acpi_call-parabola/PKGBUILD b/libre/acpi_call-parabola/PKGBUILD
new file mode 100644
index 000000000..480e8d48a
--- /dev/null
+++ b/libre/acpi_call-parabola/PKGBUILD
@@ -0,0 +1,64 @@
+# $Id: PKGBUILD 116819 2014-08-04 07:10:28Z tpowa $
+# Maintainer (Arch): Maxime Gauduin <alucryd@gmail.com>
+# Contributor (Arch): mortzu <me@mortzu.de>
+# Contributor (Arch): fnord0 <fnord0@riseup.net>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
+
+# Kernel info
+_basekernel=3.16
+_kernelname=
+
+# 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=12.${_basekernel/./}
+arch=('i686' 'x86_64')
+install='kmod.install'
+_replaces=("${_pkgname}" "${_pkgname}-libre")
+
+# 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:--PARABOLA}
+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=( "${_replaces[@]/%/${_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/kmod.install b/libre/acpi_call-parabola/kmod.install
new file mode 100644
index 000000000..d4bd8cb34
--- /dev/null
+++ b/libre/acpi_call-parabola/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/libre/bbswitch-libre/PKGBUILD b/libre/bbswitch-libre/PKGBUILD
deleted file mode 100644
index e333c4ef3..000000000
--- a/libre/bbswitch-libre/PKGBUILD
+++ /dev/null
@@ -1,38 +0,0 @@
-# $Id: PKGBUILD 116821 2014-08-04 07:12:07Z tpowa $
-# Maintainer (Arch): Sven-Hendrik Haase <sh@lutzhaase.com>
-# Contributor (Arch): M0Rf30
-# Contributor (Arch): Samsagax <samsagax@gmail.com>
-# Maintainer: André Silva <emulatorman@parabola.nu>
-
-_pkgname=bbswitch
-pkgname=bbswitch-libre
-pkgver=0.8
-_extramodules=extramodules-3.16-libre # Don't forget to update bbswitch.install
-pkgrel=15
-pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus laptops (built for the linux-libre kernel package)"
-arch=('i686' 'x86_64' 'mips64el')
-url=("http://github.com/Bumblebee-Project/bbswitch")
-license=('GPL')
-depends=('linux-libre>=3.16' 'linux-libre<3.17')
-makedepends=('linux-libre-headers>=3.16' 'linux-libre-headers<3.17')
-replaces=($_pkgname)
-conflicts=($_pkgname)
-provides=($_pkgname=$pkgver)
-install=bbswitch.install
-source=("https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz")
-md5sums=('5b116b31ace3604ddf9d1fc1f4bc5807')
-
-build() {
- cd ${srcdir}/${_pkgname}-${pkgver}
-
- _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
-
- make KDIR=/lib/modules/${_kernver}/build
-}
-
-package() {
- cd ${srcdir}/${_pkgname}-${pkgver}
-
- install -Dm644 bbswitch.ko "${pkgdir}"/usr/lib/modules/${_extramodules}/bbswitch.ko
- gzip "${pkgdir}/usr/lib/modules/${_extramodules}/bbswitch.ko"
-}
diff --git a/libre/bbswitch-libre/bbswitch.install b/libre/bbswitch-libre/bbswitch.install
deleted file mode 100644
index 06a68a267..000000000
--- a/libre/bbswitch-libre/bbswitch.install
+++ /dev/null
@@ -1,12 +0,0 @@
-post_install() {
- EXTRAMODULES='extramodules-3.16-libre'
- depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- post_install
-}
diff --git a/libre/bbswitch-parabola-grsec/PKGBUILD b/libre/bbswitch-parabola-grsec/PKGBUILD
new file mode 100644
index 000000000..7d2ea7c48
--- /dev/null
+++ b/libre/bbswitch-parabola-grsec/PKGBUILD
@@ -0,0 +1,58 @@
+# $Id: PKGBUILD 116821 2014-08-04 07:12:07Z tpowa $
+# Maintainer (Arch): Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor (Arch): M0Rf30
+# Contributor (Arch): Samsagax <samsagax@gmail.com>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
+
+# 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=16.${_basekernel/./}
+arch=('i686' 'x86_64')
+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:--PARABOLA}
+depends=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}")
+makedepends=("linux-libre${_kernelname}-headers>=${_basekernel}" "linux-libre${_kernelname}-headers<${_toohigh}")
+replaces=( "${_pkgname}${_kernelname}") # for Arch-compatability
+conflicts=("${_pkgname}${_kernelname}") # for Arch-compatability
+provides=( "${_pkgname}${_kernelname}=${pkgver}") # for Arch-compatability
+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
new file mode 100644
index 000000000..d4bd8cb34
--- /dev/null
+++ b/libre/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/libre/bbswitch-parabola-lts/PKGBUILD b/libre/bbswitch-parabola-lts/PKGBUILD
new file mode 100644
index 000000000..59cf046ab
--- /dev/null
+++ b/libre/bbswitch-parabola-lts/PKGBUILD
@@ -0,0 +1,58 @@
+# $Id: PKGBUILD 116821 2014-08-04 07:12:07Z tpowa $
+# Maintainer (Arch): Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor (Arch): M0Rf30
+# Contributor (Arch): Samsagax <samsagax@gmail.com>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
+
+# 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=16.${_basekernel/./}
+arch=('i686' 'x86_64')
+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:--PARABOLA}
+depends=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}")
+makedepends=("linux-libre${_kernelname}-headers>=${_basekernel}" "linux-libre${_kernelname}-headers<${_toohigh}")
+replaces=( "${_pkgname}${_kernelname}") # for Arch-compatability
+conflicts=("${_pkgname}${_kernelname}") # for Arch-compatability
+provides=( "${_pkgname}${_kernelname}=${pkgver}") # for Arch-compatability
+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
new file mode 100644
index 000000000..d4bd8cb34
--- /dev/null
+++ b/libre/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/libre/bbswitch-parabola/PKGBUILD b/libre/bbswitch-parabola/PKGBUILD
new file mode 100644
index 000000000..83f37239b
--- /dev/null
+++ b/libre/bbswitch-parabola/PKGBUILD
@@ -0,0 +1,58 @@
+# $Id: PKGBUILD 116821 2014-08-04 07:12:07Z tpowa $
+# Maintainer (Arch): Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor (Arch): M0Rf30
+# Contributor (Arch): Samsagax <samsagax@gmail.com>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
+
+# Kernel info
+_basekernel=3.16
+_kernelname=
+
+# 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=16.${_basekernel/./}
+arch=('i686' 'x86_64')
+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:--PARABOLA}
+depends=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}")
+makedepends=("linux-libre${_kernelname}-headers>=${_basekernel}" "linux-libre${_kernelname}-headers<${_toohigh}")
+replaces=( "${_pkgname}${_kernelname}") # for Arch-compatability
+conflicts=("${_pkgname}${_kernelname}") # for Arch-compatability
+provides=( "${_pkgname}${_kernelname}=${pkgver}") # for Arch-compatability
+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/kmod.install b/libre/bbswitch-parabola/kmod.install
new file mode 100644
index 000000000..d4bd8cb34
--- /dev/null
+++ b/libre/bbswitch-parabola/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/libre/linux-libre-api-headers/PKGBUILD b/libre/linux-libre-api-headers/PKGBUILD
index 245282994..88f017199 100644
--- a/libre/linux-libre-api-headers/PKGBUILD
+++ b/libre/linux-libre-api-headers/PKGBUILD
@@ -1,54 +1,58 @@
# $Id: PKGBUILD 211667 2014-04-23 02:10:08Z allan $
# Maintainer (Arch): Allan McRae <allan@archlinux.org>
# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
# toolchain build order: linux-libre-api-headers->glibc->binutils->gcc->binutils->glibc
pkgname=linux-libre-api-headers
-_basekernel=3.14
-_sublevel=1
-pkgver=${_basekernel}.${_sublevel}
+_pkgbasever=3.14-gnu
+_pkgver=3.14.1-gnu
+
+_srcname=linux-${_pkgbasever%-*}
+pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Kernel headers sanitized for use in userspace"
-arch=('i686' 'x86_64' 'mips64el')
+arch=('i686' 'x86_64')
url="http://www.gnu.org/software/libc"
license=('GPL2')
-provides=("linux-api-headers=${pkgver}")
+provides=( "linux-api-headers=${pkgver}")
conflicts=('linux-api-headers')
-replaces=('linux-api-headers')
-source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/${_basekernel}-gnu/linux-libre-${_basekernel}-gnu.tar.xz"
- "http://linux-libre.fsfla.org/pub/linux-libre/releases/${pkgver}-gnu/patch-${_basekernel}-gnu-${pkgver}-gnu.xz"
+replaces=( 'linux-api-headers')
+source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/${_pkgbasever}/linux-libre-${_pkgver}.tar.xz"
+ "http://linux-libre.fsfla.org/pub/linux-libre/releases/${_pkgver}/patch-${_pkgbasever}-${_pkgver}.xz"
linux-3.14-xattr_header.patch)
md5sums=('c108ec52eeb2a9b9ddbb8d12496ff25f'
'2b4862b3c76011e66e536f18fbf0fb27'
'22926521588b2e95f3c2a2cb428e7cf9')
prepare() {
- cd ${srcdir}/linux-${_basekernel}
+ cd "${srcdir}/${_srcname}"
- if [ "${_basekernel}" != "${pkgver}" ]; then
- patch -p1 -i "${srcdir}/patch-${_basekernel}-gnu-${pkgver}-gnu"
+ # add upstream patch
+ if [ "${_pkgbasever}" != "${_pkgver}" ]; then
+ patch -p1 -i "${srcdir}/patch-${_pkgbasever}-${_pkgver}"
fi
# fix xattr.h dual inclusion issues
# https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/patch/?id=ea1a8217
- patch -p1 -i $srcdir/linux-3.14-xattr_header.patch
+ patch -p1 -i "$srcdir"/linux-3.14-xattr_header.patch
}
build() {
- cd ${srcdir}/linux-${_basekernel}
+ cd "${srcdir}/${_srcname}"
make mrproper
make headers_check
}
package() {
- cd ${srcdir}/linux-${_basekernel}
- make INSTALL_HDR_PATH=${pkgdir}/usr headers_install
+ cd "${srcdir}/${_srcname}"
+ make INSTALL_HDR_PATH="${pkgdir}"/usr headers_install
# use headers from libdrm
- rm -r ${pkgdir}/usr/include/drm
+ rm -r "${pkgdir}"/usr/include/drm
# clean-up unnecessary files generated during install
- find ${pkgdir} \( -name .install -o -name ..install.cmd \) -delete
+ find "${pkgdir}" \( -name .install -o -name ..install.cmd \) -delete
}
diff --git a/libre/linux-libre-firmware/PKGBUILD b/libre/linux-libre-firmware/PKGBUILD
index 6f11508e9..7634b5110 100644
--- a/libre/linux-libre-firmware/PKGBUILD
+++ b/libre/linux-libre-firmware/PKGBUILD
@@ -1,10 +1,14 @@
# Maintainer: André Silva <emulatorman@parabola.nu>
# Contributor: Márcio Silva <coadde@parabola.nu>
+# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
pkgname=linux-libre-firmware
-pkgver=3.16
+_pkgver=3.16-gnu
+
+_srcname=linux-${_pkgver%-*}
+pkgver=${_pkgver//-/.}
pkgrel=1
-pkgdesc='Free firmware files for Linux-libre'
+pkgdesc='Firmware files for Linux-libre'
arch=('any')
url=('http://linux-libre.fsfla.org/')
license=('GPL2')
@@ -38,24 +42,14 @@ replaces=('linux-firmware'
'rt2x00-rt61-fw'
'rt2x00-rt71w-fw'
'amd-ucode')
-source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/$pkgver-gnu/linux-libre-$pkgver-gnu.tar.xz")
+source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/${_pkgver}/linux-libre-${_pkgver}.tar.xz")
sha256sums=('9c2a524c901febe0f0138f702bfdeb52d6f79f22c1fdbabaa37580bc70f16218')
package() {
+ cd "${srcdir}/${_srcname}"
- # create firmware folder to put the free firmware files there
- install -d -m755 $pkgdir/usr/lib/firmware
-
- cd $srcdir/linux-$pkgver
-
- # compile free firmware files
- make INSTALL_FW_PATH=$pkgdir/usr/lib/firmware firmware_install
-
- # create licenses folder to put the licenses files there
- install -d -m755 $pkgdir/usr/share/licenses/$pkgname
-
- # move WHENCE file to linux-firmware license folder
- cd $srcdir/linux-$pkgver
- install -m644 firmware/WHENCE $pkgdir/usr/share/licenses/$pkgname
+ install -d -m755 "$pkgdir"/usr/lib/firmware
+ make INSTALL_FW_PATH="$pkgdir"/usr/lib/firmware firmware_install
+ install -Dm644 firmware/WHENCE $pkgdir/usr/share/licenses/$pkgname
}
diff --git a/libre/linux-libre-manpages/PKGBUILD b/libre/linux-libre-manpages/PKGBUILD
index 088f6c6c1..1a96051e3 100644
--- a/libre/linux-libre-manpages/PKGBUILD
+++ b/libre/linux-libre-manpages/PKGBUILD
@@ -2,11 +2,15 @@
# Maintainer (Arch): Tobias Powalowski <tpowa@archlinux.org>
# Maintainer (Arch): Thomas Baechler <thomas@archlinux.org>
# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
pkgname=linux-libre-manpages
-pkgver=3.14
+_pkgver=3.14-gnu
+
+_srcname=linux-${_pkgver%-*}
+pkgver=${_pkgver//-/.}
pkgrel=1
-pkgdesc="Kernel hackers manual - Section 9 manpages that comes with the Linux-libre kernel"
+pkgdesc="Kernel hackers manual - Section 9 manpages that come with the Linux-libre kernel"
arch=('any')
url="http://linux-libre.fsfla.org/"
license=('GPL2')
@@ -14,18 +18,16 @@ makedepends=('xmlto' 'docbook-xsl')
replaces=('kernel26-manpages' 'kernel26-libre-manpages' 'linux-manpages')
conflicts=('kernel26-manpages' 'kernel26-libre-manpages' 'linux-manpages')
provides=('kernel26-manpages' 'linux-manpages')
-source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/${pkgver}-gnu/linux-libre-${pkgver}-gnu.tar.xz")
+source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/${_pkgver}/linux-libre-${_pkgver}.tar.xz")
sha256sums=('477555c709b9407fe37dbd70d3331ff9dde1f9d874aba2741f138d07ae6f281b')
build() {
- cd "${srcdir}/linux-$pkgver"
+ cd "${srcdir}/${_srcname}"
make mandocs
}
package() {
install -d "${pkgdir}/usr/share/man/man9/"
- install "${srcdir}"/linux-$pkgver/Documentation/DocBook/man/*.9.gz \
+ install -m644 "${srcdir}"/${_srcname}/Documentation/DocBook/man/*.9.gz \
"${pkgdir}/usr/share/man/man9/"
-
- find "${pkgdir}" -type f -exec chmod 644 {} \;
}
diff --git a/libre/linux-libre-tools/PKGBUILD b/libre/linux-libre-tools/PKGBUILD
index 5ff82d377..bb54168dc 100644
--- a/libre/linux-libre-tools/PKGBUILD
+++ b/libre/linux-libre-tools/PKGBUILD
@@ -1,42 +1,45 @@
# $Id: PKGBUILD 116876 2014-08-05 00:19:20Z seblu $
# Maintainer (Arch): Sébastien Luttringer <seblu@archlinux.org>
# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
pkgbase=linux-libre-tools
-pkgname=(
- 'acpidump-libre'
- 'cgroup_event_listener-libre'
- 'cpupower-libre'
- 'libtraceevent-libre'
- 'linux-libre-tools-meta'
- 'perf-libre'
- 'tmon-libre'
- 'usbip-libre'
- 'x86_energy_perf_policy-libre'
+_pkgname=(
+ 'acpidump'
+ 'cgroup_event_listener'
+ 'cpupower'
+ 'libtraceevent'
+ 'perf'
+ 'tmon'
+ 'usbip'
+ 'x86_energy_perf_policy'
)
-_basekernel=3.16
-#_sublevel=7
-#_pkgver=$_basekernel.$_sublevel
-pkgver=$_basekernel
+pkgname=("$pkgbase" "${_pkgname[@]/#/${pkgbase}-}")
+
+_pkgbasever=3.16-gnu
+_pkgver=3.16-gnu
+
+_srcname=linux-${_pkgbasever%-*}
+pkgver=${_pkgver//-/.}
pkgrel=1
license=('GPL2')
-arch=('i686' 'x86_64' 'mips64el')
+arch=('i686' 'x86_64')
url='http://linux-libre.fsfla.org/'
options=('!strip')
-# split packages need all package dependencies set manually in makedepends
-# kernel source deps
+
makedepends=('asciidoc' 'xmlto')
-# perf-libre deps
-makedepends+=('perl' 'python2' 'libnewt' 'elfutils' 'libunwind' 'numactl')
-# cpupower-libre deps
-makedepends+=('pciutils')
-# usbip-libre deps
-makedepends+=('glib2' 'sysfsutils' 'udev')
-# tmon-libre deps
-makedepends+=('ncurses')
+# split packages need all package dependencies set manually in makedepends
+declare -A _depends
+_depends[perf]='perl python2 libnewt elfutils libunwind numactl'
+_depends[cpupower]='pciutils'
+_depends[usbip]='glib2 sysfsutils libsystemd'
+makedepends+=(systemd) # libsystemd for runtime, systemd for make. IDK, it's what Arch does
+_depends[tmon]='ncurses'
+makedepends+=(${_depends[@]})
+
groups=("$pkgbase")
-source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/$_basekernel-gnu/linux-libre-$_basekernel-gnu.tar.xz"
- #"http://linux-libre.fsfla.org/pub/linux-libre/releases/$_pkgver-gnu/patch-$_basekernel-gnu-$_pkgver-gnu.xz"
+source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/${_pkgbasever}/linux-libre-${_pkgbasever}.tar.xz"
+ #"http://linux-libre.fsfla.org/pub/linux-libre/releases/${_pkgver}/patch-${_pkgbasever}-${_pkgver}.xz"
'cpupower.default'
'cpupower.systemd'
'cpupower.service'
@@ -54,25 +57,28 @@ sha256sums=('9c2a524c901febe0f0138f702bfdeb52d6f79f22c1fdbabaa37580bc70f16218'
'7547815bb761d49d198b85f95011535713c2ed4a004f249a9cf6ba985af8c4ed')
prepare() {
- cd linux-$pkgver
- # apply stable patching set
- if (( NOEXTRACT == 0 )) && [[ -e "$srcdir"/patch-$_basekernel-gnu-$_pkgver-gnu ]]; then
- msg2 'Applying stable patch set'
- patch -Np1 -i "$srcdir"/patch-$_basekernel-gnu-$_pkgver-gnu
+ cd "${srcdir}/${_srcname}"
+
+ # add upstream patch
+ if [ "${_pkgbasever}" != "${_pkgver}" ]; then
+ patch -p1 -i "${srcdir}/patch-${_pkgbasever}-${_pkgver}"
fi
+
patch -N -p1 -i "$srcdir/01-fix-perf-python.patch"
patch -N -p1 -i "$srcdir/02-parabola-paths.patch"
patch -N -p1 -i "$srcdir/03-fix-tmon-ltinfo.patch"
}
build() {
- msg2 'libtraceevent-libre'
- pushd linux-$pkgver/tools/lib/traceevent
+ cd "${srcdir}/${_srcname}"
+
+ msg2 'libtraceevent'
+ pushd $_srcname/tools/lib/traceevent
make
popd
- msg2 'perf-libre'
- pushd linux-$pkgver/tools/perf
+ msg2 'perf'
+ pushd $_srcname/tools/perf
make \
WERROR=0 \
DESTDIR="$pkgdir/usr" \
@@ -84,20 +90,20 @@ build() {
all man
popd
- msg2 'cpupower-libre'
- pushd linux-$pkgver/tools/power/cpupower
+ msg2 'cpupower'
+ pushd $_srcname/tools/power/cpupower
# we cannot use --as-needed
#LDFLAGS=${LDFLAGS:+"$LDFLAGS,--no-as-needed"}
make VERSION=$pkgver-$pkgrel
popd
- msg2 'x86_energy_perf_policy-libre'
- pushd linux-$pkgver/tools/power/x86/x86_energy_perf_policy
+ msg2 'x86_energy_perf_policy'
+ pushd $_srcname/tools/power/x86/x86_energy_perf_policy
make
popd
- msg2 'usbip-libre'
- pushd linux-$pkgver/drivers/staging/usbip/userspace
+ msg2 'usbip'
+ pushd $_srcname/drivers/staging/usbip/userspace
# fix missing man page
sed -i 's/usbip_bind_driver.8//' Makefile.am
./autogen.sh
@@ -105,62 +111,45 @@ build() {
make
popd
- msg2 'tmon-libre'
- pushd linux-$pkgver/tools/thermal/tmon
+ msg2 'tmon'
+ pushd $_srcname/tools/thermal/tmon
make
popd
- msg2 'acpidump-libre'
- pushd linux-$pkgver/tools/power/acpi
+ msg2 'acpidump'
+ pushd $_srcname/tools/power/acpi
make
popd
- msg2 'cgroup_event_listener-libre'
- pushd linux-$pkgver/tools/cgroup
+ msg2 'cgroup_event_listener'
+ pushd $_srcname/tools/cgroup
make
popd
}
-package_linux-libre-tools-meta() {
- pkgdesc='Linux kernel tools meta package'
+_package_meta() {
+ pkgdesc='Linux-libre kernel tools meta package'
groups=()
- depends=(
- 'acpidump-libre'
- 'cgroup_event_listener-libre'
- 'cpupower-libre'
- 'libtraceevent-libre'
- 'linux-libre-tools-meta'
- 'perf-libre'
- 'tmon-libre'
- 'usbip-libre'
- 'x86_energy_perf_policy-libre'
- )
- replaces=('linux-tools-meta')
- conflicts=('linux-tools-meta')
- provides=("linux-tools-meta=$pkgver")
+ depends=("${_pkgname[@]/#/${pkgbase}-}")
+ replaces=( linux{,-libre}-tools-meta)
+ conflicts=(linux{,-libre}-tools-meta)
+ provides=( linux{,-libre}-tools-meta=$pkgver)
}
-package_libtraceevent-libre() {
- pkgdesc='Linux kernel trace event library'
+_package_libtraceevent() {
+ pkgdesc='Linux-libre kernel trace event library'
depends=('glibc')
- replaces=('libtraceevent')
- conflicts=('libtraceevent')
- provides=("libtraceevent=$pkgver")
- cd linux-$pkgver/tools/lib/traceevent
+ cd $_srcname/tools/lib/traceevent
install -dm 755 "$pkgdir/usr/lib"
install -m 644 libtraceevent.a libtraceevent.so "$pkgdir/usr/lib"
}
-package_perf-libre() {
- pkgdesc='Linux kernel performance auditing tool'
- depends=('perl' 'python2' 'libnewt' 'elfutils' 'libunwind' 'binutils'
- 'numactl')
- replaces=('perf')
- conflicts=('perf')
- provides=("perf=$pkgver")
+_package_perf() {
+ pkgdesc='Linux-libre kernel performance auditing tool'
+ depends=('binutils')
- cd linux-$pkgver/tools/perf
+ cd $_srcname/tools/perf
make \
WERROR=0 \
DESTDIR="$pkgdir/usr" \
@@ -176,16 +165,15 @@ package_perf-libre() {
rm -r usr/etc
}
-package_cpupower-libre() {
- pkgdesc='Linux kernel tool to examine and tune power saving related features of your processor'
+_package_cpupower() {
+ pkgdesc='Linux-libre kernel tool to examine and tune power saving related features of your processor'
backup=('etc/default/cpupower')
- depends=('bash' 'pciutils')
- replaces=('cpupower' 'cpufrequtils')
- conflicts=('cpupower' 'cpufrequtils')
- provides=("cpupower=$pkgver")
+ depends=('bash')
+ replaces=('cpufrequtils')
+ conflicts=('cpufrequtils')
install=cpupower.install
- pushd linux-$pkgver/tools/power/cpupower
+ pushd $_srcname/tools/power/cpupower
make \
DESTDIR="$pkgdir" \
sbindir='/usr/bin' \
@@ -199,26 +187,19 @@ package_cpupower-libre() {
install -Dm 755 cpupower.systemd "$pkgdir/usr/lib/systemd/scripts/cpupower"
}
-package_x86_energy_perf_policy-libre() {
+_package_x86_energy_perf_policy() {
pkgdesc='Read or write MSR_IA32_ENERGY_PERF_BIAS'
depends=('glibc')
- replaces=('x86_energy_perf_policy')
- conflicts=('x86_energy_perf_policy')
- provides=("x86_energy_perf_policy=$pkgver")
- cd linux-$pkgver/tools/power/x86/x86_energy_perf_policy
+ cd $_srcname/tools/power/x86/x86_energy_perf_policy
install -Dm 755 x86_energy_perf_policy "$pkgdir/usr/bin/x86_energy_perf_policy"
install -Dm 644 x86_energy_perf_policy.8 "$pkgdir/usr/share/man/man8/x86_energy_perf_policy.8"
}
-package_usbip-libre() {
- pkgdesc='An USB device sharing system over IP network'
- depends=('glib2' 'sysfsutils' 'libsystemd')
- replaces=('usbip')
- conflicts=('usbip')
- provides=("usbip=$pkgver")
+_package_usbip() {
+ pkgdesc='A USB device sharing system over IP network'
- pushd linux-$pkgver/drivers/staging/usbip/userspace
+ pushd $_srcname/drivers/staging/usbip/userspace
make install DESTDIR="$pkgdir"
popd
# module loading
@@ -228,39 +209,43 @@ package_usbip-libre() {
install -Dm 644 usbipd.service "$pkgdir/usr/lib/systemd/system/usbipd.service"
}
-package_tmon-libre() {
- pkgdesc='Monitoring and Testing Tool for Linux kernel thermal subsystem'
- depends=('glibc' 'ncurses')
- replaces=('tmon')
- conflicts=('tmon')
- provides=("tmon=$pkgver")
+_package_tmon() {
+ pkgdesc='Monitoring and Testing Tool for Linux-libre kernel thermal subsystem'
+ depends=('glibc')
- cd linux-$pkgver/tools/thermal/tmon
+ cd $_srcname/tools/thermal/tmon
make install INSTALL_ROOT="$pkgdir"
}
-package_acpidump-libre() {
+_package_acpidump() {
pkgdesc='Dump system ACPI tables to an ASCII file'
depends=('glibc')
- replaces=('acpidump')
- conflicts=('acpidump' 'iasl')
- provides=("acpidump=$pkgver")
+ conflicts=('iasl')
- cd linux-$pkgver/tools/power/acpi
+ cd $_srcname/tools/power/acpi
make install sbindir=/usr/bin mandir=/usr/share/man DESTDIR="$pkgdir"
#install -Dm755 acpidump "$pkgdir/usr/bin/acpidump"
#install -Dm644 acpidump.8 "$pkgdir/usr/share/man/man8/acpidump.8"
}
-package_cgroup_event_listener-libre() {
+_package_cgroup_event_listener() {
pkgdesc='Simple listener of cgroup events'
depends=('glibc')
- replaces=('cgroup_event_listener')
- conflicts=('cgroup_event_listener')
- provides=("cgroup_event_listener=$pkgver")
- cd linux-$pkgver/tools/cgroup
+ cd $_srcname/tools/cgroup
install -Dm755 cgroup_event_listener "$pkgdir/usr/bin/cgroup_event_listener"
}
+eval "package_${pkgbase}() { _package_meta; }"
+for _p in "${_pkgname[@]}"; do
+ eval "
+ package_${pkgbase}-${_p}() {
+ _package_${_p}
+ depends+=(${_depends[${_p}]})
+ replaces+=( ${_p}{,-libre})
+ conflicts+=(${_p}{,-libre})
+ provides+=( ${_p}{,-libre}=${pkgver})
+ }"
+done
+
# vim:set ts=2 sw=2 et:
diff --git a/libre/lirc-libre/lirc.install b/libre/lirc-libre/lirc.install
deleted file mode 100644
index d89c3d94c..000000000
--- a/libre/lirc-libre/lirc.install
+++ /dev/null
@@ -1,14 +0,0 @@
-EXTRAMODULES=extramodules-3.16-libre
-
-post_install() {
- echo ">>> Updating module dependencies. Please wait ..."
- depmod "$(cat /usr/lib/modules/$EXTRAMODULES/version)" >/dev/null 2>&1
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- post_install
-}
diff --git a/libre/lirc-parabola-grsec/PKGBUILD b/libre/lirc-parabola-grsec/PKGBUILD
new file mode 100644
index 000000000..53e090f93
--- /dev/null
+++ b/libre/lirc-parabola-grsec/PKGBUILD
@@ -0,0 +1,136 @@
+# $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>
+
+# 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-utils-parabola)
+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.${_basekernel/./}
+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:--PARABOLA}
+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-libre-utils' "linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}")
+ replaces=('lirc+pctv')
+ [[ -z "$_kernelname" ]] || provides=("lirc-parabola=${pkgver}")
+ install=kmod.install
+
+ replaces+=( "lirc${_kernelname}" "lirc-libre${_kernelname}")
+ conflicts+=("lirc${_kernelname}" "lirc-libre${_kernelname}")
+ provides+=( "lirc${_kernelname}=${pkgver}" "lirc-libre${_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-utils-parabola() {
+ 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' 'lirc-utils-libre')
+ conflicts=('lirc-utils' 'lirc-utils-libre')
+ provides=( "lirc-utils=$pkgver" "lirc-utils-libre=$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-libre/irexec.service b/libre/lirc-parabola-grsec/irexec.service
index dffbbf5e0..dffbbf5e0 100644
--- a/libre/lirc-libre/irexec.service
+++ b/libre/lirc-parabola-grsec/irexec.service
diff --git a/libre/lirc-parabola-grsec/kmod.install b/libre/lirc-parabola-grsec/kmod.install
new file mode 100644
index 000000000..d4bd8cb34
--- /dev/null
+++ b/libre/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/libre/lirc-libre/lirc-utils.install b/libre/lirc-parabola-grsec/lirc-utils.install
index f7faa07eb..f7faa07eb 100644
--- a/libre/lirc-libre/lirc-utils.install
+++ b/libre/lirc-parabola-grsec/lirc-utils.install
diff --git a/libre/lirc-libre/lirc.logrotate b/libre/lirc-parabola-grsec/lirc.logrotate
index 623c4f328..623c4f328 100644
--- a/libre/lirc-libre/lirc.logrotate
+++ b/libre/lirc-parabola-grsec/lirc.logrotate
diff --git a/libre/lirc-libre/lirc.tmpfiles b/libre/lirc-parabola-grsec/lirc.tmpfiles
index 0b80e2e47..0b80e2e47 100644
--- a/libre/lirc-libre/lirc.tmpfiles
+++ b/libre/lirc-parabola-grsec/lirc.tmpfiles
diff --git a/libre/lirc-libre/wpc8769l-build-fix.patch b/libre/lirc-parabola-grsec/wpc8769l-build-fix.patch
index 5e25693ab..5e25693ab 100644
--- a/libre/lirc-libre/wpc8769l-build-fix.patch
+++ b/libre/lirc-parabola-grsec/wpc8769l-build-fix.patch
diff --git a/libre/lirc-parabola-lts/PKGBUILD b/libre/lirc-parabola-lts/PKGBUILD
new file mode 100644
index 000000000..beca86a2f
--- /dev/null
+++ b/libre/lirc-parabola-lts/PKGBUILD
@@ -0,0 +1,136 @@
+# $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>
+
+# 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-utils-parabola)
+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.${_basekernel/./}
+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:--PARABOLA}
+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-libre-utils' "linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}")
+ replaces=('lirc+pctv')
+ [[ -z "$_kernelname" ]] || provides=("lirc-parabola=${pkgver}")
+ install=kmod.install
+
+ replaces+=( "lirc${_kernelname}" "lirc-libre${_kernelname}")
+ conflicts+=("lirc${_kernelname}" "lirc-libre${_kernelname}")
+ provides+=( "lirc${_kernelname}=${pkgver}" "lirc-libre${_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-utils-parabola() {
+ 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' 'lirc-utils-libre')
+ conflicts=('lirc-utils' 'lirc-utils-libre')
+ provides=( "lirc-utils=$pkgver" "lirc-utils-libre=$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
new file mode 100644
index 000000000..dffbbf5e0
--- /dev/null
+++ b/libre/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/libre/lirc-parabola-lts/kmod.install b/libre/lirc-parabola-lts/kmod.install
new file mode 100644
index 000000000..d4bd8cb34
--- /dev/null
+++ b/libre/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/libre/lirc-parabola-lts/lirc-utils.install b/libre/lirc-parabola-lts/lirc-utils.install
new file mode 100644
index 000000000..f7faa07eb
--- /dev/null
+++ b/libre/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/libre/lirc-parabola-lts/lirc.logrotate b/libre/lirc-parabola-lts/lirc.logrotate
new file mode 100644
index 000000000..623c4f328
--- /dev/null
+++ b/libre/lirc-parabola-lts/lirc.logrotate
@@ -0,0 +1,5 @@
+/var/log/lircd {
+ missingok
+ notifempty
+ delaycompress
+}
diff --git a/libre/lirc-parabola-lts/lirc.tmpfiles b/libre/lirc-parabola-lts/lirc.tmpfiles
new file mode 100644
index 000000000..0b80e2e47
--- /dev/null
+++ b/libre/lirc-parabola-lts/lirc.tmpfiles
@@ -0,0 +1 @@
+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
new file mode 100644
index 000000000..5e25693ab
--- /dev/null
+++ b/libre/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 <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 = {
diff --git a/libre/lirc-libre/PKGBUILD b/libre/lirc-parabola/PKGBUILD
index 7d296b088..39cfdc70e 100644
--- a/libre/lirc-libre/PKGBUILD
+++ b/libre/lirc-parabola/PKGBUILD
@@ -1,22 +1,28 @@
# $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>
+
+# Kernel info
+_basekernel=3.16
+_kernelname=
+
+# 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-utils-parabola)
+fi
-_pkgbase=lirc
-pkgbase=lirc-libre
-pkgname=('lirc-libre' 'lirc-libre-utils')
_pkgver=0.9.1a
[[ $_pkgver =~ [a-z]$ ]] && pkgver="${_pkgver:0:-1}.${_pkgver: -1}" || pkgver="$_pkgver"
-pkgrel=1
-epoch=1
-_extramodules=extramodules-3.16-libre
-arch=('i686' 'x86_64' 'mips64el')
+
url="http://www.lirc.org/"
license=('GPL')
-# NOTICE: Don't forget to bump version in depends in package_lirc()!
-makedepends=('help2man' 'linux-libre>=3.16' 'linux-libre<3.17' 'linux-libre-headers>=3.16' 'linux-libre-headers<3.17' 'alsa-lib' 'libx11' 'libftdi-compat' 'libirman' 'python2')
-options=('!makeflags' '!strip')
-source=("http://prdownloads.sourceforge.net/${_pkgbase}/${_pkgbase}-${_pkgver}.tar.bz2"
+source=("http://prdownloads.sourceforge.net/lirc/lirc-${_pkgver}.tar.bz2"
"wpc8769l-build-fix.patch"
lirc.logrotate
irexec.service
@@ -27,6 +33,19 @@ md5sums=('1f1fac162ed309dd50f307e96a292957'
'32df3b9bc859565d6acf5f0e5b747083'
'febf25c154a7d36f01159e84f26c2d9a')
+# Package info
+pkgrel=1.${_basekernel/./}
+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:--PARABOLA}
+makedepends+=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}"
+ "linux-libre${_kernelname}-headers>=${_basekernel}" "linux-libre${_kernelname}-headers<${_toohigh}")
+
prepare() {
cd "${srcdir}/lirc-${_pkgver}"
@@ -60,33 +79,44 @@ build() {
make
}
-package_lirc-libre() {
- pkgdesc="Linux Infrared Remote Control kernel modules for stock kernel (built for the linux-libre kernel package)"
- depends=('lirc-libre-utils' 'linux-libre>=3.16' 'linux-libre<3.17')
- replaces=('lirc' 'lirc+pctv')
- conflicts=('lirc')
- provides=("lirc=$pkgver")
- install=lirc.install
+_package_lirc() {
+ pkgdesc="Linux Infrared Remote Control kernel modules (built for the linux-libre${_kernelname} kernel package)"
+ depends=('lirc-libre-utils' "linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}")
+ replaces=('lirc+pctv')
+ [[ -z "$_kernelname" ]] || provides=("lirc-parabola=${pkgver}")
+ install=kmod.install
+
+ replaces+=( "lirc${_kernelname}" "lirc-libre${_kernelname}")
+ conflicts+=("lirc${_kernelname}" "lirc-libre${_kernelname}")
+ provides+=( "lirc${_kernelname}=${pkgver}" "lirc-libre${_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
-
- # set the kernel we've built for inside the install script
- sed -i "s/^EXTRAMODULES=.*$/EXTRAMODULES=${_extramodules}/" "${startdir}/lirc.install"
}
-
-package_lirc-libre-utils() {
- pkgdesc="Linux Infrared Remote Control utils (built for the linux-libre kernel package)"
+if [[ -n "$_kernelname" ]]; then
+ eval "package() { _package_lirc; }"
+else
+ eval "package_${_pkgname}() { _package_lirc; }"
+fi
+
+package_lirc-utils-parabola() {
+ 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' 'lirc-utils-libre')
- conflicts=('lirc-utils' 'lirc-utils-libre')
- provides=("lirc-utils=$pkgver" 'lirc-utils-libre')
- install=lirc-utils.install
+
+ replaces=( 'lirc-utils' 'lirc-utils-libre')
+ conflicts=('lirc-utils' 'lirc-utils-libre')
+ provides=( "lirc-utils=$pkgver" "lirc-utils-libre=$pkgver")
+ install=kmod.install
cd "${srcdir}/lirc-${_pkgver}"
diff --git a/libre/lirc-parabola/irexec.service b/libre/lirc-parabola/irexec.service
new file mode 100644
index 000000000..dffbbf5e0
--- /dev/null
+++ b/libre/lirc-parabola/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/libre/lirc-parabola/kmod.install b/libre/lirc-parabola/kmod.install
new file mode 100644
index 000000000..d4bd8cb34
--- /dev/null
+++ b/libre/lirc-parabola/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/libre/lirc-parabola/lirc-utils.install b/libre/lirc-parabola/lirc-utils.install
new file mode 100644
index 000000000..f7faa07eb
--- /dev/null
+++ b/libre/lirc-parabola/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/libre/lirc-parabola/lirc.logrotate b/libre/lirc-parabola/lirc.logrotate
new file mode 100644
index 000000000..623c4f328
--- /dev/null
+++ b/libre/lirc-parabola/lirc.logrotate
@@ -0,0 +1,5 @@
+/var/log/lircd {
+ missingok
+ notifempty
+ delaycompress
+}
diff --git a/libre/lirc-parabola/lirc.tmpfiles b/libre/lirc-parabola/lirc.tmpfiles
new file mode 100644
index 000000000..0b80e2e47
--- /dev/null
+++ b/libre/lirc-parabola/lirc.tmpfiles
@@ -0,0 +1 @@
+d /run/lirc 0755 root root -
diff --git a/libre/lirc-parabola/wpc8769l-build-fix.patch b/libre/lirc-parabola/wpc8769l-build-fix.patch
new file mode 100644
index 000000000..5e25693ab
--- /dev/null
+++ b/libre/lirc-parabola/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 <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 = {
diff --git a/libre/tp_smapi-libre-lts/PKGBUILD b/libre/tp_smapi-libre-lts/PKGBUILD
deleted file mode 100644
index 11ac463e1..000000000
--- a/libre/tp_smapi-libre-lts/PKGBUILD
+++ /dev/null
@@ -1,61 +0,0 @@
-# $Id: PKGBUILD 115344 2014-07-09 08:56:06Z fyan $
-# Maintainer (Arch): Lukas Fleischer <archlinux at cryptocrack dot de>
-# Contributor (Arch): xduugu
-# Contributor (Arch): nh2
-# Contributor (Arch): Steven Davidovitz <steviedizzle ð gmail đ com>
-# Contributor (Arch): Nick B <Shirakawasuna ð gmail đ com>
-# Contributor (Arch): Christof Musik <christof ð senfdax đ de>
-# Contributor (Arch): Stefan Rupp <archlinux ð stefanrupp đ de>
-# Contributor (Arch): Ignas Anikevicius <anikevicius ð gmail đ com>
-# Maintainer: André Silva <emulatorman@parabola.nu>
-
-pkgname=tp_smapi-libre-lts
-_pkgname=tp_smapi
-_extramodules=/usr/lib/modules/extramodules-3.14-libre-lts
-pkgver=0.41
-pkgrel=29
-pkgdesc="Modules for ThinkPad's SMAPI functionality (built for the linux-libre-lts kernel package)"
-arch=('i686' 'x86_64' 'mips64el')
-url='https://github.com/evgeni/tp_smapi'
-license=('GPL')
-depends=('linux-libre-lts>=3.14.11' 'linux-libre-lts<3.15')
-makedepends=('linux-libre-lts-headers>=3.14' 'linux-libre-lts-headers<3.15')
-replaces=('tp_smapi-lts')
-conflicts=('tp_smapi-lts')
-provides=("tp_smapi-lts=${pkgver}")
-install='tp_smapi-lts.install'
-source=("https://github.com/downloads/evgeni/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
-md5sums=('63c683415c764568f6bf17c7eabe4752')
-
-build() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
-
- _kernver=$(< "${_extramodules}/version")
-
- sed -ri -e "s/^(KVER\s*:=).*$/\1 ${_kernver}/" \
- -e "s#^(KBASE\s*:=).*\$#\1 ${_extramodules%/*}/${_kernver}#" Makefile
-
- make HDAPS=1
-}
-
-package() {
- _kernver=$(< "${_extramodules}/version")
-
- make -C "${_extramodules%/*}/${_kernver}/build" \
- INSTALL_MOD_PATH="${pkgdir}/${_extramodules%%/lib/*}" \
- M="${srcdir}/${_pkgname}-${pkgver}" modules_install
-
- cd "${pkgdir}/${_extramodules%/*}"
- mv "${_kernver}/extra" "${_extramodules##*/}"
- rmdir "${_kernver}"
-
- # compress kernel modules
- find "${pkgdir}" -name "*.ko" -exec gzip -9 {} +
-
- # load module on startup
- echo tp_smapi > "${srcdir}/tp_smapi-lts.conf"
- install -Dm644 "${srcdir}/tp_smapi-lts.conf" "${pkgdir}/usr/lib/modules-load.d/tp_smapi-lts.conf"
-
- # update kernel version in install file
- sed -ri "s#^(extramodules=).*\$#\1${_extramodules}#" "${startdir}/tp_smapi-lts.install"
-}
diff --git a/libre/tp_smapi-libre-lts/tp_smapi-lts.install b/libre/tp_smapi-libre-lts/tp_smapi-lts.install
deleted file mode 100644
index 97e1750e0..000000000
--- a/libre/tp_smapi-libre-lts/tp_smapi-lts.install
+++ /dev/null
@@ -1,13 +0,0 @@
-extramodules=/usr/lib/modules/extramodules-3.14-libre-lts
-
-post_install() {
- depmod -v $(< "$extramodules/version") &>/dev/null
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- post_install
-}
diff --git a/libre/tp_smapi-libre/PKGBUILD b/libre/tp_smapi-libre/PKGBUILD
deleted file mode 100644
index c299d0f29..000000000
--- a/libre/tp_smapi-libre/PKGBUILD
+++ /dev/null
@@ -1,64 +0,0 @@
-# $Id: PKGBUILD 116831 2014-08-04 07:32:08Z tpowa $
-# Maintainer (Arch): Lukas Fleischer <archlinux at cryptocrack dot de>
-# Contributor (Arch): xduugu
-# Contributor (Arch): nh2
-# Contributor (Arch): Steven Davidovitz <steviedizzle ð gmail đ com>
-# Contributor (Arch): Nick B <Shirakawasuna ð gmail đ com>
-# Contributor (Arch): Christof Musik <christof ð senfdax đ de>
-# Contributor (Arch): Stefan Rupp <archlinux ð stefanrupp đ de>
-# Contributor (Arch): Ignas Anikevicius <anikevicius ð gmail đ com>
-# Maintainer: André Silva <emulatorman@parabola.nu>
-
-_pkgname=tp_smapi
-pkgname=tp_smapi-libre
-pkgver=0.41
-pkgrel=52
-pkgdesc="Modules for ThinkPad's SMAPI functionality (built for the linux-libre kernel package)"
-arch=('i686' 'x86_64' 'mips64el')
-url='https://github.com/evgeni/tp_smapi'
-license=('GPL')
-depends=('linux-libre>=3.16' 'linux-libre<3.17')
-makedepends=('linux-libre-headers>=3.16' 'linux-libre-headers<3.17')
-replaces=("${_pkgname}")
-conflicts=("${_pkgname}")
-provides=("${_pkgname}=${pkgver}")
-install="${_pkgname}.install"
-source=("https://github.com/downloads/evgeni/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
-md5sums=('63c683415c764568f6bf17c7eabe4752')
-
-build() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
-
- _kernver=${_kernver:-$(uname -r)}
- _extramodules=$(readlink -f "/usr/lib/modules/${_kernver}/extramodules" || true)
- _kernver=$(< "${_extramodules}/version")
-
- sed -ri -e "s/^(KVER\s*:=).*$/\1 ${_kernver}/" \
- -e "s#^(KBASE\s*:=).*\$#\1 ${_extramodules%/*}/${_kernver}#" Makefile
-
- make HDAPS=1
-}
-
-package() {
- _kernver=${_kernver:-$(uname -r)}
- _extramodules=$(readlink -f "/usr/lib/modules/${_kernver}/extramodules" || true)
- _kernver=$(< "${_extramodules}/version")
-
- make -C "${_extramodules%/*}/${_kernver}/build" \
- INSTALL_MOD_PATH="${pkgdir}/${_extramodules%%/lib/*}" \
- M="${srcdir}/${_pkgname}-${pkgver}" modules_install
-
- cd "${pkgdir}/${_extramodules%/*}"
- mv "${_kernver}/extra" "${_extramodules##*/}"
- rmdir "${_kernver}"
-
- # compress kernel modules
- find "${pkgdir}" -name "*.ko" -exec gzip -9 {} +
-
- # load module on startup
- echo tp_smapi > "${srcdir}/${_pkgname}.conf"
- install -Dm644 "${srcdir}/${_pkgname}.conf" "${pkgdir}/usr/lib/modules-load.d/${_pkgname}.conf"
-
- # update kernel version in install file
- sed -ri "s#^(extramodules=).*\$#\1${_extramodules}#" "${startdir}/${_pkgname}.install"
-}
diff --git a/libre/tp_smapi-libre/tp_smapi.install b/libre/tp_smapi-libre/tp_smapi.install
deleted file mode 100644
index 152fb77c3..000000000
--- a/libre/tp_smapi-libre/tp_smapi.install
+++ /dev/null
@@ -1,13 +0,0 @@
-extramodules=/usr/lib/modules/extramodules-3.16-libre
-
-post_install() {
- depmod -v $(< "$extramodules/version") &>/dev/null
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- post_install
-}
diff --git a/libre/tp_smapi-parabola-grsec/PKGBUILD b/libre/tp_smapi-parabola-grsec/PKGBUILD
new file mode 100644
index 000000000..65e23730b
--- /dev/null
+++ b/libre/tp_smapi-parabola-grsec/PKGBUILD
@@ -0,0 +1,80 @@
+# $Id: PKGBUILD 116831 2014-08-04 07:32:08Z tpowa $
+# Maintainer (Arch): Lukas Fleischer <archlinux at cryptocrack dot de>
+# Contributor (Arch): xduugu
+# Contributor (Arch): nh2
+# Contributor (Arch): Steven Davidovitz <steviedizzle ð gmail đ com>
+# Contributor (Arch): Nick B <Shirakawasuna ð gmail đ com>
+# Contributor (Arch): Christof Musik <christof ð senfdax đ de>
+# Contributor (Arch): Stefan Rupp <archlinux ð stefanrupp đ de>
+# Contributor (Arch): Ignas Anikevicius <anikevicius ð gmail đ com>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
+
+# 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=53.${_basekernel/./}
+arch=('i686' 'x86_64')
+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:--PARABOLA}
+depends=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}")
+makedepends=("linux-libre${_kernelname}-headers>=${_basekernel}" "linux-libre${_kernelname}-headers<${_toohigh}")
+replaces=( "${_pkgname}${_kernelname}") # for Arch-compatability
+conflicts=("${_pkgname}${_kernelname}") # for Arch-compatability
+provides=( "${_pkgname}${_kernelname}=${pkgver}") # for Arch-compatability
+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
new file mode 100644
index 000000000..d4bd8cb34
--- /dev/null
+++ b/libre/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/libre/tp_smapi-parabola-lts/PKGBUILD b/libre/tp_smapi-parabola-lts/PKGBUILD
new file mode 100644
index 000000000..4dffb2e0c
--- /dev/null
+++ b/libre/tp_smapi-parabola-lts/PKGBUILD
@@ -0,0 +1,80 @@
+# $Id: PKGBUILD 116831 2014-08-04 07:32:08Z tpowa $
+# Maintainer (Arch): Lukas Fleischer <archlinux at cryptocrack dot de>
+# Contributor (Arch): xduugu
+# Contributor (Arch): nh2
+# Contributor (Arch): Steven Davidovitz <steviedizzle ð gmail đ com>
+# Contributor (Arch): Nick B <Shirakawasuna ð gmail đ com>
+# Contributor (Arch): Christof Musik <christof ð senfdax đ de>
+# Contributor (Arch): Stefan Rupp <archlinux ð stefanrupp đ de>
+# Contributor (Arch): Ignas Anikevicius <anikevicius ð gmail đ com>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
+
+# Kernel info
+_basekernel=3.14
+_kernelname=-lts
+
+# 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=53.${_basekernel/./}
+arch=('i686' 'x86_64')
+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:--PARABOLA}
+depends=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}")
+makedepends=("linux-libre${_kernelname}-headers>=${_basekernel}" "linux-libre${_kernelname}-headers<${_toohigh}")
+replaces=( "${_pkgname}${_kernelname}") # for Arch-compatability
+conflicts=("${_pkgname}${_kernelname}") # for Arch-compatability
+provides=( "${_pkgname}${_kernelname}=${pkgver}") # for Arch-compatability
+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-lts/kmod.install b/libre/tp_smapi-parabola-lts/kmod.install
new file mode 100644
index 000000000..d4bd8cb34
--- /dev/null
+++ b/libre/tp_smapi-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/libre/tp_smapi-parabola/PKGBUILD b/libre/tp_smapi-parabola/PKGBUILD
new file mode 100644
index 000000000..46bae3029
--- /dev/null
+++ b/libre/tp_smapi-parabola/PKGBUILD
@@ -0,0 +1,80 @@
+# $Id: PKGBUILD 116831 2014-08-04 07:32:08Z tpowa $
+# Maintainer (Arch): Lukas Fleischer <archlinux at cryptocrack dot de>
+# Contributor (Arch): xduugu
+# Contributor (Arch): nh2
+# Contributor (Arch): Steven Davidovitz <steviedizzle ð gmail đ com>
+# Contributor (Arch): Nick B <Shirakawasuna ð gmail đ com>
+# Contributor (Arch): Christof Musik <christof ð senfdax đ de>
+# Contributor (Arch): Stefan Rupp <archlinux ð stefanrupp đ de>
+# Contributor (Arch): Ignas Anikevicius <anikevicius ð gmail đ com>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
+
+# Kernel info
+_basekernel=3.16
+_kernelname=
+
+# 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=53.${_basekernel/./}
+arch=('i686' 'x86_64')
+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:--PARABOLA}
+depends=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}")
+makedepends=("linux-libre${_kernelname}-headers>=${_basekernel}" "linux-libre${_kernelname}-headers<${_toohigh}")
+replaces=( "${_pkgname}${_kernelname}") # for Arch-compatability
+conflicts=("${_pkgname}${_kernelname}") # for Arch-compatability
+provides=( "${_pkgname}${_kernelname}=${pkgver}") # for Arch-compatability
+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/kmod.install b/libre/tp_smapi-parabola/kmod.install
new file mode 100644
index 000000000..d4bd8cb34
--- /dev/null
+++ b/libre/tp_smapi-parabola/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/libre/update-kernel-modules.sh b/libre/update-kernel-modules.sh
new file mode 100755
index 000000000..e4c21c6ee
--- /dev/null
+++ b/libre/update-kernel-modules.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+usage() {
+ echo "Usage: ./${0##*/} BASEKERNEL [KERNELNAME]"
+ echo
+ echo "Examples:"
+ echo " ./${0##*/} 3.16 # linux-libre"
+ echo " ./${0##*/} 3.14 -lts # linux-libre-lts"
+ echo " ./${0##*/} 3.15 -grsec # linux-libre-grsec"
+}
+
+basekernel=$1
+kernelname=$2
+
+if [[ -z $basekernel ]]; then
+ usage
+ exit 1
+fi
+
+for kmod in acpi_call bbswitch lirc tp_smapi vhba-module; do
+ if [[ -n $kernelname ]]; then
+ rm -rf $kmod-parabola$kernelname
+ cp -r $kmod-parabola $kmod-parabola$kernelname
+ fi
+ sed -r -e "s/^(_basekernel)=.*/\1=${basekernel}/" \
+ -e "s/^(_kernelname)=.*/\1=${kernelname}/" \
+ -i $kmod-parabola$kernelname/PKGBUILD
+done
diff --git a/libre/vhba-module-libre/PKGBUILD b/libre/vhba-module-libre/PKGBUILD
deleted file mode 100644
index 495a4ad94..000000000
--- a/libre/vhba-module-libre/PKGBUILD
+++ /dev/null
@@ -1,45 +0,0 @@
-# $Id: PKGBUILD 116828 2014-08-04 07:19:43Z tpowa $
-# Maintainer (Arch): Ray Rashif <schiv@archlinux.org>
-# Contributor (Arch): Mateusz Herych <heniekk@gmail.com>
-# Contributor (Arch): Charles Lindsay <charles@chaoslizard.org>
-# Maintainer: André Silva <emulatorman@parabola.nu>
-
-_pkgname=vhba-module
-pkgname=vhba-module-libre
-pkgver=20140629
-_extramodules=extramodules-3.16-libre
-pkgrel=6
-pkgdesc="Kernel module that emulates SCSI devices (built for the linux-libre kernel package)"
-arch=('i686' 'x86_64' 'mips64el')
-url="http://cdemu.sourceforge.net/"
-license=('GPL')
-depends=('linux-libre>=3.16' 'linux-libre<3.17')
-makedepends=('linux-libre-headers>=3.16' 'linux-libre-headers<3.17')
-options=(!makeflags)
-install=$_pkgname.install
-replaces=('vhba-module')
-conflicts=('vhba-module')
-provides=("vhba-module=$pkgver")
-source=("http://downloads.sourceforge.net/cdemu/$_pkgname-$pkgver.tar.bz2"
- '60-vhba.rules')
-md5sums=('6b307a80df9c163768cc7ecb3ccebb71'
- '4dc37dc348b5a2c83585829bde790dcc')
-
-build() {
- cd $_pkgname-$pkgver
- _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
- make KDIR=/usr/lib/modules/$_kernver/build
-}
-
-package() {
- cd $_pkgname-$pkgver
- 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"
-
- cd $startdir
- cp -f $install ${install}.pkg
- true && install=${install}.pkg
- sed -i "s/EXTRAMODULES=.*/EXTRAMODULES=$_extramodules/" $install
-}
-
-# vim:set ts=2 sw=2 et:
diff --git a/libre/vhba-module-libre/60-vhba.rules b/libre/vhba-module-parabola-grsec/60-vhba.rules
index 39ae3a4ec..39ae3a4ec 100644
--- a/libre/vhba-module-libre/60-vhba.rules
+++ b/libre/vhba-module-parabola-grsec/60-vhba.rules
diff --git a/libre/vhba-module-parabola-grsec/PKGBUILD b/libre/vhba-module-parabola-grsec/PKGBUILD
new file mode 100644
index 000000000..ec010b212
--- /dev/null
+++ b/libre/vhba-module-parabola-grsec/PKGBUILD
@@ -0,0 +1,61 @@
+# $Id: PKGBUILD 116828 2014-08-04 07:19:43Z tpowa $
+# Maintainer (Arch): Ray Rashif <schiv@archlinux.org>
+# Contributor (Arch): Mateusz Herych <heniekk@gmail.com>
+# Contributor (Arch): Charles Lindsay <charles@chaoslizard.org>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
+
+# 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=7.${_basekernel/./}
+arch=('i686' 'x86_64')
+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:--PARABOLA}
+depends=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}")
+makedepends=("linux-libre${_kernelname}-headers>=${_basekernel}" "linux-libre${_kernelname}-headers<${_toohigh}")
+replaces=( "${_pkgname}${_kernelname}") # for Arch-compatability
+conflicts=("${_pkgname}${_kernelname}") # for Arch-compatability
+provides=( "${_pkgname}${_kernelname}=${pkgver}") # for Arch-compatability
+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-libre/vhba-module.install b/libre/vhba-module-parabola-grsec/vhba-module.install
index 793cffd8d..04d26b27b 100644
--- a/libre/vhba-module-libre/vhba-module.install
+++ b/libre/vhba-module-parabola-grsec/vhba-module.install
@@ -1,17 +1,15 @@
-EXTRAMODULES=
-
_updatemod() {
- echo " > Updating module dependencies..."
- depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+ _extramodules=THIS_IS_AUTOMATICALLY_SET_BY_PKGBUILD
+ depmod $(cat /usr/lib/modules/${_extramodules}/version)
}
post_install() {
- post_upgrade
+ getent group cdemu &>/dev/null || groupadd -r cdemu
+ _updatemod
}
post_upgrade() {
- getent group cdemu &>/dev/null || groupadd -r cdemu
- _updatemod
+ post_install
}
post_remove() {
diff --git a/libre/vhba-module-parabola-lts/60-vhba.rules b/libre/vhba-module-parabola-lts/60-vhba.rules
new file mode 100644
index 000000000..39ae3a4ec
--- /dev/null
+++ b/libre/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/libre/vhba-module-parabola-lts/PKGBUILD b/libre/vhba-module-parabola-lts/PKGBUILD
new file mode 100644
index 000000000..119c0ae55
--- /dev/null
+++ b/libre/vhba-module-parabola-lts/PKGBUILD
@@ -0,0 +1,61 @@
+# $Id: PKGBUILD 116828 2014-08-04 07:19:43Z tpowa $
+# Maintainer (Arch): Ray Rashif <schiv@archlinux.org>
+# Contributor (Arch): Mateusz Herych <heniekk@gmail.com>
+# Contributor (Arch): Charles Lindsay <charles@chaoslizard.org>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
+
+# 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=7.${_basekernel/./}
+arch=('i686' 'x86_64')
+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:--PARABOLA}
+depends=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}")
+makedepends=("linux-libre${_kernelname}-headers>=${_basekernel}" "linux-libre${_kernelname}-headers<${_toohigh}")
+replaces=( "${_pkgname}${_kernelname}") # for Arch-compatability
+conflicts=("${_pkgname}${_kernelname}") # for Arch-compatability
+provides=( "${_pkgname}${_kernelname}=${pkgver}") # for Arch-compatability
+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
new file mode 100644
index 000000000..04d26b27b
--- /dev/null
+++ b/libre/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:
diff --git a/libre/vhba-module-parabola/60-vhba.rules b/libre/vhba-module-parabola/60-vhba.rules
new file mode 100644
index 000000000..39ae3a4ec
--- /dev/null
+++ b/libre/vhba-module-parabola/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/libre/vhba-module-parabola/PKGBUILD b/libre/vhba-module-parabola/PKGBUILD
new file mode 100644
index 000000000..ae08287c3
--- /dev/null
+++ b/libre/vhba-module-parabola/PKGBUILD
@@ -0,0 +1,61 @@
+# $Id: PKGBUILD 116828 2014-08-04 07:19:43Z tpowa $
+# Maintainer (Arch): Ray Rashif <schiv@archlinux.org>
+# Contributor (Arch): Mateusz Herych <heniekk@gmail.com>
+# Contributor (Arch): Charles Lindsay <charles@chaoslizard.org>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
+
+# Kernel info
+_basekernel=3.16
+_kernelname=
+
+# 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=7.${_basekernel/./}
+arch=('i686' 'x86_64')
+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:--PARABOLA}
+depends=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}")
+makedepends=("linux-libre${_kernelname}-headers>=${_basekernel}" "linux-libre${_kernelname}-headers<${_toohigh}")
+replaces=( "${_pkgname}${_kernelname}") # for Arch-compatability
+conflicts=("${_pkgname}${_kernelname}") # for Arch-compatability
+provides=( "${_pkgname}${_kernelname}=${pkgver}") # for Arch-compatability
+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/vhba-module.install b/libre/vhba-module-parabola/vhba-module.install
new file mode 100644
index 000000000..04d26b27b
--- /dev/null
+++ b/libre/vhba-module-parabola/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: