From 4242003d83bf52dd9a1a9e8e37907a11dcb9c3f3 Mon Sep 17 00:00:00 2001 From: Norbert Lange Date: Fri, 17 Jun 2022 22:32:29 +0200 Subject: [PATCH] Convert into a native debian package --- README.md | 6 ++-- debian/README.md | 35 ---------------------- debian/changelog | 5 ++++ debian/compat | 1 + debian/control | 19 ++++++++++++ debian/copyright | 59 ++++++++++++++++++++++++++++++++++++++ debian/rules | 4 +++ debian/seer.docs | 1 + debian/seer.install | 9 ++++++ debian/source/format | 1 + src/resources/seer.desktop | 9 ++++++ 11 files changed, 112 insertions(+), 37 deletions(-) delete mode 100644 debian/README.md create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/seer.docs create mode 100755 debian/seer.install create mode 100644 debian/source/format create mode 100644 src/resources/seer.desktop diff --git a/README.md b/README.md index 98546d9..9629ea6 100644 --- a/README.md +++ b/README.md @@ -188,9 +188,11 @@ May need root access. % cd seer/src/build % sudo make install -For Debian based releases, you can optionally use the 'seer_deb.sh' script to build and install Seer. +For Debian based releases, you can use the normal tooling to build a .deb +package containing Seer. You need the `build-essential` package installed. -[Instructions for 'seer_deb.sh'](debian/README.md) + % cd seer + % dpkg-buildpackage Support/Contact diff --git a/debian/README.md b/debian/README.md deleted file mode 100644 index 72a261c..0000000 --- a/debian/README.md +++ /dev/null @@ -1,35 +0,0 @@ -Installation for Debian based Linux releases -============================================ - -The 'seer_deb.sh' script in this directory will grab the latest stable Seer release -and will compile and install it. This script works for Debian based Linux releases -(Debian, Ubuntu, etc...). - -Use this script if you don't want to run the build commands manually yourself. - -Grab this script from the Seer release on github. There's no need to grab the -entire Seer release as the script will do that. - -``` - % cd /tmp - % wget https://raw.githubusercontent.com/epasveer/seer/main/debian/seer_deb.sh - % chmod a+x seer_deb.sh -``` - -Then run the script, giving it the name and path of a build directory. This build -directory is where the Seer source is installed to and compiled. - -``` - % cd /tmp - % mkdir seer_build - % seer_deb.sh seer_build -``` - -Seer will be installed into your local system in the standard Debian location. As -well, other standard Debian package details are setup. - -Credits -======= - -Thanks to H. Turgut Uyar (https://github.com/uyar) for setting this up for me! - diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..3c888b1 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +seer (1.0.1) UNRELEASED; urgency=medium + + * Initial release. + + -- Norbert Lange Fri, 17 Jun 2022 22:18:38 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..d8972fa --- /dev/null +++ b/debian/control @@ -0,0 +1,19 @@ +Source: seer +Section: devel +Priority: optional +Maintainer: Ernie Pasveer +Build-Depends: debhelper (>= 10.0.0), + dh-exec, + cmake, + qtbase5-dev, + libqt5charts5-dev +Standards-Version: 4.1.3 +Homepage: https://github.com/epasveer/seer + +Package: seer +Architecture: any +Depends: + ${shlibs:Depends}, + ${misc:Depends}, +Recommends: gdb +Description: A GUI frontend to gdb. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..451845c --- /dev/null +++ b/debian/copyright @@ -0,0 +1,59 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: +Upstream-Name: seer +Upstream-Contact: Ernie Pasveer + +Files: + * +Copyright: + 2021+ Ernie Pasveer +License: GPL-3.0+ + +Files: + debian/* +Copyright: + 2022 Norbert Lange +License: BSD-3-clause + +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 package 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 this program. If not, see . +Comment: + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". + + +License: BSD-3-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the University nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE HOLDERS OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..683439e --- /dev/null +++ b/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ -- -D src diff --git a/debian/seer.docs b/debian/seer.docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/debian/seer.docs @@ -0,0 +1 @@ +README.md diff --git a/debian/seer.install b/debian/seer.install new file mode 100755 index 0000000..b07df15 --- /dev/null +++ b/debian/seer.install @@ -0,0 +1,9 @@ +#!/usr/bin/dh-exec +# dh-exec is needed for renaming +src/resources/seer_32x32.png => usr/share/icons/hicolor/32x32/apps/seer.png +src/resources/seer_64x64.png => usr/share/icons/hicolor/64x64/apps/seer.png +src/resources/seer_128x128.png => usr/share/icons/hicolor/128x128/apps/seer.png +src/resources/seer_256x256.png => usr/share/icons/hicolor/256x256/apps/seer.png +src/resources/seer_512x512.png => usr/share/icons/hicolor/512x512/apps/seer.png + +src/resources/seer.desktop usr/share/applications diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/src/resources/seer.desktop b/src/resources/seer.desktop new file mode 100644 index 0000000..e1a9339 --- /dev/null +++ b/src/resources/seer.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Seer +GenericName=Debugger +Comment=GUI frontend to gdb. +Exec=seer +Icon=seer +Terminal=false +Type=Application +Categories=Development;