[Checkins] SVN: Sandbox/J1m/sbo/ Filling in bits.
Jim Fulton
jim at zope.com
Thu Mar 10 09:49:08 EST 2011
Log message for revision 120843:
Filling in bits.
Changed:
_U Sandbox/J1m/sbo/
U Sandbox/J1m/sbo/README.txt
A Sandbox/J1m/sbo/bootstrap.py
U Sandbox/J1m/sbo/buildout.cfg
A Sandbox/J1m/sbo/sbo.spec
U Sandbox/J1m/sbo/setup.py
A Sandbox/J1m/sbo/source.cfg
-=-
Property changes on: Sandbox/J1m/sbo
___________________________________________________________________
Added: svn:externals
+ bootstrap svn+ssh://svn.zope.org/repos/main/zc.buildout/trunk/bootstrap
Modified: Sandbox/J1m/sbo/README.txt
===================================================================
--- Sandbox/J1m/sbo/README.txt 2011-03-10 14:39:18 UTC (rev 120842)
+++ Sandbox/J1m/sbo/README.txt 2011-03-10 14:49:07 UTC (rev 120843)
@@ -5,16 +5,35 @@
used to perform "system" buildouts that write to system directories
on unix-like systems. They are run using ``sudo`` or as ``root`` so
they can write to system directiories. You can install the ``sbo``
-command into a Python environment using its setupo script or a tool
+command into a Python environment using its setup script or a tool
like easy_install.
One installed, the ``sbo`` command is typically run with 2 arguments:
+- The name of an application
+- The name of a configuration
+
+It expects the application to be a build-based application in
+``/opt/APPLICATION-NAME``. It expects to find a buildout
+configuration in ``/etc/APPLICATION-NAME/CONFIG-NAME.cfg``
+
+For example, if invoked with::
+
+ sbo myapp abccorp
+
+It will run::
+
+ /opt/myapp/bin/buildout buildout:directory=/opt/myapp \
+ -oUc /etc/myapp/sbccorp.cfg
+
+Run with the -h option to get additional help.
+
+
Changes
*******
-0.6.1 (unreleased)
+0.6.1 (2011-03-10)
==================
- Add missing --version option to report sbo's version.
Added: Sandbox/J1m/sbo/bootstrap.py
===================================================================
--- Sandbox/J1m/sbo/bootstrap.py (rev 0)
+++ Sandbox/J1m/sbo/bootstrap.py 2011-03-10 14:49:07 UTC (rev 120843)
@@ -0,0 +1 @@
+link ./bootstrap/bootstrap.py
\ No newline at end of file
Property changes on: Sandbox/J1m/sbo/bootstrap.py
___________________________________________________________________
Added: svn:special
+ *
Modified: Sandbox/J1m/sbo/buildout.cfg
===================================================================
--- Sandbox/J1m/sbo/buildout.cfg 2011-03-10 14:39:18 UTC (rev 120842)
+++ Sandbox/J1m/sbo/buildout.cfg 2011-03-10 14:49:07 UTC (rev 120843)
@@ -10,3 +10,8 @@
recipe = zc.recipe.egg
eggs = ${test:eggs}
interpreter = py
+
+[system]
+recipe = zc.recipe.egg
+eggs = sbo
+scripts = sbo=/usr/local/bin/sbo
Added: Sandbox/J1m/sbo/sbo.spec
===================================================================
--- Sandbox/J1m/sbo/sbo.spec (rev 0)
+++ Sandbox/J1m/sbo/sbo.spec 2011-03-10 14:49:07 UTC (rev 120843)
@@ -0,0 +1,54 @@
+Name: sbo
+Version: 0
+Release: 0
+
+Summary: System Buildouts
+Group: System
+Requires: cleanpython26
+BuildRequires: cleanpython26
+%define python /opt/cleanpython26/bin/python
+
+##########################################################################
+# Lines below this point normally shouldn't change
+
+%define source %{name}-%{version}-%{release}
+
+Copyright: ZVSL
+Vendor: Zope Corporation
+Packager: Zope Corporation <sales at zope.com>
+AutoReqProv: no
+Source: %{source}.tgz
+
+%define opt /opt
+
+%description
+%{summary}
+
+%prep
+rm -rf $RPM_BUILD_DIR/%{source}
+zcat $RPM_SOURCE_DIR/%{source}.tgz | tar -xvf -
+
+%build
+if [ -d /opt/%{name} ] ; then chmod -R +w /opt/%{name} ; fi
+rm -rf /opt/%{name}
+cp -r $RPM_BUILD_DIR/%{source} %{opt}/%{name}
+%{python} %{opt}/%{name}/install.py bootstrap
+%{python} %{opt}/%{name}/install.py buildout:extensions=
+%{python} -m compileall -f %{opt}/%{name}/src
+chmod -R -w %{opt}/%{name}
+
+%post
+cd /opt/%{name}
+%{python} bin/buildout -oqU \
+ buildout:parts=system \
+ buildout:develop= \
+ buildout:installed=
+
+%preun
+if [[ $1 -eq 0 ]]
+then
+ rm -f /usr/local/bin/sbo
+fi
+
+%files
+%attr(-, root, root) /opt/%{name}
Property changes on: Sandbox/J1m/sbo/sbo.spec
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: Sandbox/J1m/sbo/setup.py
===================================================================
--- Sandbox/J1m/sbo/setup.py 2011-03-10 14:39:18 UTC (rev 120842)
+++ Sandbox/J1m/sbo/setup.py 2011-03-10 14:49:07 UTC (rev 120843)
@@ -18,7 +18,7 @@
entry_points = """
[console_scripts]
-sbo = sbo:main
+sbo = zc.sbo:main
"""
from setuptools import setup
Added: Sandbox/J1m/sbo/source.cfg
===================================================================
--- Sandbox/J1m/sbo/source.cfg (rev 0)
+++ Sandbox/J1m/sbo/source.cfg 2011-03-10 14:49:07 UTC (rev 120843)
@@ -0,0 +1,5 @@
+[buildout]
+extends = buildout.cfg
+parts = py
+relative-paths = true
+
Property changes on: Sandbox/J1m/sbo/source.cfg
___________________________________________________________________
Added: svn:eol-style
+ native
More information about the checkins
mailing list