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: "'pdf_treatment/convert_pdfa.bin' nach '/usr/lib/cgi-bin/convert_to_pdfa' kopieren & umbenennen, Rechte setzen"
- name: "'convert_pdfa.bin' nach '/usr/lib/cgi-bin/convert_to_pdfa' kopieren & umbenennen, Rechte setzen"
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"
remote_src: true
mode: "0755"
---
### INSTALLATION VALIDATOREN ###
# cp validate_pdfa.bin /usr/lib/cgi-bin/is_valid/
- name: "'pdf_treatment/validate_pdfa.bin' nach '/usr/lib/cgi-bin/is_valid' kopieren & umbenennen, Rechte setzen"
- name: "'validate_pdfa.bin' nach '/usr/lib/cgi-bin/is_valid' kopieren & umbenennen, Rechte setzen"
copy:
src: "pdf_treatment/validate_pdfa.bin"
src: "/opt/pdfa_webservice/src/unix/validate_pdfa.bin"
dest: "/usr/lib/cgi-bin/is_valid"
remote_src: true
mode: "0755"
......@@ -29,6 +29,10 @@
# import_tasks: install-callas-pdf-engine.yml
# tags: [callaspdf]
- name: compile Callas binaries
import_tasks: compile_callas_binaries.yml
tags: [callaspdf]
- name: install fonts
import_tasks: install_fonts.yml
tags: [fonts]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment