[arch-commits] Commit in btrfs-progs/trunk (3 files)

Dave Reisner dreisner at archlinux.org
Sun Apr 8 22:05:41 EDT 2012


    Date: Sunday, April 8, 2012 @ 22:05:41
  Author: dreisner
Revision: 155910

upgpkg: btrfs-progs 0.19.20120328-2

- adopt initcpio hooks

Added:
  btrfs-progs/trunk/initcpio-hook-btrfs
  btrfs-progs/trunk/initcpio-install-btrfs
Modified:
  btrfs-progs/trunk/PKGBUILD

------------------------+
 PKGBUILD               |   16 +++++++++++++---
 initcpio-hook-btrfs    |    7 +++++++
 initcpio-install-btrfs |   15 +++++++++++++++
 3 files changed, 35 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-04-09 02:05:22 UTC (rev 155909)
+++ PKGBUILD	2012-04-09 02:05:41 UTC (rev 155910)
@@ -3,16 +3,21 @@
 # Contributor: Tobias Powalowski <tpowa at archlinux.org>
 pkgname=btrfs-progs
 pkgver=0.19.20120328
-pkgrel=1
+pkgrel=2
 pkgdesc="btrfs filesystem utilities"
 arch=(i686 x86_64)
 depends=('glibc' 'e2fsprogs')
-source=(ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.xz)
 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
+        initcpio-install-btrfs
+        initcpio-hook-btrfs)
+md5sums=('f4504e73cf9254779b78d5b2318ac570'
+         'bdaaf6bd339220c63260acec809864d2'
+         'b09688a915a0ec8f40e2f5aacbabc9ad')
 
 build() {
    cd $srcdir/$pkgname-$pkgver
@@ -27,5 +32,10 @@
    mv $pkgdir/usr/man $pkgdir/usr/share/man
    mkdir -p ${pkgdir}/sbin
    ln -sf /usr/bin/btrfs ${pkgdir}/sbin/btrfs
+
+   # 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"
 }
-md5sums=('f4504e73cf9254779b78d5b2318ac570')

Added: initcpio-hook-btrfs
===================================================================
--- initcpio-hook-btrfs	                        (rev 0)
+++ initcpio-hook-btrfs	2012-04-09 02:05:41 UTC (rev 155910)
@@ -0,0 +1,7 @@
+#!/usr/bin/ash
+
+run_hook() {
+    btrfs device scan
+}
+
+# vim: set ft=sh ts=4 sw=4 et:

Added: initcpio-install-btrfs
===================================================================
--- initcpio-install-btrfs	                        (rev 0)
+++ initcpio-install-btrfs	2012-04-09 02:05:41 UTC (rev 155910)
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+build() {
+    MODULES=$(all_modules btrfs)
+    BINARIES=btrfs
+    SCRIPT=btrfs
+}
+
+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