config 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. version: 1.0.10
  2. git_url: https://github.com/hlandau/svcutils.git
  3. git_hash: c25dac49e50cbbcbef8c81b089f56156f4067729
  4. filename: '[% project %]-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %].tar.gz'
  5. build: '[% c("projects/go/var/build_go_lib") %]'
  6. var:
  7. container:
  8. use_container: 1
  9. go_lib: gopkg.in/hlandau/svcutils.v1
  10. go_lib_install:
  11. - gopkg.in/hlandau/svcutils.v1
  12. - gopkg.in/hlandau/svcutils.v1/caps
  13. - gopkg.in/hlandau/svcutils.v1/chroot
  14. - gopkg.in/hlandau/svcutils.v1/dupfd
  15. - gopkg.in/hlandau/svcutils.v1/exepath
  16. - gopkg.in/hlandau/svcutils.v1/passwd
  17. - gopkg.in/hlandau/svcutils.v1/pidfile
  18. - gopkg.in/hlandau/svcutils.v1/setuid
  19. - gopkg.in/hlandau/svcutils.v1/systemd
  20. build_go_lib_pre: |
  21. [% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
  22. tar -C /var/tmp/dist -xf $rootdir/[% c('input_files_by_name/binutils') %]
  23. export PATH="/var/tmp/dist/binutils/bin:$PATH"
  24. export CGO_ENABLED=1
  25. [% IF c("var/linux-cross") %]
  26. # libcap includes
  27. mkdir -p /var/tmp/dist/gcc-cross/[% c("var/crosstarget") %]/include/sys/
  28. cp /usr/include/sys/capability.h /var/tmp/dist/gcc-cross/[% c("var/crosstarget") %]/include/sys/
  29. # libcap libraries
  30. cp /lib/[% c("var/crosstarget") %]/libcap.* /var/tmp/dist/gcc-cross/[% c("var/crosstarget") %]/lib/
  31. cp /lib/[% c("var/crosstarget") %]/libattr.* /var/tmp/dist/gcc-cross/[% c("var/crosstarget") %]/lib/
  32. # libcap search paths
  33. export CGO_LDFLAGS="$CGO_LDFLAGS -Wl,-rpath-link=/var/tmp/dist/gcc-cross/[% c("var/crosstarget") %]/lib/"
  34. [% END %]
  35. targets:
  36. linux:
  37. var:
  38. arch_deps:
  39. - 'libcap-dev:[% c("var/arch_debian") %]'
  40. input_files:
  41. - project: container-image
  42. - name: go
  43. project: go
  44. - name: '[% c("var/compiler") %]'
  45. project: '[% c("var/compiler") %]'
  46. - name: binutils
  47. project: binutils