summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-06 22:30:52 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-06 22:30:52 (GMT)
commit7bc612346c25be961c8c1594783bf7a36b4e430d (patch)
treef32fcaf405e0bf0ff6884de1b3a122fb2372e9a5 /abs/core
parente046ce65fa1c5baa79f83bf51a288bd05c7a12fd (diff)
downloadlinhes_pkgbuild-7bc612346c25be961c8c1594783bf7a36b4e430d.zip
linhes_pkgbuild-7bc612346c25be961c8c1594783bf7a36b4e430d.tar.gz
linhes_pkgbuild-7bc612346c25be961c8c1594783bf7a36b4e430d.tar.bz2
btrfs-progs 0.19
-new
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/btrfs-progs/PKGBUILD41
-rw-r--r--abs/core/btrfs-progs/initcpio-hook-btrfs7
-rw-r--r--abs/core/btrfs-progs/initcpio-install-btrfs15
3 files changed, 63 insertions, 0 deletions
diff --git a/abs/core/btrfs-progs/PKGBUILD b/abs/core/btrfs-progs/PKGBUILD
new file mode 100644
index 0000000..8b3f37e
--- /dev/null
+++ b/abs/core/btrfs-progs/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 160394 2012-06-01 13:21:40Z dreisner $
+# Maintainer: Tom Gundersen <teg@jklm.no>
+# Contributor: Tobias Powalowski <tpowa@archlinux.org>
+pkgname=btrfs-progs
+pkgver=0.19.20120328
+pkgrel=3
+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
+ initcpio-install-btrfs
+ initcpio-hook-btrfs)
+md5sums=('f4504e73cf9254779b78d5b2318ac570'
+ '3eae9bf1541e297fa72aa40ebf7320c6'
+ 'b09688a915a0ec8f40e2f5aacbabc9ad')
+
+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
+
+ # 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"
+}
diff --git a/abs/core/btrfs-progs/initcpio-hook-btrfs b/abs/core/btrfs-progs/initcpio-hook-btrfs
new file mode 100644
index 0000000..7965d0a
--- /dev/null
+++ b/abs/core/btrfs-progs/initcpio-hook-btrfs
@@ -0,0 +1,7 @@
+#!/usr/bin/ash
+
+run_hook() {
+ btrfs device scan
+}
+
+# vim: set ft=sh ts=4 sw=4 et:
diff --git a/abs/core/btrfs-progs/initcpio-install-btrfs b/abs/core/btrfs-progs/initcpio-install-btrfs
new file mode 100644
index 0000000..a70a324
--- /dev/null
+++ b/abs/core/btrfs-progs/initcpio-install-btrfs
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+build() {
+ add_all_modules btrfs
+ add_binary btrfs
+ add_runscript
+}
+
+help() {
+ cat <<HELPEOF
+This hook provides support for multi-device btrfs volumes.
+HELPEOF
+}
+
+# vim: set ft=sh ts=4 sw=4 et: