Re: Plugins support in pkgng
On Sat, Sep 1, 2012 at 6:17 AM, Bryan Drewery br...@shatow.net wrote: On 8/31/2012 10:15 PM, Eitan Adler wrote: On 31 August 2012 09:15, Bryan Drewery br...@shatow.net wrote: No, because it already knows which you installed and which were pulled in as dependencies. There's a recent thread on ports@ regarding pkg2ng and marking your imported packages as automatic or not. There is a usecase for looking at all the leaf ports one by one and deciding if you want to keep them, recursively, regardless of the automatic flag. Even if this isn't provided by default, it would be nice for plugins to be able to do this. :) Apparently pkg_cutleaves supports pkgng now anyhow. Hi all, Support for plugins which provide new commands in pkgng has been committed. Example plugin which provides a new command can be found below and used as a template when developing a new plugin: - https://github.com/pkgng/pkgng/tree/master/plugins/pkg-plugin-mystats-command Regards, Marin Bryan -- Marin Atanasov Nikolov dnaeon AT gmail DOT com http://www.unix-heaven.org/ ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Plugins support in pkgng
On 9/1/2012 2:46 PM, Marin Atanasov Nikolov wrote: Support for plugins which provide new commands in pkgng has been committed. Very cool! -- Regards, Bryan Drewery bdrewery@freenode/EFNet ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Plugins support in pkgng
Hello, This is just to share with you that soon after the official 1.0 release of pkgng we now have basic plugins support in pkgng's development branch. I've written a small handbook which tries to shed some light about plugins in pkgng, which could be useful to you in case you want to develop a new plugin. The handbook can be found here: - http://unix-heaven.org/writing-plugins-for-pkgng It's not perfect or covering everything, but it will give you a quick start though :) At the end of the handbook you can also find some example plugins in action. Hope you find it useful. Regards, Marin -- Marin Atanasov Nikolov dnaeon AT gmail DOT com http://www.unix-heaven.org/ ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Plugins support in pkgng
Marin Atanasov Nikolov dna...@gmail.com wrote: This is just to share with you that soon after the official 1.0 release of pkgng we now have basic plugins support in pkgng's development branch. [...] It's not perfect or covering everything, but it will give you a quick start though :) How about the ability to add new commands to pkg? For example something like pkg cutleaves via plugins would be cool. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Plugins support in pkgng
On Fri, Aug 31, 2012 at 06:27:09PM +0300, Vitaly Magerya wrote: Marin Atanasov Nikolov dna...@gmail.com wrote: This is just to share with you that soon after the official 1.0 release of pkgng we now have basic plugins support in pkgng's development branch. [...] It's not perfect or covering everything, but it will give you a quick start though :) How about the ability to add new commands to pkg? For example something like pkg cutleaves via plugins would be cool. I think 'pkg autoremove' already does this. Glen pgpwxHdhAqOpU.pgp Description: PGP signature
Re: Plugins support in pkgng
On Fri, Aug 31, 2012 at 6:36 PM, Glen Barber g...@freebsd.org wrote: On Fri, Aug 31, 2012 at 06:27:09PM +0300, Vitaly Magerya wrote: Marin Atanasov Nikolov dna...@gmail.com wrote: This is just to share with you that soon after the official 1.0 release of pkgng we now have basic plugins support in pkgng's development branch. [...] It's not perfect or covering everything, but it will give you a quick start though :) How about the ability to add new commands to pkg? For example something like pkg cutleaves via plugins would be cool. I think 'pkg autoremove' already does this. Correct, 'pkg autoremove' does this already. Vitaly, yes I was thinking of this as well and have it in my todo list. It's just a matter of time to get this implemented as well :) Regards, Marin Glen -- Marin Atanasov Nikolov dnaeon AT gmail DOT com http://www.unix-heaven.org/ ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Plugins support in pkgng
Glen Barber g...@freebsd.org wrote: How about the ability to add new commands to pkg? For example something like pkg cutleaves via plugins would be cool. I think 'pkg autoremove' already does this. Does autoremove show you all the leaves and ask which ones you want removed? I honestly don't know (and can't test at the moment); I assumed it only removed the ones with auto flag on. In any case, what I actually want is a pkg_cleanup alternative (i.e. cutleaves with a dialog(1)-like interface). There are other utilities that could benefit from being a plugin too. For example suggest plugin could use hooks on the build server to construct a database of binary name-package mapping, and add pkg suggest command on the client to query that database (e.g. pkg suggest ogg123 would suggest you to install audio/vorbis-tools, which is an idea that has been floating around). ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Plugins support in pkgng
On 8/31/2012 11:03 AM, Vitaly Magerya wrote: Glen Barber g...@freebsd.org wrote: How about the ability to add new commands to pkg? For example something like pkg cutleaves via plugins would be cool. I think 'pkg autoremove' already does this. Does autoremove show you all the leaves and ask which ones you want removed? I honestly don't know (and can't test at the moment); I assumed it only removed the ones with auto flag on. In any case, what I actually want is a pkg_cleanup alternative (i.e. cutleaves with a dialog(1)-like interface). No, because it already knows which you installed and which were pulled in as dependencies. There's a recent thread on ports@ regarding pkg2ng and marking your imported packages as automatic or not. See Script to set/unset automatic status in PKGNG database There are other utilities that could benefit from being a plugin too. For example suggest plugin could use hooks on the build server to construct a database of binary name-package mapping, and add pkg suggest command on the client to query that database (e.g. pkg suggest ogg123 would suggest you to install audio/vorbis-tools, which is an idea that has been floating around). Bryan ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Plugins support in pkgng
On 31 August 2012 09:15, Bryan Drewery br...@shatow.net wrote: No, because it already knows which you installed and which were pulled in as dependencies. There's a recent thread on ports@ regarding pkg2ng and marking your imported packages as automatic or not. There is a usecase for looking at all the leaf ports one by one and deciding if you want to keep them, recursively, regardless of the automatic flag. Even if this isn't provided by default, it would be nice for plugins to be able to do this. :) -- Eitan Adler ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Plugins support in pkgng
On 8/31/2012 10:15 PM, Eitan Adler wrote: On 31 August 2012 09:15, Bryan Drewery br...@shatow.net wrote: No, because it already knows which you installed and which were pulled in as dependencies. There's a recent thread on ports@ regarding pkg2ng and marking your imported packages as automatic or not. There is a usecase for looking at all the leaf ports one by one and deciding if you want to keep them, recursively, regardless of the automatic flag. Even if this isn't provided by default, it would be nice for plugins to be able to do this. :) Apparently pkg_cutleaves supports pkgng now anyhow. Bryan ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org