ebuild for tribler wanted. Reproducible: Always
Useless though this is.. I second the vote :) Raphael
Created attachment 140735 [details] Tribler ebuild I made this ebuild for tribler-4.1.7 but is far for being completely functional since the python bindings problem detailed here http://bugs.gentoo.org/show_bug.cgi?id=146884 so the internal player controls will be useless but the torrent client is working; actually I'm testing the bindings from the Videolan SVN. I tested the ebuild on ~amd64 and ~x86 archs, it seems to be stable except after several installations, plz send comments. Thanks.
Created attachment 140897 [details] Tribler ebuild Added desktop entry and use the provided tribler.sh.
Now tribler is in the sunrise overlay: http://overlays.gentoo.org/proj/sunrise/browser/reviewed/net-p2p/tribler
Can anyone do the version bump to 4.5.0?
VLC is not a hard requirement for tribler. in the preferences there is an option to set vlc (or any other video player) but otherwise it doesn't require vlc to work.
Is there any progress on updating the ebuild for this in light of http://torrentfreak.com/tribler-makes-bittorrent-impossible-to-shut-down-120208/
Created attachment 301411 [details] files/tribler
Created attachment 301413 [details] tribler-9999.ebuild tribler-9999.ebuild - live ebuild because the sourceforge mirror is no longer up to date and the tribler site is reduced to a simple download page with no link to a source archive for 5.5.10 . The previously attached files/trible script is needed to launch this poorly packaged piece of software.
I just noticed this bug after adding an ebuild I wrote from scratch to the tree. I used the debian package rather than pulling from svn with some other differences. stefan et al., please look at how I did things and feel free to be critical of the different approach. The only thing I feel strongly about is not using svn.
Anthony, you're right about using the deb instead of SVN to get a stable package. The startup script bundled in the debian package creates a log file in /tmp. We should probably document or change that. If I understood correctly, the common practice for python packages is to generate the bytecode at install time with python_mod_optimize and remove it during uninstall with python_mod_cleanup. these functions are in the 'python' eclass which also provides a better way to specify python version dependencies with PYTHON_DEPEND. For the other required packages: - openssl doesn't need a version specified since the oldest one available in portage is 0.9.8r - idem for apsw (3.7.6.2.1), m2crypto (0.21.1), wxpython (2.8.11.0 but we might need the '2.8' slot there) - vlc is an optional dependency which I haven't tested. How about a use flag for it?
(In reply to comment #11) Okay rather than polute the tree, I put the updated ebuild on my overlay. When we're all happy, I'll move it to the tree: http://git.overlays.gentoo.org/gitweb/?p=dev/blueness.git;a=tree;f=net-p2p/tribler;h=956643d8dd87b7288c789702b0b5b0e89dd48404;hb=615f0e2133027f267285cd3cb8814b149dac5681 > The startup script bundled in the debian package creates a log file in /tmp. We > should probably document or change that. Thanks! Patch ${FILESDIR}/tribler-log2homedir.patch move the log file from /tmp to $HOME/.Tribler/tribler.log. I did find other logging to /tmp at Main/Build/Ubuntu/tribler.sh <- this is installed to /usr/bin/tribler Player/Build/Ubuntu/swarmplayer.sh Transport/bgprocess/bgprocessd Transport/bgprocess/swarmengined but the last three are not installed, so I didn't touch those. > > If I understood correctly, the common practice for python packages is to > generate the bytecode at install time with python_mod_optimize and remove it > during uninstall with python_mod_cleanup. these functions are in the 'python' > eclass which also provides a better way to specify python version dependencies > with PYTHON_DEPEND. > Yes and I added that. Since I was working off the .deb I didn't think of generating the .py[co], but it worked. The tribler team seems to have been working with 2.4 and 2.5. I tested python 2.6 and 2.7. With 2.7 there were a couple of syntax problems with the new use of global's, so patch ${FILESDIR}/tribler-fix-global-declarations.patch addresses that. > For the other required packages: > - openssl doesn't need a version specified since the oldest one available in > portage is 0.9.8r > - idem for apsw (3.7.6.2.1), m2crypto (0.21.1), wxpython (2.8.11.0 but we might > need the '2.8' slot there) If you know the versions (the readme gives them), its better to put them in. You're just thinking of the main portage tree, but people add all sorts of overlays. > - vlc is an optional dependency which I haven't tested. How about a use flag > for it? Done. vlc flag is in. Thanks Stefan!
Okay this is moving to the tree. I'm closing this bug (request for tribler ebuild) is done, so I'm closing it resolved. If there are other issues, please open a new bug.