1*4882a593SmuzhiyunSUMMARY = "Data recovery tool" 2*4882a593SmuzhiyunDESCRIPTION = "GNU ddrescue is a data recovery tool. It copies data \ 3*4882a593Smuzhiyun from one file or block device (hard disc, cdrom, etc) to another, \ 4*4882a593Smuzhiyun trying hard to rescue data in case of read errors." 5*4882a593SmuzhiyunHOMEPAGE = "http://www.gnu.org/software/ddrescue/ddrescue.html" 6*4882a593SmuzhiyunSECTION = "console" 7*4882a593SmuzhiyunLICENSE = "GPL-2.0-or-later" 8*4882a593Smuzhiyun 9*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=76d6e300ffd8fb9d18bd9b136a9bba13 \ 10*4882a593Smuzhiyun file://main_common.cc;beginline=5;endline=16;md5=ad099df052bdd8297f490712285069da \ 11*4882a593Smuzhiyun " 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunSRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.lz" 14*4882a593SmuzhiyunSRC_URI[sha256sum] = "e513cd3a90d9810dfdd91197d40aa40f6df01597bfb5ecfdfb205de1127c551f" 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun# This isn't already added by base.bbclass 17*4882a593Smuzhiyundo_unpack[depends] += "lzip-native:do_populate_sysroot" 18*4882a593Smuzhiyun 19*4882a593SmuzhiyunCONFIGUREOPTS = "\ 20*4882a593Smuzhiyun '--srcdir=${S}' \ 21*4882a593Smuzhiyun '--prefix=${prefix}' \ 22*4882a593Smuzhiyun '--exec-prefix=${exec_prefix}' \ 23*4882a593Smuzhiyun '--bindir=${bindir}' \ 24*4882a593Smuzhiyun '--datadir=${datadir}' \ 25*4882a593Smuzhiyun '--infodir=${infodir}' \ 26*4882a593Smuzhiyun '--sysconfdir=${sysconfdir}' \ 27*4882a593Smuzhiyun 'CXX=${CXX}' \ 28*4882a593Smuzhiyun 'CPPFLAGS=${CPPFLAGS}' \ 29*4882a593Smuzhiyun 'CXXFLAGS=${CXXFLAGS}' \ 30*4882a593Smuzhiyun 'LDFLAGS=${LDFLAGS}' \ 31*4882a593Smuzhiyun" 32*4882a593SmuzhiyunEXTRA_OEMAKE = "" 33*4882a593Smuzhiyun 34*4882a593Smuzhiyundo_configure () { 35*4882a593Smuzhiyun ${S}/configure ${CONFIGUREOPTS} 36*4882a593Smuzhiyun} 37*4882a593Smuzhiyun 38*4882a593Smuzhiyundo_install () { 39*4882a593Smuzhiyun oe_runmake 'DESTDIR=${D}' install 40*4882a593Smuzhiyun # Info dir listing isn't interesting at this point so remove it if it exists. 41*4882a593Smuzhiyun if [ -e "${D}${infodir}/dir" ]; then 42*4882a593Smuzhiyun rm -f ${D}${infodir}/dir 43*4882a593Smuzhiyun fi 44*4882a593Smuzhiyun} 45