From 6c1bfa61b76f4bad62655f8d62b8635f3b66a7f8 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Wed, 20 Apr 2022 15:36:32 +0100 Subject: [PATCH] debian: Add initial packaging --- debian/changelog | 5 +++++ debian/control | 31 ++++++++++++++++++++++++++++++ debian/copyright | 45 ++++++++++++++++++++++++++++++++++++++++++++ debian/install | 1 + debian/rules | 4 ++++ debian/source/format | 1 + debian/watch | 5 +++++ 7 files changed, 92 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/install create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..797ad312 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +deb-get (0.1.0-1) unstable; urgency=medium + + * Initial beta release. + + -- Martin Wimpress Wed, 20 Apr 2022 15:25:44 +0000 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..72c4ecaa --- /dev/null +++ b/debian/control @@ -0,0 +1,31 @@ +Source: deb-get +Section: utils +Priority: optional +Maintainer: Martin Wimpress +Build-Depends: debhelper-compat (= 12), +Standards-Version: 4.5.1 +Homepage: https://github.com/wimpysworld/deb-get +Vcs-Browser: https://github.com/wimpysworld/deb-get +Vcs-Git: https://github.com/wimpysworld/deb-get.git +Rules-Requires-Root: no + +Package: deb-get +Architecture: all +Depends: apt, + apt-transport-https, + bash (>= 4.4~), + coreutils (>= 8.25~), + curl, + dpkg, + grep, + libc-bin, + lsb-release, + sed, + software-properties-common, + sudo, + wget, + ${misc:Depends}, +Description: Script to "manage" .deb installs from 3rd party vendors/projects + apt-get functionality for .debs officially published by 3rd party vendors and + projects. + . diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..2486185b --- /dev/null +++ b/debian/copyright @@ -0,0 +1,45 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: deb-get +Upstream-Contact: Martin Wimpress +Source: https://github.com/wimpysworld/deb-get + +Files: * +Copyright: 2020-2021 Martin Wimpress +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +# If you want to use GPL v2 or later for the /debian/* files use +# the following clauses, or change it to suit. Delete these two lines +Files: debian/* +Copyright: 2022 Martin Wimpress +License: GPL-2+ + This package 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 2 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 + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". diff --git a/debian/install b/debian/install new file mode 100644 index 00000000..21121abc --- /dev/null +++ b/debian/install @@ -0,0 +1 @@ +deb-get usr/bin diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..2d33f6ac --- /dev/null +++ b/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/debian/watch b/debian/watch new file mode 100644 index 00000000..65eb3d91 --- /dev/null +++ b/debian/watch @@ -0,0 +1,5 @@ +version=4 + +opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%deb-get-$1.tar.gz%" \ + https://github.com/wimpysworld/deb-get/tags \ + (?:.*?/)?v?(\d[\d.]*)\.tar\.gz