Package Details: google-compute-engine 20220211.00-2

Git Clone URL: https://aur.archlinux.org/google-compute-engine.git (read-only, click to copy)
Package Base: google-compute-engine
Description: Linux Guest Environment for Google Compute Engine
Upstream URL: https://github.com/GoogleCloudPlatform/guest-configs
Licenses: Apache
Submitter: lcastelli
Maintainer: lcastelli (samuellittley)
Last Packager: lcastelli
Votes: 5
Popularity: 0.50
First Submitted: 2018-11-09 01:30 (UTC)
Last Updated: 2022-06-30 14:39 (UTC)

Latest Comments

componentscience commented on 2026-01-12 18:55 (UTC) (edited on 2026-01-12 22:41 (UTC) by componentscience)

Hello Shulhan would you be willing to take over the google-compute-engine AUR packages? Doesn't seem like they are actively maintained. I am new to AUR but would be happy to help with testing, and eventually maintaining once I get up to speed.

shulhan commented on 2025-12-25 18:53 (UTC)

Hi all, here is my patch for PKGBUILD for release 20251014.00.

The pre-build binary is available at https://build.kilabit.info/.

Changes,

  • Remove the patch for google_set_hostname since is not needed anymore.
  • Set license value to use SPDX valid license name [1]
  • Use explicit install commands instead of wildcard "*", so we can see which files being copied, and prevent unnecessary files being copied in the future.
  • In package, remove installing symlink for dhclient-exit-hooks. In Arch Linux image, we use systemd for setting network. You may need to revert this chunk when needed.

[1] https://rfc.archlinux.page/0016-spdx-license-identifiers/

diff --git a/PKGBUILD b/PKGBUILD
index e906784..cb66c5b 100644
--- a/PKGBUILD
+++ b/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
 }

yan12125 commented on 2021-01-25 03:07 (UTC)

Wow amazingly fast, thanks!

yan12125 commented on 2021-01-24 16:30 (UTC)

Hi, could you add inetutils to depends? Without that, the hostname is not set [1]

[1] https://github.com/GoogleCloudPlatform/guest-configs/blob/20200731.00/src/usr/bin/google_set_hostname#L40

bboozzoo commented on 2019-11-04 13:40 (UTC)

The PKGBUILD needs a little update:

diff --git a/PKGBUILD b/PKGBUILD
index f7828ad..861a482 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -18,7 +18,7 @@
 pkgname=('google-compute-engine' 'google-compute-engine-oslogin')
 pkgver=20190801
 pkgrel=1
-arch=('any' 'x86_64')
+arch=('x86_64')
 url='https://github.com/GoogleCloudPlatform/compute-image-packages'
 license=('Apache')
 makedepends=('curl' 'json-c' 'pam' 'python-boto' 'python-distro' 'python-setuptools')

lcastelli commented on 2019-08-19 04:33 (UTC) (edited on 2019-08-19 04:34 (UTC) by lcastelli)

Starting from version 20190801, a couple of missing soname links have been added to the package. Because of that, for updating it might be necessary to run the following command:

sudo pacman -Syu --overwrite "/usr/lib/libnss_oslogin.so.2,/usr/lib/libnss_cache_oslogin.so.2"