Procházet zdrojové kódy

Do funny things to support openSUSE 13.1

Matthias Vogelgesang před 10 roky
rodič
revize
c5380adee2

+ 5 - 0
roles/detector/handlers/main.yml

@@ -9,6 +9,7 @@
   with_items: siso_packages
   notify:
     - fix siso libs
+    - install profile
 
 # That's probably better than changing the library path
 - name: fix siso libs
@@ -18,5 +19,9 @@
     - libfglib5.so
     - libhaprt.so
     - libme4.so
+    - libsiso_hw.so
   notify:
     - run ldconfig
+
+- name: install libpco
+  command: rpm -i /var/opt/{{ libpco_package }}

+ 8 - 0
roles/detector/tasks/main.yml

@@ -12,8 +12,16 @@
   notify:
     - install siso run-time
 
+- name: install profile
+  template: src=profile.local.j2 dest=/etc/profile.local mode=0644
+
 - name: install libuca
   zypper: name={{ item }} state=latest
   with_items:
     - libuca
     - uca-tools
+
+- name: download libpco
+  get_url: url={{ libpco_package_url }} dest=/var/opt
+  notify:
+    - install libpco

+ 3 - 0
roles/detector/templates/profile.local.j2

@@ -0,0 +1,3 @@
+# We have to set the SiSo dir, otherwise that fine piece of software won't run
+# correctly ...
+export SISODIR5=/opt/siso

+ 2 - 0
roles/detector/vars/main.yml

@@ -2,3 +2,5 @@
 siso_packages:
     - siso-rt5-5.1.0-6.x86_64.rpm
     - siso-rt5-gui-5.1.0-6.x86_64.rpm
+libpco_package: "libpco-0.4.0-2-x86_64.rpm"
+libpco_package_url: "http://iss-hudson.ka.fzk.de:8080/hudson/job/libpco/Architecture=64bit,Distribution=suse123/lastSuccessfulBuild/artifact/build_dir/${libpco_package}"