From 446cfa176cff292c0fc2b9733383a6a63f9742c4 Mon Sep 17 00:00:00 2001 From: flu0r1ne Date: Wed, 11 Aug 2021 23:53:12 -0500 Subject: Init w/ dh-make-golang --- debian/changelog | 5 +++++ debian/control | 28 ++++++++++++++++++++++++ debian/copyright | 47 ++++++++++++++++++++++++++++++++++++++++ debian/gbp.conf | 3 +++ debian/patches/golang-1.3-compat | 23 ++++++++++++++++++++ debian/patches/series | 1 + debian/rules | 7 ++++++ debian/source/format | 1 + 8 files changed, 115 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/gbp.conf create mode 100644 debian/patches/golang-1.3-compat create mode 100644 debian/patches/series create mode 100755 debian/rules create mode 100644 debian/source/format (limited to 'debian') diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..750254d --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +planr.git (0.0.1-1) UNRELEASED; urgency=medium + + * Initial release (Closes: TODO) + + -- flu0r1ne Wed, 11 Aug 2021 23:44:29 -0500 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..50c5514 --- /dev/null +++ b/debian/control @@ -0,0 +1,28 @@ +Source: planr +Maintainer: Alex David +Uploaders: Alex David +Section: devel +Testsuite: autopkgtest-pkg-go +Priority: optional +Build-Depends: debhelper-compat (= 12), + dh-golang, + golang-any, + golang-toml-dev +Standards-Version: 4.5.0 +Vcs-Browser: https://www.git.flu0r1ne.net/deb-planr/ +Vcs-Git: https://git.flu0r1ne.net/deb-planr/ +Homepage: https://www.git.flu0r1ne.net/planr/about/ +Rules-Requires-Root: no +XS-Go-Import-Path: golang.flu0r1ne.net/planr + +Package: planr +Architecture: amd64 +Depends: ${misc:Depends}, + ${shlibs:Depends}, + cmake, + make +Built-Using: ${misc:Built-Using} +Description: An open-source, distrubed code grading tool for the classroom + PlanR aggregates various results from testing frameworks automating grading. + It aims to provide simple and modular configuration. The configuration. + language can provide context and grading information to test cases. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..5132c49 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,47 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: planr.git +Upstream-Contact: Alex David +Source: https://www.git.flu0r1ne.net/planr/about/ + +Files: * +Copyright: 2021 Alex David +License: GPL-2+ + +Files: debian/* +Copyright: 2021 Alex David +License: GPL-2.0-only +Comment: Debian packaging is licensed under the same terms as upstream + +License: GPL-2+ + 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 2 of the License, or (at your option) any later + version. + . + In addition, as a special exception, the author of this + program gives permission to link the code of its + release with the OpenSSL project's "OpenSSL" library (or + with modified versions of it that use the same license as + the "OpenSSL" library), and distribute the linked + executables. You must obey the GNU General Public + License in all respects for all of the code used other + than "OpenSSL". If you modify this file, you may extend + this exception to your version of the file, but you are + not obligated to do so. If you do not wish to do so, + delete this exception statement from your 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 this package; if not, write to the Free + Software Foundation, Inc., 51 Franklin St, Fifth Floor, + Boston, MA 02110-1301 USA + . + On Debian systems, the full text of the GNU General Public + License version 2 can be found in the file + `/usr/share/common-licenses/GPL-2'. diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..3d450c2 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,3 @@ +[DEFAULT] +debian-branch = debian/sid +dist = DEP14 diff --git a/debian/patches/golang-1.3-compat b/debian/patches/golang-1.3-compat new file mode 100644 index 0000000..b0e4f37 --- /dev/null +++ b/debian/patches/golang-1.3-compat @@ -0,0 +1,23 @@ +Index: planr.git/fs.go +=================================================================== +--- planr.git.orig/fs.go ++++ planr.git/fs.go +@@ -220,7 +220,7 @@ func collectFromDir( + + // Read the entries in this directory + for { +- dirs, err := fp.ReadDir(100) ++ dirs, err := fp.Readdir(100) + if err == io.EOF { + break + } else if err != nil { +@@ -229,8 +229,8 @@ func collectFromDir( + + + for _, ent := range dirs { +- child := path.Join(dir, ent.Name()) + nm := ent.Name() ++ child := path.Join(dir, nm) + + if ent.IsDir() { + collectFromDir(child, defaults, cfgs, units) diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..7cd5d69 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +golang-1.3-compat diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..a97e135 --- /dev/null +++ b/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh $@ --builddirectory=_build --buildsystem=golang --with=golang + +override_dh_auto_install: + dh_auto_install -- --no-source diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) -- cgit v1.2.3