William Pitcock avatar William Pitcock committed 54e37f3

add gentoo support (experimental test)

Comments (0)

Files changed (6)

appliancekit/specs/gentoo-base.spec

+{% extends "base.spec" %}
+{% block bootstrap %}
+	{{ super() }}
+	{"operation": "runcmd", "chroot": false, "command": ["wget", "http://isomaster.tortois.es/cache/gentoo-bootstrap-{{ distribution }}.tar.bz2", "-O", "$chroot/ak-gentoo-bundle.tar.bz2"]},
+	{"operation": "runcmd", "chroot": false, "command": ["tar", "-C", "$chroot", "-jxf", "$chroot/ak-gentoo-bundle.tar.bz2"]},
+{% endblock %}
+{% block packages %}
+	{% for package in packages %}
+		{"operation": "runcmd", "chroot": true, "command": ["emerge", "{{ package }}"]},
+	{% endfor %}
+{% endblock %}
+{% block configure %}
+	{{ super() }}
+	{"operation": "render_template", "template": "gentoo/hostname.tmpl", "target": "/etc/conf.d/hostname"},
+	{"operation": "render_template", "template": "gentoo/net.tmpl", "target": "/etc/conf.d/net"},
+	{"operation": "runcmd", "chroot": true, "command": ["ln", "-sf", "/etc/init.d/net.lo", "/etc/init.d/net.eth0"]},
+	{"operation": "runcmd", "chroot": true, "command": ["rc-update", "add", "net.eth0", "default"]},
+	{"operation": "render_template", "template": "gentoo/locale-gen.tmpl", "target": "/etc/locale.gen"},
+	{"operation": "runcmd", "chroot": true, "command": ["locale-gen"]},
+{% endblock %}

appliancekit/specs/gentoo.spec

+{% extends "gentoo-base.spec" %}
+{% set distribution="20130717" %}

appliancekit/specs/gentoo/hostname.tmpl

+hostname="{{ hostname|default('localhost') }}"

appliancekit/specs/gentoo/locale-gen.tmpl

+en_US ISO-8859-1
+en_US.UTF-8 UTF-8

appliancekit/specs/gentoo/net.tmpl

+{% if eth0 == 'dhcp' %}
+config_eth0="dhcp"
+{% elif isinstance(eth0, dict) %}
+config_eth0="{{ eth0['address'] }} netmask {{ eth0['netmask'] }} brd {{ eth0['broadcast'] }}"
+routes_eth0="default via {{ eth0['gateway'] }}"
+{% endif %}

axml/gentoo_login.xml

+<?xml version="1.0" standalone="yes"?>
+<appliance>
+    <distribution>gentoo</distribution>
+</appliance>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.