Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
cf499155
Commit
cf499155
authored
Jun 15, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/commands_page' into develop
parents
acdbac07
ece63dac
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
121 additions
and
13 deletions
+121
-13
History.md
History.md
+2
-1
debomatic-webui/debomatic-webui
debomatic-webui/debomatic-webui
+2
-0
debomatic-webui/lib/config.js
debomatic-webui/lib/config.js
+1
-0
debomatic-webui/routes/index.js
debomatic-webui/routes/index.js
+12
-11
debomatic-webui/views/commands.ejs
debomatic-webui/views/commands.ejs
+100
-0
debomatic-webui/views/header.ejs
debomatic-webui/views/header.ejs
+4
-1
No files found.
History.md
View file @
cf499155
# 0.5.0
# 0.5.0
*
[new] packages search bar
*
[new] add packages search bar
*
[new] add page commands
# 0.4.2 (2014-06-15)
# 0.4.2 (2014-06-15)
*
[fix] calculate pidfile for debomatic status check after merging configurations
*
[fix] calculate pidfile for debomatic status check after merging configurations
...
...
debomatic-webui/debomatic-webui
View file @
cf499155
...
@@ -45,6 +45,8 @@ app.get('/', routes.index);
...
@@ -45,6 +45,8 @@ app.get('/', routes.index);
app.get(config.routes.distribution, routes.distribution);
app.get(config.routes.distribution, routes.distribution);
if (config.routes.preferences)
if (config.routes.preferences)
app.get(config.routes.preferences, routes.preferences);
app.get(config.routes.preferences, routes.preferences);
if (config.routes.commands)
app.get(config.routes.commands, routes.commands);
var server = http.createServer(app),
var server = http.createServer(app),
io = require('socket.io').listen(server, config.socket);
io = require('socket.io').listen(server, config.socket);
...
...
debomatic-webui/lib/config.js
View file @
cf499155
...
@@ -28,6 +28,7 @@ config.routes = {};
...
@@ -28,6 +28,7 @@ config.routes = {};
config
.
routes
.
debomatic
=
'
/debomatic
'
;
config
.
routes
.
debomatic
=
'
/debomatic
'
;
config
.
routes
.
distribution
=
'
/distribution
'
;
config
.
routes
.
distribution
=
'
/distribution
'
;
config
.
routes
.
preferences
=
'
/preferences
'
;
config
.
routes
.
preferences
=
'
/preferences
'
;
config
.
routes
.
commands
=
'
/commands
'
;
config
.
web
=
{};
config
.
web
=
{};
config
.
web
.
title
=
'
Deb-o-Matic web.ui
'
;
config
.
web
.
title
=
'
Deb-o-Matic web.ui
'
;
...
...
debomatic-webui/routes/index.js
View file @
cf499155
'
use strict
'
;
/*
var
config
=
require
(
'
../lib/config.js
'
);
* GET home page.
*/
var
config
=
require
(
'
../lib/config.js
'
)
exports
.
index
=
function
(
req
,
res
)
{
res
.
render
(
'
index
'
,
config
);
};
exports
.
index
=
function
(
req
,
res
)
{
exports
.
distribution
=
function
(
req
,
res
)
{
res
.
render
(
'
index
'
,
config
)
res
.
render
(
'
distribution
'
,
config
);
};
};
exports
.
distribution
=
function
(
req
,
res
)
{
exports
.
preferences
=
function
(
req
,
res
)
{
res
.
render
(
'
distribution
'
,
config
)
res
.
render
(
'
preferences
'
,
config
);
};
};
exports
.
preferences
=
function
(
req
,
res
)
{
exports
.
commands
=
function
(
req
,
res
)
{
res
.
render
(
'
preferences
'
,
config
)
res
.
render
(
'
commands
'
,
config
);
}
}
;
debomatic-webui/views/commands.ejs
0 → 100644
View file @
cf499155
<% include header.ejs %>
<article class="page">
<!-- <header><h2>Commands</h2></header>
<p class="lead text-muted">
Simple maker for .commands file
</p> -->
<section>
<ul class="nav nav-tabs">
<li class="active"><a href="#introduction" data-toggle="tab">Introduction</a></li>
<li><a href="#remove-packages" data-toggle="tab">Remove</a></li>
<li><a href="#rebuild-packages" data-toggle="tab">Rebuild</a></li>
<li><a href="#porter-uploads" data-toggle="tab">Porter</a></li>
<li><a href="#rebuild-packages-with-extra-build-dependencies" data-toggle="tab">Rebuild with extra</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="introduction">
<h3>Commands</h3>
<p><b>Deb-o-Matic</b> provides an interface to perform specific tasks into the
Deb-o-Matic <code>packagedir</code> directory such as removing uploaded files or
rebuilding packages. These operations are handled by commands stored in
<code>.commands</code> files, and uploaded into Deb-o-Matic <code>packagedir</code> by using
<code>dcut</code> utility, or by hand.</p>
<p>Using dcut is usually simpler, just launch the following command:</p>
<pre>dcut -U mydebomatic commandfile.commands</pre>
<p>where <code>mydebomatic</code> is a dput host as described in dput.cf (5) man page, and
<code>commandfile.commands</code> is the file containing the commands to be executed by
Deb-o-Matic.</p>
<p>Multiple commands can be stored in a single <code>.commands</code> file, but it is
usually safer to issue a single command per file.</p>
<div class="alert alert-warning">
<b>Caution:</b> If signature checking support is enabled, .commands files must be signed otherwise they will be deleted and no action will be taken.
</div>
</div>
<div class="tab-pane" id="remove-packages">
<h3>Remove packages</h3>
<p>It could happen some files are kept into Deb-o-Matic <code>packagedir</code> and you
need to remove them. In order to do so, you must use the <code>rm</code> command:</p>
<pre>echo "rm foo*" > foo.commands</pre>
<p>where <code>foo*</code> is a regular expression matching the files you want to remove.</p>
</div>
<div class="tab-pane" id="rebuild-packages">
<h3>Rebuild packages</h3>
<p>You could want to rebuild a package already in the mirrors to see whether it
compiles with newer packages, to analyze its content, and so on. In order to do
so, you must use the <code>rebuild</code> command:</p>
<pre>echo "rebuild foo_version dist" > foo.commands</pre>
<p>where <code>foo</code> is the name of the source package you want to rebuild,
<code>version</code> is the version of the package you want to rebuild, and <code>dist</code> is
the distribution which rebuild the package for.</p>
<p>Deb-o-Matic can also rebuild packages available in other distributions. The
syntax is similar, you just have to indicate which distribution to pick
packages from:</p>
<pre>echo "rebuild foo_version dist origin" > foo.commands</pre>
<p>where <code>origin</code> is the distribution to pick packages from.</p>
<div class="alert alert-warning">
<b>Caution:</b> Make sure packages are available in the distribution mirrors, otherwise they
cannot be downloaded and processed by Deb-o-Matic.
</div>
</div>
<div class="tab-pane" id="porter-uploads">
<h3>Porter uploads</h3>
<p>You could want to prepare a porter upload, a binary-only upload which generates
architecture dependent binaries only. Additional information can be found in
<a class="reference external" href="http://www.debian.org/doc/manuals/developers-reference/pkgs.html#porter-guidelines">Debian Developer’s Reference</a>.</p>
<p>In order to do so, you must use the <code>rebuild</code> command:</p>
<pre>echo "porter foo_version dist Joe Doe <j.doe@acme.com>" > foo.commands</pre>
<p>where foo is the name of the source package you want to rebuild, version is
the version of the package you want to rebuild, dist is the distribution which
rebuild package for, and the element between quotes is the address to be used
as maintainer field, which is usually the developer who is preparing the
upload.</p>
<div class="alert alert-warning">
<b>Caution:</b> Make sure packages are available in the distribution mirrors, otherwise they
cannot be downloaded and processed by Deb-o-Matic.
</div>
</div>
<div class="tab-pane" id="rebuild-packages-with-extra-build-dependencies">
<h3>Rebuild packages with extra build-dependencies</h3>
<p>You could want to rebuild a package already in the mirrors also adding a
specific build-dependency to see whether it compiles with a newer library
version. In order to do so, you must use the <code>builddep</code> command:</p>
<pre>echo "builddep foo_version dist extrapackage=packageversion" > foo.commands</pre>
<p>where <code>extrapackage</code> is the name of the package you want to install before
the compilation takes place, and <code>packageversion</code> is the optional version of
the package you want to install.</p>
<div class="alert alert-warning">
<b>Caution:</b> Make sure packages are available in the distribution mirrors, otherwise they
cannot be downloaded and processed by Deb-o-Matic.
</div>
</div>
</div>
</section>
</article>
<% include footer.ejs %>
debomatic-webui/views/header.ejs
View file @
cf499155
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<link
rel=
"stylesheet"
href=
"/external_libs/bootstrap-3.1.1-dist/css/bootstrap-theme.min.css"
>
<link
rel=
"stylesheet"
href=
"/external_libs/bootstrap-3.1.1-dist/css/bootstrap-theme.min.css"
>
<link
rel=
"stylesheet"
href=
"/stylesheets/style.css?<%= version %>"
>
<link
rel=
"stylesheet"
href=
"/stylesheets/style.css?<%= version %>"
>
</head>
</head>
<body>
<body>
<div
id=
"wrapper"
class=
"container-fluid"
>
<div
id=
"wrapper"
class=
"container-fluid"
>
...
@@ -27,6 +27,9 @@
...
@@ -27,6 +27,9 @@
</div>
</div>
<div
id=
"pages"
>
<div
id=
"pages"
>
<ul
class=
"nav navbar-nav pull-right"
>
<ul
class=
"nav navbar-nav pull-right"
>
<
%
if
(
web
.
paths
.
commands
)
{
%
>
<li><a
href=
"<%= web.paths.commands %>"
>
Commands
</a></li>
<
%
}
%
>
<
%
if
(
web
.
paths
.
preferences
)
{
%
>
<
%
if
(
web
.
paths
.
preferences
)
{
%
>
<li><a
href=
"<%= web.paths.preferences %>"
>
Preferences
</a></li>
<li><a
href=
"<%= web.paths.preferences %>"
>
Preferences
</a></li>
<
%
}
%
>
<
%
}
%
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment