pkg plugins

Hello ppl,
I'm quite new to freebsd. I was wondering if there is any documentation for pkg-plugins. I was also looking at the pkg.h with the different hooks it offers. But it doesnt include a Hook for PRE_UPDATE. Basically I want to refresh my token and use this to access a private bucket so that I can do pkg install my-package. Any help is appreciated
Thank you!
 
You could just use SSH with pubkey authentication. pkg can directly use SSH for transport, just use url: "ssh://[...]" in your repository config.
this wont work for me. the http object store only accepts Oauth based access
 
I don't think you're supposed to access an object store directly via pkg? What problem exactly are you trying to solve here?
 
I don't think you're supposed to access an object store directly via pkg? What problem exactly are you trying to solve here?
Not having to learn the beauty of FreeBSDs simplicity would be my guess. *scnr*

freemybsd why don't you tell whatever is putting your pkg file into said bucket to put it somewhere that is actually easily accessible via less esoteric standards?

Or you could mount your 'bucket' into your host.
I'm sure someone hacked a fuse module together with python for that.
 
to put it in more technical terms: pretty much everything involved in how 'pkg' (or almost every software) works, expects a normal filesystem hierarchy.
It *might* be possible to use some intermediate-layer that abstracts that object storage away, so a webserver can serve the file structure pkg expects; but TBH, why jump all those hoops when you can just use a proper 'normal' storage backend which can also be directly populated by poudriere?
 
hmm maybe less cynicism and more understanding would help. I'm quite new to freebsd and thanks for a great experience on this platform. If you cant trust me on my problem, then you neednt reply and save your energy for elsewhere. I have requested bapt, he has understood my issue. Thanks for your time.
 
Back
Top