Skip to content

GONG-1283 Install Exiftool #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: chore/chef-12-aws
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions recipes/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -421,3 +421,24 @@

# install rsvg-convert tool, for converting and resizing SVG image to PNG
apt_package 'librsvg2-bin'

# Exiftool Installation
exiftool_archive_path = ::File.join(Chef::Config[:file_cache_path], 'Image-ExifTool-12.77.tar.gz')

remote_file exiftool_archive_path do
source 'https://jiffy-linux-packages.s3.amazonaws.com/Image-ExifTool-12.77.tar.gz'
owner 'root'
group 'root'
mode '0755'
end

execute 'install exiftool' do
cwd Chef::Config[:file_cache_path]
command <<-EOH
gzip -dc Image-ExifTool-12.77.tar.gz | tar -xf -
cd Image-ExifTool-12.77
perl Makefile.PL
sudo make install
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we installing from source because there is no package for ubuntu 18.04?

EOH
action :run
end