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

Dave Reisner dreisner at archlinux.org
Sat May 26 00:03:09 UTC 2012


    Date: Friday, May 25, 2012 @ 20:03:09
  Author: dreisner
Revision: 159630

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

Added:
  dmraid/repos/testing-i686/
  dmraid/repos/testing-i686/PKGBUILD
    (from rev 159629, dmraid/trunk/PKGBUILD)
  dmraid/repos/testing-i686/dmraid.install
    (from rev 159629, dmraid/trunk/dmraid.install)
  dmraid/repos/testing-i686/dmraid_hook
    (from rev 159629, dmraid/trunk/dmraid_hook)
  dmraid/repos/testing-i686/dmraid_install
    (from rev 159629, dmraid/trunk/dmraid_install)
  dmraid/repos/testing-x86_64/
  dmraid/repos/testing-x86_64/PKGBUILD
    (from rev 159629, dmraid/trunk/PKGBUILD)
  dmraid/repos/testing-x86_64/dmraid.install
    (from rev 159629, dmraid/trunk/dmraid.install)
  dmraid/repos/testing-x86_64/dmraid_hook
    (from rev 159629, dmraid/trunk/dmraid_hook)
  dmraid/repos/testing-x86_64/dmraid_install
    (from rev 159629, dmraid/trunk/dmraid_install)

-------------------------------+
 testing-i686/PKGBUILD         |   39 +++++++++++++++++++++++++++++++++++++++
 testing-i686/dmraid.install   |   14 ++++++++++++++
 testing-i686/dmraid_hook      |   14 ++++++++++++++
 testing-i686/dmraid_install   |   22 ++++++++++++++++++++++
 testing-x86_64/PKGBUILD       |   39 +++++++++++++++++++++++++++++++++++++++
 testing-x86_64/dmraid.install |   14 ++++++++++++++
 testing-x86_64/dmraid_hook    |   14 ++++++++++++++
 testing-x86_64/dmraid_install |   22 ++++++++++++++++++++++
 8 files changed, 178 insertions(+)

