Skip to content

Commit e001dea

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

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

.container

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

prepare_source

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

0 commit comments

Comments
 (0)