aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/loudmouth
AgeCommit message (Expand)Author
2010-08-03500+ recipes: remove do_stageFrans Meulenbroeks
2010-05-25Make the do_patch apply=yes param implicit if extension is .diff/.patchChris Larson
2010-05-25Rename url params patch=<ignored>/pnum=<n> to apply={yes,no}/striplevel=<n>Chris Larson
2010-04-12recipes: move checksums to recipes from checksums.iniMartin Jansa
2010-03-09loudmouth: added patch from Debian to use new GnuTLSMarcin Juszkiewicz
2009-07-01loudmouth: add 1.4.3Koen Kooi
2009-03-17rename packages/ to recipes/ per earlier agreementDenys Dmytriyenko
/ .highlight .mi { color: #ae81ff } /* Literal.Number.Integer */ .highlight .mo { color: #ae81ff } /* Literal.Number.Oct */ .highlight .sa { color: #e6db74 } /* Literal.String.Affix */ .highlight .sb { color: #e6db74 } /* Literal.String.Backtick */ .highlight .sc { color: #e6db74 } /* Literal.String.Char */ .highlight .dl { color: #e6db74 } /* Literal.String.Delimiter */ .highlight .sd { color: #e6db74 } /* Literal.String.Doc */ .highlight .s2 { color: #e6db74 } /* Literal.String.Double */ .highlight .se { color: #ae81ff } /* Literal.String.Escape */ .highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */ .highlight .si { color: #e6db74 } /* Literal.String.Interpol */ .highlight .sx { color: #e6db74 } /* Literal.String.Other */ .highlight .sr { color: #e6db74 } /* Literal.String.Regex */ .highlight .s1 { color: #e6db74 } /* Literal.String.Single */ .highlight .ss { color: #e6db74 } /* Literal.String.Symbol */ .highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #a6e22e } /* Name.Function.Magic */ .highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */ .highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */ .highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */ .highlight .vm { color: #f8f8f2 } /* Name.Variable.Magic */ .highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */ } @media (prefers-color-scheme: light) { .highlight .hll { background-color: #ffffcc } .highlight .c { color: #888888 } /* Comment */ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ .highlight .k { color: #008800; font-weight: bold } /* Keyword */ .highlight .ch { color: #888888 } /* Comment.Hashbang */ .highlight .cm { color: #888888 } /* Comment.Multiline */ .highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */ .highlight .cpf { color: #888888 } /* Comment.PreprocFile */ .highlight .c1 { color: #888888 } /* Comment.Single */ .highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */ .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ .highlight .ge { font-style: italic } /* Generic.Emph */ .highlight .gr { color: #aa0000 } /* Generic.Error */ .highlight .gh { color: #333333 } /* Generic.Heading */ .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ .highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #555555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
{% extends project_specific|yesno:"baseprojectspecificpage.html,base.html" %}
{% load projecttags %}
{% load humanize %}
{% load static %}
{% block title %} Import layer - {{project.name}} - Toaster {% endblock %}
{% block pagecontent %}

<div class="row">
  {% include project_specific|yesno:"project_specific_topbar.html,projecttopbar.html" %}
  {% if project and project.release %}
  <script src="{% static 'js/layerDepsModal.js' %}"></script>
  <script src="{% static 'js/importlayer.js' %}"></script>
  <script>
  $(document).ready(function (){
    var ctx = {
      xhrLayerUrl : "{% url 'xhr_layer' project.id %}",
      xhrGitRevTypeAheadUrl : "{% url 'xhr_gitrevtypeahead' %}",
    };

    try {
      importLayerPageInit(ctx);
    } catch (e) {
      document.write("Sorry, An error has occurred loading this page");
      console.warn(e);
    }
  });
  </script>

  <form class="col-md-11">
    <span class="help-block">The layer you are importing must be compatible with <strong>{{project.release.description}}</strong>, which is the release you are using in this project.</span>
    <div class="alert alert-error" id="import-error" style="display:none">
      <button type="button" class="close" data-dismiss="alert">&times;</button>
      <h3>&nbsp;</h3>
      <p></p>
      <ul></ul>
    </div>
    <fieldset>
      <div class="form-group" id="layer-name-ctrl">
        <label class="control-label" for="import-layer-name">
          Layer name
          <span class="glyphicon glyphicon-question-sign get-help" title="Something like 'meta-mylayer'. Your layer name must be unique and can only include letters, numbers and dashes"></span>
        </label>
        <input class="form-control" id="import-layer-name" type="text" required autofocus data-autocomplete="off" data-provide="typeahead">
        <span class="help-block" style="display: none;" id="invalid-layer-name-hint">A valid layer name can only include letters, numbers and dashes</span>
        <span class="help-inline" style="display: none;" id="duplicated-layer-name-hint"></span>
      </div>
    </fieldset>
    <div id="duplicate-layer-info" style="display:none">
      <div class="alert alert-warning">
        <h3>A layer called <a href="" class="dup-layer-link"><span class="dup-layer-name"></span></a> already exists</h3>
        <p>Layer names must be unqiue. Please use a different layer name.</p>
        <dl id="git-layer-dup" style="display:none;">
          <dt>
          The <span class="dup-layer-name"></span> repository url is
          </dt>
          <dd>
          <span id="dup-layer-vcs-url"></span>
          </dd>
          <dt>
          The <span class="dup-layer-name"></span> revision is
          </dt>
          <dd>
          <span id="dup-layer-revision"></span>
          </dd>
        </dl>
	<dl id="local-layer-dup" style="display:none;">
	  <dt>
	    The <span class="dup-layer-name"></span> directory is
	  </dt>
	  <dd>
	    <span id="dup-local-source-dir-name"></span>
	  </dd>
	</dl>
        <p><a href="" class="dup-layer-link">View the <span class="dup-layer-name"></span> layer information</a></p>
      </div>
    </div>
    <fieldset class="fields-apart-from-layer-name" id="repo-select">
      <legend class="radioLegend">Where is the layer source code?</legend>
      <div class="radio">
	<label>
          <input type="radio" id="git-repo-radio" name="repo" value="git" checked="checked">
	  In a <strong>Git repository</strong>
	</label>
	<p class="help-block radio-help">To build the layer Toaster must be able to access the Git repository, otherwise builds will fail. Toaster will fetch and checkout your chosen Git revision every time you start a build.</p>
      </div>
      <div class="radio">
	<label>
          <input type="radio" id="local-dir-radio" name="repo" value="local">
	  In a <strong>directory</strong>
	</label>
	<p class="help-block radio-help">Use this option for quick layer development, by simply providing the path to the layer source code.</p>
      </div>
    </fieldset>
    <fieldset class="fields-apart-from-layer-name" id="git-repo">
      <legend>Git repository information</legend>
      <div class="form-group">
        <label for="layer-git-repo-url">
          Git repository URL
          <span class="glyphicon glyphicon-question-sign get-help" title="Fetch/clone URL of the repository. Currently, Toaster only supports Git repositories." ></span>
        </label>
        <input type="text" id="layer-git-repo-url" class="form-control" required>
      </div>
      <div class="form-group">
        <label for="layer-subdir">
          Repository subdirectory
          <span class="text-muted">(optional)</span>
          <span class="glyphicon glyphicon-question-sign get-help" title="Subdirectory within the repository where the layer is located, if not in the root (usually only used if the repository contains more than one layer)"></span>
        </label>
        <input type="text" class="form-control" id="layer-subdir">
      </div>
      <div class="form-group" id="layer-revision-ctrl">
        <label for="layer-git-ref">
          Git revision
          <span class="glyphicon glyphicon-question-sign get-help" title="You can provide a Git branch, a tag or a commit SHA as the revision"></span>
        </label>
        <span style="display: block">
        <input type="text" class="form-control" id="layer-git-ref" autocomplete="off" data-minLength="1" data-autocomplete="off" data-provide="typeahead" required>
        </span>
        <span class="help-block has-error" style="display:none;" id="invalid-layer-revision-hint">The "HEAD" branch is reserved (only allowed for the "Local Yocto Project" layers)</span>
      </div>
    </fieldset>

    <fieldset class="fields-apart-from-layer-name" id="local-dir" style="display:none;">
      <legend>Layer directory information</legend>
      <div class="form-group">
        <label for="local-dir-path" class="control-label">Enter the absolute path to the layer directory</label>
        <input type="text" class="form-control" id="local-dir-path" required/>
        <p class="help-block" id="hintError-dir-path-starts-with-slash" style="display:none;">The absolute path must start with "/".</p>
        <p class="help-block" id="hintError-dir-path" style="display:none;">The directory path cannot include spaces or any of these characters: \ ? % * : | " " &lt; &gt;</p>
      </div>
    </fieldset>

    <fieldset class="fields-apart-from-layer-name">
      <legend>
        Layer dependencies
        <small class="text-muted">(optional)</small>
        <span class="glyphicon glyphicon-question-sign get-help heading-help" title="Other layers this layer depends upon"></span>
      </legend>
      <ul class="list-unstyled lead" id="layer-deps-list">
      </ul>
      <div class="form-inline">
        <div class="form-group">
          <input type="text" autocomplete="off" data-minLength="1" data-autocomplete="off" data-provide="typeahead" placeholder="Type a layer name" id="layer-dependency" class="form-control">
        </div>
        <button class="btn btn-default" id="add-layer-dependency-btn">
          Add layer
        </button>
        <span class="help-inline">You can only add layers Toaster knows about</span>
    </fieldset>
    <div class="top-air fields-apart-from-layer-name" id="form-actions">
      <button class="btn btn-primary btn-lg" data-toggle="modal" id="import-and-add-btn" data-target="#dependencies-message" disabled>Import and add to project</button>
      <span class="help-inline" id="import-git-layer-and-add-hint" style="vertical-align: middle;">To import a layer you need to enter a layer name, a Git repository URL and a Git revision (branch, tag or commit)</span>
      <span class="help-inline" id="import-local-dir-and-add-hint" style="vertical-align: middle;display:none;">To import a layer you need to enter a layer name and the absolute path to the layer directory</span>
    </div>
  </div>
</form>

  {% else %} {#project and project release#}
  <div class="page-header">
    <h1>Import layer</h1>
  </div>
  <div class="alert alert-info" id="import-error" >
    <h3>Unsupported project type</h3>
    <p>This project does not support importing layers.</p>
    <ul></ul>
  </div>

  {% endif %}
</div>
{% endblock %}