Copied: dmraid/repos/testing-i686/PKGBUILD (from rev 159629, dmraid/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2012-05-26 00:03:09 UTC (rev 159630)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
+#Contributor: Urs Wolfer <uwolfer @ fwo.ch>
+
+pkgname=dmraid
+pkgver=1.0.0.rc16.3
+pkgrel=5
+pkgdesc="Device mapper RAID interface"
+url="http://people.redhat.com/~heinzm/sw/dmraid/"
+conflicts=('mkinitcpio<0.7')
+depends=('device-mapper>=2.0.54')
+arch=('i686' 'x86_64')
+license=('GPL')
+source=(#ftp://ftp.archlinux.org/other/dmraid/$pkgname-$pkgver.tar.bz2
+        http://people.redhat.com/~heinzm/sw/dmraid/src/$pkgname-1.0.0.rc16-3.tar.bz2
+        dmraid_install
+        dmraid_hook)
+install=dmraid.install
+md5sums=('819338fcef98e8e25819f0516722beeb'
+         '2297d23cee1aef23ec6ad8d6d1870356'
+         'faec669dc85f87187b45b5d3968efe2c')
+
+build() {
+  cd "$pkgname/1.0.0.rc16-3/$pkgname"
+  ./configure --enable-led --enable-intel_led
+  make
+}
+
+package() {
+  cd "$pkgname/1.0.0.rc16-3/$pkgname"
+  make DESTDIR="$pkgdir" prefix=/usr libdir=/usr/lib mandir=/usr/share/man includedir=/usr/include install
+  mkdir -p "$pkgdir"/var/lock/dmraid
+  chmod 1777 "$pkgdir"/var/lock/
+  install -D -m644 "$srcdir"/dmraid_install "$pkgdir"/usr/lib/initcpio/install/dmraid
+  install -D -m644 "$srcdir"/dmraid_hook "$pkgdir"/usr/lib/initcpio/hooks/dmraid
+  # fix permissions
+  chmod 644 "$pkgdir"/usr/lib/libdmraid.a
+  chmod 644 "$pkgdir"/usr/include/dmraid/*
+}

Copied: dmraid/repos/testing-i686/dmraid.install (from rev 159629, dmraid/trunk/dmraid.install)
===================================================================
--- testing-i686/dmraid.install	                        (rev 0)
+++ testing-i686/dmraid.install	2012-05-26 00:03:09 UTC (rev 159630)
@@ -0,0 +1,14 @@
+post_upgrade() {
+  if [ "$(vercmp $2 1.0.0.rc15)" -lt 0 ]; then
+    # important upgrade notice
+    echo ">>>"
+    echo ">>> IMPORTANT DMRAID UPGRADE NOTICE"
+    echo ">>> -------------------------------"
+    echo ">>> Version 1.0.0.rc15 and greater introduce a new name scheme:"
+    echo ">>> You need to add an additional 'p' in front of your number."
+    echo ">>> e.g. <yourname><number> --> <yourname>p<number>"
+    echo ">>>      firsthd1           --> firsthdp1"
+    echo ">>> Please change your bootloader and fstab accordingly."
+    echo ">>>"
+  fi
+}

Copied: dmraid/repos/testing-i686/dmraid_hook (from rev 159629, dmraid/trunk/dmraid_hook)
===================================================================
--- testing-i686/dmraid_hook	                        (rev 0)
+++ testing-i686/dmraid_hook	2012-05-26 00:03:09 UTC (rev 159630)
@@ -0,0 +1,14 @@
+#!/usr/bin/ash
+
+run_hook() {
+    modprobe -a -q dm-mod dm-mirror >/dev/null 2>&1
+    msg ":: Activating dmraid arrays..."
+    # prevent any event monitoring calls with -I
+    if [ "$quiet" = "y" ]; then
+        dmraid -ay -I -Z >/dev/null
+    else
+        dmraid -ay -I -Z
+    fi
+}
+
+# vim: set ft=sh ts=4 sw=4 et:

Copied: dmraid/repos/testing-i686/dmraid_install (from rev 159629, dmraid/trunk/dmraid_install)
===================================================================
--- testing-i686/dmraid_install	                        (rev 0)
+++ testing-i686/dmraid_install	2012-05-26 00:03:09 UTC (rev 159630)
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+build() {
+    add_module 'dm-mod'
+    add_module 'dm-mirror'
+
+    add_binary 'dmraid'
+    add_binary 'dmsetup'
+    add_file "/usr/lib/udev/rules.d/10-dm.rules"
+    add_file "/usr/lib/udev/rules.d/13-dm-disk.rules"
+    add_file "/usr/lib/udev/rules.d/95-dm-notify.rules"
+
+    add_runscript
+}
+
+help() {
+    cat <<HELPEOF
+This hook loads the necessary modules for a dmraid root device.
+HELPEOF
+}
+
+# vim: set ft=sh ts=4 sw=4 et:

Copied: dmraid/repos/testing-x86_64/PKGBUILD (from rev 159629, dmraid/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2012-05-26 00:03:09 UTC (rev 159630)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
+#Contributor: Urs Wolfer <uwolfer @ fwo.ch>
+
+pkgname=dmraid
+pkgver=1.0.0.rc16.3
+pkgrel=5
+pkgdesc="Device mapper RAID interface"
+url="http://people.redhat.com/~heinzm/sw/dmraid/"
+conflicts=('mkinitcpio<0.7')
+depends=('device-mapper>=2.0.54')
+arch=('i686' 'x86_64')
+license=('GPL')
+source=(#ftp://ftp.archlinux.org/other/dmraid/$pkgname-$pkgver.tar.bz2
+        http://people.redhat.com/~heinzm/sw/dmraid/src/$pkgname-1.0.0.rc16-3.tar.bz2
+        dmraid_install
+        dmraid_hook)
+install=dmraid.install
+md5sums=('819338fcef98e8e25819f0516722beeb'
+         '2297d23cee1aef23ec6ad8d6d1870356'
+         'faec669dc85f87187b45b5d3968efe2c')
+
+build() {
+  cd "$pkgname/1.0.0.rc16-3/$pkgname"
+  ./configure --enable-led --enable-intel_led
+  make
+}
+
+package() {
+  cd "$pkgname/1.0.0.rc16-3/$pkgname"
+  make DESTDIR="$pkgdir" prefix=/usr libdir=/usr/lib mandir=/usr/share/man includedir=/usr/include install
+  mkdir -p "$pkgdir"/var/lock/dmraid
+  chmod 1777 "$pkgdir"/var/lock/
+  install -D -m644 "$srcdir"/dmraid_install "$pkgdir"/usr/lib/initcpio/install/dmraid
+  install -D -m644 "$srcdir"/dmraid_hook "$pkgdir"/usr/lib/initcpio/hooks/dmraid
+  # fix permissions
+  chmod 644 "$pkgdir"/usr/lib/libdmraid.a
+  chmod 644 "$pkgdir"/usr/include/dmraid/*
+}

Copied: dmraid/repos/testing-x86_64/dmraid.install (from rev 159629, dmraid/trunk/dmraid.install)
===================================================================
--- testing-x86_64/dmraid.install	                        (rev 0)
+++ testing-x86_64/dmraid.install	2012-05-26 00:03:09 UTC (rev 159630)
@@ -0,0 +1,14 @@
+post_upgrade() {
+  if [ "$(vercmp $2 1.0.0.rc15)" -lt 0 ]; then
+    # important upgrade notice
+    echo ">>>"
+    echo ">>> IMPORTANT DMRAID UPGRADE NOTICE"
+    echo ">>> -------------------------------"
+    echo ">>> Version 1.0.0.rc15 and greater introduce a new name scheme:"
+    echo ">>> You need to add an additional 'p' in front of your number."
+    echo ">>> e.g. <yourname><number> --> <yourname>p<number>"
+    echo ">>>      firsthd1           --> firsthdp1"
+    echo ">>> Please change your bootloader and fstab accordingly."
+    echo ">>>"
+  fi
+}

Copied: dmraid/repos/testing-x86_64/dmraid_hook (from rev 159629, dmraid/trunk/dmraid_hook)
===================================================================
--- testing-x86_64/dmraid_hook	                        (rev 0)
+++ testing-x86_64/dmraid_hook	2012-05-26 00:03:09 UTC (rev 159630)
@@ -0,0 +1,14 @@
+#!/usr/bin/ash
+
+run_hook() {
+    modprobe -a -q dm-mod dm-mirror >/dev/null 2>&1
+    msg ":: Activating dmraid arrays..."
+    # prevent any event monitoring calls with -I
+    if [ "$quiet" = "y" ]; then
+        dmraid -ay -I -Z >/dev/null
+    else
+        dmraid -ay -I -Z
+    fi
+}
+
+# vim: set ft=sh ts=4 sw=4 et:

Copied: dmraid/repos/testing-x86_64/dmraid_install (from rev 159629, dmraid/trunk/dmraid_install)
===================================================================
--- testing-x86_64/dmraid_install	                        (rev 0)
+++ testing-x86_64/dmraid_install	2012-05-26 00:03:09 UTC (rev 159630)
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+build() {
+    add_module 'dm-mod'
+    add_module 'dm-mirror'
+
+    add_binary 'dmraid'
+    add_binary 'dmsetup'
+    add_file "/usr/lib/udev/rules.d/10-dm.rules"
+    add_file "/usr/lib/udev/rules.d/13-dm-disk.rules"
+    add_file "/usr/lib/udev/rules.d/95-dm-notify.rules"
+
+    add_runscript
+}
+
+help() {
+    cat <<HELPEOF
+This hook loads the necessary modules for a dmraid root device.
+HELPEOF
+}
+
+# vim: set ft=sh ts=4 sw=4 et:




More information about the arch-commits mailing list