You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2018 Lucian Cristian
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=gddrescue
  6. PKG_VERSION:=1.23
  7. PKG_RELEASE:=2
  8. PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.xz
  9. PKG_SOURCE_URL:=http://http.debian.net/debian/pool/main/g/$(PKG_NAME)
  10. PKG_HASH:=5831d7e24070bc700d8f22deaeec56af1149392ce30ae67254096eaf8c9169ab
  11. PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
  12. PKG_LICENSE:=GPL-2.0
  13. PKG_LICENSE_FILES:=LICENSE
  14. PKG_INSTALL:=1
  15. PKG_BUILD_PARALLEL:=1
  16. include $(INCLUDE_DIR)/uclibc++.mk
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/gddrescue
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. TITLE:=Data recovery tool
  22. URL:=https://www.gnu.org/software/ddrescue/
  23. DEPENDS:=$(CXX_DEPENDS)
  24. endef
  25. define Package/gddrescue/description
  26. GNU ddrescue is a data recovery tool. It copies data from one file
  27. or block device (hard disc, cdrom, etc) to another, trying to rescue
  28. the good parts first in case of read errors.
  29. endef
  30. CONFIGURE_ARGS += \
  31. CXX="$(TARGET_CXX)" \
  32. CPPFLAGS="$(TARGET_CPPFLAGS)" \
  33. CXXFLAGS="$(TARGET_CXXFLAGS)" \
  34. LDFLAGS="$(TARGET_LDFLAGS)"
  35. define Package/gddrescue/install
  36. $(INSTALL_DIR) $(1)/usr/sbin
  37. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ddrescue $(1)/usr/sbin/
  38. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ddrescuelog $(1)/usr/sbin/
  39. endef
  40. $(eval $(call BuildPackage,gddrescue))