[arch-commits] Commit in btrfs-progs/repos (14 files)

Sébastien Luttringer seblu at archlinux.org
Mon May 2 22:34:38 UTC 2016


    Date: Tuesday, May 3, 2016 @ 00:34:38
  Author: seblu
Revision: 266780

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  btrfs-progs/repos/testing-i686/
  btrfs-progs/repos/testing-i686/PKGBUILD
    (from rev 266779, btrfs-progs/trunk/PKGBUILD)
  btrfs-progs/repos/testing-i686/btrfs-progs.install
    (from rev 266779, btrfs-progs/trunk/btrfs-progs.install)
  btrfs-progs/repos/testing-i686/btrfs-scrub at .service
    (from rev 266779, btrfs-progs/trunk/btrfs-scrub at .service)
  btrfs-progs/repos/testing-i686/btrfs-scrub at .timer
    (from rev 266779, btrfs-progs/trunk/btrfs-scrub at .timer)
  btrfs-progs/repos/testing-i686/initcpio-hook-btrfs
    (from rev 266779, btrfs-progs/trunk/initcpio-hook-btrfs)
  btrfs-progs/repos/testing-i686/initcpio-install-btrfs
    (from rev 266779, btrfs-progs/trunk/initcpio-install-btrfs)
  btrfs-progs/repos/testing-x86_64/
  btrfs-progs/repos/testing-x86_64/PKGBUILD
    (from rev 266779, btrfs-progs/trunk/PKGBUILD)
  btrfs-progs/repos/testing-x86_64/btrfs-progs.install
    (from rev 266779, btrfs-progs/trunk/btrfs-progs.install)
  btrfs-progs/repos/testing-x86_64/btrfs-scrub at .service
    (from rev 266779, btrfs-progs/trunk/btrfs-scrub at .service)
  btrfs-progs/repos/testing-x86_64/btrfs-scrub at .timer
    (from rev 266779, btrfs-progs/trunk/btrfs-scrub at .timer)
  btrfs-progs/repos/testing-x86_64/initcpio-hook-btrfs
    (from rev 266779, btrfs-progs/trunk/initcpio-hook-btrfs)
  btrfs-progs/repos/testing-x86_64/initcpio-install-btrfs
    (from rev 266779, btrfs-progs/trunk/initcpio-install-btrfs)

---------------------------------------+
 testing-i686/PKGBUILD                 |   60 ++++++++++++++++++++++++++++++++
 testing-i686/btrfs-progs.install      |   15 ++++++++
 testing-i686/btrfs-scrub at .service     |    7 +++
 testing-i686/btrfs-scrub at .timer       |   10 +++++
 testing-i686/initcpio-hook-btrfs      |    7 +++
 testing-i686/initcpio-install-btrfs   |   17 +++++++++
 testing-x86_64/PKGBUILD               |   60 ++++++++++++++++++++++++++++++++
 testing-x86_64/btrfs-progs.install    |   15 ++++++++
 testing-x86_64/btrfs-scrub at .service   |    7 +++
 testing-x86_64/btrfs-scrub at .timer     |   10 +++++
 testing-x86_64/initcpio-hook-btrfs    |    7 +++
 testing-x86_64/initcpio-install-btrfs |   17 +++++++++
 12 files changed, 232 insertions(+)

