pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils/gam



Module Name:    pkgsrc
Committed By:   sborrill
Date:           Tue Aug 27 16:04:44 UTC 2024

Modified Files:
        pkgsrc/sysutils/gam: Makefile PLIST distinfo
        pkgsrc/sysutils/gam/patches: patch-src_gam___init.py
Added Files:
        pkgsrc/sysutils/gam/patches: patch-src_gam_var.py

Log Message:
gam: update to 6.58

Fix COMMENT
Allow certificates to be validated as needed for authorisation workflow

Changes since 6.25:

GAM 6.58
    workaround #1625 where Google is not handling max page size for print licenses correctly.
    other minor fixes and improvements.

GAM 6.57

    "certain Enterprise SKUs" can assign a delegated admin role to a group. gam create admin helpdesk-team%acme.com@localhost  _HELP_DESK_ADMIN_ROLE customer
    Fix Linux -legacy builds were missing.
    gam version extended now includes version information for dependency Python libraries.

GAM 6.56

    Improved support for running GAM on Google Compute Engine and other Workload Identity Federation setups.
    GAM now requires Python 3.8 or newer, 3.7 is deprecated.
    various fixes and improvements by Jay and Ross

GAM 6.53

    afce21a: Add steps to trust GAM client_ID (Jay Lee)
    27461b0: Update var.py (Jay Lee)
    bd0bb15: AppSheet licenses (Jay Lee)

GAM 6.52

    Ross: fix crash on gam create project

GAM 6.51

    Upgrade OpenSSL to 3.1.0 release and completely disable insecure TLS 1.0 / 1.1 protocols.
    When rotating service account keys you can now set key expiration time with validity_hours <number>
    Ross: Improvements to Yubikey Service Account setup and usage.
    Ross: gam version checkrc command will exit with a non-zero status if there is a newer version of GAM available.

GAM 6.50

    Run GAM securely on Google Compute Engine (GCP) VMs with no service account private key that can be stolen.

GAM 6.42

    Allow/block content managers ability to share folders on shared drives: gam user <email> update shareddrive <id> sharingFoldersRequiresOrganizerPermission true|false. Note that Google is still 
rolling this feature out and the GAM command won't actually work until rollout is complete.

GAM 6.41

    fixed #1600 unable to create new projects

GAM 6.40

    gam copy vaultexport and gam copy storagebucket commands to copy Google Vault and Organization Takeout data to your own GCS bucket.
    Ross: gam print chromeaues command to see when your Chrome OS devices will reach auto-update expiration and gam print chromeneedsattn command to see devices that require attention.
    Upgrade to latest OpenSSL 3.0.8 and Python 3.11.2
    The usual bug fixes and improvements by Ross and Jay.

GAM 6.31

    NEW: manage Inbound SSO profiles, credentials and assignments with GAM.
    NEW: set the display name of a user. Display name overrides the first/last name displayed to other users. gam create|update user <email> displayname "Dave Smith"
    The usual fixes by Ross and Jay

GAM 6.30

    Upgrade to OpenSSL 3.0.7 to fix a high risk vulnerability (low chance of impact to GAM)
    Upgrade to Python 3.11.0 which offers performance improvements
    Fix: GAM was ignoring nobrowser.txt and trying to open a browser on WSL which caused a hang. #1516
    gam info domain can now be run as a delegated admin assuming proper role.
    The usual bug fixes and improvements by Ross and Jay


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/sysutils/gam/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/sysutils/gam/PLIST
cvs rdiff -u -r1.2 -r1.3 pkgsrc/sysutils/gam/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/sysutils/gam/patches/patch-src_gam___init.py
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/gam/patches/patch-src_gam_var.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/gam/Makefile
diff -u pkgsrc/sysutils/gam/Makefile:1.5 pkgsrc/sysutils/gam/Makefile:1.6
--- pkgsrc/sysutils/gam/Makefile:1.5    Tue Nov  7 22:38:04 2023
+++ pkgsrc/sysutils/gam/Makefile        Tue Aug 27 16:04:44 2024
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.5 2023/11/07 22:38:04 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2024/08/27 16:04:44 sborrill Exp $
 
-DISTNAME=      gam-6.25
-PKGREVISION=   1
+DISTNAME=      gam-6.58
 CATEGORIES=    sysutils python
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=GAM-team/}
 GITHUB_PROJECT=        GAM
@@ -9,7 +8,7 @@ GITHUB_TAG=     v${PKGVERSION_NOREV}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      https://github.com/GAM-team/GAM
-COMMENT=       Command line tool for backing up Gmail
+COMMENT=       Command line tool for Google Workspace admins
 LICENSE=       apache-2.0
 
 DEPENDS+=      ${PYPKGPREFIX}-google-api-python-client>=2.0:../../www/py-google-api-python-client
@@ -21,13 +20,18 @@ DEPENDS+=   ${PYPKGPREFIX}-dateutil-[0-9]*
 DEPENDS+=      ${PYPKGPREFIX}-filelock-[0-9]*:../../devel/py-filelock
 DEPENDS+=      ${PYPKGPREFIX}-passlib>=1.7.2:../../security/py-passlib
 
-EGG_NAME=      GAM_for_Google_Workspace-6.25
+EGG_NAME=      GAM_for_Google_Workspace-${PKGVERSION_NOREV}
 
 NO_BUILD=      yes
 PLIST_SUBST+=  PYSITELIB=${PYSITELIB}
 REPLACE_PYTHON=        gam.py
 WRKSRC=                ${WRKDIR}/GAM-${PKGVERSION_NOREV}/src
 
+SUBST_CLASSES+=                paths
+SUBST_STAGE.paths=     pre-configure
+SUBST_FILES.paths=     gam/var.py
+SUBST_VARS.paths=      LOCALBASE
+
 INSTALLATION_DIRS=     bin ${PYSITELIB}
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27 38

Index: pkgsrc/sysutils/gam/PLIST
diff -u pkgsrc/sysutils/gam/PLIST:1.1 pkgsrc/sysutils/gam/PLIST:1.2
--- pkgsrc/sysutils/gam/PLIST:1.1       Wed Aug 31 10:10:17 2022
+++ pkgsrc/sysutils/gam/PLIST   Tue Aug 27 16:04:44 2024
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2022/08/31 10:10:17 sborrill Exp $
+@comment $NetBSD: PLIST,v 1.2 2024/08/27 16:04:44 sborrill Exp $
 bin/gam
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
@@ -21,6 +21,9 @@ ${PYSITELIB}/gam/auth/oauth.pyo
 ${PYSITELIB}/gam/auth/oauth_test.py
 ${PYSITELIB}/gam/auth/oauth_test.pyc
 ${PYSITELIB}/gam/auth/oauth_test.pyo
+${PYSITELIB}/gam/auth/signjwt.py
+${PYSITELIB}/gam/auth/signjwt.pyc
+${PYSITELIB}/gam/auth/signjwt.pyo
 ${PYSITELIB}/gam/auth/yubikey.py
 ${PYSITELIB}/gam/auth/yubikey.pyc
 ${PYSITELIB}/gam/auth/yubikey.pyo
@@ -78,6 +81,9 @@ ${PYSITELIB}/gam/gapi/cloudidentity/devi
 ${PYSITELIB}/gam/gapi/cloudidentity/groups.py
 ${PYSITELIB}/gam/gapi/cloudidentity/groups.pyc
 ${PYSITELIB}/gam/gapi/cloudidentity/groups.pyo
+${PYSITELIB}/gam/gapi/cloudidentity/inboundsso.py
+${PYSITELIB}/gam/gapi/cloudidentity/inboundsso.pyc
+${PYSITELIB}/gam/gapi/cloudidentity/inboundsso.pyo
 ${PYSITELIB}/gam/gapi/cloudidentity/orgunits.py
 ${PYSITELIB}/gam/gapi/cloudidentity/orgunits.pyc
 ${PYSITELIB}/gam/gapi/cloudidentity/orgunits.pyo

Index: pkgsrc/sysutils/gam/distinfo
diff -u pkgsrc/sysutils/gam/distinfo:1.2 pkgsrc/sysutils/gam/distinfo:1.3
--- pkgsrc/sysutils/gam/distinfo:1.2    Fri Oct 14 12:01:17 2022
+++ pkgsrc/sysutils/gam/distinfo        Tue Aug 27 16:04:44 2024
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2022/10/14 12:01:17 sborrill Exp $
+$NetBSD: distinfo,v 1.3 2024/08/27 16:04:44 sborrill Exp $
 
-BLAKE2s (gam-6.25.tar.gz) = 517324094c8b6a9c44e4eceb705a98c88b832fce559d419a0f1942a4dab625e1
-SHA512 (gam-6.25.tar.gz) = 4b0b73dfb24049c449faaaa8f4127930c94503d0338b9d484a4a477c1ec947631e394e43644092107f314947941f0888819af010da208165b0e043538b927175
-Size (gam-6.25.tar.gz) = 358870 bytes
-SHA1 (patch-src_gam___init.py) = 8d4cf936d0241334dd7128b80ce34374223fef90
+BLAKE2s (gam-6.58.tar.gz) = 2d2cf4f2ca2666efe9aab226f136272e1eb97864361eba5b32370b1174c57678
+SHA512 (gam-6.58.tar.gz) = 65f0cbab7ed181c8d01b5d9dd7238ccca59124117656ad8a76ed8263f0b864dec36b19bcff81ff656a24ec351ab250f75493173d81354f961006d118763a6119
+Size (gam-6.58.tar.gz) = 370216 bytes
+SHA1 (patch-src_gam___init.py) = 376ac13908171f4db9a52a07c211c751caa351c1
+SHA1 (patch-src_gam_var.py) = f64dc26cd4e83a56aca4caced3c0e9d7e4f73c86

Index: pkgsrc/sysutils/gam/patches/patch-src_gam___init.py
diff -u pkgsrc/sysutils/gam/patches/patch-src_gam___init.py:1.1 pkgsrc/sysutils/gam/patches/patch-src_gam___init.py:1.2
--- pkgsrc/sysutils/gam/patches/patch-src_gam___init.py:1.1     Fri Oct 14 12:01:18 2022
+++ pkgsrc/sysutils/gam/patches/patch-src_gam___init.py Tue Aug 27 16:04:44 2024
@@ -1,17 +1,17 @@
-$NetBSD: patch-src_gam___init.py,v 1.1 2022/10/14 12:01:18 sborrill Exp $
+$NetBSD: patch-src_gam___init.py,v 1.2 2024/08/27 16:04:44 sborrill Exp $
 
 Don't check for updates
 
---- gam/__init__.py.orig       2022-10-14 12:42:57.307510055 +0100
-+++ gam/__init__.py    2022-10-14 12:43:41.196030867 +0100
-@@ -583,8 +583,8 @@
+--- gam/__init__.py.orig       2024-08-27 15:01:56.000000000 +0100
++++ gam/__init__.py    2024-08-27 15:03:43.916076241 +0100
+@@ -585,8 +585,8 @@
          GC_Values[GC_CONFIG_DIR], FN_LAST_UPDATE_CHECK_TXT)
      GM_Globals[GM_ENABLEDASA_TXT] = os.path.join(
          GC_Values[GC_CONFIG_DIR], FN_ENABLEDASA_TXT)
 -    if not GC_Values[GC_NO_UPDATE_CHECK]:
--        doGAMCheckForUpdates()
+-        doGAMCheckForUpdates(forceCheck=0)
 +#    if not GC_Values[GC_NO_UPDATE_CHECK]:
-+#        doGAMCheckForUpdates()
++#        doGAMCheckForUpdates(forceCheck=0)
  
  # domain must be set and customer_id must be set and != my_customer when enable_dasa = true
      if GC_Values[GC_ENABLE_DASA]:

Added files:

Index: pkgsrc/sysutils/gam/patches/patch-src_gam_var.py
diff -u /dev/null pkgsrc/sysutils/gam/patches/patch-src_gam_var.py:1.1
--- /dev/null   Tue Aug 27 16:04:44 2024
+++ pkgsrc/sysutils/gam/patches/patch-src_gam_var.py    Tue Aug 27 16:04:44 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_gam_var.py,v 1.1 2024/08/27 16:04:44 sborrill Exp $
+
+Use roots.pem from grpc
+
+--- gam/var.py.orig    2024-08-27 16:22:42.815476055 +0100
++++ gam/var.py 2024-08-27 16:30:07.436182070 +0100
+@@ -1249,7 +1249,7 @@
+ _FN_CLIENT_SECRETS_JSON = 'client_secrets.json'
+ _FN_OAUTH2SERVICE_JSON = 'oauth2service.json'
+ _FN_OAUTH2_TXT = 'oauth2.txt'
+-_FN_ROOTS_PEM = 'roots.pem'
++_FN_ROOTS_PEM = '@LOCALBASE@/share/grpc/roots.pem'
+ #
+ GM_Globals = {
+     GM_SYSEXITRC: 0,



Home | Main Index | Thread Index | Old Index