summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--business/tinyerp-server/README21
-rw-r--r--business/tinyerp-server/doinst.sh23
-rw-r--r--business/tinyerp-server/rc.tinyerp-server52
-rw-r--r--business/tinyerp-server/slack-desc19
-rw-r--r--business/tinyerp-server/tinyerp-server.SlackBuild87
-rw-r--r--business/tinyerp-server/tinyerp-server.conf20
-rw-r--r--business/tinyerp-server/tinyerp-server.info8
7 files changed, 230 insertions, 0 deletions
diff --git a/business/tinyerp-server/README b/business/tinyerp-server/README
new file mode 100644
index 0000000000..5740832b19
--- /dev/null
+++ b/business/tinyerp-server/README
@@ -0,0 +1,21 @@
+Tiny ERP 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 tinyerp-server, you will have to set up postgresql. All
+you have to do is issue the following two commands:
+
+ createuser -U postgres --no-adduser terp
+ createdb -U postgres -O terp --encoding=UNICODE terp
+
+This will setup Tiny ERP 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
+
+Tiny ERP depends on pyparsing, egenix-mx-base, psycopg, pil, reportlab,
+and postgresql, all of which are available from SlackBuilds.org
diff --git a/business/tinyerp-server/doinst.sh b/business/tinyerp-server/doinst.sh
new file mode 100644
index 0000000000..214846593c
--- /dev/null
+++ b/business/tinyerp-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.tinyerp-server.new:
+if [ -e etc/rc.d/rc.tinyerp-server ]; then
+ cp -a etc/rc.d/rc.tinyerp-server etc/rc.d/rc.tinyerp-server.new.incoming
+ cat etc/rc.d/rc.tinyerp-server.new > etc/rc.d/rc.tinyerp-server.new.incoming
+ mv etc/rc.d/rc.tinyerp-server.new.incoming etc/rc.d/rc.tinyerp-server.new
+fi
+
+config etc/rc.d/rc.tinyerp-server.new
+config etc/tinyerp/tinyerp-server.conf.new
+
diff --git a/business/tinyerp-server/rc.tinyerp-server b/business/tinyerp-server/rc.tinyerp-server
new file mode 100644
index 0000000000..a5314c0f90
--- /dev/null
+++ b/business/tinyerp-server/rc.tinyerp-server
@@ -0,0 +1,52 @@
+#!/bin/sh
+# Start/stop/restart tinyerp-server.
+# $Id: rc.tinyerp-server,v 1.0 2008/06/02
+# Author: Heinz Wiesinger <hmwiesinger@gmx.at>
+# ---------------------------------------------------------------------------
+
+PIDFILE=/var/spool/tinyerp/tinyerp-server.pid
+LOCKFILE=/var/lock/subsys/tinyerp-server
+LOGFILE=/var/log/tinyerp/tinyerp-server.log
+
+# Start tinyerp:
+tinyerp_start() {
+ if [ -x /usr/bin/tinyerp-server ]; then
+ echo "Starting tinyerp server: /usr/bin/tinyerp-server "
+ if [ -e "$LOCKFILE" ]; then
+ echo "tinyerp server already running!"
+ echo "Please remove $LOCKFILE"
+ else
+ /usr/bin/tinyerp-server --pidfile=$PIDFILE --logfile=$LOGFILE \
+ -c /etc/tinyerp/tinyerp-server.conf &
+ touch $LOCKFILE
+ fi
+ fi
+}
+
+# Stop tinyerp:
+tinyerp_stop() {
+ echo "Stopping tinyerp-server"
+ kill -TERM $(cat $PIDFILE) > /dev/null 2>&1
+ rm -f $LOCKFILE
+}
+
+# Restart tinyerp:
+tinyerp_restart() {
+ tinyerp_stop
+ sleep 1
+ tinyerp_start
+}
+
+case "$1" in
+'start')
+ tinyerp_start
+ ;;
+'stop')
+ tinyerp_stop
+ ;;
+'restart')
+ tinyerp_restart
+ ;;
+*)
+ echo "usage $0 start|stop|restart"
+esac
diff --git a/business/tinyerp-server/slack-desc b/business/tinyerp-server/slack-desc
new file mode 100644
index 0000000000..ffffd064b2
--- /dev/null
+++ b/business/tinyerp-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------------------------------------------------|
+tinyerp-server: tinyerp-server (Complete ERP and CRM - server part)
+tinyerp-server:
+tinyerp-server: Tiny ERP is a complete ERP and CRM. The main features are
+tinyerp-server: accounting (analytic and financial), stock management, sales
+tinyerp-server: and purchases management, tasks automation, marketing campaigns,
+tinyerp-server: help desk, POS, etc. Technical features include a distributed
+tinyerp-server: server, flexible workflows, an object database, a dynamic GUI,
+tinyerp-server: customizable reports, and SOAP and XML-RPC interfaces.
+tinyerp-server:
+tinyerp-server: Homepage: http://www.tinyerp.com
+tinyerp-server:
diff --git a/business/tinyerp-server/tinyerp-server.SlackBuild b/business/tinyerp-server/tinyerp-server.SlackBuild
new file mode 100644
index 0000000000..900952de2e
--- /dev/null
+++ b/business/tinyerp-server/tinyerp-server.SlackBuild
@@ -0,0 +1,87 @@
+#!/bin/sh
+
+# Slackware build script for tinyerp-server
+
+# Copyright 2008 Heinz Wiesinger <pprkut@liwjatan.at>
+# 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=tinyerp-server
+VERSION=4.2.3.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
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+mkdir -p $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 {} \;
+
+python setup.py install --root=$PKG
+
+mv $PKG/usr/share/* $PKG/usr/
+rm -rf $PKG/usr/share
+
+mkdir -p $PKG/etc/{rc.d,tinyerp}
+cp -f $CWD/rc.tinyerp-server $PKG/etc/rc.d/rc.tinyerp-server.new
+cp -f $CWD/tinyerp-server.conf $PKG/etc/tinyerp/tinyerp-server.conf.new
+
+mkdir -p $PKG/var/{spool,log}/tinyerp
+
+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.tgz
diff --git a/business/tinyerp-server/tinyerp-server.conf b/business/tinyerp-server/tinyerp-server.conf
new file mode 100644
index 0000000000..e0766b25b6
--- /dev/null
+++ b/business/tinyerp-server/tinyerp-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 = terp
+netrpc = True
+demo = {}
+interface =
+db_host = False
+db_port = False
+port = 8069
+addons_path = None
+reportgz = False
+
diff --git a/business/tinyerp-server/tinyerp-server.info b/business/tinyerp-server/tinyerp-server.info
new file mode 100644
index 0000000000..4d9100a6f7
--- /dev/null
+++ b/business/tinyerp-server/tinyerp-server.info
@@ -0,0 +1,8 @@
+PRGNAM="tinyerp-server"
+VERSION="4.2.3.4"
+HOMEPAGE="http://www.openerp.com"
+DOWNLOAD="http://openerp.com/download/stable/source/tinyerp-server-4.2.3.4.tar.gz"
+MD5SUM="7e9844e96df82c8c758aa046a19ace3a"
+MAINTAINER="ppr:kut"
+EMAIL="pprkut@liwjatan.at"
+APPROVED="rworkman"