summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2016-05-02 16:47:26 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2016-05-02 16:47:26 -0500
commit7226233fc2675546de5034b6c5b5043a45ca9bf2 (patch)
treec44d4447acd91e9532b314e1aab5a02aa080ff92 /pcr
parent2de6d26bbc444f00a81f4b0d170638a21a6a981b (diff)
downloadabslibre-7226233fc2675546de5034b6c5b5043a45ca9bf2.tar.gz
abslibre-7226233fc2675546de5034b6c5b5043a45ca9bf2.tar.bz2
abslibre-7226233fc2675546de5034b6c5b5043a45ca9bf2.zip
trytond-3.8.4-1: updating version
Diffstat (limited to 'pcr')
-rw-r--r--pcr/trytond/PKGBUILD22
-rw-r--r--pcr/trytond/trytond.conf44
-rw-r--r--pcr/trytond/trytond.install11
-rw-r--r--pcr/trytond/trytond.service2
4 files changed, 65 insertions, 14 deletions
diff --git a/pcr/trytond/PKGBUILD b/pcr/trytond/PKGBUILD
index 8d5723830..c07a02b12 100644
--- a/pcr/trytond/PKGBUILD
+++ b/pcr/trytond/PKGBUILD
@@ -2,7 +2,7 @@
# Maintainer (Arch): Robin Baumgartner <robin@baumgartners.ch>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
pkgname=trytond
-pkgver=3.8.1
+pkgver=3.8.4
_pkgdir=3.8
pkgrel=1
pkgdesc="A three-tiers high-level general purpose application platform (server application)"
@@ -13,18 +13,21 @@ depends=('python2>=2.7' 'python2-lxml' 'python2-relatorio>=0.2.0'
'python2-genshi>=0.5' 'python2-dateutil' 'python2-polib'
'python2-sql')
optdepends=('python2-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')
+ 'python2-pywebdav: support for WebDAV feature'
+ 'python2-pydot: support for displaying workflow graphs'
+ 'python2-pytz: timezone support'
+ 'python2-pyopenssl: support for SSL connection')
makedepends=('python2-distribute')
+backup=('etc/trytond.conf')
install="trytond.install"
source=("http://downloads.tryton.org/$_pkgdir/$pkgname-$pkgver.tar.gz"
+ 'trytond.conf'
'trytond.install'
'trytond.service')
-md5sums=('98442c7b6715e9f813774f1face2a4ec'
- '768e68c01cb5913e36ea89c67fc98038'
- 'b1535a8528dfd8f655624bf6faea6985')
+md5sums=('77bb7579c360a16eecf2e8994bb89c99'
+ 'db21177e78e6983d85feb14436f5a7ba'
+ 'bc93f99ec68feea9f3e3e11e2cb2b735'
+ 'c3318e663c17194d71f6ef4ded16b293')
build() {
cd $srcdir/$pkgname-$pkgver
@@ -34,5 +37,6 @@ build() {
package() {
cd $srcdir/$pkgname-$pkgver
python2 setup.py install --root=$pkgdir --optimize=1
- install -D -m755 $startdir/trytond.service $pkgdir/usr/lib/systemd/system/trytond.service
+ install -D -m640 "$srcdir/trytond.conf" "$pkgdir/etc/trytond.conf"
+ install -D -m755 "$srcdir/trytond.service" "$pkgdir/usr/lib/systemd/system/trytond.service"
}
diff --git a/pcr/trytond/trytond.conf b/pcr/trytond/trytond.conf
new file mode 100644
index 000000000..d38be139d
--- /dev/null
+++ b/pcr/trytond/trytond.conf
@@ -0,0 +1,44 @@
+# Configuration file for the Tryton server.
+#
+# See the Tryton documentation for a description of the options:
+# http://doc.tryton.org/3.8/trytond/doc/topics/configuration.html
+
+[jsonrpc]
+#listen = localhost:8000
+#hostname =
+#data = /var/www/localhost/tryton
+
+[xmlrpc]
+#listen =
+
+[webdav]
+#listen =
+
+[database]
+#uri = sqlite://
+#path = /var/lib/trytond/
+#list = True
+#retry = 5
+#language = en_US
+
+[cache]
+#model = 200
+#record = 2000
+#field = 100
+
+[table]
+
+[ssl]
+#privatekey =
+#certificate =
+
+[email]
+#uri =
+#from =
+
+[session]
+#timeout =
+#super_pwd =
+
+[report]
+#unoconv =
diff --git a/pcr/trytond/trytond.install b/pcr/trytond/trytond.install
index 46d6daaba..453bcac1d 100644
--- a/pcr/trytond/trytond.install
+++ b/pcr/trytond/trytond.install
@@ -2,17 +2,20 @@ 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
echo "Note:"
- echo "==> Please don't forget to configure your PostgreSQL database for the program."
+ echo "- Tryton modules can be installed using pip2, e.g. 'pip2 install trytond-party'."
+ echo "- Configure Tryton using the config file /etc/trytond.conf."
+ echo "- See the Tryton documentation at http://doc.tryton.org for more information."
+ echo
}
post_remove() {
- echo "Removing tryton system user... "
- userdel tryton && echo "trytond [done]"
+ echo "Removing tryton user... "
+ userdel tryton
}
op=$1
diff --git a/pcr/trytond/trytond.service b/pcr/trytond/trytond.service
index 7d85691b3..853d45fcf 100644
--- a/pcr/trytond/trytond.service
+++ b/pcr/trytond/trytond.service
@@ -4,7 +4,7 @@ Description=Tryton Server Daemon
[Service]
Type=simple
User=tryton
-ExecStart=/usr/bin/trytond
+ExecStart=/usr/bin/trytond -c /etc/trytond.conf
[Install]
WantedBy=multi-user.target