the emerge-rsync script lists new and removed ebuilds after doing an emerge rsync. I hope it can be added to gentoolkit
Created attachment 2616 [details] emerge-rsync shell script
Created attachment 2617 [details] man page
Created attachment 2651 [details] a bit more robust
The first version did not work; it didn't do any reporting after running emerge rsync. I'll have to wait until a few new ebuilds have appeared in the tree before I test the newer one.
You can delete a directory, say rm -rf /usr/portage/app-text/acroread, and then start the script emerge-rsync. I guarantee you that it works. I use it for every rsync and it regulary informs me when new packages arrive. There are some issues when new directories appear in "profiles" since it cannot find the description. The last attachment fixes the output and displays a warning message. I will implement a more complete filtering in the next release, but for now I prefer to keep it simple.
Found a bug: x11-themes/gtk-engines-cleanice: Cleanice theme engine for GTK+ ./emerge-rsync: inherit: command not found Apparently, emerge-rsync does not support eclasses. We need to have that fixed before we include it.
what ares the commands that have to be escaped ? I found: inherit need-kde Are there other? I imagine future eclasses will add more functions. I could fix that redefining "inherit" and "need-kde" to empty functions, but I think a more general parsing of ebuild will be needed in the future.
I think those are it for now. Also, I've been looking around the gentoolkit dir, and found emerge-webrsync. Can we merge those two into one tool ? That is, add the possibility of syncing over web to your emerge-rsync tool ?
Still alive on this one ? Any chance you could have a peek at emerge-webrsync and combine it with your rsync script ? I really think emerge-webrsync would benefit from it. If you're still around on this one, please reopen the bug with questions/comments/requests.
I'm still here :-) I think that the two scrips do quite different things and I'd like to keep them separate. However I propose a "cooperation". I've modified my "emerge-rsync" so that it can use "emerge-webrsync" as 'backend', instead of "emerge rsync". For now I have put the configuration at the beginning of the script, but of course this should go in /etc/conf.d/emerge-rsync
Created attachment 5354 [details] frontend for webrsync
I've added this to gentoolkit's CVS repository. It'll show up in the next release of Gentoolkit, probably later this month. Thanks for you contribution. Even though it's not yet in Portage, I'm closing it, because it's on its way.