Copied: btrfs-progs/repos/testing-i686/PKGBUILD (from rev 266779, btrfs-progs/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2016-05-02 22:34:38 UTC (rev 266780)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Sébastien "Seblu" Luttringer <seblu at archlinux.org>
+# Contributor: Tom Gundersen <teg at jklm.no>
+# Contributor: Tobias Powalowski <tpowa at archlinux.org>
+
+pkgname=btrfs-progs
+pkgver=4.5.2
+pkgrel=1
+pkgdesc='Btrfs filesystem utilities'
+arch=('i686' 'x86_64')
+depends=('glibc' 'libutil-linux' 'e2fsprogs' 'lzo' 'zlib')
+makedepends=('git' 'asciidoc' 'xmlto')
+url='http://btrfs.wiki.kernel.org/'
+replaces=('btrfs-progs-unstable')
+conflicts=('btrfs-progs-unstable')
+provides=('btrfs-progs-unstable')
+license=('GPL2')
+source=("git://git.kernel.org/pub/scm/linux/kernel/git/kdave/$pkgname.git#tag=v$pkgver"
+        'initcpio-install-btrfs'
+        'initcpio-hook-btrfs'
+        'btrfs-scrub at .service'
+        'btrfs-scrub at .timer')
+install=btrfs-progs.install
+options=(!staticlibs)
+md5sums=('SKIP'
+         '7241ba3a4286d08da0d50b7176941112'
+         'b09688a915a0ec8f40e2f5aacbabc9ad'
+         '794b867e09451284c545bae112aa0cfd'
+         'a290e0ab88b7b4675cd20f5a2befc8cb')
+
+build() {
+  cd $pkgname
+  ./autogen.sh
+  ./configure --prefix=/usr
+  make
+}
+
+check() {
+  cd $pkgname
+ ./btrfs filesystem show
+}
+
+package() {
+  cd $pkgname
+  make prefix="$pkgdir"/usr install
+
+  # install bash completion (FS#44618)
+  install -Dm644 btrfs-completion "$pkgdir/usr/share/bash-completion/completions/btrfs"
+
+  # install mkinitcpio hooks
+  cd "$srcdir"
+  install -Dm644 initcpio-install-btrfs "$pkgdir/usr/lib/initcpio/install/btrfs"
+  install -Dm644 initcpio-hook-btrfs "$pkgdir/usr/lib/initcpio/hooks/btrfs"
+
+  # install scrub service/timer
+  install -Dm644 btrfs-scrub at .service "$pkgdir/usr/lib/systemd/system/btrfs-scrub at .service"
+  install -Dm644 btrfs-scrub at .timer "$pkgdir/usr/lib/systemd/system/btrfs-scrub at .timer"
+}
+
+# vim:set ts=2 sw=2 ft=sh et:

Copied: btrfs-progs/repos/testing-i686/btrfs-progs.install (from rev 266779, btrfs-progs/trunk/btrfs-progs.install)
===================================================================
--- testing-i686/btrfs-progs.install	                        (rev 0)
+++ testing-i686/btrfs-progs.install	2016-05-02 22:34:38 UTC (rev 266780)
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+## arg 1:  the new package version
+## arg 2:  the old package version
+post_upgrade() {
+  if (( "$(vercmp "$2" 0.19.20121005)" < 0 )); then
+    echo 'btrfs multi-device support now relies on linux 3.6 or later'
+  elif (( "$(vercmp "$2" 4.3.1-2)" < 0 )); then
+    echo 'btrfs-scrub at .timer instance names must not be prefix by dash anymore'
+    echo 'use btrfs-scrub at -.timer to scrub / monthly'
+    echo '    btrfs-scrub at home.timer to scrub /home monthly.'
+  fi
+}
+
+# vim:set ts=2 sw=2 et:

Copied: btrfs-progs/repos/testing-i686/btrfs-scrub at .service (from rev 266779, btrfs-progs/trunk/btrfs-scrub at .service)
===================================================================
--- testing-i686/btrfs-scrub at .service	                        (rev 0)
+++ testing-i686/btrfs-scrub at .service	2016-05-02 22:34:38 UTC (rev 266780)
@@ -0,0 +1,7 @@
+[Unit]
+Description=Btrfs scrub on %f
+
+[Service]
+Nice=19
+IOSchedulingClass=idle
+ExecStart=/usr/bin/btrfs scrub start -B %f

Copied: btrfs-progs/repos/testing-i686/btrfs-scrub at .timer (from rev 266779, btrfs-progs/trunk/btrfs-scrub at .timer)
===================================================================
--- testing-i686/btrfs-scrub at .timer	                        (rev 0)
+++ testing-i686/btrfs-scrub at .timer	2016-05-02 22:34:38 UTC (rev 266780)
@@ -0,0 +1,10 @@
+[Unit]
+Description=Monthly Btrfs scrub on %I
+
+[Timer]
+OnCalendar=monthly
+AccuracySec=1d
+Persistent=true
+
+[Install]
+WantedBy=multi-user.target

Copied: btrfs-progs/repos/testing-i686/initcpio-hook-btrfs (from rev 266779, btrfs-progs/trunk/initcpio-hook-btrfs)
===================================================================
--- testing-i686/initcpio-hook-btrfs	                        (rev 0)
+++ testing-i686/initcpio-hook-btrfs	2016-05-02 22:34:38 UTC (rev 266780)
@@ -0,0 +1,7 @@
+#!/usr/bin/ash
+
+run_hook() {
+    btrfs device scan
+}
+
+# vim: set ft=sh ts=4 sw=4 et:

Copied: btrfs-progs/repos/testing-i686/initcpio-install-btrfs (from rev 266779, btrfs-progs/trunk/initcpio-install-btrfs)
===================================================================
--- testing-i686/initcpio-install-btrfs	                        (rev 0)
+++ testing-i686/initcpio-install-btrfs	2016-05-02 22:34:38 UTC (rev 266780)
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+build() {
+    add_module btrfs
+    add_binary btrfs
+    add_binary btrfsck
+    add_runscript
+}
+
+help() {
+    cat <<HELPEOF
+This hook provides support for multi-device btrfs volumes. This hook
+is only needed for initramfs images which do not use udev.
+HELPEOF
+}
+
+# vim: set ft=sh ts=4 sw=4 et:

Copied: btrfs-progs/repos/testing-x86_64/PKGBUILD (from rev 266779, btrfs-progs/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2016-05-02 22:34:38 UTC (rev 266780)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Sébastien "Seblu" Luttringer <seblu at archlinux.org>
+# Contributor: Tom Gundersen <teg at jklm.no>
+# Contributor: Tobias Powalowski <tpowa at archlinux.org>
+
+pkgname=btrfs-progs
+pkgver=4.5.2
+pkgrel=1
+pkgdesc='Btrfs filesystem utilities'
+arch=('i686' 'x86_64')
+depends=('glibc' 'libutil-linux' 'e2fsprogs' 'lzo' 'zlib')
+makedepends=('git' 'asciidoc' 'xmlto')
+url='http://btrfs.wiki.kernel.org/'
+replaces=('btrfs-progs-unstable')
+conflicts=('btrfs-progs-unstable')
+provides=('btrfs-progs-unstable')
+license=('GPL2')
+source=("git://git.kernel.org/pub/scm/linux/kernel/git/kdave/$pkgname.git#tag=v$pkgver"
+        'initcpio-install-btrfs'
+        'initcpio-hook-btrfs'
+        'btrfs-scrub at .service'
+        'btrfs-scrub at .timer')
+install=btrfs-progs.install
+options=(!staticlibs)
+md5sums=('SKIP'
+         '7241ba3a4286d08da0d50b7176941112'
+         'b09688a915a0ec8f40e2f5aacbabc9ad'
+         '794b867e09451284c545bae112aa0cfd'
+         'a290e0ab88b7b4675cd20f5a2befc8cb')
+
+build() {
+  cd $pkgname
+  ./autogen.sh
+  ./configure --prefix=/usr
+  make
+}
+
+check() {
+  cd $pkgname
+ ./btrfs filesystem show
+}
+
+package() {
+  cd $pkgname
+  make prefix="$pkgdir"/usr install
+
+  # install bash completion (FS#44618)
+  install -Dm644 btrfs-completion "$pkgdir/usr/share/bash-completion/completions/btrfs"
+
+  # install mkinitcpio hooks
+  cd "$srcdir"
+  install -Dm644 initcpio-install-btrfs "$pkgdir/usr/lib/initcpio/install/btrfs"
+  install -Dm644 initcpio-hook-btrfs "$pkgdir/usr/lib/initcpio/hooks/btrfs"
+
+  # install scrub service/timer
+  install -Dm644 btrfs-scrub at .service "$pkgdir/usr/lib/systemd/system/btrfs-scrub at .service"
+  install -Dm644 btrfs-scrub at .timer "$pkgdir/usr/lib/systemd/system/btrfs-scrub at .timer"
+}
+
+# vim:set ts=2 sw=2 ft=sh et:

Copied: btrfs-progs/repos/testing-x86_64/btrfs-progs.install (from rev 266779, btrfs-progs/trunk/btrfs-progs.install)
===================================================================
--- testing-x86_64/btrfs-progs.install	                        (rev 0)
+++ testing-x86_64/btrfs-progs.install	2016-05-02 22:34:38 UTC (rev 266780)
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+## arg 1:  the new package version
+## arg 2:  the old package version
+post_upgrade() {
+  if (( "$(vercmp "$2" 0.19.20121005)" < 0 )); then
+    echo 'btrfs multi-device support now relies on linux 3.6 or later'
+  elif (( "$(vercmp "$2" 4.3.1-2)" < 0 )); then
+    echo 'btrfs-scrub at .timer instance names must not be prefix by dash anymore'
+    echo 'use btrfs-scrub at -.timer to scrub / monthly'
+    echo '    btrfs-scrub at home.timer to scrub /home monthly.'
+  fi
+}
+
+# vim:set ts=2 sw=2 et:

Copied: btrfs-progs/repos/testing-x86_64/btrfs-scrub at .service (from rev 266779, btrfs-progs/trunk/btrfs-scrub at .service)
===================================================================
--- testing-x86_64/btrfs-scrub at .service	                        (rev 0)
+++ testing-x86_64/btrfs-scrub at .service	2016-05-02 22:34:38 UTC (rev 266780)
@@ -0,0 +1,7 @@
+[Unit]
+Description=Btrfs scrub on %f
+
+[Service]
+Nice=19
+IOSchedulingClass=idle
+ExecStart=/usr/bin/btrfs scrub start -B %f

Copied: btrfs-progs/repos/testing-x86_64/btrfs-scrub at .timer (from rev 266779, btrfs-progs/trunk/btrfs-scrub at .timer)
===================================================================
--- testing-x86_64/btrfs-scrub at .timer	                        (rev 0)
+++ testing-x86_64/btrfs-scrub at .timer	2016-05-02 22:34:38 UTC (rev 266780)
@@ -0,0 +1,10 @@
+[Unit]
+Description=Monthly Btrfs scrub on %I
+
+[Timer]
+OnCalendar=monthly
+AccuracySec=1d
+Persistent=true
+
+[Install]
+WantedBy=multi-user.target

Copied: btrfs-progs/repos/testing-x86_64/initcpio-hook-btrfs (from rev 266779, btrfs-progs/trunk/initcpio-hook-btrfs)
===================================================================
--- testing-x86_64/initcpio-hook-btrfs	                        (rev 0)
+++ testing-x86_64/initcpio-hook-btrfs	2016-05-02 22:34:38 UTC (rev 266780)
@@ -0,0 +1,7 @@
+#!/usr/bin/ash
+
+run_hook() {
+    btrfs device scan
+}
+
+# vim: set ft=sh ts=4 sw=4 et:

Copied: btrfs-progs/repos/testing-x86_64/initcpio-install-btrfs (from rev 266779, btrfs-progs/trunk/initcpio-install-btrfs)
===================================================================
--- testing-x86_64/initcpio-install-btrfs	                        (rev 0)
+++ testing-x86_64/initcpio-install-btrfs	2016-05-02 22:34:38 UTC (rev 266780)
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+build() {
+    add_module btrfs
+    add_binary btrfs
+    add_binary btrfsck
+    add_runscript
+}
+
+help() {
+    cat <<HELPEOF
+This hook provides support for multi-device btrfs volumes. This hook
+is only needed for initramfs images which do not use udev.
+HELPEOF
+}
+
+# vim: set ft=sh ts=4 sw=4 et:



More information about the arch-commits mailing list