summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2012-07-04 11:00:42 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-07-04 11:02:53 +0200
commite254edb06fd00599ea527fcef9d202d66e5d2bd5 (patch)
treefa6f78e7b55dffe5df205f8425c951882ac1ab83
parent64ea06397360135be49d40473b3e48cbc2dfab87 (diff)
downloadptxdist-e254edb06fd00599ea527fcef9d202d66e5d2bd5.tar.gz
ptxdist-e254edb06fd00599ea527fcef9d202d66e5d2bd5.tar.xz
ddrescue: new package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/ddrescue.in12
-rw-r--r--rules/ddrescue.make59
2 files changed, 71 insertions, 0 deletions
diff --git a/rules/ddrescue.in b/rules/ddrescue.in
new file mode 100644
index 000000000..6c287573b
--- /dev/null
+++ b/rules/ddrescue.in
@@ -0,0 +1,12 @@
+## SECTION=disk_and_file
+
+config DDRESCUE
+ tristate
+ select GCCLIBS_CXX
+ select GCCLIBS_GCC_S
+ select LIBC_M
+ prompt "ddrescue"
+ help
+ GNU ddrescue is a data recovery tool. It copies data from one
+ file or block device (hard disc, cdrom, etc) to another, trying
+ hard to rescue data in case of read errors.
diff --git a/rules/ddrescue.make b/rules/ddrescue.make
new file mode 100644
index 000000000..d07e0c466
--- /dev/null
+++ b/rules/ddrescue.make
@@ -0,0 +1,59 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2012 by Michael Olbrich <m.olbrich@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_DDRESCUE) += ddrescue
+
+#
+# Paths and names
+#
+DDRESCUE_VERSION := 1.15
+DDRESCUE_MD5 := 6b445f6246074a7fa02f3b2599031096
+DDRESCUE := ddrescue-$(DDRESCUE_VERSION)
+DDRESCUE_SUFFIX := tar.gz
+DDRESCUE_URL := $(call ptx/mirror, GNU, ddrescue/$(DDRESCUE).$(DDRESCUE_SUFFIX))
+DDRESCUE_SOURCE := $(SRCDIR)/$(DDRESCUE).$(DDRESCUE_SUFFIX)
+DDRESCUE_DIR := $(BUILDDIR)/$(DDRESCUE)
+DDRESCUE_LICENSE := unknown
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+DDRESCUE_CONF_TOOL := autoconf
+DDRESCUE_CONF_OPT := \
+ $(CROSS_AUTOCONF_USR) \
+ $(CROSS_ENV)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/ddrescue.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, ddrescue)
+ @$(call install_fixup, ddrescue,PRIORITY,optional)
+ @$(call install_fixup, ddrescue,SECTION,base)
+ @$(call install_fixup, ddrescue,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
+ @$(call install_fixup, ddrescue,DESCRIPTION,missing)
+
+ @$(call install_copy, ddrescue, 0, 0, 0755, -, /usr/bin/ddrescue)
+
+ @$(call install_finish, ddrescue)
+
+ @$(call touch)
+
+# vim: syntax=make