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

Tobias Powalowski tpowa at archlinux.org
Fri Apr 20 07:53:35 EDT 2012


    Date: Friday, April 20, 2012 @ 07:53:35
  Author: tpowa
Revision: 156525

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

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

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

Copied: dmraid/repos/testing-i686/PKGBUILD (from rev 156524, dmraid/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2012-04-20 11:53:35 UTC (rev 156525)
@@ -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=3
+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'
+         '94dede91754b00783f1cd5244f6647bc'
+         '2a1ef82fb32f065ee560dceef736475e')
+
+build() {
+  cd "$srcdir"/$pkgname/1.0.0.rc16-3/$pkgname
+  ./configure --enable-led --enable-intel_led
+  make
+}
+
+package() {
+  cd "$srcdir"/$pkgname/1.0.0.rc16-3/$pkgname
+  make DESTDIR="$pkgdir" prefix=/ libdir=/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"/lib/libdmraid.a
+  chmod 644 "$pkgdir"/usr/include/dmraid/*
+}

Copied: dmraid/repos/testing-i686/dmraid.install (from rev 156524, dmraid/trunk/dmraid.install)
===================================================================
--- testing-i686/dmraid.install	                        (rev 0)
+++ testing-i686/dmraid.install	2012-04-20 11:53:35 UTC (rev 156525)
@@ -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 156524, dmraid/trunk/dmraid_hook)
===================================================================
--- testing-i686/dmraid_hook	                        (rev 0)
+++ testing-i686/dmraid_hook	2012-04-20 11:53:35 UTC (rev 156525)
@@ -0,0 +1,19 @@
+# vim: set ft=sh:
+run_hook ()
+{
+    /sbin/modprobe -q dm-mod >/dev/null 2>&1
+    /sbin/modprobe -q dm-mirror >/dev/null 2>&1
+    if [ -e "/sys/class/misc/device-mapper" ]; then
+        if [ ! -e "/dev/mapper/control" ]; then
+            mkdir /dev/mapper
+            mknod "/dev/mapper/control" c $(cat /sys/class/misc/device-mapper/dev | sed 's|:| |')
+        fi
+        msg ":: Activating dmraid arrays..."
+	# prevent any event monitoring calls with -I
+        if [ "${quiet}" = "y" ]; then
+            /sbin/dmraid -ay -I -Z >/dev/null
+        else
+            /sbin/dmraid -ay -I -Z
+        fi
+    fi
+}

Copied: dmraid/repos/testing-i686/dmraid_install (from rev 156524, dmraid/trunk/dmraid_install)
===================================================================
--- testing-i686/dmraid_install	                        (rev 0)
+++ testing-i686/dmraid_install	2012-04-20 11:53:35 UTC (rev 156525)
@@ -0,0 +1,19 @@
+# vim: set ft=sh:
+
+build()
+{
+    MODULES=" dm-mod dm-mirror "
+    BINARIES="/sbin/dmraid /sbin/dmsetup"
+    FILES=""
+    SCRIPT="dmraid"
+    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"
+}
+
+help ()
+{
+cat<<HELPEOF
+  This hook loads the necessary modules for a dmraid root device.
+HELPEOF
+}

Copied: dmraid/repos/testing-x86_64/PKGBUILD (from rev 156524, dmraid/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2012-04-20 11:53:35 UTC (rev 156525)
@@ -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=3
+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'
+         '94dede91754b00783f1cd5244f6647bc'
+         '2a1ef82fb32f065ee560dceef736475e')
+
+build() {
+  cd "$srcdir"/$pkgname/1.0.0.rc16-3/$pkgname
+  ./configure --enable-led --enable-intel_led
+  make
+}
+
+package() {
+  cd "$srcdir"/$pkgname/1.0.0.rc16-3/$pkgname
+  make DESTDIR="$pkgdir" prefix=/ libdir=/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"/lib/libdmraid.a
+  chmod 644 "$pkgdir"/usr/include/dmraid/*
+}

Copied: dmraid/repos/testing-x86_64/dmraid.install (from rev 156524, dmraid/trunk/dmraid.install)
===================================================================
--- testing-x86_64/dmraid.install	                        (rev 0)
+++ testing-x86_64/dmraid.install	2012-04-20 11:53:35 UTC (rev 156525)
@@ -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 156524, dmraid/trunk/dmraid_hook)
===================================================================
--- testing-x86_64/dmraid_hook	                        (rev 0)
+++ testing-x86_64/dmraid_hook	2012-04-20 11:53:35 UTC (rev 156525)
@@ -0,0 +1,19 @@
+# vim: set ft=sh:
+run_hook ()
+{
+    /sbin/modprobe -q dm-mod >/dev/null 2>&1
+    /sbin/modprobe -q dm-mirror >/dev/null 2>&1
+    if [ -e "/sys/class/misc/device-mapper" ]; then
+        if [ ! -e "/dev/mapper/control" ]; then
+            mkdir /dev/mapper
+            mknod "/dev/mapper/control" c $(cat /sys/class/misc/device-mapper/dev | sed 's|:| |')
+        fi
+        msg ":: Activating dmraid arrays..."
+	# prevent any event monitoring calls with -I
+        if [ "${quiet}" = "y" ]; then
+            /sbin/dmraid -ay -I -Z >/dev/null
+        else
+            /sbin/dmraid -ay -I -Z
+        fi
+    fi
+}

Copied: dmraid/repos/testing-x86_64/dmraid_install (from rev 156524, dmraid/trunk/dmraid_install)
===================================================================
--- testing-x86_64/dmraid_install	                        (rev 0)
+++ testing-x86_64/dmraid_install	2012-04-20 11:53:35 UTC (rev 156525)
@@ -0,0 +1,19 @@
+# vim: set ft=sh:
+
+build()
+{
+    MODULES=" dm-mod dm-mirror "
+    BINARIES="/sbin/dmraid /sbin/dmsetup"
+    FILES=""
+    SCRIPT="dmraid"
+    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"
+}
+
+help ()
+{
+cat<<HELPEOF
+  This hook loads the necessary modules for a dmraid root device.
+HELPEOF
+}



More information about the arch-commits mailing list