summaryrefslogtreecommitdiff
path: root/setup/redhat
diff options
context:
space:
mode:
authorAntony Lesuisse <lesuisse@gmail.com>2014-05-29 18:33:04 +0200
committerAntony Lesuisse <lesuisse@gmail.com>2014-05-29 18:33:04 +0200
commitd4624fa826a5e9542782f2c53c8ba2c766d093bc (patch)
treebe214779eb6d1f17157aa48e72fbcbf95405e38b /setup/redhat
parent045ecc603e67911a5390c812cb6b5b123d9c190e (diff)
[IMP] repository cleanup
- move packaging stuff to setup - remove historical stuff - remove oe, odoo-cmd-fme will be merged with the convered commands - add an odoo.py script to run odo and boostrap it - simplify README - prepare to move documentation to the github wiki
Diffstat (limited to 'setup/redhat')
-rw-r--r--setup/redhat/MANIFEST.in12
-rw-r--r--setup/redhat/README.urpmi36
-rw-r--r--setup/redhat/setup.cfg10
-rw-r--r--setup/redhat/setup_rpm.sh18
4 files changed, 76 insertions, 0 deletions
diff --git a/setup/redhat/MANIFEST.in b/setup/redhat/MANIFEST.in
new file mode 100644
index 00000000000..af66a5a5bca
--- /dev/null
+++ b/setup/redhat/MANIFEST.in
@@ -0,0 +1,12 @@
+graft debian
+graft doc
+graft install
+graft openerp
+graft win32
+include README
+include LICENSE
+include MANIFEST.in
+include openerp-*
+include oe*
+include setup*
+global-exclude *pyc *~ # Exclude possible garbage from previous graft.
diff --git a/setup/redhat/README.urpmi b/setup/redhat/README.urpmi
new file mode 100644
index 00000000000..ce8fb706703
--- /dev/null
+++ b/setup/redhat/README.urpmi
@@ -0,0 +1,36 @@
+Installation Steps
+------------------
+
+1. Check that all the required dependencies are installed.
+
+2. Create a postgresql database.
+
+The default database name is "terp". If you want to use another name, you
+will need to provide it when launching the server (by using the commandline
+option --database).
+
+To create a postgresql database named "terp" using the following command:
+ $ createdb --encoding=UNICODE terp
+
+If it is the first time you use postgresql you might need to create a new user
+to the postgres system using the following commands (where myusername is your
+unix user name):
+
+ $ su -
+ # su - postgres
+ $ createuser openerp
+ Shall the new user be allowed to create databases? (y/n) y
+ Shall the new user be allowed to create more new users? (y/n) y
+ CREATE USER
+ $ logout
+ # logout
+
+3. Launch service daemon by "service openerp-server start".
+
+The first time it is run, the server will initialise the database with all the default values.
+
+4. Connect to the server using the GUI client.
+
+There are two accounts by default:
+ * login: admin, password:admin
+ * login: demo, password:demo
diff --git a/setup/redhat/setup.cfg b/setup/redhat/setup.cfg
new file mode 100644
index 00000000000..7693a84fc3a
--- /dev/null
+++ b/setup/redhat/setup.cfg
@@ -0,0 +1,10 @@
+[general]
+
+[sdist]
+formats=gztar
+
+[bdist]
+formats=rpm
+
+[bdist_rpm]
+install_script=setup_rpm.sh
diff --git a/setup/redhat/setup_rpm.sh b/setup/redhat/setup_rpm.sh
new file mode 100644
index 00000000000..510655f4430
--- /dev/null
+++ b/setup/redhat/setup_rpm.sh
@@ -0,0 +1,18 @@
+#
+# This file is used by 'python setup.py bdist_rpm'
+# You should not execute/call this file yourself.
+#
+# This script is used as the 'install' part of the RPM .spec file.
+#
+# Need to overwrite the install-part of the RPM to append the
+# compression-suffix onto the filenames for the man-pages.
+#
+python -c "import compileall, os; compileall.compile_dir(os.path.join(os.environ['PWD'], 'doc'), force=True)"
+python -O -c "import compileall, os; compileall.compile_dir(os.path.join(os.environ['PWD'], 'doc'), force=True)"
+python setup.py install --optimize 1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
+
+SUFFIX=gz
+sed "s!\(/share/man/.*\)!\1.$SUFFIX!" -i INSTALLED_FILES
+
+# quote files with a space
+sed 's/\(.* .*\)/"\1"/' -i INSTALLED_FILES