]> git.friedersdorff.com Git - max/saltfiles.git/commitdiff
Manage make.conf
authorMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 4 Jun 2019 14:15:25 +0000 (15:15 +0100)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 4 Jun 2019 14:15:25 +0000 (15:15 +0100)
states/portage/files/make.conf [new file with mode: 0644]
states/portage/init.sls [new file with mode: 0644]
states/setup-gentoo.sls

diff --git a/states/portage/files/make.conf b/states/portage/files/make.conf
new file mode 100644 (file)
index 0000000..ae7a6ef
--- /dev/null
@@ -0,0 +1,40 @@
+# These settings were set by the catalyst build script that automatically
+# built this stage.
+# Please consult /usr/share/portage/config/make.conf.example for a more
+# detailed example.
+CFLAGS="-O2 -pipe -march=haswell -fomit-frame-pointer"
+CXXFLAGS="${CFLAGS}"
+MAKEOPTS="-j{{ grains['num_cpus'] + 1 }}"
+
+# NOTE: This stage was built with the bindist Use flag enabled
+PORTDIR="/usr/portage"
+DISTDIR="/usr/portage/distfiles"
+PKGDIR="/usr/portage/packages"
+
+# This sets the language of build output to English.
+# Please keep this setting intact when reporting bugs.
+LC_MESSAGES=C
+
+GENTOO_MIRRORS="ftp://ftp.mirrorservice.org/sites/distfiles.gentoo.org/"
+
+USE="X alsa -pulseaudio pcsc-lite -bindist -cups -ldap libressl wayland unicode ipv6 ipv4"
+GRUB_PLATFORMS="efi-64"
+
+VIDEO_CARDS="{{ video_cards }}"
+INPUT_DEVICES="libinput"
+
+{% if testing == True %}
+ACCEPT_KEYWORDS="~amd64"
+{% endif %}
+
+RUBY_TARGETS="ruby25"
+
+PORTAGE_NICENESS="19"
+
+FEATURES="buildpkg sign"
+PORTAGE_GPG_KEY="BA1CE947376048A4B3C4D4E50B3B880CF5E7FCB3"
+
+EMERGE_DEFAULT_OPTS="-av --quiet-build=y"
+PORTAGE_IONICE_COMMAND="ionice -c 3 -p \${PID}"
+
+CURL_SSL="libressl"
diff --git a/states/portage/init.sls b/states/portage/init.sls
new file mode 100644 (file)
index 0000000..347770e
--- /dev/null
@@ -0,0 +1,18 @@
+/etc/portage/make.conf:
+  file.managed:
+    - source: salt://portage/files/make.conf
+    - template: jinja
+    - user: root
+    - group: root
+    - mode: 644
+    - context:
+{% if grains['host'] == 'strontium' %}
+      testing: False
+{% else %}
+      testing: True
+{% endif %}
+{% if grains['host'] == 'plutonium' %}
+      video_cards: nouveau
+{% else %}
+      video_cards: intel
+{% endif %}
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..07028220dd8a57e09b0245bd08a9d006a4837e25 100644 (file)
@@ -0,0 +1,2 @@
+include:
+  - portage