summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-03-27 09:12:02 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-03-27 09:23:05 -0400
commit868c2a98a09c984ddef3f6b82e89625c2b46573a (patch)
treef866a21bbfb0b070373383eabc4d9e5e87a01540
parent49600a8113df8815fe447626fe3791e454efe157 (diff)
config-mgmt-swap: Tidy up.
- Use the new LINUX-ABI_VERSION pseudo-package. - Simplify a sed expression
-rw-r--r--config-mgmt-swap.PKGBUILD9
1 files 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/