Tadeusz Struk | 118020d | 2020-01-29 12:26:24 -0800 | [diff] [blame] | 1 | task: |
| 2 | env: |
| 3 | CFLAGS: "-I/usr/local/include -I/usr/local/openssl/include" |
| 4 | LDFLAGS: -L/usr/local/lib |
| 5 | ibmtpm_name: ibmtpm1119 |
| 6 | freebsd_instance: |
| 7 | matrix: |
| 8 | image: freebsd-12-1-release-amd64 |
| 9 | install_script: |
| 10 | - pkg upgrade -y |
| 11 | - pkg install -y gmake coreutils libtool pkgconf autoconf autoconf-archive |
| 12 | - pkg install -y automake libgcrypt openssl json-c cmocka uthash wget |
| 13 | - wget --quiet --show-progress --progress=dot:giga "https://downloads.sourceforge.net/project/ibmswtpm2/$ibmtpm_name.tar.gz" |
| 14 | - shasum -a256 $ibmtpm_name.tar.gz | grep ^b9eef79904e276aeaed2a6b9e4021442ef4d7dfae4adde2473bef1a6a4cd10fb |
| 15 | - mkdir -p $ibmtpm_name |
| 16 | - tar xvf $ibmtpm_name.tar.gz -C $ibmtpm_name && cd $ibmtpm_name/src \ |
| 17 | && sed -i -e 's/gcc/clang/g' makefile \ |
| 18 | && sed -i -e 's/-Wall //g' makefile \ |
| 19 | && sed -i -e 's/-Werror //g' makefile \ |
| 20 | && gmake -j && cp tpm_server /usr/local/bin |
| 21 | - cd - |
| 22 | - rm -fr $ibmtpm_name $ibmtpm_name.tar.gz |
| 23 | script: |
| 24 | ./bootstrap && |
| 25 | ./configure --enable-unit=yes --with-crypto=ossl --disable-doxygen-doc --disable-dependency-tracking && |
| 26 | gmake -j check |