diff options
Diffstat (limited to 'business/openerp-server')
-rw-r--r-- | business/openerp-server/README | 18 | ||||
-rw-r--r-- | business/openerp-server/doinst.sh | 23 | ||||
-rw-r--r-- | business/openerp-server/openerp-server.SlackBuild | 93 | ||||
-rw-r--r-- | business/openerp-server/openerp-server.conf | 20 | ||||
-rw-r--r-- | business/openerp-server/openerp-server.info | 10 | ||||
-rw-r--r-- | business/openerp-server/rc.openerp-server | 52 | ||||
-rw-r--r-- | business/openerp-server/slack-desc | 19 |
7 files changed, 235 insertions, 0 deletions
diff --git a/business/openerp-server/README b/business/openerp-server/README new file mode 100644 index 0000000000..8cd3468c90 --- /dev/null +++ b/business/openerp-server/README @@ -0,0 +1,18 @@ +OpenERP is a complete ERP and CRM. The main features are accounting +(analytic and financial), stock management, sales and purchases management, +tasks automation, marketing campaigns, help desk, POS, etc. Technical +features include a distributed server, flexible workflows, an object +database, a dynamic GUI, customizable reports, and SOAP and XML-RPC +interfaces. + +Before you can use openerp-server, you will have to set up postgresql. All +you have to do is issue the following command: + createuser -U postgres --no-adduser terp + +This will setup OpenERP for the use with postgresql on localhost. There is +no need to set a password on localhost. However, if you are going to run +postgresql on a different server, you will have to run createuser like this: + createuser -U postgres --no-adduser -P terp + +This requires egenix-mx-base, vobject, PyXML, reportlab, pychart, pydot, +lxml, pytz, postgresql, and psycopg2. diff --git a/business/openerp-server/doinst.sh b/business/openerp-server/doinst.sh new file mode 100644 index 0000000000..a513a9c6fe --- /dev/null +++ b/business/openerp-server/doinst.sh @@ -0,0 +1,23 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +# Keep same perms on rc.openerp-server.new: +if [ -e etc/rc.d/rc.openerp-server ]; then + cp -a etc/rc.d/rc.openerp-server etc/rc.d/rc.openerp-server.new.incoming + cat etc/rc.d/rc.openerp-server.new > etc/rc.d/rc.openerp-server.new.incoming + mv etc/rc.d/rc.openerp-server.new.incoming etc/rc.d/rc.openerp-server.new +fi + +config etc/rc.d/rc.openerp-server.new +config etc/openerp/openerp-server.conf.new + diff --git a/business/openerp-server/openerp-server.SlackBuild b/business/openerp-server/openerp-server.SlackBuild new file mode 100644 index 0000000000..1dcf15be3e --- /dev/null +++ b/business/openerp-server/openerp-server.SlackBuild @@ -0,0 +1,93 @@ +#!/bin/sh + +# Slackware build script for openerp-server + +# Copyright 2008-2009 Heinz Wiesinger, Amsterdam, The Netherlands +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=openerp-server +VERSION=5.0.4 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + LIBDIRSUFFIX="64" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +# fix hardcoded libdir +sed -i "s/opj('lib', 'python%s'/opj('lib$LIBDIRSUFFIX', 'python%s'/" setup.py + +python setup.py install --root=$PKG + +# setup.py includes the build path, even if you add --prefix=/usr flag :\ +sed -i "s|$PKG||g" $PKG/usr/bin/openerp-server + +mv $PKG/usr/share/* $PKG/usr/ +rm -rf $PKG/usr/share + +mkdir -p $PKG/etc/{rc.d,openerp} +cp -f $CWD/rc.openerp-server $PKG/etc/rc.d/rc.openerp-server.new +cp -f $CWD/openerp-server.conf $PKG/etc/openerp/openerp-server.conf.new + +mkdir -p $PKG/var/{spool,log}/openerp +mkdir -p $PKG/var/lock/subsys + +find $PKG | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : \ + | xargs strip --strip-unneeded 2> /dev/null || true + +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/business/openerp-server/openerp-server.conf b/business/openerp-server/openerp-server.conf new file mode 100644 index 0000000000..caec6ba0b3 --- /dev/null +++ b/business/openerp-server/openerp-server.conf @@ -0,0 +1,20 @@ +[options] +without_demo = False +upgrade = False +verbose = False +xmlrpc = True +db_user = postgres +db_password = False +root_path = None +soap = False +translate_modules = ['all'] +db_name = False +netrpc = True +demo = {} +interface = +db_host = False +db_port = False +port = 8069 +addons_path = None +reportgz = False + diff --git a/business/openerp-server/openerp-server.info b/business/openerp-server/openerp-server.info new file mode 100644 index 0000000000..741558b693 --- /dev/null +++ b/business/openerp-server/openerp-server.info @@ -0,0 +1,10 @@ +PRGNAM="openerp-server" +VERSION="5.0.4" +HOMEPAGE="http://www.openerp.com" +DOWNLOAD="http://openerp.com/download/old/openerp-server-5.0.4.tar.gz" +MD5SUM="043a19025943080207a9d6ca2e904d6f" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Heinz Wiesinger" +EMAIL="pprkut@liwjatan.at" +APPROVED="rworkman" diff --git a/business/openerp-server/rc.openerp-server b/business/openerp-server/rc.openerp-server new file mode 100644 index 0000000000..37fa2d5bee --- /dev/null +++ b/business/openerp-server/rc.openerp-server @@ -0,0 +1,52 @@ +#!/bin/sh +# Start/stop/restart openerp-server. +# $Id: rc.openerp-server,v 1.1 2009/03/31 +# Author: Heinz Wiesinger <pprkut@liwjatan.at> +# --------------------------------------------------------------------------- + +PIDFILE=/var/spool/openerp/openerp-server.pid +LOCKFILE=/var/lock/subsys/openerp-server +LOGFILE=/var/log/openerp/openerp-server.log + +# Start openerp: +openerp_start() { + if [ -x /usr/bin/openerp-server ]; then + echo "Starting openerp server: /usr/bin/openerp-server " + if [ -e "$LOCKFILE" ]; then + echo "openerp server already running!" + echo "Please remove $LOCKFILE" + else + /usr/bin/openerp-server --pidfile=$PIDFILE --logfile=$LOGFILE \ + -c /etc/openerp/openerp-server.conf & + touch $LOCKFILE + fi + fi +} + +# Stop openerp: +openerp_stop() { + echo "Stopping openerp-server" + kill -TERM $(cat $PIDFILE) > /dev/null 2>&1 + rm -f $LOCKFILE +} + +# Restart openerp: +openerp_restart() { + openerp_stop + sleep 1 + openerp_start +} + +case "$1" in +'start') + openerp_start + ;; +'stop') + openerp_stop + ;; +'restart') + openerp_restart + ;; +*) + echo "usage $0 start|stop|restart" +esac diff --git a/business/openerp-server/slack-desc b/business/openerp-server/slack-desc new file mode 100644 index 0000000000..a098bc2607 --- /dev/null +++ b/business/openerp-server/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------| +openerp-server: openerp-server (Complete ERP and CRM - server part) +openerp-server: +openerp-server: OpenERP is a complete ERP and CRM. The main features are +openerp-server: accounting (analytic and financial), stock management, sales +openerp-server: and purchases management, tasks automation, marketing campaigns, +openerp-server: help desk, POS, etc. Technical features include a distributed +openerp-server: server, flexible workflows, an object database, a dynamic GUI, +openerp-server: customizable reports, and SOAP and XML-RPC interfaces. +openerp-server: +openerp-server: Homepage: http://www.openerp.com +openerp-server: |