From 38e59a9ed5b0d6497b00edf4ac01b234e0e4f723 Mon Sep 17 00:00:00 2001 From: "Michael J.M. Wagner" Date: Mon, 22 Apr 2024 20:42:57 +0000 Subject: [PATCH] golang-d12 --- debian/duview.build | 6 ++++++ debian/duview.changelog | 3 +++ debian/duview.conf | 4 ++++ debian/duview.control | 10 ++++++++++ debian/duview.cp | 6 ++++++ debian/duview.prebuild | 9 +++++++++ debian/duview.prepare | 10 ++++++++++ duview/.dummy | 0 8 files changed, 48 insertions(+) create mode 100755 debian/duview.build create mode 100644 debian/duview.changelog create mode 100644 debian/duview.conf create mode 100644 debian/duview.control create mode 100755 debian/duview.cp create mode 100755 debian/duview.prebuild create mode 100755 debian/duview.prepare create mode 100644 duview/.dummy diff --git a/debian/duview.build b/debian/duview.build new file mode 100755 index 0000000..11190d7 --- /dev/null +++ b/debian/duview.build @@ -0,0 +1,6 @@ +#!/bin/bash +set -ex + +cd snapshot +go build + diff --git a/debian/duview.changelog b/debian/duview.changelog new file mode 100644 index 0000000..6c51f9c --- /dev/null +++ b/debian/duview.changelog @@ -0,0 +1,3 @@ +duview (0.1-%BUILD%) unstable; urgency=medium + * Schillies duview (LM 2023-09) + -- Michael Wagner Mon, 22 Apr 2024 10:00:00 +0100 diff --git a/debian/duview.conf b/debian/duview.conf new file mode 100644 index 0000000..4dd470c --- /dev/null +++ b/debian/duview.conf @@ -0,0 +1,4 @@ +compile_type=ANY +target_type=DEB +#add_conf_args="-V" + diff --git a/debian/duview.control b/debian/duview.control new file mode 100644 index 0000000..c99c530 --- /dev/null +++ b/debian/duview.control @@ -0,0 +1,10 @@ +Source: duview +Section: main +Priority: optional +Maintainer: Michael Wagner +Build-Depends: git + +Package: duview +Architecture: all +Description: Schillies duview (LM 2023-09) + diff --git a/debian/duview.cp b/debian/duview.cp new file mode 100755 index 0000000..c1e4500 --- /dev/null +++ b/debian/duview.cp @@ -0,0 +1,6 @@ +#!/bin/bash +set -e + +mkdir -p $1/usr/bin +cp ~/build/snapshot/duview $1/usr/bin + diff --git a/debian/duview.prebuild b/debian/duview.prebuild new file mode 100755 index 0000000..40b9aba --- /dev/null +++ b/debian/duview.prebuild @@ -0,0 +1,9 @@ +#!/bin/bash +set -e + +unzip duview/LM_2023-09_088_48725.zip +cd snapshot +rm heap-main.go +go mod init duview +go mod tidy + diff --git a/debian/duview.prepare b/debian/duview.prepare new file mode 100755 index 0000000..d3458ce --- /dev/null +++ b/debian/duview.prepare @@ -0,0 +1,10 @@ +#!/bin/bash +set -e + + +# determine version +#version=$(grep "APP_VERSION" initialize.php |sed 's/define("APP_VERSION", "//' |sed 's/".*//') +#echo $version +#echo "export version=$version" >> ../../debian/setenv.sh +#echo "version=$version" >> ../../debian/rules.pre + diff --git a/duview/.dummy b/duview/.dummy new file mode 100644 index 0000000..e69de29 -- 2.20.1