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

Dave Reisner dreisner at archlinux.org
Tue Jul 24 01:22:05 UTC 2012


    Date: Monday, July 23, 2012 @ 21:22:05
  Author: dreisner
Revision: 164015

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

Added:
  btrfs-progs/repos/testing-i686/
  btrfs-progs/repos/testing-i686/70-btrfs.rules
    (from rev 164014, btrfs-progs/trunk/70-btrfs.rules)
  btrfs-progs/repos/testing-i686/PKGBUILD
    (from rev 164014, btrfs-progs/trunk/PKGBUILD)
  btrfs-progs/repos/testing-i686/initcpio-hook-btrfs
    (from rev 164014, btrfs-progs/trunk/initcpio-hook-btrfs)
  btrfs-progs/repos/testing-i686/initcpio-install-btrfs
    (from rev 164014, btrfs-progs/trunk/initcpio-install-btrfs)
  btrfs-progs/repos/testing-x86_64/
  btrfs-progs/repos/testing-x86_64/70-btrfs.rules
    (from rev 164014, btrfs-progs/trunk/70-btrfs.rules)
  btrfs-progs/repos/testing-x86_64/PKGBUILD
    (from rev 164014, btrfs-progs/trunk/PKGBUILD)
  btrfs-progs/repos/testing-x86_64/initcpio-hook-btrfs
    (from rev 164014, btrfs-progs/trunk/initcpio-hook-btrfs)
  btrfs-progs/repos/testing-x86_64/initcpio-install-btrfs
    (from rev 164014, btrfs-progs/trunk/initcpio-install-btrfs)

---------------------------------------+
 testing-i686/70-btrfs.rules           |    1 
 testing-i686/PKGBUILD                 |   46 ++++++++++++++++++++++++++++++++
 testing-i686/initcpio-hook-btrfs      |   10 ++++++
 testing-i686/initcpio-install-btrfs   |   17 +++++++++++
 testing-x86_64/70-btrfs.rules         |    1 
 testing-x86_64/PKGBUILD               |   46 ++++++++++++++++++++++++++++++++
 testing-x86_64/initcpio-hook-btrfs    |   10 ++++++
 testing-x86_64/initcpio-install-btrfs |   17 +++++++++++
 8 files changed, 148 insertions(+)

Copied: btrfs-progs/repos/testing-i686/70-btrfs.rules (from rev 164014, btrfs-progs/trunk/70-btrfs.rules)
===================================================================
--- testing-i686/70-btrfs.rules	                        (rev 0)
+++ testing-i686/70-btrfs.rules	2012-07-24 01:22:05 UTC (rev 164015)
@@ -0,0 +1 @@
+ACTION!="remove", SUBSYSTEM=="block", ENV{ID_FS_TYPE}=="btrfs", RUN+="/usr/bin/btrfs device scan /dev/%k"

