Skip to content

Commit 73a761e

Browse files
committed
Add support to build upstream package
Signed-off-by: Tobias Wolf <wolf@b1-systems.de>
1 parent 823da1e commit 73a761e

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.container

Lines changed: 0 additions & 1 deletion
This file was deleted.

prepare_source

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,25 @@
1-
apt_src google-guest-agent
1+
version_orig=20250122.00
22
version_suffix=gl0
3+
4+
workdir="$(mktemp -d)"
5+
6+
mkdir -p "$workdir/github.com/GoogleCloudPlatform"
7+
git clone --depth 1 --recurse-submodules --branch "${version_orig}" https://github.com/GoogleCloudPlatform/guest-agent.git "$workdir/github.com/GoogleCloudPlatform/guest-agent"
8+
9+
pushd "$workdir/github.com/GoogleCloudPlatform/guest-agent"
10+
cp -ar ./packaging/debian $workdir
11+
rm -rf ./packaging
12+
last_change_of_guest_agent="$(git log -1 --pretty="format:%aD" ./google_guest_agent)"
13+
popd
14+
15+
tee $workdir/debian/changelog << EOF
16+
google-guest-agent (1:${version_orig}-${version_suffix}) stable; urgency=medium
17+
18+
* Detailed changelog an be found at https://github.com/GoogleCloudPlatform/guest-agent/commits/${version_orig}
19+
20+
-- $maintainer <$email> $last_change_of_guest_agent
21+
EOF
22+
23+
import_src "$workdir"
24+
25+
rm -rf "$workdir"

0 commit comments

Comments
 (0)