Page MenuHomeDevCentral

D2622.diff
No OneTemporary

D2622.diff

diff --git a/roles/core/src/init.sls b/roles/core/src/init.sls
--- a/roles/core/src/init.sls
+++ b/roles/core/src/init.sls
@@ -10,9 +10,18 @@
{% set version = grains['kernelrelease'].split("-")[0] %}
+{% if version >= "13.0" %}
+git:
+ pkg.installed
+{% endif %}
+
freebsd_src:
cmd.run:
+ {% if version < "13.0" %}
- name: svnlite checkout https://svn.freebsd.org/base/releng/{{ version }} /usr/src
+ {% else %}
+ - name: git clone --depth=1 --single-branch -b releng/{{ version }} https://git.freebsd.org/src.git /usr/src
+ {% endif %}
- creates: /usr/src/Makefile
{% endif %}

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 07:10 (20 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2307756
Default Alt Text
D2622.diff (614 B)

Event Timeline