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

Felix Yan felixonmars at archlinux.org
Fri Jan 19 20:44:19 UTC 2018


    Date: Friday, January 19, 2018 @ 20:44:18
  Author: felixonmars
Revision: 284200

archrelease: copy trunk to community-testing-any

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

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

Copied: systemd-swap/repos/community-testing-any/PKGBUILD (from rev 284199, systemd-swap/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2018-01-19 20:44:18 UTC (rev 284200)
@@ -0,0 +1,25 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Timofey Titovets <Nefelim4ag at gmail.com>
+
+pkgname=systemd-swap
+pkgver=4.0.0
+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')
+depends=('systemd' 'bash')
+backup=('etc/systemd/swap.conf')
+install="$pkgname.install"
+source=("$pkgname-$pkgver.tar.gz::https://github.com/Nefelim4ag/systemd-swap/archive/$pkgver.tar.gz")
+sha512sums=('da0913da75a8137b6d1c40c82aabd22073b8fb2f662d9d0773740ea4d5515bdef62aa80c6e3f453f2ce7f4a6a290d3545f3a7d82aae550128703459c005369b5')
+
+package() {
+  cd systemd-swap-$pkgver
+  make PREFIX="$pkgdir" install
+
+  install -dm755 "$pkgdir"/usr/lib
+  mv "$pkgdir"/lib/systemd "$pkgdir"/usr/lib/systemd
+  rmdir "$pkgdir"/lib
+}

Copied: systemd-swap/repos/community-testing-any/systemd-swap.install (from rev 284199, systemd-swap/trunk/systemd-swap.install)
===================================================================
--- community-testing-any/systemd-swap.install	                        (rev 0)
+++ community-testing-any/systemd-swap.install	2018-01-19 20:44:18 UTC (rev 284200)
@@ -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