Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
From 89c7fc15e064dd407e6d5ccefe78985b86b8a036 Mon Sep 17 00:00:00 2001
|
||||
From: Brendan Heading <brendanheading@gmail.com>
|
||||
Date: Tue, 1 Sep 2015 12:26:36 +0100
|
||||
Subject: [PATCH 1/1] fix compilation under musl
|
||||
|
||||
Patch borrowed from Void Linux :
|
||||
|
||||
https://github.com/voidlinux/void-packages/blob/master/srcpkgs/dmraid/patches/25_musl-libc.patch
|
||||
|
||||
Upstream package appears dormant, no mailing list and no
|
||||
maintainence releases since Nov 2010.
|
||||
|
||||
Upstream-Status: dormant
|
||||
Signed-off-by: Brendan Heading <brendanheading@gmail.com>
|
||||
|
||||
---
|
||||
1.0.0.rc16-3/dmraid/include/dmraid/misc.h | 1 +
|
||||
1.0.0.rc16-3/dmraid/lib/device/scan.c | 1 +
|
||||
2 files changed, 2 insertions(+)
|
||||
|
||||
diff --git a/1.0.0.rc16-3/dmraid/include/dmraid/misc.h b/1.0.0.rc16-3/dmraid/include/dmraid/misc.h
|
||||
index 247a68e..1b1dfdf 100644
|
||||
--- a/1.0.0.rc16-3/dmraid/include/dmraid/misc.h
|
||||
+++ b/1.0.0.rc16-3/dmraid/include/dmraid/misc.h
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
#ifndef _MISC_H_
|
||||
#define _MISC_H_
|
||||
+#include <fcntl.h>
|
||||
|
||||
#define DM_ASSERT(__cond) do { if (!(__cond)) { printf("ASSERT file:%s line:%d fuction:%s cond: %s\n", __FILE__, __LINE__, __FUNCTION__, #__cond); } } while(0);
|
||||
|
||||
diff --git a/1.0.0.rc16-3/dmraid/lib/device/scan.c b/1.0.0.rc16-3/dmraid/lib/device/scan.c
|
||||
index a040d53..6897146 100644
|
||||
--- a/1.0.0.rc16-3/dmraid/lib/device/scan.c
|
||||
+++ b/1.0.0.rc16-3/dmraid/lib/device/scan.c
|
||||
@@ -10,6 +10,7 @@
|
||||
# include <dirent.h>
|
||||
# include <paths.h>
|
||||
#else
|
||||
+# include <paths.h>
|
||||
# include <dirent.h>
|
||||
# include <mntent.h>
|
||||
#endif
|
||||
--
|
||||
2.4.3
|
||||
|
||||
20
deprecated/firmware/buildroot/package/dmraid/Config.in
Normal file
20
deprecated/firmware/buildroot/package/dmraid/Config.in
Normal file
@@ -0,0 +1,20 @@
|
||||
config BR2_PACKAGE_DMRAID
|
||||
bool "dmraid"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # lvm2
|
||||
depends on BR2_USE_MMU # lvm2
|
||||
depends on !BR2_STATIC_LIBS # lvm2
|
||||
# dmraid triggers the _gp link issue
|
||||
depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII
|
||||
select BR2_PACKAGE_LVM2
|
||||
help
|
||||
dmraid discovers, activates, deactivates and displays properties
|
||||
of software RAID sets (eg, ATARAID) and contained DOS partitions.
|
||||
|
||||
dmraid uses the Linux device-mapper to create devices with
|
||||
respective mappings for the ATARAID sets discovered.
|
||||
|
||||
comment "dmraid needs a toolchain w/ threads, dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
# dmraid triggers the _gp link issue
|
||||
depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII
|
||||
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
31
deprecated/firmware/buildroot/package/dmraid/S20dmraid
Normal file
31
deprecated/firmware/buildroot/package/dmraid/S20dmraid
Normal file
@@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
[ -x /usr/sbin/dmraid ] || exit 0
|
||||
|
||||
# try to load module in case that hasn't been done yet
|
||||
modprobe dm-mod >/dev/null 2>&1
|
||||
|
||||
case "$1" in
|
||||
start|"")
|
||||
echo "Setting up DMRAID devices..."
|
||||
/usr/sbin/dmraid --activate yes --ignorelocking --verbose
|
||||
;;
|
||||
|
||||
stop)
|
||||
echo "Shutting down DMRAID devices... "
|
||||
/usr/sbin/dmraid --activate no --ignorelocking --verbose
|
||||
;;
|
||||
|
||||
restart|force-reload)
|
||||
$0 stop
|
||||
sleep 1
|
||||
$0 start
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Usage: dmraid {start|stop|restart|force-reload}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
2
deprecated/firmware/buildroot/package/dmraid/dmraid.hash
Normal file
2
deprecated/firmware/buildroot/package/dmraid/dmraid.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# From http://people.redhat.com/~heinzm/sw/dmraid/src/dmraid-1.0.0.rc16-3.tar.bz2.md5.sum
|
||||
md5 819338fcef98e8e25819f0516722beeb dmraid-1.0.0.rc16-3.tar.bz2
|
||||
24
deprecated/firmware/buildroot/package/dmraid/dmraid.mk
Normal file
24
deprecated/firmware/buildroot/package/dmraid/dmraid.mk
Normal file
@@ -0,0 +1,24 @@
|
||||
################################################################################
|
||||
#
|
||||
# dmraid
|
||||
#
|
||||
################################################################################
|
||||
|
||||
DMRAID_VERSION = 1.0.0.rc16-3
|
||||
DMRAID_SOURCE = dmraid-$(DMRAID_VERSION).tar.bz2
|
||||
DMRAID_SITE = http://people.redhat.com/~heinzm/sw/dmraid/src
|
||||
DMRAID_SUBDIR = $(DMRAID_VERSION)/dmraid
|
||||
# lib and tools race with parallel make
|
||||
DMRAID_MAKE = $(MAKE1)
|
||||
DMRAID_INSTALL_STAGING = YES
|
||||
DMRAID_LICENSE = GPLv2
|
||||
DMRAID_LICENSE_FILES = $(DMRAID_SUBDIR)/LICENSE_GPL $(DMRAID_SUBDIR)/LICENSE
|
||||
|
||||
DMRAID_DEPENDENCIES = lvm2
|
||||
|
||||
define DMRAID_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 0755 package/dmraid/S20dmraid \
|
||||
$(TARGET_DIR)/etc/init.d/S20dmraid
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user