diff options
| author | Shulhan <ms@kilabit.info> | 2025-12-25 14:04:54 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2025-12-25 14:04:54 +0700 |
| commit | 4095ebbb52c605790a00a75ea8b0f64389e6c035 (patch) | |
| tree | b895c27ddef90f062ad718c95dcd104c10e329e1 | |
| parent | 359cf26dda03bba42711892db27afc812355e5b3 (diff) | |
| download | google-compute-engine-4095ebbb52c605790a00a75ea8b0f64389e6c035.tar.xz | |
all: update to release 20251014.00
Changes,
* Remove the patch for google_set_hostname since is not needed anymore.
* Set license value to use SPDX valid license name [1]
* In package, remove installing symlink for dhclient-exit-hooks.
In Arch Linux image, we use systemd for setting network.
[1] https://rfc.archlinux.page/0016-spdx-license-identifiers/
| -rw-r--r-- | .SRCINFO | 12 | ||||
| -rw-r--r-- | Makefile | 11 | ||||
| -rw-r--r-- | PKGBUILD | 63 | ||||
| -rw-r--r-- | google_set_hostname.patch | 12 |
4 files changed, 59 insertions, 39 deletions
@@ -1,19 +1,17 @@ pkgbase = google-compute-engine pkgdesc = Linux Guest Environment for Google Compute Engine - pkgver = 20220211.00 - pkgrel = 2 + pkgver = 20251014.00 + pkgrel = 1 url = https://github.com/GoogleCloudPlatform/guest-configs install = google-compute-engine.install arch = any - license = Apache + license = Apache-2.0 depends = nvme-cli depends = google-compute-engine-oslogin depends = google-guest-agent - source = google-compute-engine-20220211.00.tar.gz::https://github.com/GoogleCloudPlatform/guest-configs/archive/20220211.00.tar.gz + source = google-compute-engine-20251014.00.tar.gz::https://github.com/GoogleCloudPlatform/guest-configs/archive/20251014.00.tar.gz source = google-compute-engine.install - source = google_set_hostname.patch - sha256sums = eeb95c321a6e73a48e4cb988270b5ce210fb0654951deb153a48ad04dbc74947 + sha256sums = 0ee0e907c142cdcae4740c2efe04862d8fc4a692f7130ae5470b3746d1ac8bb6 sha256sums = 9b31cc5146d83374cc8f8da9f0ce924bbafeb932d0cf0ce60e4aec71d1f981b7 - sha256sums = f54b3bb58e1c4eb0b9d0c7d8f38244dbd1f6b9b9db8fe9880d4562c35eced704 pkgname = google-compute-engine diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5e33b7a --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +.PHONY: all +all: + makepkg --syncdeps + +.PHONY: release +release: check + makepkg --printsrcinfo > .SRCINFO + +.PHONY: check +check: + namcap PKGBUILD @@ -14,34 +14,57 @@ # Maintainer: Lorenzo Castelli <lcastelli@google.com> # Maintainer: Samuel Littley <samuellittley@google.com> +# Maintainer: M. Shulhan <ms@kilabit.info> pkgname='google-compute-engine' -pkgver=20220211.00 -pkgrel=2 +pkgver=20251014.00 +pkgrel=1 pkgdesc='Linux Guest Environment for Google Compute Engine' arch=('any') url='https://github.com/GoogleCloudPlatform/guest-configs' -license=('Apache') +license=('Apache-2.0') depends=('nvme-cli' 'google-compute-engine-oslogin' 'google-guest-agent') -source=("$pkgname-$pkgver.tar.gz::https://github.com/GoogleCloudPlatform/guest-configs/archive/$pkgver.tar.gz" - 'google-compute-engine.install' - 'google_set_hostname.patch') -sha256sums=('eeb95c321a6e73a48e4cb988270b5ce210fb0654951deb153a48ad04dbc74947' - '9b31cc5146d83374cc8f8da9f0ce924bbafeb932d0cf0ce60e4aec71d1f981b7' - 'f54b3bb58e1c4eb0b9d0c7d8f38244dbd1f6b9b9db8fe9880d4562c35eced704') +source=( + "$pkgname-$pkgver.tar.gz::https://github.com/GoogleCloudPlatform/guest-configs/archive/$pkgver.tar.gz" + 'google-compute-engine.install' +) +sha256sums=( + '0ee0e907c142cdcae4740c2efe04862d8fc4a692f7130ae5470b3746d1ac8bb6' + '9b31cc5146d83374cc8f8da9f0ce924bbafeb932d0cf0ce60e4aec71d1f981b7' +) install='google-compute-engine.install' -prepare() { - cd "$srcdir/guest-configs-$pkgver" - patch --strip=1 --input="$srcdir/google_set_hostname.patch" -} - package() { cd "$srcdir/guest-configs-$pkgver" - install -m644 -Dt "$pkgdir/etc/modprobe.d" src/etc/modprobe.d/* - install -m644 -Dt "$pkgdir/etc/sysctl.d" src/etc/sysctl.d/* - install -m644 -Dt "$pkgdir/usr/lib/udev" src/lib/udev/google_nvme_id - install -m644 -Dt "$pkgdir/usr/lib/udev/rules.d" src/lib/udev/rules.d/* - install -m755 -Dt "$pkgdir/usr/bin" src/usr/bin/* - ln -s /usr/bin/google_set_hostname "$pkgdir/etc/dhclient-exit-hooks" + + install -d $pkgdir/etc/modprobe.d/ + install -p -m=0644 src/etc/modprobe.d/gce-blacklist.conf \ + $pkgdir/etc/modprobe.d/gce-blacklist.conf + + install -d $pkgdir/etc/sysctl.d/ + install -p -m=0644 src/etc/sysctl.d/60-gce-network-security.conf \ + $pkgdir/etc/sysctl.d/60-gce-network-security.conf + + install -d $pkgdir/etc/systemd/resolved.conf.d/ + install -p -m=0644 src/etc/systemd/resolved.conf.d/gce-resolved.conf \ + $pkgdir/etc/systemd/resolved.conf.d/gce-resolved.conf + + install -d $pkgdir/usr/lib/udev/rules.d/ + install -p -m=0644 src/lib/udev/google_nvme_id \ + $pkgdir/usr/lib/udev/google_nvme_id + + install -p -m=0644 src/lib/udev/rules.d/65-gce-disk-naming.rules \ + $pkgdir/usr/lib/udev/rules.d/65-gce-disk-naming.rules + install -p -m=0644 src/lib/udev/rules.d/75-gce-network.rules \ + $pkgdir/usr/lib/udev/rules.d/75-gce-network.rules + + install -d $pkgdir/usr/bin/ + install -p -m=0755 src/usr/bin/gce-nic-naming \ + $pkgdir/usr/bin/gce-nic-naming + install -p -m=0755 src/usr/bin/google_optimize_local_ssd \ + $pkgdir/usr/bin/google_optimize_local_ssd + install -p -m=0755 src/usr/bin/google_set_hostname \ + $pkgdir/usr/bin/google_set_hostname + install -p -m=0755 src/usr/bin/google_set_multiqueue \ + $pkgdir/usr/bin/google_set_multiqueue } diff --git a/google_set_hostname.patch b/google_set_hostname.patch deleted file mode 100644 index a3200e5..0000000 --- a/google_set_hostname.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --unified --recursive --text guest-configs-20220211.00.orig/src/usr/bin/google_set_hostname guest-configs-20220211.00/src/usr/bin/google_set_hostname ---- guest-configs-20220211.00.orig/src/usr/bin/google_set_hostname 2021-01-24 16:23:33.145413281 +0000 -+++ guest-configs-20220211.00/src/usr/bin/google_set_hostname 2021-01-24 16:20:26.670408935 +0000 -@@ -43,7 +43,7 @@ - # unqualified domain name. - - if [ -n "$new_host_name" ] && ! echo "$new_host_name" | grep -iq "metadata.google.internal"; then -- hostname "${new_host_name%%.*}" -+ hostnamectl set-hostname "${new_host_name%%.*}" - - # If NetworkManager is installed set the hostname with nmcli. - # to resolve issues with NetworkManager resetting the hostname |
