rdiff-backup: do not depend on buildout python
Showing
[buildout] | ||
extends = | ||
../librsync/buildout.cfg | ||
../coreutils/buildout.cfg | ||
../python-2.7/buildout.cfg | ||
parts = | ||
rdiff-backup-output | ||
rdiff-backup-1.0.5 | ||
rdiff-backup-1.3.4 | ||
[rdiff-backup-build] | ||
recipe = zc.recipe.egg:custom | ||
egg = rdiff-backup | ||
patches = | ||
${:_profile_base_location_}/rdiff-backup-1.2.8-librsync-1.0.0.patch#5e54a67845edd6942fcf7359c921e003 | ||
[rdiff-backup-common] | ||
recipe = slapos.recipe.cmmi | ||
shared = true | ||
patch-options = -p1 | ||
patch-binary = ${patch:location}/bin/patch | ||
include-dirs = | ||
${librsync:location}/include/ | ||
library-dirs = | ||
${librsync:location}/lib/ | ||
rpath = | ||
${librsync:location}/lib/ | ||
# If you need another release, override this link | ||
# and pin the egg in the [versions] section of the stack or SR. | ||
find-links = http://pkgs.fedoraproject.org/repo/pkgs/rdiff-backup/rdiff-backup-1.0.5.tar.gz/fa2a165fa07a94be52c52e3545bc7758/rdiff-backup-1.0.5.tar.gz | ||
configure-command = true | ||
make-binary = true | ||
post-install = | ||
set %(location)s/lib/python2.7 | ||
%(python)s setup.py build_ext -I${librsync:location}/include -L${librsync:location}/lib -R${librsync:location}/lib build install --prefix=%(location)s --install-lib=$1 | ||
cd %(location)s/bin | ||
sed -i '/^import\b.*\bsys\b/s,$,\nsys.path[0] = '\"$1\", * | ||
./rdiff-backup -V | ||
python = ${python2.7:executable} | ||
[rdiff-backup-common:python27] | ||
python = ${buildout:executable} | ||
|
||
[rdiff-backup-1.0.5] | ||
<= rdiff-backup-common | ||
url = https://pkgs.fedoraproject.org/repo/pkgs/rdiff-backup/rdiff-backup-1.0.5.tar.gz/${:md5sum}/rdiff-backup-1.0.5.tar.gz | ||
md5sum = fa2a165fa07a94be52c52e3545bc7758 | ||
patches = | ||
${:_profile_base_location_}/rdiff-backup-1.2.8-librsync-1.0.0.patch#5e54a67845edd6942fcf7359c921e003 | ||
[rdiff-backup-build-1.3.4] | ||
<= rdiff-backup-build | ||
[rdiff-backup-1.3.4] | ||
<= rdiff-backup-common | ||
# use our own version | ||
find-links = http://www.nexedi.org/static/packages/source/rdiff-backup-1.3.4nxd6.tar.gz | ||
url = http://www.nexedi.org/static/packages/source/rdiff-backup-1.3.4nxd6.tar.gz | ||
md5sum = 06b8df2099baebca6086a315b031fd53 | ||
patches = | ||
${:_profile_base_location_}/rdiff-backup-1.3.4-librsync-1.0.0.patch#31fafc8bc4a00f002f52008a9f3b671f | ||
[rdiff-backup] | ||
# Scripts only generation part for rdiff-backup | ||
recipe = zc.recipe.egg | ||
eggs = | ||
${rdiff-backup-build:egg} | ||
entry-points = | ||
rdiff-backup=rdiff_backup.Main:Main | ||
arguments = sys.argv[1:] | ||
[rdiff-backup-output] | ||
# Shared binary location to ease migration | ||
recipe = plone.recipe.command | ||
stop-on-error = true | ||
update-command = ${:command} | ||
command = ${coreutils-output:test} -x ${:rdiff-backup} | ||
rdiff-backup = ${buildout:directory}/bin/rdiff-backup |
-
Owner
This also has the side effect that diff-backup is no longer installed in several softwares (erp5, cloudooo). It was used in some ad-hoc backup scripts.
edit: I don't mean that it's bad, if theses software release don't use rdiff-backup, they should not install it. We'll use another way for our back scripts.
/cc @romain