Created attachment 204594 [details] Patch to correct 3 bugs in google-oslogin-control This application has three Linux'isms that cause it not to work on FreeBSD. * The sudoers file is hard-coded to /etc/sudoers.d/google-oslogin * /bin/echo -e is used * The grep command to determine if a service is not installed always errs out My fixes have been accepted by the upstream project in the development branch: https://github.com/GoogleCloudPlatform/compute-image-packages/pull/778/files https://github.com/GoogleCloudPlatform/compute-image-packages/pull/781/files Unfortunately, since the project has just made a release, I've been informed that "It might take some time for [these] changes to make it into master." The diff is against the current version in HEAD which is tag 20190416.
(In reply to jay from comment #0) Thanks for submitting those patches upstream. Fortunately, they already made a new release containing your patches [1]. I'll update the package for this latest release ASAP. [1] https://github.com/GoogleCloudPlatform/compute-image-packages/releases/tag/20190522
Created attachment 204653 [details] Patch to update to version 1.5.3 Attached is a patch to update google-compute-engine-oslogin to version 1.5.3 which contains the patch set reported in this bug.
A commit references this bug: Author: swills Date: Mon May 27 20:24:00 UTC 2019 New revision: 502827 URL: https://svnweb.freebsd.org/changeset/ports/502827 Log: sysutils/google-compute-engine-oslogin: update to 1.5.3 Fixes linux-isms PR: 238105 Submitted by: Lucas Kanashiro <lucas.kanashiro@collabora.com> (maintainer) Reported by: jay@meangrape.com Changes: head/sysutils/google-compute-engine-oslogin/Makefile head/sysutils/google-compute-engine-oslogin/distinfo
Committed, thanks!