Skip to content
Snippets Groups Projects
Commit b2252dab authored by Jörg Sachse's avatar Jörg Sachse
Browse files

feat: compile the binaries on the managed system itself and install them to the correct paths

parent 8be3ee3e
No related branches found
No related tags found
No related merge requests found
---
- name: install packages for compilation
apt:
name: [
'g++',
'git',
'libcgicc-dev',
'make',
]
state: latest
- name: checkout Git repo
copy:
src: "/home/sachse/src/pdfa_webservice/"
dest: "/opt/pdfa_webservice/"
- name: set symlinks
file:
state: link
src: "/usr/local/lib/callas_pdfEngine_SDK_x64/callas_pdfEngineSDK_x64_Linux_{{ vault_callas_sdk_version }}/{{ item }}"
path: "/opt/pdfa_webservice/{{ item }}"
loop:
- "etc"
- "include"
- "lang"
- "lib"
- "var"
- name: compileme
shell: 'CXXFLAGS="-std=c++11" make --directory /opt/pdfa_webservice/src/'
--- ---
# cp convert_to_pdfa.bin /usr/lib/cgi-bin/convert_to_pdfa/ - name: "'convert_pdfa.bin' nach '/usr/lib/cgi-bin/convert_to_pdfa' kopieren & umbenennen, Rechte setzen"
- name: "'pdf_treatment/convert_pdfa.bin' nach '/usr/lib/cgi-bin/convert_to_pdfa' kopieren & umbenennen, Rechte setzen"
copy: copy:
src: "pdf_treatment/convert_to_pdfa.bin" src: "/opt/pdfa_webservice/src/unix/convert_to_pdfa.bin"
dest: "/usr/lib/cgi-bin/convert_to" dest: "/usr/lib/cgi-bin/convert_to"
remote_src: true
mode: "0755" mode: "0755"
--- ---
### INSTALLATION VALIDATOREN ### ### INSTALLATION VALIDATOREN ###
# cp validate_pdfa.bin /usr/lib/cgi-bin/is_valid/ - name: "'validate_pdfa.bin' nach '/usr/lib/cgi-bin/is_valid' kopieren & umbenennen, Rechte setzen"
- name: "'pdf_treatment/validate_pdfa.bin' nach '/usr/lib/cgi-bin/is_valid' kopieren & umbenennen, Rechte setzen"
copy: copy:
src: "pdf_treatment/validate_pdfa.bin" src: "/opt/pdfa_webservice/src/unix/validate_pdfa.bin"
dest: "/usr/lib/cgi-bin/is_valid" dest: "/usr/lib/cgi-bin/is_valid"
remote_src: true
mode: "0755" mode: "0755"
...@@ -26,8 +26,12 @@ ...@@ -26,8 +26,12 @@
tags: [apache] tags: [apache]
#- name: install Callas PDF Engine SDK #- name: install Callas PDF Engine SDK
#import_tasks: install-callas-pdf-engine.yml # import_tasks: install-callas-pdf-engine.yml
#tags: [callaspdf] # tags: [callaspdf]
- name: compile Callas binaries
import_tasks: compile_callas_binaries.yml
tags: [callaspdf]
- name: install fonts - name: install fonts
import_tasks: install_fonts.yml import_tasks: install_fonts.yml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment