From ed6fe5e7bfdd8485058a3089f82e3ca19cb415b3 Mon Sep 17 00:00:00 2001 From: Arn0 Date: Wed, 14 Sep 2022 11:35:00 +0200 Subject: business/trytond: unmaintained and removed Signed-off-by: Willy Sudiarto Raharjo --- business/trytond/README | 37 ------------ business/trytond/doinst.sh | 26 --------- business/trytond/rc.trytond | 48 ---------------- business/trytond/slack-desc | 19 ------- business/trytond/trytond.SlackBuild | 108 ------------------------------------ business/trytond/trytond.info | 10 ---- 6 files changed, 248 deletions(-) delete mode 100644 business/trytond/README delete mode 100644 business/trytond/doinst.sh delete mode 100644 business/trytond/rc.trytond delete mode 100644 business/trytond/slack-desc delete mode 100644 business/trytond/trytond.SlackBuild delete mode 100644 business/trytond/trytond.info diff --git a/business/trytond/README b/business/trytond/README deleted file mode 100644 index 1c53c1848180..000000000000 --- a/business/trytond/README +++ /dev/null @@ -1,37 +0,0 @@ -Tryton is a complete ERP. The main features are accounting (analytic -and financial), stock management, sales and purchases management, -POS, etc. Technical features include a distributed server, flexible -workflows, an object database, a dynamic GUI, customizable reports, and -SOAP and XML-RPC interfaces. - -Optional dependency: Sphinx (autodetected). Required for building the -HTML documentation (/usr/doc/trytond-*/html/). - -To add modules, you will need pip. - -Before you can use the tryton server, you will have to set up -postgresql. All you have to do is issue the following command: - createuser -U postgres --createdb --no-adduser tryton - -This will setup trytond for 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 --createdb --no-adduser -P tryton - -After initializing postgres, modify /etc/trytond/trytond.conf to match -your local setup. After trytond is setup, then you can run - /etc/rc.d/rc.trytond start - -If you want to install the documentation, optional dependency is Sphinx -documentation program (development/Sphinx). - -For a list of modules that can be added to trytond, at cli type: - pip search trytond - -then to add module, type: - pip install trytond_module_name - -where trydond_module_name is the name of the module. For example, to -add the account package, type: - pip install trytond_account diff --git a/business/trytond/doinst.sh b/business/trytond/doinst.sh deleted file mode 100644 index dc2666f510f1..000000000000 --- a/business/trytond/doinst.sh +++ /dev/null @@ -1,26 +0,0 @@ -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... -} - -preserve_perms() { - NEW="$1" - OLD="$(dirname $NEW)/$(basename $NEW .new)" - if [ -e $OLD ]; then - cp -a $OLD ${NEW}.incoming - cat $NEW > ${NEW}.incoming - mv ${NEW}.incoming $NEW - fi - config $NEW -} - -preserve_perms etc/rc.d/rc.trytond.new -config etc/trytond.conf.new diff --git a/business/trytond/rc.trytond b/business/trytond/rc.trytond deleted file mode 100644 index 8d821a3909d4..000000000000 --- a/business/trytond/rc.trytond +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/sh -# Start/stop/restart trytond server. -# Author: Ken Roberts -# --------------------------------------------------------------------------- - -PIDFILE=/var/spool/trytond/trytond.pid -LOGFILE=/var/log/trytond/trytond.log - -# Start openerp: -trytond_start() { - if [ -x /usr/bin/trytond ]; then - echo "Starting trytond server: /usr/bin/trytond " - if [ -e "$PIDFILE" ]; then - echo "trytond server already running!" - echo "If trytond is not running (improper shutdown?), then remove ${PIDFILE}" - else - /usr/bin/trytond --pidfile=$PIDFILE --logfile=$LOGFILE \ - -c /etc/trytond/trytond.conf & - fi - fi -} - -# Stop trytond: -trytond_stop() { - echo "Stopping openerp-server" - kill -TERM $(cat $PIDFILE) > /dev/null 2>&1 -} - -# Restart trytond: -trytond_restart() { - trytond_stop - sleep 1 - trytond_start -} - -case "$1" in -'start') - trytond_start - ;; -'stop') - trytond_stop - ;; -'restart') - trytond_restart - ;; -*) - echo "usage $0 start|stop|restart" -esac diff --git a/business/trytond/slack-desc b/business/trytond/slack-desc deleted file mode 100644 index 727755ffab21..000000000000 --- a/business/trytond/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# 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 ':' except on otherwise blank lines. - - |-----handy-ruler------------------------------------------------------| -trytond: trytond (ERP -server part) -trytond: -trytond: Tryton is a complete ERP written in Python. -trytond: This package is for the server only - the modules needed for actual -trytond: usage must be installed separately. -trytond: -trytond: Homepage: http://www.tryton.org -trytond: -trytond: -trytond: -trytond: diff --git a/business/trytond/trytond.SlackBuild b/business/trytond/trytond.SlackBuild deleted file mode 100644 index ebf76c7f7b97..000000000000 --- a/business/trytond/trytond.SlackBuild +++ /dev/null @@ -1,108 +0,0 @@ -#!/bin/bash - -# Slackware build script for trytond - -# Copyright 2014 Ken Roberts -# 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. - -# 20220301 bkw: Modified by SlackBuilds.org, BUILD=2: -# - fix broken cp command, this never worked on 14.2 either, if -# Sphinx was installed. -# - only build and install HTML documentation (we don't need multiple -# formats like qthelp or pickle). -# - don't install useless INSTALL in doc dir. - -cd $(dirname $0) ; CWD=$(pwd) - -PRGNAM=trytond -VERSION=${VERSION:-3.0.4} -BUILD=${BUILD:-2} -TAG=${TAG:-_SBo} -PKGTYPE=${PKGTYPE:-tgz} - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" - exit 0 -fi - -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -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 -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \+ -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ - -python setup.py install --root=$PKG - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -if [ -x /usr/bin/sphinx-build ] ; then - ( cd $TMP/$PRGNAM-$VERSION/doc - make html - cp -a _build/html $PKG/usr/doc/$PRGNAM-$VERSION - ) -fi -cp -a COPYRIGHT CHANGELOG LICENSE README TODO $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 - -# Install the rc.trydond startup file -install -D -m644 $CWD/rc.trytond $PKG/etc/rc.d/rc.trytond.new -# Install the trytond.conf file -install -D -m644 $TMP/$PRGNAM-$VERSION/etc/trytond.conf $PKG/etc/trytond.conf.new - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/business/trytond/trytond.info b/business/trytond/trytond.info deleted file mode 100644 index 54f8f2899b7e..000000000000 --- a/business/trytond/trytond.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="trytond" -VERSION="3.0.4" -HOMEPAGE="http://www.tryton.org" -DOWNLOAD="http://downloads.tryton.org/3.0/trytond-3.0.4.tar.gz" -MD5SUM="4c08a689b6b977060b4a7fb6ed5350ec" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="lxml polib python2-psycopg2 pydot python2-dateutil pytz relatorio simplejson sql" -MAINTAINER="Ken Roberts" -EMAIL="alisonken1@juno.com" -- cgit v1.2.3