[arch-commits] Commit in systemd-swap/repos (3 files)

Felix Yan felixonmars at archlinux.org
Thu Oct 27 07:17:04 UTC 2016


    Date: Thursday, October 27, 2016 @ 07:17:04
  Author: felixonmars
Revision: 193774

archrelease: copy trunk to community-testing-any

Added:
  systemd-swap/repos/community-testing-any/
  systemd-swap/repos/community-testing-any/PKGBUILD
    (from rev 193773, systemd-swap/trunk/PKGBUILD)
  systemd-swap/repos/community-testing-any/systemd-swap.install
    (from rev 193773, systemd-swap/trunk/systemd-swap.install)

----------------------+
 PKGBUILD             |   28 ++++++++++++++++++++++++++++
 systemd-swap.install |    5 +++++
 2 files changed, 33 insertions(+)

Copied: systemd-swap/repos/community-testing-any/PKGBUILD (from rev 193773, systemd-swap/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2016-10-27 07:17:04 UTC (rev 193774)
@@ -0,0 +1,28 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Timofey Titovets <Nefelim4ag at gmail.com>
+
+pkgname=systemd-swap
+pkgver=3.1.1
+pkgrel=1
+pkgdesc="Script for creating hybrid swap space from zram swaps, swap files and swap partitions."
+arch=('any')
+url="https://github.com/Nefelim4ag/systemd-swap"
+license=('GPL3')
+conflicts=(systemd-loop-swapfile zramswap zram)
+depends=('systemd' 'bash')
+makedepends=('git')
+backup=(etc/systemd/swap.conf)
+install=$pkgname.install
+source=("git://github.com/Nefelim4ag/systemd-swap.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  # Upstream approach doesn't seem to work :/
+  sed -i 's_^PREFIX="/"$_PREFIX="$1"_' systemd-swap/install.sh
+}
+
+package() {
+  cd systemd-swap
+  ./install.sh "$pkgdir"
+}

Copied: systemd-swap/repos/community-testing-any/systemd-swap.install (from rev 193773, systemd-swap/trunk/systemd-swap.install)
===================================================================
--- community-testing-any/systemd-swap.install	                        (rev 0)
+++ community-testing-any/systemd-swap.install	2016-10-27 07:17:04 UTC (rev 193774)
@@ -0,0 +1,5 @@
+post_upgrade() {
+  if [[ $(vercmp "$2" 3) < 0 ]]; then
+    echo "Since 3.0, the config file was moved to /etc/systemd/swap.conf, and incompatible with the old syntax. Please adjust your settings accordingly."
+  fi
+}



More information about the arch-commits mailing list