Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11691234
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
4 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/pillar/devserver/ports.sls b/pillar/devserver/ports.sls
new file mode 100644
index 0000000..c9c1fdb
--- /dev/null
+++ b/pillar/devserver/ports.sls
@@ -0,0 +1,25 @@
+# -------------------------------------------------------------
+# Salt configuration for Nasqueron servers
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2020-01-18
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# Ports to build manually
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+ports:
+ xaos:
+ category: graphics
+ name: xaos
+ creates: /usr/local/bin/xaos
+ options:
+ set:
+ - NLS
+ - AALIB
+ unset:
+ - THREADS
+ - GTK2
+ - "X11"
diff --git a/pillar/top.sls b/pillar/top.sls
index 2dba764..a95f44b 100644
--- a/pillar/top.sls
+++ b/pillar/top.sls
@@ -1,46 +1,47 @@
# -------------------------------------------------------------
# Salt configuration for Nasqueron servers
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2016-04-10
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
base:
'*':
- core.users
- core.groups
- certificates.certificates
- nodes.nodes
- nodes.forests
- hotfixes.roles
- webserver.sites
dwellers:
- credentials.zr
- paas.docker
- saas.sentry
eglide:
- shellserver.quassel
equatower:
- credentials.zr
- paas.docker
- saas.jenkins
- saas.phpbb
- saas.sentry
ysul:
- devserver.repos
- paas.docker
- saas.mediawiki
- viperserv.bots
- viperserv.fantoir
- webserver.labs
- webserver.wwwroot51
windriver:
+ - devserver.ports
- devserver.repos
- webserver.labs
- webserver.wwwroot51
diff --git a/roles/devserver/userland-software/files/port_options b/roles/devserver/userland-software/files/port_options
new file mode 100644
index 0000000..9e326c5
--- /dev/null
+++ b/roles/devserver/userland-software/files/port_options
@@ -0,0 +1,15 @@
+# -------------------------------------------------------------
+# Port options for {{ args['category'] }}/{{ args['name'] }}
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Source file: roles/devserver/userland-software/files/port_options
+# -------------------------------------------------------------
+
+{% for option in args.get('options', {}).get('set') -%}
+OPTIONS_FILE_SET+={{ option }}
+{% endfor -%}
+
+{% for option in args.get('options', {}).get('unset') -%}
+OPTIONS_FILE_UNSET+={{ option }}
+{% endfor -%}
diff --git a/roles/devserver/userland-software/ports.sls b/roles/devserver/userland-software/ports.sls
new file mode 100644
index 0000000..32d500a
--- /dev/null
+++ b/roles/devserver/userland-software/ports.sls
@@ -0,0 +1,36 @@
+# -------------------------------------------------------------
+# Salt — Provision dev software
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2020-01-18
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% if grains['os'] == 'FreeBSD' %}
+
+{% for port, args in pillar.get("ports", {}).items() %}
+
+# -------------------------------------------------------------
+# Provision port options
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/var/db/ports/{{ args['category'] }}_{{ args['name'] }}/options:
+ file.managed:
+ - source: salt://roles/devserver/userland-software/files/port_options
+ - template: jinja
+ - mode: 644
+ - context:
+ args: {{ args }}
+
+# -------------------------------------------------------------
+# Build and install package
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+port_{{ port }}:
+ cmd.run:
+ - name: make build package deinstall reinstall
+ - cwd: /usr/ports/{{ args['category'] }}/{{ args['name'] }}
+ - creates: {{ args['creates'] }}
+{% endfor %}
+
+{% endif %}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Sep 12, 20:45 (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2978316
Default Alt Text
(4 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment