rdiff-backup: do not depend on buildout python
Showing
[buildout] | [buildout] | ||
extends = | extends = | ||
../librsync/buildout.cfg | ../librsync/buildout.cfg | ||
../coreutils/buildout.cfg | ../python-2.7/buildout.cfg | ||
parts = | parts = | ||
rdiff-backup-output | rdiff-backup-1.0.5 | ||
rdiff-backup-1.3.4 | |||
[rdiff-backup-build] | [rdiff-backup-common] | ||
recipe = zc.recipe.egg:custom | recipe = slapos.recipe.cmmi | ||
egg = rdiff-backup | shared = true | ||
patches = | |||
${:_profile_base_location_}/rdiff-backup-1.2.8-librsync-1.0.0.patch#5e54a67845edd6942fcf7359c921e003 | |||
patch-options = -p1 | patch-options = -p1 | ||
patch-binary = ${patch:location}/bin/patch | patch-binary = ${patch:location}/bin/patch | ||
include-dirs = | configure-command = true | ||
${librsync:location}/include/ | make-binary = true | ||
library-dirs = | post-install = | ||
${librsync:location}/lib/ | set %(location)s/lib/python2.7 | ||
rpath = | %(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 | ||
${librsync:location}/lib/ | cd %(location)s/bin | ||
# If you need another release, override this link | sed -i '/^import\b.*\bsys\b/s,$,\nsys.path[0] = '\"$1\", * | ||
# and pin the egg in the [versions] section of the stack or SR. | ./rdiff-backup -V | ||
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 | 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-1.3.4] | ||
<= rdiff-backup-build | <= rdiff-backup-common | ||
# use our own version | # 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 = | patches = | ||
${:_profile_base_location_}/rdiff-backup-1.3.4-librsync-1.0.0.patch#31fafc8bc4a00f002f52008a9f3b671f | ${:_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