summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-04-23 19:47:10 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-04-23 19:47:10 -0300
commit561b651e14ae7a91bd6115bb5a3dbf70a7035475 (patch)
treebe6f4880c5aedba9239f46344a7d201b5345bf37 /libre
parent4d00ddf7e1275ad8e241dbf76507c13454b4ffe8 (diff)
downloadabslibre-561b651e14ae7a91bd6115bb5a3dbf70a7035475.tar.gz
abslibre-561b651e14ae7a91bd6115bb5a3dbf70a7035475.tar.bz2
abslibre-561b651e14ae7a91bd6115bb5a3dbf70a7035475.zip
linux-libre-grsec-3.14.1.201404201132-2: ship the gcc plugins for building out-of-tree kernel modules
Diffstat (limited to 'libre')
-rw-r--r--libre/linux-libre-grsec/PKGBUILD8
1 files changed, 7 insertions, 1 deletions
diff --git a/libre/linux-libre-grsec/PKGBUILD b/libre/linux-libre-grsec/PKGBUILD
index 576441ea3..e0b817989 100644
--- a/libre/linux-libre-grsec/PKGBUILD
+++ b/libre/linux-libre-grsec/PKGBUILD
@@ -17,7 +17,7 @@ _grsecver=3.0
_timestamp=201404201132
_pkgver=${_basekernel}.${_sublevel}
pkgver=${_basekernel}.${_sublevel}.${_timestamp}
-pkgrel=1
+pkgrel=2
_lxopkgver=${_basekernel}.0 # nearly always the same as pkgver
arch=('i686' 'x86_64' 'mips64el')
url="https://grsecurity.net/"
@@ -272,6 +272,12 @@ _package() {
# add vmlinux
install -D -m644 vmlinux "${pkgdir}/usr/lib/modules/${_kernver}/build/vmlinux"
+ # add grsecurity gcc plugins
+ mkdir -p "$pkgdir/usr/lib/modules/${_kernver}/build/tools/gcc"
+ cp -a tools/gcc/*.h "$pkgdir/usr/lib/modules/${_kernver}/build/tools/gcc/"
+ cp -a tools/gcc/Makefile "$pkgdir/usr/lib/modules/${_kernver}/build/tools/gcc/"
+ install -m644 tools/gcc/*.so "$pkgdir/usr/lib/modules/${_kernver}/build/tools/gcc/"
+
# install sysctl configuration for grsecurity switches
install -Dm600 "${srcdir}/sysctl.conf" "${pkgdir}/etc/sysctl.d/05-grsecurity.conf"
}