surpport seeking the recorded video
[vuplus_openembedded] / recipes / rdiff-backup / rdiff-backup.inc
1 DESCRIPTION = "A python application that backs up one directory to \
2 another, possibly over a network. It combines the best features of a \
3 mirror and an incremental backup. The target directory ends up a copy \
4 of the source directory, but extra reverse diffs are stored in a \
5 special subdirectory of that target directory, so you can still \
6 recover files lost some time ago. It is also able to preserve \
7 subdirectories, hard links, dev files, permissions, uid/gid \
8 ownership, modification times, extended attributes, acls, and \
9 resource forks."
10 HOMEPAGE = "http://www.nongnu.org/rdiff-backup/"
11 SECTION = "network"
12 LICENSE = "GPL"
13 DEPENDS = "librsync"
14 RDEPENDS_${PN} = "zlib python-re python-io python-lang python-datetime \
15                   python-pickle python-shell python-compression python-unixadmin \
16                   python-netclient"
17
18 SRC_URI = "http://savannah.nongnu.org/download/rdiff-backup/rdiff-backup-${PV}.tar.gz"
19
20 inherit distutils
21
22 #
23 # Without this the python interpreter path points to the staging area.
24 #
25 do_compile() {
26         BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
27           ${STAGING_BINDIR_NATIVE}/python setup.py build --executable=${bindir}/python || \
28           oefatal "python setup.py build execution failed."
29 }
30
31 #
32 # The default do_install sets install-data to ${D}/${datadir} which
33 # ends up with documentation in /usr/share/share/... instead of
34 # /usr/share/... Modify the install data directory here to get it
35 # into the correct place.
36 #
37 do_install() {
38         BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
39           ${STAGING_BINDIR_NATIVE}/python setup.py install --prefix=${D}/${prefix} --install-data=${D}/${prefix} || \
40           oefatal "python setup.py install execution failed."
41 }