summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PKGBUILD12
-rw-r--r--ibcontroller@.service2
2 files changed, 8 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 43041ba6546..dd9cf146a46 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
# Maintainer: Ben Alex <ben.alex@acegi.com.au>
pkgname=ib-controller
-pkgver=3.2.0
-pkgrel=3
+pkgver=3.4.0
+pkgrel=1
pkgdesc='Manages headless Interactive Brokers IB Gateway instances'
arch=('any')
url="https://github.com/ib-controller/ib-controller"
@@ -11,14 +11,14 @@ depends=(ib-tws xorg-server-xvfb xorg-server gtk2 libxrender libxtst gsettings-d
backup=('etc/ibcontroller/fdemo.ini'
'etc/ibcontroller/edemo.ini')
-source=('https://github.com/ib-controller/ib-controller/releases/download/3.2.0/IBController-3.2.0.zip'
+source=('https://github.com/ib-controller/ib-controller/releases/download/3.4.0/IBController-3.4.0.zip'
'fdemo.ini'
'edemo.ini'
- 'ibcontroller@.service')
-md5sums=('109bb4ae3adc8b640e8b245b149fc87f'
+ 'ibcontroller@.service')
+md5sums=('4e91b8df02123842aef9f211c5e0a4ff'
'15f1ba10df1fa29068630eeea9e72bfa'
'2a8c16170d102c855778921cd0391c19'
- 'f1038408283433b18a5cb39b30019fe6')
+ '30c6b2c0b4a976c8142a9db6abefeea4')
package() {
diff --git a/ibcontroller@.service b/ibcontroller@.service
index 865445055eb..9291ed04f0b 100644
--- a/ibcontroller@.service
+++ b/ibcontroller@.service
@@ -11,6 +11,8 @@ Group=root
KillMode=control-group
ExecStartPre=/bin/sh -c "mkdir -p /var/run/xvfb"
+ExecStartPre=/bin/sh -c "mkdir -p $(grep -e '^IbDir=' /etc/ibcontroller/%I.ini | tr -cd '\40-\176' | cut -d '=' -f 2)"
+ExecStartPre=/bin/sh -c "echo -e '[IBGateway]\nApiOnly=true" > $(grep -e '^IbDir=' /etc/ibcontroller/%I.ini | tr -cd '\40-\176' | cut -d '=' -f 2)/tws.ini"
ExecStart=/usr/sbin/xvfb-run --auto-servernum -f /var/run/xvfb/%I /usr/share/ib-tws/jre/bin/java -cp /usr/share/ib-tws/jars/*:/usr/share/java/ibcontroller/ibcontroller.jar -Xmx512M ibcontroller.IBGatewayController /etc/ibcontroller/%I.ini
[Install]