diff options
Diffstat (limited to 'templates/system/package/repository')
4 files changed, 20 insertions, 0 deletions
diff --git a/templates/system/package/repository/node.def b/templates/system/package/repository/node.def new file mode 100644 index 0000000..104089a --- /dev/null +++ b/templates/system/package/repository/node.def @@ -0,0 +1,14 @@ +tag: +type: txt +help: "Repository name" +# bug 1847: remove the previous repo line before adding new line. +# need to prohibit '!' in repo name (sed delimiter) +syntax: pattern $(@) "^[^!]+$" ; "Do not use '!' in repository name" +create: "sh -c \"touch /etc/apt/sources.list && \ +sed -i '\\!/ $(@) !d' /etc/apt/sources.list && \ +echo \\\"deb $(url/@)/ $(@) $(component/@)\\\" >> /etc/apt/sources.list\" " +update: "sh -c \"touch /etc/apt/sources.list && \ +sed -i '\\!/ $(@) !d' /etc/apt/sources.list && \ +echo \\\"deb $(url/@)/ $(@) $(component/@)\\\" >> /etc/apt/sources.list\" " +delete: "sh -c \"touch /etc/apt/sources.list && \ +sed -i '\\! $(@) $(component/@)!d' /etc/apt/sources.list\" " diff --git a/templates/system/package/repository/node.tag/component/node.def b/templates/system/package/repository/node.tag/component/node.def new file mode 100644 index 0000000..e87f88d --- /dev/null +++ b/templates/system/package/repository/node.tag/component/node.def @@ -0,0 +1,2 @@ +type: txt +help: "Repository component names" diff --git a/templates/system/package/repository/node.tag/description/node.def b/templates/system/package/repository/node.tag/description/node.def new file mode 100644 index 0000000..9ce7dac --- /dev/null +++ b/templates/system/package/repository/node.tag/description/node.def @@ -0,0 +1,2 @@ +type: txt +help: "Repository description" diff --git a/templates/system/package/repository/node.tag/url/node.def b/templates/system/package/repository/node.tag/url/node.def new file mode 100644 index 0000000..0e304b9 --- /dev/null +++ b/templates/system/package/repository/node.tag/url/node.def @@ -0,0 +1,2 @@ +type: txt +help: "Repository URL" |