business/trytond: Updated for version 3.0.4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
b6dd59e30f
commit
9fd36e098c
|
@ -11,12 +11,16 @@ config() {
|
|||
# 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.trytond ]; then
|
||||
cp -a etc/rc.d/rc.trytond etc/rc.d/rc.trytond.new.incoming
|
||||
cat etc/rc.d/rc.trytond.new > etc/rc.d/rc.trytond.new.incoming
|
||||
mv etc/rc.d/rc.trytond.new.incoming etc/rc.d/rc.trytond.new
|
||||
fi
|
||||
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
|
||||
}
|
||||
|
||||
config etc/rc.d/rc.trytond.new
|
||||
config etc/trytond/trytond.conf.new
|
||||
preserve_perms etc/rc.d/rc.trytond.new
|
||||
config etc/trytond.conf.new
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for Tryton ERP server
|
||||
# Slackware build script for trytond
|
||||
|
||||
# Copyright 2014, Ken Roberts, California, USA
|
||||
# Copyright 2014 Ken Roberts
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -11,19 +11,19 @@
|
|||
# 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.
|
||||
# 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=trytond
|
||||
VERSION=${VERSION:-3.0.3}
|
||||
VERSION=${VERSION:-3.0.4}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -41,10 +41,13 @@ PKG=$TMP/package-$PRGNAM
|
|||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -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"
|
||||
|
@ -68,24 +71,10 @@ find -L . \
|
|||
|
||||
python setup.py install --root=$PKG
|
||||
|
||||
mkdir -p $PKG/etc/{rc.d,trytond}
|
||||
cp -f $CWD/rc.trytond $PKG/etc/rc.d/rc.trytond.new
|
||||
cp -f $TMP/$PRGNAM-$VERSION/etc/trytond.conf $PKG/etc/trytond/trytond.conf.new
|
||||
|
||||
mkdir -p $PKG/var/{spool,log}/trytond
|
||||
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a COPYRIGHT CHANGELOG INSTALL 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
|
||||
|
||||
# Don't fail if sphinx not installed
|
||||
if [ -x /usr/bin/sphinx-build ] ; then
|
||||
( cd $TMP/$PRGNAM-$VERSION/doc
|
||||
make html
|
||||
|
@ -93,13 +82,21 @@ if [ -x /usr/bin/sphinx-build ] ; then
|
|||
make json
|
||||
make htmlhelp
|
||||
make qthelp
|
||||
PAPER=letter make latex
|
||||
mv ./_build/* $PKG/usr/doc/$PRGNAM-$VERSION/
|
||||
PAPER=${PAPER:-letter} make latex
|
||||
cp -a _build_/* $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
)
|
||||
else
|
||||
echo "Sphinx documenting program not found"
|
||||
echo "Skipping document building"
|
||||
fi
|
||||
cp -a COPYRIGHT CHANGELOG INSTALL 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:-tgz}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="trytond"
|
||||
VERSION="3.0.3"
|
||||
VERSION="3.0.4"
|
||||
HOMEPAGE="http://www.tryton.org"
|
||||
DOWNLOAD="http://downloads.tryton.org/3.0/trytond-3.0.3.tar.gz"
|
||||
MD5SUM="f04432b92fb8fc21438fdffcbeecb256"
|
||||
DOWNLOAD="http://downloads.tryton.org/3.0/trytond-3.0.4.tar.gz"
|
||||
MD5SUM="4c08a689b6b977060b4a7fb6ed5350ec"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="lxml polib psycopg2 pydot python-dateutil pytz relatorio simplejson sql"
|
||||
|
|
Loading…
Reference in New Issue