Copied: btrfs-progs/repos/testing-i686/PKGBUILD (from rev 164014, btrfs-progs/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2012-07-24 01:22:05 UTC (rev 164015)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Tom Gundersen <teg at jklm.no>
+# Contributor: Tobias Powalowski <tpowa at archlinux.org>
+pkgname=btrfs-progs
+pkgver=0.19.20120328
+pkgrel=4
+pkgdesc="btrfs filesystem utilities"
+arch=(i686 x86_64)
+depends=('glibc' 'e2fsprogs')
+url="http://btrfs.wiki.kernel.org/"
+replaces=('btrfs-progs-unstable')
+conflicts=('btrfs-progs-unstable')
+provides=('btrfs-progs-unstable')
+license=('GPL2')
+source=(ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.xz
+        70-btrfs.rules
+        initcpio-install-btrfs
+        initcpio-hook-btrfs)
+md5sums=('f4504e73cf9254779b78d5b2318ac570'
+         '345c62c8b267082361729ca5b647518f'
+         'e5186ec3fe8a809b7473470128d1c4ab'
+         '9fb35142755b477a96cb7292f3d64839')
+
+build() {
+   cd $srcdir/$pkgname-$pkgver
+   make CFLAGS="$CFLAGS"
+}
+
+package() {
+   cd $srcdir/$pkgname-$pkgver
+   make prefix=$pkgdir/usr install
+   # fix manpage
+   mkdir -p $pkgdir/usr/share/
+   mv $pkgdir/usr/man $pkgdir/usr/share/man
+   mkdir -p ${pkgdir}/sbin
+   ln -sf /usr/bin/btrfs ${pkgdir}/sbin/btrfs
+
+   # add udev rule
+   install -Dm644 "$srcdir/70-btrfs.rules" "$pkgdir/usr/lib/udev/rules.d/70-btrfs.rules"
+
+   # install mkinitcpio hooks
+   install -Dm644 "$srcdir/initcpio-install-btrfs" \
+     "$pkgdir/usr/lib/initcpio/install/btrfs"
+   install -Dm644 "$srcdir/initcpio-hook-btrfs" \
+     "$pkgdir/usr/lib/initcpio/hooks/btrfs"
+}

Copied: btrfs-progs/repos/testing-i686/initcpio-hook-btrfs (from rev 164014, btrfs-progs/trunk/initcpio-hook-btrfs)
===================================================================
--- testing-i686/initcpio-hook-btrfs	                        (rev 0)
+++ testing-i686/initcpio-hook-btrfs	2012-07-24 01:22:05 UTC (rev 164015)
@@ -0,0 +1,10 @@
+#!/usr/bin/ash
+
+run_hook() {
+    # if udevd is running, this is done async by add/change events
+    if [ "$udevd_running" -ne 1 ]; then
+        btrfs device scan
+    fi
+}
+
+# vim: set ft=sh ts=4 sw=4 et:

Copied: btrfs-progs/repos/testing-i686/initcpio-install-btrfs (from rev 164014, btrfs-progs/trunk/initcpio-install-btrfs)
===================================================================
--- testing-i686/initcpio-install-btrfs	                        (rev 0)
+++ testing-i686/initcpio-install-btrfs	2012-07-24 01:22:05 UTC (rev 164015)
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+build() {
+    add_module btrfs
+    add_binary btrfs
+    add_runscript
+
+    add_file /usr/lib/udev/rules.d/70-btrfs.rules
+}
+
+help() {
+    cat <<HELPEOF
+This hook provides support for multi-device btrfs volumes.
+HELPEOF
+}
+
+# vim: set ft=sh ts=4 sw=4 et:

Copied: btrfs-progs/repos/testing-x86_64/70-btrfs.rules (from rev 164014, btrfs-progs/trunk/70-btrfs.rules)
===================================================================
--- testing-x86_64/70-btrfs.rules	                        (rev 0)
+++ testing-x86_64/70-btrfs.rules	2012-07-24 01:22:05 UTC (rev 164015)
@@ -0,0 +1 @@
+ACTION!="remove", SUBSYSTEM=="block", ENV{ID_FS_TYPE}=="btrfs", RUN+="/usr/bin/btrfs device scan /dev/%k"

Copied: btrfs-progs/repos/testing-x86_64/PKGBUILD (from rev 164014, btrfs-progs/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2012-07-24 01:22:05 UTC (rev 164015)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Tom Gundersen <teg at jklm.no>
+# Contributor: Tobias Powalowski <tpowa at archlinux.org>
+pkgname=btrfs-progs
+pkgver=0.19.20120328
+pkgrel=4
+pkgdesc="btrfs filesystem utilities"
+arch=(i686 x86_64)
+depends=('glibc' 'e2fsprogs')
+url="http://btrfs.wiki.kernel.org/"
+replaces=('btrfs-progs-unstable')
+conflicts=('btrfs-progs-unstable')
+provides=('btrfs-progs-unstable')
+license=('GPL2')
+source=(ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.xz
+        70-btrfs.rules
+        initcpio-install-btrfs
+        initcpio-hook-btrfs)
+md5sums=('f4504e73cf9254779b78d5b2318ac570'
+         '345c62c8b267082361729ca5b647518f'
+         'e5186ec3fe8a809b7473470128d1c4ab'
+         '9fb35142755b477a96cb7292f3d64839')
+
+build() {
+   cd $srcdir/$pkgname-$pkgver
+   make CFLAGS="$CFLAGS"
+}
+
+package() {
+   cd $srcdir/$pkgname-$pkgver
+   make prefix=$pkgdir/usr install
+   # fix manpage
+   mkdir -p $pkgdir/usr/share/
+   mv $pkgdir/usr/man $pkgdir/usr/share/man
+   mkdir -p ${pkgdir}/sbin
+   ln -sf /usr/bin/btrfs ${pkgdir}/sbin/btrfs
+
+   # add udev rule
+   install -Dm644 "$srcdir/70-btrfs.rules" "$pkgdir/usr/lib/udev/rules.d/70-btrfs.rules"
+
+   # install mkinitcpio hooks
+   install -Dm644 "$srcdir/initcpio-install-btrfs" \
+     "$pkgdir/usr/lib/initcpio/install/btrfs"
+   install -Dm644 "$srcdir/initcpio-hook-btrfs" \
+     "$pkgdir/usr/lib/initcpio/hooks/btrfs"
+}

Copied: btrfs-progs/repos/testing-x86_64/initcpio-hook-btrfs (from rev 164014, btrfs-progs/trunk/initcpio-hook-btrfs)
===================================================================
--- testing-x86_64/initcpio-hook-btrfs	                        (rev 0)
+++ testing-x86_64/initcpio-hook-btrfs	2012-07-24 01:22:05 UTC (rev 164015)
@@ -0,0 +1,10 @@
+#!/usr/bin/ash
+
+run_hook() {
+    # if udevd is running, this is done async by add/change events
+    if [ "$udevd_running" -ne 1 ]; then
+        btrfs device scan
+    fi
+}
+
+# vim: set ft=sh ts=4 sw=4 et:

Copied: btrfs-progs/repos/testing-x86_64/initcpio-install-btrfs (from rev 164014, btrfs-progs/trunk/initcpio-install-btrfs)
===================================================================
--- testing-x86_64/initcpio-install-btrfs	                        (rev 0)
+++ testing-x86_64/initcpio-install-btrfs	2012-07-24 01:22:05 UTC (rev 164015)
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+build() {
+    add_module btrfs
+    add_binary btrfs
+    add_runscript
+
+    add_file /usr/lib/udev/rules.d/70-btrfs.rules
+}
+
+help() {
+    cat <<HELPEOF
+This hook provides support for multi-device btrfs volumes.
+HELPEOF
+}
+
+# vim: set ft=sh ts=4 sw=4 et:




More information about the arch-commits mailing list