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

Dave Reisner dreisner at archlinux.org
Sat Dec 22 20:11:35 UTC 2012


    Date: Saturday, December 22, 2012 @ 15:11:34
  Author: dreisner
Revision: 173774

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

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

--------------------------------+
 testing-i686/PKGBUILD          |   44 +++++++++++++++++++++++++++++++++++++++
 testing-i686/dmraid.install    |   14 ++++++++++++
 testing-i686/dmraid.service    |   15 +++++++++++++
 testing-i686/dmraid_hook       |   14 ++++++++++++
 testing-i686/dmraid_install    |   23 ++++++++++++++++++++
 testing-i686/dmraid_tmpfiles   |    1 
 testing-x86_64/PKGBUILD        |   44 +++++++++++++++++++++++++++++++++++++++
 testing-x86_64/dmraid.install  |   14 ++++++++++++
 testing-x86_64/dmraid.service  |   15 +++++++++++++
 testing-x86_64/dmraid_hook     |   14 ++++++++++++
 testing-x86_64/dmraid_install  |   23 ++++++++++++++++++++
 testing-x86_64/dmraid_tmpfiles |    1 
 12 files changed, 222 insertions(+)

Copied: dmraid/repos/testing-i686/PKGBUILD (from rev 173773, dmraid/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2012-12-22 20:11:34 UTC (rev 173774)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
+#Contributor: Urs Wolfer <uwolfer @ fwo.ch>
+
+pkgname=dmraid
+pkgver=1.0.0.rc16.3
+pkgrel=8
+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
+        dmraid_tmpfiles
+        dmraid.service)
+install=dmraid.install
+md5sums=('819338fcef98e8e25819f0516722beeb'
+         'dea048cc09b49b02da1009adae563866'
+         'faec669dc85f87187b45b5d3968efe2c'
+         '56a8bb0ece8d206cd8efb504ee072ddd'
+         '1cd201496e52bd05c1c3048bf6dd809f')
+
+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
+  install -D -m644 "$srcdir"/dmraid_install "$pkgdir"/usr/lib/initcpio/install/dmraid
+  install -D -m644 "$srcdir"/dmraid_hook "$pkgdir"/usr/lib/initcpio/hooks/dmraid
+  install -D -m644 "$srcdir"/dmraid_tmpfiles "$pkgdir"/usr/lib/tmpfiles.d/dmraid.conf
+
+  # fix permissions
+  chmod 644 "$pkgdir"/usr/include/dmraid/* "$pkgdir"/usr/lib/libdmraid.a
+
+  install -Dm644 "$srcdir/dmraid.service" "$pkgdir/usr/lib/systemd/system/dmraid.service"
+}

Copied: dmraid/repos/testing-i686/dmraid.install (from rev 173773, dmraid/trunk/dmraid.install)
===================================================================
--- testing-i686/dmraid.install	                        (rev 0)
+++ testing-i686/dmraid.install	2012-12-22 20:11:34 UTC (rev 173774)
@@ -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.service (from rev 173773, dmraid/trunk/dmraid.service)
===================================================================
--- testing-i686/dmraid.service	                        (rev 0)
+++ testing-i686/dmraid.service	2012-12-22 20:11:34 UTC (rev 173774)
@@ -0,0 +1,15 @@
+[Unit]
+Description=Assemble FakeRAID arrays
+DefaultDependencies=no
+Requires=systemd-udev-settle.service
+After=systemd-udev-settle.service
+Before=basic.target shutdown.target
+Conflicts=shutdown.target
+
+[Service]
+Type=oneshot
+ExecStart=/sbin/dmraid --ignorelocking --activate y -Z
+RemainAfterExit=true
+
+[Install]
+WantedBy=basic.target

Copied: dmraid/repos/testing-i686/dmraid_hook (from rev 173773, dmraid/trunk/dmraid_hook)
===================================================================
--- testing-i686/dmraid_hook	                        (rev 0)
+++ testing-i686/dmraid_hook	2012-12-22 20:11:34 UTC (rev 173774)
@@ -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 173773, dmraid/trunk/dmraid_install)
===================================================================
--- testing-i686/dmraid_install	                        (rev 0)
+++ testing-i686/dmraid_install	2012-12-22 20:11:34 UTC (rev 173774)
@@ -0,0 +1,23 @@
+#!/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_file "/usr/lib/initcpio/udev/11-dm-initramfs.rules" "/usr/lib/udev/rules.d/11-dm-initramfs.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-i686/dmraid_tmpfiles (from rev 173773, dmraid/trunk/dmraid_tmpfiles)
===================================================================
--- testing-i686/dmraid_tmpfiles	                        (rev 0)
+++ testing-i686/dmraid_tmpfiles	2012-12-22 20:11:34 UTC (rev 173774)
@@ -0,0 +1 @@
+d /run/lock/dmraid 1777 root root

Copied: dmraid/repos/testing-x86_64/PKGBUILD (from rev 173773, dmraid/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2012-12-22 20:11:34 UTC (rev 173774)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
+#Contributor: Urs Wolfer <uwolfer @ fwo.ch>
+
+pkgname=dmraid
+pkgver=1.0.0.rc16.3
+pkgrel=8
+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
+        dmraid_tmpfiles
+        dmraid.service)
+install=dmraid.install
+md5sums=('819338fcef98e8e25819f0516722beeb'
+         'dea048cc09b49b02da1009adae563866'
+         'faec669dc85f87187b45b5d3968efe2c'
+         '56a8bb0ece8d206cd8efb504ee072ddd'
+         '1cd201496e52bd05c1c3048bf6dd809f')
+
+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
+  install -D -m644 "$srcdir"/dmraid_install "$pkgdir"/usr/lib/initcpio/install/dmraid
+  install -D -m644 "$srcdir"/dmraid_hook "$pkgdir"/usr/lib/initcpio/hooks/dmraid
+  install -D -m644 "$srcdir"/dmraid_tmpfiles "$pkgdir"/usr/lib/tmpfiles.d/dmraid.conf
+
+  # fix permissions
+  chmod 644 "$pkgdir"/usr/include/dmraid/* "$pkgdir"/usr/lib/libdmraid.a
+
+  install -Dm644 "$srcdir/dmraid.service" "$pkgdir/usr/lib/systemd/system/dmraid.service"
+}

Copied: dmraid/repos/testing-x86_64/dmraid.install (from rev 173773, dmraid/trunk/dmraid.install)
===================================================================
--- testing-x86_64/dmraid.install	                        (rev 0)
+++ testing-x86_64/dmraid.install	2012-12-22 20:11:34 UTC (rev 173774)
@@ -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.service (from rev 173773, dmraid/trunk/dmraid.service)
===================================================================
--- testing-x86_64/dmraid.service	                        (rev 0)
+++ testing-x86_64/dmraid.service	2012-12-22 20:11:34 UTC (rev 173774)
@@ -0,0 +1,15 @@
+[Unit]
+Description=Assemble FakeRAID arrays
+DefaultDependencies=no
+Requires=systemd-udev-settle.service
+After=systemd-udev-settle.service
+Before=basic.target shutdown.target
+Conflicts=shutdown.target
+
+[Service]
+Type=oneshot
+ExecStart=/sbin/dmraid --ignorelocking --activate y -Z
+RemainAfterExit=true
+
+[Install]
+WantedBy=basic.target

Copied: dmraid/repos/testing-x86_64/dmraid_hook (from rev 173773, dmraid/trunk/dmraid_hook)
===================================================================
--- testing-x86_64/dmraid_hook	                        (rev 0)
+++ testing-x86_64/dmraid_hook	2012-12-22 20:11:34 UTC (rev 173774)
@@ -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 173773, dmraid/trunk/dmraid_install)
===================================================================
--- testing-x86_64/dmraid_install	                        (rev 0)
+++ testing-x86_64/dmraid_install	2012-12-22 20:11:34 UTC (rev 173774)
@@ -0,0 +1,23 @@
+#!/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_file "/usr/lib/initcpio/udev/11-dm-initramfs.rules" "/usr/lib/udev/rules.d/11-dm-initramfs.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/dmraid_tmpfiles (from rev 173773, dmraid/trunk/dmraid_tmpfiles)
===================================================================
--- testing-x86_64/dmraid_tmpfiles	                        (rev 0)
+++ testing-x86_64/dmraid_tmpfiles	2012-12-22 20:11:34 UTC (rev 173774)
@@ -0,0 +1 @@
+d /run/lock/dmraid 1777 root root




More information about the arch-commits mailing list