[arch-commits] Commit in dmraid/repos (7 files)
Evangelos Foutras
foutrelis at archlinux.org
Wed Nov 13 17:24:55 UTC 2019
Date: Wednesday, November 13, 2019 @ 17:24:54
Author: foutrelis
Revision: 368343
archrelease: copy trunk to staging-x86_64
Added:
dmraid/repos/staging-x86_64/
dmraid/repos/staging-x86_64/PKGBUILD
(from rev 368342, dmraid/trunk/PKGBUILD)
dmraid/repos/staging-x86_64/dmraid.install
(from rev 368342, dmraid/trunk/dmraid.install)
dmraid/repos/staging-x86_64/dmraid.service
(from rev 368342, dmraid/trunk/dmraid.service)
dmraid/repos/staging-x86_64/dmraid_hook
(from rev 368342, dmraid/trunk/dmraid_hook)
dmraid/repos/staging-x86_64/dmraid_install
(from rev 368342, dmraid/trunk/dmraid_install)
dmraid/repos/staging-x86_64/dmraid_tmpfiles
(from rev 368342, dmraid/trunk/dmraid_tmpfiles)
-----------------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
dmraid.install | 14 ++++++++++++++
dmraid.service | 15 +++++++++++++++
dmraid_hook | 14 ++++++++++++++
dmraid_install | 24 ++++++++++++++++++++++++
dmraid_tmpfiles | 1 +
6 files changed, 111 insertions(+)
Copied: dmraid/repos/staging-x86_64/PKGBUILD (from rev 368342, dmraid/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2019-11-13 17:24:54 UTC (rev 368343)
@@ -0,0 +1,43 @@
+# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
+#Contributor: Urs Wolfer <uwolfer @ fwo.ch>
+
+pkgname=dmraid
+pkgver=1.0.0.rc16.3
+pkgrel=12
+pkgdesc="Device mapper RAID interface"
+url="https://people.redhat.com/~heinzm/sw/dmraid/"
+conflicts=('mkinitcpio<0.7')
+depends=('device-mapper>=2.0.54')
+arch=('x86_64')
+license=('GPL')
+source=(#https://sources.archlinux.org/other/dmraid/$pkgname-$pkgver.tar.bz2
+ https://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'
+ '7a040ebcba305aba1e47dfe6ca8323b5'
+ 'faec669dc85f87187b45b5d3968efe2c'
+ '56a8bb0ece8d206cd8efb504ee072ddd'
+ 'ea6d280fc6f63fb799abcd882bca53c8')
+
+build() {
+ cd "$pkgname/1.0.0.rc16-3/$pkgname"
+ ./configure --enable-led --enable-intel_led
+ make -j1
+}
+
+package() {
+ cd "$pkgname/1.0.0.rc16-3/$pkgname"
+ make DESTDIR="$pkgdir" sbindir=/usr/bin 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/staging-x86_64/dmraid.install (from rev 368342, dmraid/trunk/dmraid.install)
===================================================================
--- staging-x86_64/dmraid.install (rev 0)
+++ staging-x86_64/dmraid.install 2019-11-13 17:24:54 UTC (rev 368343)
@@ -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/staging-x86_64/dmraid.service (from rev 368342, dmraid/trunk/dmraid.service)
===================================================================
--- staging-x86_64/dmraid.service (rev 0)
+++ staging-x86_64/dmraid.service 2019-11-13 17:24:54 UTC (rev 368343)
@@ -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=/usr/bin/dmraid --ignorelocking --activate y -Z
+RemainAfterExit=true
+
+[Install]
+WantedBy=basic.target
Copied: dmraid/repos/staging-x86_64/dmraid_hook (from rev 368342, dmraid/trunk/dmraid_hook)
===================================================================
--- staging-x86_64/dmraid_hook (rev 0)
+++ staging-x86_64/dmraid_hook 2019-11-13 17:24:54 UTC (rev 368343)
@@ -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/staging-x86_64/dmraid_install (from rev 368342, dmraid/trunk/dmraid_install)
===================================================================
--- staging-x86_64/dmraid_install (rev 0)
+++ staging-x86_64/dmraid_install 2019-11-13 17:24:54 UTC (rev 368343)
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+build() {
+ add_module 'dm-mod'
+ add_module 'dm-mirror'
+
+ add_binary 'dmraid'
+ add_binary 'dmsetup'
+ add_file "/usr/lib/device-mapper/libdmraid-events-isw.so"
+ 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/staging-x86_64/dmraid_tmpfiles (from rev 368342, dmraid/trunk/dmraid_tmpfiles)
===================================================================
--- staging-x86_64/dmraid_tmpfiles (rev 0)
+++ staging-x86_64/dmraid_tmpfiles 2019-11-13 17:24:54 UTC (rev 368343)
@@ -0,0 +1 @@
+d /run/lock/dmraid 1777 root root
More information about the arch-commits
mailing list