summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
authorDavid P <megver83@openmailbox.org>2017-10-25 19:11:23 -0300
committerDavid P <megver83@openmailbox.org>2017-10-25 19:11:23 -0300
commit1a92ef6e97e03c6b37579e84d844242cc98d97d7 (patch)
treecb3b17b19dabe19b4a78761c7c131838656ea317 /libre
parent57924946a4b2e39735c9df6f9d2f0c8943820993 (diff)
downloadabslibre-1a92ef6e97e03c6b37579e84d844242cc98d97d7.tar.gz
abslibre-1a92ef6e97e03c6b37579e84d844242cc98d97d7.tar.bz2
abslibre-1a92ef6e97e03c6b37579e84d844242cc98d97d7.zip
Add linux{-libre}-grsec in replaces
Diffstat (limited to 'libre')
-rw-r--r--libre/linux-libre-hardened/PKGBUILD12
1 files changed, 9 insertions, 3 deletions
diff --git a/libre/linux-libre-hardened/PKGBUILD b/libre/linux-libre-hardened/PKGBUILD
index 682955274..f7311c4c5 100644
--- a/libre/linux-libre-hardened/PKGBUILD
+++ b/libre/linux-libre-hardened/PKGBUILD
@@ -15,6 +15,7 @@ _pkgver=4.13.9-gnu
_hardenedver=a
_replacesarchkernel=('linux%') # '%' gets replaced with _kernelname
+_replacesarchgrsec=(${_replacesarchkernel}) # '%' gets replaced with _grsecname
_replacesoldkernels=() # '%' gets replaced with _kernelname
_replacesoldmodules=() # '%' gets replaced with _kernelname
@@ -54,6 +55,7 @@ source=("https://linux-libre.fsfla.org/pub/linux-libre/releases/${_pkgbasever}/l
'0007-exynos4412-odroid-set-higher-minimum-buck2-regulator.patch'
'0008-disable-USB3-port-on-ODROID-XU.patch'
'0009-ARM-dove-enable-ethernet-on-D3Plug.patch')
+replaces=('linux-grsec' 'linux-libre-grsec')
sha512sums=('9ad6866c68f29f7e4f8b53d0b857f9b3c7f6abd0054460675c76f3100db34a77c2777d7f4191831008b532cb2ab6f686d8c4f457a4d005226c73f90937963518'
'SKIP'
'12221d0eb85f30eace8fac389c27d3455df11475c466b600c466a2cb843435a406cf663547cb7a0aa8340ac4bd178ba4e694136e5172c1c396bd033ab840ac4e'
@@ -91,10 +93,14 @@ validpgpkeys=(
)
_kernelname=${pkgbase#linux-libre}
+_grsecname=-grsec
+_replacesarchgrsec=("${_replacesarchgrsec[@]/\%/${_grsecname}}")
+_replacesgrsec=("${pkgbase/${_kernelname}/${_grsecname}}")
_replacesarchkernel=("${_replacesarchkernel[@]/\%/${_kernelname}}")
_replacesoldkernels=("${_replacesoldkernels[@]/\%/${_kernelname}}")
_replacesoldmodules=("${_replacesoldmodules[@]/\%/${_kernelname}}")
+
case "${CARCH}" in
i686|x86_64) KARCH=x86;;
armv7h) KARCH=arm;;
@@ -186,7 +192,7 @@ _package() {
optdepends=('crda: to set the correct wireless channels of your country')
provides=("${_replacesarchkernel[@]/%/=${_archpkgver}}" "LINUX-ABI_VERSION=${_archpkgver}")
conflicts=("${_replacesarchkernel[@]}" "${_replacesoldkernels[@]}" "${_replacesoldmodules[@]}")
- replaces=("${_replacesarchkernel[@]}" "${_replacesoldkernels[@]}" "${_replacesoldmodules[@]}")
+ replaces=("${_replacesarchkernel[@]}" "${_replacesoldkernels[@]}" "${_replacesoldmodules[@]}" "${_replacesarchgrsec[@]}" "${_replacesgrsec[@]}")
backup=("etc/mkinitcpio.d/${pkgbase}.preset")
install=linux.install
@@ -252,7 +258,7 @@ _package-headers() {
pkgdesc="Header files and scripts for building modules for ${pkgbase^} kernel"
provides=("${_replacesarchkernel[@]/%/-headers=${_archpkgver}.${_hardenedver}}")
conflicts=("${_replacesarchkernel[@]/%/-headers}" "${_replacesoldkernels[@]/%/-headers}")
- replaces=("${_replacesarchkernel[@]/%/-headers}" "${_replacesoldkernels[@]/%/-headers}")
+ replaces=("${_replacesarchkernel[@]/%/-headers}" "${_replacesoldkernels[@]/%/-headers}" "${_replacesarchgrsec[@]/%/-headers}" "${_replacesgrsec[@]/%/-headers}")
install -dm755 "${pkgdir}/usr/lib/modules/${_kernver}"
@@ -393,7 +399,7 @@ _package-docs() {
pkgdesc="Kernel hackers manual - HTML documentation that comes with the ${pkgbase^} kernel"
provides=("${_replacesarchkernel[@]/%/-docs=${_archpkgver}.${_hardenedver}}")
conflicts=("${_replacesarchkernel[@]/%/-docs}" "${_replacesoldkernels[@]/%/-docs}")
- replaces=("${_replacesarchkernel[@]/%/-docs}" "${_replacesoldkernels[@]/%/-docs}")
+ replaces=("${_replacesarchkernel[@]/%/-docs}" "${_replacesoldkernels[@]/%/-docs}" "${_replacesarchgrsec[@]/%/-docs}" "${_replacesgrsec[@]/%/-docs}")
cd "${srcdir}/${_srcname}"