Added Bookworm support.

This commit is contained in:
curtis-leblanc 2025-03-24 14:42:46 -04:00
parent ba615bd2f2
commit 5339d3366b
27 changed files with 424 additions and 107 deletions

View File

@ -2,24 +2,87 @@ name: Build Packages
on:
push:
branches:
- build-package
- build
tags:
- 'v*.*.*'
jobs:
main:
runs-on: self-hosted
prebuild:
runs-on: buildinator-5
outputs:
manifest: ${{ steps.prebuild.outputs.manifest }}
matrix: ${{ steps.prebuild.outputs.matrix }}
uuid: ${{ steps.prebuild.outputs.uuid }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Package Binaries
run: build-packages ${{github.repository}} ${{github.workspace}}
uses: actions/checkout@v3
- id: prebuild
name: Prebuild flow
uses: 45drives/actions/prebuild-flow@main
with:
directory: ${{ github.workspace }}
build:
needs: prebuild
runs-on: buildinator-group
strategy:
matrix:
build: ${{ fromJSON(needs.prebuild.outputs.matrix).include }}
steps:
- name: Build package
uses: 45drives/actions/build-package@main
with:
manifest: ${{ needs.prebuild.outputs.manifest }}
build: ${{ toJSON(matrix.build) }}
uuid: ${{ needs.prebuild.outputs.uuid }}
sign:
needs:
- prebuild
- build
runs-on: buildinator-5
steps:
- name: Run sign playbook
uses: 45drives/actions/ansible-playbook@main
with:
playbook: /root/git/auto-packaging/actions/ansible/sign.yml
directory: ${{ github.workspace }}/packaging
group_vars_directory: ${{ github.workspace }}/packaging/group_vars/
inventory: |
[ci]
localhost
become: true
host_key_checking: true
extra_vars: sign_key_name=prod
update_repositories:
needs:
- prebuild
- build
- sign
runs-on: buildinator-5
steps:
- id: push_local
name: Push packages into local repository
uses: 45drives/actions/update-repo@main
with:
directory: ${{ github.workspace }}
create_release:
needs:
- prebuild
- build
- sign
- update_repositories
runs-on: buildinator-5
steps:
- name: Set Variables
if: startsWith(github.ref, 'refs/tags/')
run: |
echo "PRERELEASE=$(cat ${{github.workspace}}/manifest.json | jq --raw-output '.prerelease')" >> $GITHUB_ENV
echo "PRERELEASE=$([ "$(cat ${{github.workspace}}/manifest.json | jq --raw-output '.stable')" = "true" ] && echo false || echo "true")" >> $GITHUB_ENV
echo "TITLE=$(cat ${{github.workspace}}/manifest.json | jq --raw-output '.title')" >> $GITHUB_ENV
echo "VERSION=$(cat ${{github.workspace}}/manifest.json | jq --raw-output '.version')" >> $GITHUB_ENV
echo "REVISION=$(cat ${{github.workspace}}/manifest.json | jq --raw-output '.buildVersion')" >> $GITHUB_ENV
echo "REVISION=$(cat ${{github.workspace}}/manifest.json | jq --raw-output '.build_number')" >> $GITHUB_ENV
- name: GitHub Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
@ -27,15 +90,21 @@ jobs:
name: ${{env.TITLE}} ${{env.VERSION}}
prerelease: ${{env.PRERELEASE}}
body_path: ${{github.workspace}}/CHANGELOG.md
files: |
${{github.workspace}}/dist/packages/*/*.deb
${{github.workspace}}/dist/packages/*/*.rpm
${{github.workspace}}/LICENSE
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Update Repository
sync_repositories:
needs:
- prebuild
- build
- sign
- update_repositories
- create_release
runs-on: buildinator-5
steps:
- id: push_remote
name: Sync local repository with remote repository
if: startsWith(github.ref, 'refs/tags/')
run: update-repositories ${{github.workspace}}
- name: Publish Repository
if: startsWith(github.ref, 'refs/tags/')
run: publish-repo
uses: 45drives/actions/sync-repo@main
with:
directory: ${{ github.workspace }}

View File

@ -1,3 +1,4 @@
## Cockpit Navigator 0.5.8-2
## Cockpit Navigator 0.5.10-1
* Add file and coreutils dependencies.
* Disallow changing selected file/folder while editing permissions
* Allow opening non-text file for editing via prompt

View File

@ -23,17 +23,17 @@ With no command line use needed, you can:
# Installation
## From Github Release
### Ubuntu
1. `$ wget https://github.com/45Drives/cockpit-navigator/releases/download/v0.5.8/cockpit-navigator_0.5.8-1focal_all.deb`
1. `# apt install ./cockpit-navigator_0.5.8-1focal_all.deb`
1. `$ wget https://github.com/45Drives/cockpit-navigator/releases/download/v0.5.10/cockpit-navigator_0.5.10-1focal_all.deb`
1. `# apt install ./cockpit-navigator_0.5.10-1focal_all.deb`
### EL7
1. `# yum install https://github.com/45Drives/cockpit-navigator/releases/download/v0.5.8/cockpit-navigator-0.5.8-1.el7.noarch.rpm`
1. `# yum install https://github.com/45Drives/cockpit-navigator/releases/download/v0.5.10/cockpit-navigator-0.5.10-1.el7.noarch.rpm`
### EL8
1. `# dnf install https://github.com/45Drives/cockpit-navigator/releases/download/v0.5.8/cockpit-navigator-0.5.8-1.el8.noarch.rpm`
1. `# dnf install https://github.com/45Drives/cockpit-navigator/releases/download/v0.5.10/cockpit-navigator-0.5.10-1.el8.noarch.rpm`
## From Source
1. Ensure dependencies are installed: `cockpit`, `python3`, `rsync`, `zip`.
1. `$ git clone https://github.com/45Drives/cockpit-navigator.git`
1. `$ cd cockpit-navigator`
1. `$ git checkout <version>` (v0.5.8 is latest)
1. `$ git checkout <version>` (v0.5.10 is latest)
1. `# make install`
## From 45Drives Repositories
### Automatic Repo Setup with Script

View File

@ -1,28 +1,24 @@
{
"__version": "45D-R1",
"schema_version": "45D_AP_V2.0",
"name": "cockpit-navigator",
"title": "Cockpit Navigator",
"prerelease": false,
"version": "0.5.8",
"buildVersion": "2",
"description": "A File System Browser for Cockpit.",
"version": "0.5.10",
"build_number": "1",
"stable": true,
"author": "Josh Boudreau <jboudreau@45drives.com>",
"url": "https://github.com/45Drives/cockpit-navigator",
"category": "utils",
"priority": "optional",
"licence": "GPL-3.0+",
"architecture": {
"deb": "all",
"el": "noarch"
},
"description": {
"long": "A File System Browser for Cockpit.",
"short": "A File System Browser for Cockpit."
},
"git_url": "https://github.com/45Drives/cockpit-navigator",
"license": "GPL-3.0+",
"defaults": {
"urgency": "medium"
"change_urgency": "medium"
},
"architecture": {
"rocky": "x86_64",
"debian": "amd64",
"ubuntu": "amd64"
},
"dependencies": {
"deb": [
"ubuntu_common": [
"cockpit",
"python3",
"rsync",
@ -30,7 +26,7 @@
"file",
"coreutils"
],
"el": [
"rocky_common": [
"cockpit",
"python3",
"rsync",
@ -40,30 +36,44 @@
"/bin/rmdir"
]
},
"releases": [
"builds": [
{
"image": "ubuntu-focal-builder",
"codeName": "focal",
"type": "deb"
"group": "ubuntu",
"os_name": "ubuntu-focal",
"image": "ci.cr.45d.io/ci/simple/ubuntu-focal:1"
},
{
"image": "rocky-el8-builder",
"codeName": "el8",
"type": "el"
"group": "ubuntu",
"os_name": "ubuntu-jammy",
"image": "ci.cr.45d.io/ci/simple/ubuntu-jammy:1"
},
{
"image": "centos-el7-builder",
"codeName": "el7",
"type": "el"
"group": "rocky",
"os_name": "rocky-el8",
"image": "ci.cr.45d.io/ci/simple/rocky-el8:1"
},
{
"group": "debian",
"os_name": "debian-bookworm",
"image": "ci.cr.45d.io/ci/simple/ubuntu-jammy:1"
},
{
"group": "rocky",
"os_name": "rocky-el9",
"image": "ci.cr.45d.io/ci/simple/rocky-el9:1"
}
],
"repos": [
"community",
"enterprise"
],
"changelog": {
"urgency": "medium",
"version": "0.5.8",
"buildVersion": "2",
"version": "0.5.10",
"build_number": "1",
"ignore": [],
"date": null,
"packager": "Josh Boudreau <jboudreau@45drives.com>",
"changes": []
}
}
}

BIN
navigator/cockpit.css.gz Normal file

Binary file not shown.

View File

@ -41,18 +41,18 @@ export class NavFile extends NavEntry {
* @param {Event} e
*/
handleEvent(e) {
switch(e.type){
switch (e.type) {
case "click":
if (this.double_click) {
if(this.timeout)
if (this.timeout)
clearTimeout(this.timeout);
this.double_click = false;
this.open();
return;
} else { // single click
this.double_click = true;
if(this.timeout)
clearTimeout(this.timeout)
if (this.timeout)
clearTimeout(this.timeout);
this.timeout = setTimeout(() => {
this.double_click = false;
}, 500);
@ -77,7 +77,7 @@ export class NavFile extends NavEntry {
return new Promise((resolve, reject) => {
var proc = cockpit.spawn(
["rm", "-f", this.path_str()],
{superuser: "try", err: "out"}
{ superuser: "try", err: "out" }
);
proc.done((data) => {
resolve();
@ -87,20 +87,21 @@ export class NavFile extends NavEntry {
});
});
}
async open() {
var proc_output = await cockpit.spawn(["file", "--mime-type", this.path_str()], {superuser: "try"});
var fields = proc_output.split(/:(?=[^:]+$)/); // ensure it's the last : with lookahead
var type = fields[1].trim();
if (/^text/.test(type) || /^inode\/x-empty$/.test(type) || this.stat["size"] === 0 || (/^application\/octet-stream/.test(type) && this.stat["size"] === 1)) {
async function isEditable(path, fileSize) {
if (fileSize === 0)
return true; // empty file always editable
const encoding = (await cockpit.spawn(["file", "-bL", "--mime-encoding", path], { superuser: "try" })).trim();
if (['us-ascii', 'utf-8'].includes(encoding))
return true;
if (fileSize === 1 && ['\n', '\t', ' '].includes(await cockpit.file(path).read()))
return true; // special case for empty file with newline, shows as `application/octet-stream; charset=binary`
return false;
}
if (await isEditable(this.path_str(), this.stat['size']) || await this.nav_window_ref.modal_prompt.confirm(`'${this.filename}' is not a text file. Open it anyway?`, "WARNING: this may lead to file corruption.", true)) {
this.show_edit_file_contents();
} else {
console.log("Unknown mimetype: " + type);
if (await this.nav_window_ref.modal_prompt.confirm("Can't open " + this.filename + " for editing.", "Download it instead?")) {
var download = new NavDownloader(this);
download.download();
}
}
}
@ -109,7 +110,7 @@ export class NavFile extends NavEntry {
this.nav_window_ref.disable_buttons_for_editing();
var contents = "";
try {
contents = await cockpit.file(this.path_str(), {superuser: "try"}).read();
contents = await cockpit.file(this.path_str(), { superuser: "try" }).read();
} catch (e) {
this.nav_window_ref.enable_buttons();
this.nav_window_ref.modal_prompt.alert(e.message);
@ -124,7 +125,7 @@ export class NavFile extends NavEntry {
document.getElementById("nav-contents-view-holder").style.display = "none";
document.getElementById("nav-edit-contents-view").style.display = "flex";
}
async write_to_file() {
var new_contents = document.getElementById("nav-edit-contents-textarea").value;
try {
@ -135,7 +136,7 @@ export class NavFile extends NavEntry {
this.nav_window_ref.refresh();
this.hide_edit_file_contents();
}
hide_edit_file_contents() {
window.addEventListener("keydown", this.nav_window_ref);
document.getElementById("nav-edit-contents-textarea").removeEventListener("keydown", this);
@ -145,7 +146,7 @@ export class NavFile extends NavEntry {
}
}
export class NavFileLink extends NavFile{
export class NavFileLink extends NavFile {
/**
*
* @param {string} path
@ -187,10 +188,10 @@ export class NavFileLink extends NavFile{
async open() {
var target_path = this.get_link_target_path();
var proc_output = await cockpit.spawn(["file", "--mime-type", target_path], {superuser: "try"});
var proc_output = await cockpit.spawn(["file", "--mime-type", target_path], { superuser: "try" });
var fields = proc_output.split(/:(?=[^:]+$)/); // ensure it's the last : with lookahead
var type = fields[1].trim();
if ((/^text/.test(type) || /^inode\/x-empty$/.test(type) || this.stat["size"] === 0)) {
this.show_edit_file_contents();
} else {
@ -206,8 +207,8 @@ export class NavFileLink extends NavFile{
var target_path = this.get_link_target_path();
var contents = "";
try {
contents = await cockpit.file(target_path, {superuser: "try"}).read();
} catch(e) {
contents = await cockpit.file(target_path, { superuser: "try" }).read();
} catch (e) {
this.nav_window_ref.enable_buttons();
this.nav_window_ref.modal_prompt.alert(e.message);
return;

View File

@ -210,6 +210,8 @@ export class NavWindow {
}
clear_selected() {
if (this.editing_permissions)
return;
for (let entry of this.selected_entries) {
entry.unstyle_selected();
}
@ -221,11 +223,15 @@ export class NavWindow {
* @param {NavEntry} entry
*/
select_one(entry) {
if (this.editing_permissions)
return;
entry.style_selected();
this.selected_entries.add(entry);
}
deselect_one(entry) {
if (this.editing_permissions)
return;
entry.unstyle_selected();
this.selected_entries.delete(entry);
}
@ -236,6 +242,8 @@ export class NavWindow {
* @param {NavEntry} end
*/
select_range(start, end) {
if (this.editing_permissions)
return;
let start_ind = this.entries.indexOf(start);
let end_ind = this.entries.indexOf(end);
if (start_ind === -1 || end_ind === -1)
@ -252,6 +260,8 @@ export class NavWindow {
}
reset_selection() {
if (this.editing_permissions)
return;
this.clear_selected();
this.select_one(this.pwd());
this.last_selected_entry = null;
@ -268,6 +278,8 @@ export class NavWindow {
* @param {Boolean} ctrl
*/
set_selected(target, shift, ctrl) {
if (this.editing_permissions)
return;
if (!ctrl && !shift)
this.clear_selected();
if (!shift || !this.last_selected_entry)
@ -299,6 +311,8 @@ export class NavWindow {
}
select_all() {
if (this.editing_permissions)
return;
this.clear_selected();
this.select_range(this.entries[0], this.entries[this.entries.length - 1]);
this.update_selection_info();
@ -395,11 +409,13 @@ export class NavWindow {
document.getElementById("nav-mode-preview").innerText = "unchanged";
document.getElementById("nav-edit-properties").style.display = "flex";
document.getElementById("nav-show-properties").style.display = "none";
this.editing_permissions = true;
}
hide_edit_selected() {
document.getElementById("nav-show-properties").style.display = "flex";
document.getElementById("nav-edit-properties").style.display = "none";
this.editing_permissions = false;
}
/**

View File

@ -22,7 +22,7 @@
<meta charset="utf-8">
<base href=".">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="../base1/cockpit.css" type="text/css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="./cockpit.css">
<link href="style.css" type="text/css" rel="stylesheet">
<link href="fontawesome/css/all.min.css" rel="stylesheet">
<script src="fontawesome/attribution.js"></script>

View File

@ -0,0 +1,5 @@
cockpit-navigator (0.5.10-1bookworm) bookworm; urgency=medium
* build for bookworm
-- Brett Kelly <bkelly@45drives.com> Mon, 24 Feb 2025 14:40:50 -0300

View File

@ -0,0 +1,13 @@
Source: {{ name }}
Section: utils
Priority: optional
Maintainer: {{ author }}
Build-Depends: debhelper-compat (= 12)
Standards-Version: 4.4.1
Homepage: {{ git_url }}
Vcs-Git: {{ git_url }}
Package: {{ name }}
Architecture: {{ architecture.ubuntu }}
Depends: {{ dependencies.ubuntu_common | join(',') }}
Description: {{ description }}

View File

@ -1,7 +1,7 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: ::package_name::
Upstream-Contact: ::package_author::
Source: ::package_url::
Upstream-Name: "{{ name }}"
Upstream-Contact: "{{ author }}"
Source: "{{ git_url }}"
Files: *
Copyright: 2021 Josh Boudreau <jboudreau@45drives.com>

View File

@ -32,6 +32,11 @@ rm -rf %{buildroot}
/usr/share/cockpit/navigator/*
%changelog
* Wed Oct 26 2022 Joshua Boudreau <jboudreau@45drives.com> 0.5.10-1
- Disallow changing selected file/folder while editing permissions
- Allow opening non-text file for editing via prompt
* Fri Aug 05 2022 Joshua Boudreau <jboudreau@45drives.com> 0.5.9-1
- Fix CSS for Cockpit 273 and greater
* Mon Jun 06 2022 Joshua Boudreau <jboudreau@45drives.com> 0.5.8-2
- Add file and coreutils dependencies.
* Wed Dec 01 2021 Joshua Boudreau <jboudreau@45drives.com> 0.5.8-1

View File

@ -1,12 +0,0 @@
Source: ::package_name::
Section: ::package_category::
Priority: ::package_priority::
Maintainer: ::package_author::
Build-Depends: debhelper-compat (= 12)
Standards-Version: 4.4.1
Homepage: ::package_url::
Package: ::package_name::
Architecture: ::package_architecture_deb::
Depends: ::package_dependencies_deb::
Description: ::package_description_short::

View File

@ -1,20 +1,21 @@
%global debug_package %{nil}
Name: ::package_name::
Version: ::package_version::
Release: ::package_build_version::%{?dist}
Summary: ::package_description_short::
License: ::package_licence::
URL: ::package_url::
Name: {{ name }}
Version: {{ version }}
Release: {{ build_number }}%{?dist}
Summary: {{ description }}
License: {{ license }}
URL: {{ git_url }}
Source0: %{name}-%{version}.tar.gz
BuildArch: ::package_architecture_el::
Requires: ::package_dependencies_el::
BuildArch: {{ architecture.rocky }}
Requires: {{ dependencies.rocky_common | join(',') }}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
::package_title::
::package_description_long::
{{ title }}
{{ description }}
%prep
%setup -q
@ -32,6 +33,11 @@ rm -rf %{buildroot}
/usr/share/cockpit/navigator/*
%changelog
* Wed Oct 26 2022 Joshua Boudreau <jboudreau@45drives.com> 0.5.10-1
- Disallow changing selected file/folder while editing permissions
- Allow opening non-text file for editing via prompt
* Fri Aug 05 2022 Joshua Boudreau <jboudreau@45drives.com> 0.5.9-1
- Fix CSS for Cockpit 273 and greater
* Mon Jun 06 2022 Joshua Boudreau <jboudreau@45drives.com> 0.5.8-2
- Add file and coreutils dependencies.
* Wed Dec 01 2021 Joshua Boudreau <jboudreau@45drives.com> 0.5.8-1

View File

@ -0,0 +1,37 @@
%global debug_package %{nil}
Name: {{ name }}
Version: {{ version }}
Release: {{ build_number }}%{?dist}
Summary: {{ description }}
License: {{ license }}
URL: {{ git_url }}
Source0: %{name}-%{version}.tar.gz
BuildArch: {{ architecture.rocky }}
Requires: {{ dependencies.rocky_common | join(',') }}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
{{ title }}
{{ description }}
%prep
%setup -q
%build
# empty
%install
make DESTDIR=%{buildroot} DIST=%{dist} NAV_VERS="%{version}-%{release}" install
%clean
rm -rf %{buildroot}
%files
/usr/share/cockpit/navigator/*
%changelog
* Mon Feb 24 2025 Brett Kelly <bkelly@45drives.com> 0.5.10-1
- build for el9

View File

@ -1,3 +1,16 @@
cockpit-navigator (0.5.10-1focal) focal; urgency=medium
* Disallow changing selected file/folder while editing permissions
* Allow opening non-text file for editing via prompt
-- Joshua Boudreau <jboudreau@45drives.com> Wed, 26 Oct 2022 14:40:50 -0300
cockpit-navigator (0.5.9-1focal) focal; urgency=medium
* Fix CSS for Cockpit 273 and greater
-- Joshua Boudreau <jboudreau@45drives.com> Fri, 05 Aug 2022 12:53:34 -0300
cockpit-navigator (0.5.8-2focal) focal; urgency=medium
* Add file and coreutils dependencies.

View File

@ -0,0 +1,13 @@
Source: {{ name }}
Section: utils
Priority: optional
Maintainer: {{ author }}
Build-Depends: debhelper-compat (= 12)
Standards-Version: 4.4.1
Homepage: {{ git_url }}
Vcs-Git: {{ git_url }}
Package: {{ name }}
Architecture: {{ architecture.ubuntu }}
Depends: {{ dependencies.ubuntu_common | join(',') }}
Description: {{ description }}

View File

@ -0,0 +1,35 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: "{{ name }}"
Upstream-Contact: "{{ author }}"
Source: "{{ git_url }}"
Files: *
Copyright: 2021 Josh Boudreau <jboudreau@45drives.com>
License: GPL-3.0+
Files: navigator/navigator.*
Copyright: 2021 Sam Silver <ssilver@45drives.com>
License: GPL-3.0+
Files: navigator/navigator.js
Copyright: 2021 Dawson Della Valle <ddellavalle@45drives.com>
License: GPL-3.0+
Files: debian/*
Copyright: 2021 Josh Boudreau <jboudreau@45drives.com>
License: GPL-3.0+
License: GPL-3.0+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with the Onboard package. If not, please have a look at
/usr/share/common-licenses or <http://www.gnu.org/licenses/>.

25
packaging/ubuntu-focal/rules Executable file
View File

@ -0,0 +1,25 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
# see FEATURE AREAS in dpkg-buildflags(1)
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export NAV_VERS := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ':')
%:
dh $@
# dh_make generated override targets
# This is example for Cmake (See https://bugs.debian.org/641051 )
#override_dh_auto_configure:
# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)

View File

@ -0,0 +1 @@
3.0 (native)

View File

@ -0,0 +1,5 @@
cockpit-navigator (0.5.10-1jammy) jammy; urgency=medium
* build for jammy
-- Brett Kelly <bkelly@45drives.com> Mon, 24 Feb 2025 14:40:50 -0300

View File

@ -0,0 +1,13 @@
Source: {{ name }}
Section: utils
Priority: optional
Maintainer: {{ author }}
Build-Depends: debhelper-compat (= 12)
Standards-Version: 4.4.1
Homepage: {{ git_url }}
Vcs-Git: {{ git_url }}
Package: {{ name }}
Architecture: {{ architecture.ubuntu }}
Depends: {{ dependencies.ubuntu_common | join(',') }}
Description: {{ description }}

View File

@ -0,0 +1,35 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: "{{ name }}"
Upstream-Contact: "{{ author }}"
Source: "{{ git_url }}"
Files: *
Copyright: 2021 Josh Boudreau <jboudreau@45drives.com>
License: GPL-3.0+
Files: navigator/navigator.*
Copyright: 2021 Sam Silver <ssilver@45drives.com>
License: GPL-3.0+
Files: navigator/navigator.js
Copyright: 2021 Dawson Della Valle <ddellavalle@45drives.com>
License: GPL-3.0+
Files: debian/*
Copyright: 2021 Josh Boudreau <jboudreau@45drives.com>
License: GPL-3.0+
License: GPL-3.0+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with the Onboard package. If not, please have a look at
/usr/share/common-licenses or <http://www.gnu.org/licenses/>.

25
packaging/ubuntu-jammy/rules Executable file
View File

@ -0,0 +1,25 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
# see FEATURE AREAS in dpkg-buildflags(1)
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export NAV_VERS := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ':')
%:
dh $@
# dh_make generated override targets
# This is example for Cmake (See https://bugs.debian.org/641051 )
#override_dh_auto_configure:
# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)

View File

@ -0,0 +1 @@
3.0 (native)