From 7e67cfd42b5e333fe2bb3086e2ad490129437176 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Wed, 13 Feb 2013 22:39:07 -0200 Subject: gnuhealth-1.8.0-1: updating version and dependencies --- pcr/gnuhealth/PKGBUILD | 46 +++++++++++++++++++++++++++++++++++++ pcr/trytond/PKGBUILD | 26 ++++++++++----------- pcr/trytond/trytond.rc | 52 ------------------------------------------ pcr/trytond/trytond.service | 10 ++++++++ social/gnuhealth/PKGBUILD | 46 ------------------------------------- social/trytond/PKGBUILD | 30 ------------------------ social/trytond/trytond.install | 20 ---------------- social/trytond/trytond.rc | 52 ------------------------------------------ 8 files changed, 69 insertions(+), 213 deletions(-) create mode 100644 pcr/gnuhealth/PKGBUILD delete mode 100644 pcr/trytond/trytond.rc create mode 100644 pcr/trytond/trytond.service delete mode 100644 social/gnuhealth/PKGBUILD delete mode 100644 social/trytond/PKGBUILD delete mode 100644 social/trytond/trytond.install delete mode 100644 social/trytond/trytond.rc diff --git a/pcr/gnuhealth/PKGBUILD b/pcr/gnuhealth/PKGBUILD new file mode 100644 index 000000000..10d059d4a --- /dev/null +++ b/pcr/gnuhealth/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: SpepS +# Maintainer (Parabola): André Silva + +pkgname=gnuhealth +pkgver=1.6.2 +pkgrel=1 +pkgdesc="A free Health and Hospital Information System" +arch=(any) +url="http://health.gnu.org/" +license=('GPL3') +depends=('trytond') +source=("http://ftp.gnu.org/gnu/health/$pkgname-$pkgver.tar.gz") +md5sums=('f36bb82a7a142c99da0218d9a889344c') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + # python2 fixes + export PYTHON=python2 + sed -i '/TRYTON_PATH/s/python/&2/' configure + + # makefile fixes + sed -e '/install:/a\\tinstall -d $(DESTDIR)$(tryton_modules)/' \ + -e 's/$(tryton/$(DESTDIR)&/' -i Makefile.in + + # mv man file + mv health/man . + + ./configure --prefix=/usr +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make MANTARGET="$pkgdir/usr/share/man/man1" \ + DESTDIR="$pkgdir/" install + + # man + install -Dm644 man/$pkgname.1 \ + "$pkgdir/usr/share/man/man1/$pkgname.1" + + # python2 fix + sed -i 's/env python/&2/' \ + `grep -rl 'env python' "$pkgdir"` +} + +# vim:set ts=2 sw=2 et: diff --git a/pcr/trytond/PKGBUILD b/pcr/trytond/PKGBUILD index bae5d2f4e..4b5c3c86d 100644 --- a/pcr/trytond/PKGBUILD +++ b/pcr/trytond/PKGBUILD @@ -1,31 +1,31 @@ +# Contributor: Florian Walch # Maintainer: Robin Baumgartner pkgname=trytond -pkgver=2.4.0 -_pkgdir=2.4 -pkgrel=2 +pkgver=2.6.3 +_pkgdir=2.6 +pkgrel=1 pkgdesc="A three-tiers high-level general purpose application platform (server application)" arch=('any') url="http://www.tryton.org/" license=('GPL3') -depends=('python2>=2.4' 'python2-lxml' 'python2-egenix-mx-base' 'python2-relatorio>=0.2.0' 'python2-genshi>=0.5' -'python2-polib') -optdepends=('python2-psycopg2: support for PostgreSQL database' - 'python2-pywebdav: support for WebDAV feature' +depends=('python2>=2.4' 'python-lxml' 'python2-egenix-mx-base' 'python-relatorio>=0.2.0' 'python2-genshi>=0.5' 'python2-polib') +optdepends=('python-psycopg2: support for PostgreSQL database' + 'python-pywebdav: support for WebDAV feature' 'pydot: support for displaying workflow graphs' - 'python2-pytz: timezone support' - 'python2-pyopenssl: support for SSL connection') + 'python-pytz: timezone support' + 'pyopenssl: support for SSL connection') makedepends=('python2-distribute') install="trytond.install" source=("http://downloads.tryton.org/$_pkgdir/$pkgname-$pkgver.tar.gz" 'trytond.install' - 'trytond.rc') -md5sums=('ce0bbb8fcd0ef6a02c575823712e29e4' + 'trytond.service') +md5sums=('c1bc8517e11f030bcd338414eaefa3b0' '768e68c01cb5913e36ea89c67fc98038' - '3ca6aff9b30a52bcf159be7ca630fb6e') + 'b1535a8528dfd8f655624bf6faea6985') build() { cd $srcdir/$pkgname-$pkgver python2 setup.py install --root=$pkgdir install -D -m644 etc/trytond.conf $pkgdir/etc/trytond.conf - install -D -m755 $srcdir/trytond.rc $pkgdir/etc/rc.d/trytond + install -D -m755 $startdir/trytond.service $pkgdir/usr/lib/systemd/system/trytond.service } diff --git a/pcr/trytond/trytond.rc b/pcr/trytond/trytond.rc deleted file mode 100644 index a93172a58..000000000 --- a/pcr/trytond/trytond.rc +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions - -PID=`pidof -o %PPID /usr/bin/python /usr/bin/trytond` -case "$1" in - start) - stat_busy "Starting Tryton server" - # handling log file - if [ ! -e /var/log/trytond/trytond.log ]; then - mkdir -p /var/log/trytond - touch /var/log/trytond/trytond.log - chown -R trytond:trytond /var/log/trytond - fi - # starting the daemon - if [ -z "$PID" ]; then - su - trytond -s /bin/bash -c "/usr/bin/python2 /usr/bin/trytond \ - --logfile=/var/log/trytond/trytond.log &> /dev/null &" - if [ $? -gt 0 ]; then - stat_fail - else - add_daemon trytond - stat_done - fi - else - stat_fail - fi - ;; - stop) - stat_busy "Stopping Tryton server" - if [ ! -z "$PID" ]; then - if [ $? -gt 0 ]; then - stat_fail - else - kill $PID &> /dev/null & - rm_daemon trytond - stat_done - fi - else - stat_fail - fi - ;; - restart) - $0 stop - sleep 3 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0 diff --git a/pcr/trytond/trytond.service b/pcr/trytond/trytond.service new file mode 100644 index 000000000..7d85691b3 --- /dev/null +++ b/pcr/trytond/trytond.service @@ -0,0 +1,10 @@ +[Unit] +Description=Tryton Server Daemon + +[Service] +Type=simple +User=tryton +ExecStart=/usr/bin/trytond + +[Install] +WantedBy=multi-user.target diff --git a/social/gnuhealth/PKGBUILD b/social/gnuhealth/PKGBUILD deleted file mode 100644 index 10d059d4a..000000000 --- a/social/gnuhealth/PKGBUILD +++ /dev/null @@ -1,46 +0,0 @@ -# Maintainer: SpepS -# Maintainer (Parabola): André Silva - -pkgname=gnuhealth -pkgver=1.6.2 -pkgrel=1 -pkgdesc="A free Health and Hospital Information System" -arch=(any) -url="http://health.gnu.org/" -license=('GPL3') -depends=('trytond') -source=("http://ftp.gnu.org/gnu/health/$pkgname-$pkgver.tar.gz") -md5sums=('f36bb82a7a142c99da0218d9a889344c') - -build() { - cd "$srcdir/$pkgname-$pkgver" - - # python2 fixes - export PYTHON=python2 - sed -i '/TRYTON_PATH/s/python/&2/' configure - - # makefile fixes - sed -e '/install:/a\\tinstall -d $(DESTDIR)$(tryton_modules)/' \ - -e 's/$(tryton/$(DESTDIR)&/' -i Makefile.in - - # mv man file - mv health/man . - - ./configure --prefix=/usr -} - -package() { - cd "$srcdir/$pkgname-$pkgver" - make MANTARGET="$pkgdir/usr/share/man/man1" \ - DESTDIR="$pkgdir/" install - - # man - install -Dm644 man/$pkgname.1 \ - "$pkgdir/usr/share/man/man1/$pkgname.1" - - # python2 fix - sed -i 's/env python/&2/' \ - `grep -rl 'env python' "$pkgdir"` -} - -# vim:set ts=2 sw=2 et: diff --git a/social/trytond/PKGBUILD b/social/trytond/PKGBUILD deleted file mode 100644 index 237c599f9..000000000 --- a/social/trytond/PKGBUILD +++ /dev/null @@ -1,30 +0,0 @@ -# Maintainer: Robin Baumgartner -pkgname=trytond -pkgver=2.4.0 -_pkgdir=2.4 -pkgrel=1 -pkgdesc="A three-tiers high-level general purpose application platform (server application)" -arch=('any') -url="http://www.tryton.org/" -license=('GPL3') -depends=('python2>=2.4' 'python-lxml' 'python-egenix-mx-base' 'python-relatorio>=0.2.0' 'python-genshi>=0.5' 'python2-polib') -optdepends=('python-psycopg2: support for PostgreSQL database' - 'python-pywebdav: support for WebDAV feature' - 'pydot: support for displaying workflow graphs' - 'python-pytz: timezone support' - 'pyopenssl: support for SSL connection') -makedepends=('python2-distribute') -install="trytond.install" -source=("http://downloads.tryton.org/$_pkgdir/$pkgname-$pkgver.tar.gz" - 'trytond.install' - 'trytond.rc') -md5sums=('ce0bbb8fcd0ef6a02c575823712e29e4' - '768e68c01cb5913e36ea89c67fc98038' - '3ca6aff9b30a52bcf159be7ca630fb6e') - -build() { - cd $srcdir/$pkgname-$pkgver - python2 setup.py install --root=$pkgdir - install -D -m644 etc/trytond.conf $pkgdir/etc/trytond.conf - install -D -m755 $srcdir/trytond.rc $pkgdir/etc/rc.d/trytond -} diff --git a/social/trytond/trytond.install b/social/trytond/trytond.install deleted file mode 100644 index 46d6daaba..000000000 --- a/social/trytond/trytond.install +++ /dev/null @@ -1,20 +0,0 @@ -post_install() { - echo - echo "Adding tryton group... " - groupadd tryton - echo - echo "Adding tryton user... " - useradd -c "Tryton Server Daemon" -g tryton -s /bin/false tryton - - echo "Note:" - echo "==> Please don't forget to configure your PostgreSQL database for the program." -} - -post_remove() { - echo "Removing tryton system user... " - userdel tryton && echo "trytond [done]" -} - -op=$1 -shift -[ "$(type -t "$op")" = "function" ] && $op "$@" diff --git a/social/trytond/trytond.rc b/social/trytond/trytond.rc deleted file mode 100644 index a93172a58..000000000 --- a/social/trytond/trytond.rc +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions - -PID=`pidof -o %PPID /usr/bin/python /usr/bin/trytond` -case "$1" in - start) - stat_busy "Starting Tryton server" - # handling log file - if [ ! -e /var/log/trytond/trytond.log ]; then - mkdir -p /var/log/trytond - touch /var/log/trytond/trytond.log - chown -R trytond:trytond /var/log/trytond - fi - # starting the daemon - if [ -z "$PID" ]; then - su - trytond -s /bin/bash -c "/usr/bin/python2 /usr/bin/trytond \ - --logfile=/var/log/trytond/trytond.log &> /dev/null &" - if [ $? -gt 0 ]; then - stat_fail - else - add_daemon trytond - stat_done - fi - else - stat_fail - fi - ;; - stop) - stat_busy "Stopping Tryton server" - if [ ! -z "$PID" ]; then - if [ $? -gt 0 ]; then - stat_fail - else - kill $PID &> /dev/null & - rm_daemon trytond - stat_done - fi - else - stat_fail - fi - ;; - restart) - $0 stop - sleep 3 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0 -- cgit v1.2.3