You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

debian.tmpl 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {{if eq .PackageDescriptor.Package.Type "debian"}}
  2. <h4 class="ui top attached header">{{.locale.Tr "packages.installation"}}</h4>
  3. <div class="ui attached segment">
  4. <div class="ui form">
  5. <div class="field">
  6. <label>{{svg "octicon-terminal"}} {{.locale.Tr "packages.debian.registry"}}</label>
  7. <div class="markup"><pre class="code-block"><code>sudo curl <gitea-origin-url data-url="{{AppSubUrl}}/api/packages/{{$.PackageDescriptor.Owner.Name}}/debian/repository.key"></gitea-origin-url> -o /etc/apt/trusted.gpg.d/gitea-{{$.PackageDescriptor.Owner.Name}}.asc
  8. echo "deb <gitea-origin-url data-url="{{AppSubUrl}}/api/packages/{{$.PackageDescriptor.Owner.Name}}/debian"></gitea-origin-url> $distribution $component" | sudo tee -a /etc/apt/sources.list.d/gitea.list
  9. sudo apt update</code></pre></div>
  10. <p>{{.locale.Tr "packages.debian.registry.info" | Safe}}</p>
  11. </div>
  12. <div class="field">
  13. <label>{{svg "octicon-terminal"}} {{.locale.Tr "packages.debian.install"}}</label>
  14. <div class="markup">
  15. <pre class="code-block"><code>sudo apt install {{$.PackageDescriptor.Package.Name}}={{$.PackageDescriptor.Version.Version}}</code></pre>
  16. </div>
  17. </div>
  18. <div class="field">
  19. <label>{{.locale.Tr "packages.registry.documentation" "Debian" "https://docs.gitea.com/usage/packages/debian/" | Safe}}</label>
  20. </div>
  21. </div>
  22. </div>
  23. <h4 class="ui top attached header">{{.locale.Tr "packages.debian.repository"}}</h4>
  24. <div class="ui attached segment">
  25. <table class="ui single line very basic table">
  26. <tbody>
  27. <tr>
  28. <td class="collapsing"><h5>{{.locale.Tr "packages.debian.repository.distributions"}}</h5></td>
  29. <td>{{StringUtils.Join .Distributions ", "}}</td>
  30. </tr>
  31. <tr>
  32. <td class="collapsing"><h5>{{.locale.Tr "packages.debian.repository.components"}}</h5></td>
  33. <td>{{StringUtils.Join .Components ", "}}</td>
  34. </tr>
  35. <tr>
  36. <td class="collapsing"><h5>{{.locale.Tr "packages.debian.repository.architectures"}}</h5></td>
  37. <td>{{StringUtils.Join .Architectures ", "}}</td>
  38. </tr>
  39. </tbody>
  40. </table>
  41. </div>
  42. {{if .PackageDescriptor.Metadata.Description}}
  43. <h4 class="ui top attached header">{{.locale.Tr "packages.about"}}</h4>
  44. <div class="ui attached segment">
  45. {{.PackageDescriptor.Metadata.Description}}
  46. </div>
  47. {{end}}
  48. {{if .PackageDescriptor.Metadata.Dependencies}}
  49. <h4 class="ui top attached header">{{.locale.Tr "packages.dependencies"}}</h4>
  50. <div class="ui attached segment">
  51. <table class="ui single line very basic table">
  52. <tbody>
  53. {{range .PackageDescriptor.Metadata.Dependencies}}
  54. <tr>
  55. <td>{{.}}</td>
  56. </tr>
  57. {{end}}
  58. </tbody>
  59. </table>
  60. </div>
  61. {{end}}
  62. {{end}}