Commit 8720585a authored by Łukasz Nowak's avatar Łukasz Nowak

- build rdiff-backup 1.0.5 using zc.recipe.egg

 - pin version to 1.0.5
 - move binary to buildout:bin-directory
 - reflect new location in assertion, and fix assertion (-V is to check for version)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36340 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6f5a4d1c
...@@ -20,6 +20,7 @@ extends = ...@@ -20,6 +20,7 @@ extends =
../software-profiles/oood.cfg ../software-profiles/oood.cfg
../software-profiles/openoffice-bin.cfg ../software-profiles/openoffice-bin.cfg
../software-profiles/python-2.6.cfg ../software-profiles/python-2.6.cfg
../software-profiles/rdiff-backup.cfg
../software-profiles/varnish.cfg ../software-profiles/varnish.cfg
../profiles/common.cfg ../profiles/common.cfg
...@@ -35,6 +36,7 @@ parts = ...@@ -35,6 +36,7 @@ parts =
itools-build itools-build
apache apache
memcached memcached
rdiff-backup
ocropus ocropus
haproxy haproxy
flare flare
......
...@@ -12,12 +12,12 @@ extends = ...@@ -12,12 +12,12 @@ extends =
../software-profiles/imagemagick.cfg ../software-profiles/imagemagick.cfg
../software-profiles/libevent.cfg ../software-profiles/libevent.cfg
../software-profiles/memcached.cfg ../software-profiles/memcached.cfg
../software-profiles/rdiff-backup.cfg
../software-profiles/mysql-tritonn-5.0.cfg ../software-profiles/mysql-tritonn-5.0.cfg
../software-profiles/ocropus.cfg ../software-profiles/ocropus.cfg
../software-profiles/oood.cfg ../software-profiles/oood.cfg
../software-profiles/openoffice-bin.cfg ../software-profiles/openoffice-bin.cfg
../software-profiles/python-2.4.cfg ../software-profiles/python-2.4.cfg
../software-profiles/rdiff-backup.cfg
../software-profiles/varnish.cfg ../software-profiles/varnish.cfg
../software-profiles/zope-2.8.cfg ../software-profiles/zope-2.8.cfg
../profiles/common.cfg ../profiles/common.cfg
......
...@@ -14,6 +14,7 @@ ipython = 0.10 ...@@ -14,6 +14,7 @@ ipython = 0.10
numpy = 1.3.0 numpy = 1.3.0
plone.recipe.zope2instance = 3.6 plone.recipe.zope2instance = 3.6
erp5.recipe.standaloneinstance >= 0.4 erp5.recipe.standaloneinstance >= 0.4
rdiff-backup = 1.0.5
pysvn = 1.7.2 pysvn = 1.7.2
xml-marshaller = 0.9a xml-marshaller = 0.9a
# Use SOAPpy from http://ibid.omnia.za.net/eggs/ instead of # Use SOAPpy from http://ibid.omnia.za.net/eggs/ instead of
......
...@@ -10,6 +10,6 @@ erp5.recipe.standaloneinstance >= 0.4 ...@@ -10,6 +10,6 @@ erp5.recipe.standaloneinstance >= 0.4
erp5.recipe.mysqlserver >= 1.1.1 erp5.recipe.mysqlserver >= 1.1.1
pysvn = 1.7.2 pysvn = 1.7.2
xml-marshaller = 0.9a xml-marshaller = 0.9a
rdiff-backup = 1.0.5
erp5_products_revision = erp5_products_revision =
erp5_bt5_revision = ${:erp5_products_revision} erp5_bt5_revision = ${:erp5_products_revision}
[buildout] [buildout]
parts = rdiff-backup parts =
rdiff-backup
[rdiff-backup] [rdiff-backup]
<= rdiff-backup-1.0.5 # Note: To avoid system dependency on librsync-devel this egg can be split
# into custom part to build against local librsync and part to generate
[rdiff-backup-1.0.5-download] # scripts
recipe = hexagonit.recipe.download recipe = zc.recipe.egg
url = http://download.savannah.nongnu.org/releases/rdiff-backup/rdiff-backup-1.0.5.tar.gz entry-points =
rdiff-backup=rdiff_backup.Main:Main
[rdiff-backup-1.0.5] arguments = sys.argv[1:]
recipe = plone.recipe.command
command =
cd ${rdiff-backup-1.0.5-download:location}/rdiff-backup-1.0.5
${python2.4:executable} setup.py build
${python2.4:executable} setup.py install --prefix=${buildout:directory}/parts/rdiff-backup
update-command = ${:command}
...@@ -150,8 +150,8 @@ class AssertSoftwareRunable(unittest.TestCase): ...@@ -150,8 +150,8 @@ class AssertSoftwareRunable(unittest.TestCase):
self.assertTrue(stdout.startswith('flare')) self.assertTrue(stdout.startswith('flare'))
def test_rdiff_backup(self): def test_rdiff_backup(self):
stdout, stderr = subprocess.Popen(["parts/rdiff-backup/bin/rdiff-backup", stdout, stderr = subprocess.Popen(["bin/rdiff-backup", "-V"],
"-v"], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
self.assertEqual(stderr, '') self.assertEqual(stderr, '')
self.assertEqual(stdout.strip(), 'rdiff-backup 1.0.5') self.assertEqual(stdout.strip(), 'rdiff-backup 1.0.5')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment