# Import base config
{% import "setup/debian/map.jinja" as build_cfg %}

build_pkgs:
  pkg.installed:
    - pkgs:
      - build-essential
      - devscripts
      - dh-make
      - fakeroot
      - debootstrap
      - pbuilder
      - reprepro
      - git
      - debhelper
      - gnupg
      - gnupg-agent
      - python-setuptools
      - python-gnupg
      - pkg-config
      - ccache
      - nfs-common


{{build_cfg.build_runas}}:
  user.present:
    - groups:
      - adm
    - require:
      - pkg: build_pkgs


build_cache_result_clean:
  file.absent:
    - name: /var/cache/pbuilder/result


build_cache_result_dir:
  file.directory:
    - name: /var/cache/pbuilder/result
    - user: {{build_cfg.build_runas}}
    - group: {{build_cfg.build_runas}}
    - dir_mode: 755
    - file_mode: 644
    - recurse:
        - user
        - group
        - mode
    - require:
      - file: build_cache_result_clean

# Import base config
{% import "setup/debian/map.jinja" as build_cfg %}

build_pkgs:
  pkg.installed:
    - pkgs:
      - build-essential
      - devscripts
      - dh-make
      - fakeroot
      - debootstrap
      - pbuilder
      - reprepro
      - git
      - debhelper
      - gnupg
      - gnupg-agent
      - python-setuptools
      - python-gnupg
      - pkg-config
      - ccache
      - nfs-common
      - bash-completion


{{build_cfg.build_runas}}:
  user.present:
    - groups:
      - adm
    - require:
      - pkg: build_pkgs


build_cache_result_clean:
  file.absent:
    - name: /var/cache/pbuilder/result


build_cache_result_dir:
  file.directory:
    - name: /var/cache/pbuilder/result
    - user: {{build_cfg.build_runas}}
    - group: {{build_cfg.build_runas}}
    - dir_mode: 755
    - file_mode: 644
    - recurse:
        - user
        - group
        - mode
    - require:
      - file: build_cache_result_clean

Add bash-completion for Debian (AWS needs it for 8)
Add bash-completion for Debian (AWS needs it for 8)

saltstack/salt-pack,dmurphy18/salt-pack,saltstack/salt-pack,dmurphy18/salt-pack,dmurphy18/salt-pack,saltstack/salt-pack,saltstack/salt-pack,saltstack/salt-pack,dmurphy18/salt-pack,dmurphy18/salt-pack