Package Details: gam 4.96-1

Git Clone URL: https://aur.archlinux.org/gam.git (read-only)
Package Base: gam
Description: Command-line tool for Google GSuite admins to manage settings quickly and easily
Upstream URL: https://github.com/jay0lee/GAM
Licenses: Apache
Submitter: altercation
Maintainer: ainola (jamesan)
Last Packager: ainola
Votes: 3
Popularity: 0.000000
First Submitted: 2015-08-18 14:14
Last Updated: 2019-10-23 18:00

Pinned Comments

ainola commented on 2018-08-11 18:31

Another update.... it works now, but I can't find why the oauth2.txt file isn't created in the .config/gam dir. So for now one must finish the authentication flow with the upstream package and then copy oauth2.txt into .config/gam/oauth2.txt.

Patches welcome? At this rate, I'll have it finished by 2020.

Latest Comments

1 2 Next › Last »

ekkelett commented on 2018-11-20 09:42

It seems that python2-oauth2client is a missing dependency for gam.

altercation commented on 2018-11-06 16:51

@ainola

Thanks for the pointer. It looks like it wasn't looking for XDG_CONFIG_DIRS, but rather for $XDG_CONFIG_HOME/gam. I worked around this issue for now by:

export XDG_CONFIG_HOME=/home/es/gam/domainname

and then in that directory I have the config files in a gam subdirectory, so the entire path for stored config files/secrets/service json files is:

/home/es/gam/domainname/gam

This works for now and I hope anyone else that wants to use multiple domains can use this method as a work-around. If someone else uses it, I'd recommend not leaving XDG_CONFIG_HOME set to that value as you'll get all sorts of stuff written to that directory otherwise.

ainola commented on 2018-11-06 10:46

@altercation, that's because of me, unfortunately. Since gam assumes that the user will only use the extracted package, all of the configs end up in the same directory as the sources. in order to conform to the XDG paths I wrote a patch that will use XDG_CONFIG_DIR for now.

Presently, the only way to accomplish what you want would be to not apply that patch since you seem to set the configs manually anyway. I've been meaning to try and fix upstream but I've been a tad busy lately!

altercation commented on 2018-11-05 22:32

Hi ainola, quick question: I've been using the environment variables to quickly switch between a couple different domains I manage. My script is something like this:

$ cat gamswitch

export GAMCACHE=/home/es/.cache/gam/$1

export CLIENTSECRETS=/home/es/gam/$1/client_secrets.json

export OAUTHFILE=/home/es/gam/$1/oauth2.txt

I then call it like this:

$ . gamswitch domainname

which sources it into the current BASH env nicely.

The issue I've hit is related to the CONFIG directory. gam is throwing the following error:

WARNING: [Errno 2] No such file or directory: u'/home/es/.config/gam/oauth2service.json'

Clearly I need to be either setting a generic gam config directory variable or assigning another environment variable for that json file.

Do you know if this patched version has a generic gam config directory environment variable that it uses?

ainola commented on 2018-08-11 18:31

Another update.... it works now, but I can't find why the oauth2.txt file isn't created in the .config/gam dir. So for now one must finish the authentication flow with the upstream package and then copy oauth2.txt into .config/gam/oauth2.txt.

Patches welcome? At this rate, I'll have it finished by 2020.

ainola commented on 2018-05-21 23:38

I've pushed an update that likely still doesn't work, but it's on its way to getting there...

ainola commented on 2018-05-21 22:45

@gdamjan, shame on me for not updating it.... but it's quite a pain to do! I've been following progress on cleaning up the repo but in the meantime I should have updated it in its current form if possible. Time slipped away, I guess.

Did you have an interest in updating it?

gdamjan commented on 2018-05-21 17:23

@ainola are you updateing this package?

ainola commented on 2018-01-17 19:58

jamesan, Are you still interested in maintaining this package? If you're not, I can take over.

rdoursenaud commented on 2017-09-03 12:23

Repository has moved to GitHub: https://github.com/jay0lee/GAM
Duplicate package of https://aur.archlinux.org/packages/gam/ which is also out of date.