build 532 B

12345678910111213141516
  1. #!/bin/bash
  2. [% c("var/set_default_env") -%]
  3. distdir=/var/tmp/dist/openssl
  4. mkdir -p /var/tmp/build
  5. tar -C /var/tmp/build -xf openssl-[% c('version') %].tar.gz
  6. cd /var/tmp/build/openssl-[% c('version') %]
  7. export SOURCE_DATE_EPOCH='[% c("timestamp") %]'
  8. ./Configure --prefix="$distdir" -shared enable-ec_nistp_64_gcc_128 linux-x86_64
  9. make -j[% c("num_procs") %]
  10. make -j[% c("num_procs") %] install
  11. cd /var/tmp/dist
  12. [% c('tar', {
  13. tar_src => [ 'openssl' ],
  14. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  15. }) %]