From 868c2a98a09c984ddef3f6b82e89625c2b46573a Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 27 Mar 2017 09:12:02 -0400 Subject: config-mgmt-swap: Tidy up. - Use the new LINUX-ABI_VERSION pseudo-package. - Simplify a sed expression --- config-mgmt-swap.PKGBUILD | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/config-mgmt-swap.PKGBUILD b/config-mgmt-swap.PKGBUILD index 48f3318..abd7197 100644 --- a/config-mgmt-swap.PKGBUILD +++ b/config-mgmt-swap.PKGBUILD @@ -1,11 +1,12 @@ . ${BUILDFILE%/*}/common.sh -pkgver=20170322 +pkgver=20170327 package() { preamble -depends=(systemd-swap) -conflicts=('linux-lts<4.7') # because we want z3fold compression from 4.7 +# we want z3fold compression from 4.7 +depends=(systemd-swap 'LINUX-ABI_VERSION>=4.7') +conflicts=('LINUX-ABI_VERSION<4.7') # In addition to what's configured in fstab, we use systemd-swap to # manage advanced swap devices. There are 3 things we enable in @@ -21,7 +22,7 @@ sed ' s/^# Zswap\$/& (compress pages on disk)/ s/zswap_enabled=.*/zswap_enabled=1/ - /^# ZRam\$/s/.*/& (compress pages in RAM)/ + s/^# ZRam\$/& (compress pages in RAM)/ s/zram_enabled=.*/zram_enabled=1/ s/swapfc_enabled=.*/swapfc_enabled=1/ -- cgit v1.2.3-54-g00ecf