You are not logged in.

#1 2011-08-12 21:07:40

unixNeophyte
Member
Registered: 2008-03-09
Posts: 26

[Request] Sharelin. A Gnutella2 p2p client

Sharelin is the only G2 linux client. Can someone make a pkgbuild?

http://sourceforge.net/apps/mediawiki/s … e=Sharelin Sharelin webpage
http://sourceforge.net/projects/sharelin/files/ latest source code
http://sourceforge.net/apps/mediawiki/s … tion_guide Installation guide

Last edited by unixNeophyte (2011-08-12 21:08:03)

Offline

#2 2011-08-12 22:15:12

jackdroido
Member
From: Italy
Registered: 2011-07-26
Posts: 8

Re: [Request] Sharelin. A Gnutella2 p2p client

Hi !

To my knowledge there are some other Linux alternatives gnutella clients and they are also already packaged for Arch (either precompiled or in AUR):

I would recommend frostwire BUT from version 5.0, they dropped support for gnutella so, if you want to use it you must download an older version and install it manually.

I haven't tried gtk-gnutella nor phex, but you can give them a try.

And if all else fail, you could also try to package Sharelin yourself following the directions given in the wiki: https://wiki.archlinux.org/index.php/Creating_Packages

... is not that hard and can be also fun wink

Offline

#3 2011-08-13 03:01:29

unixNeophyte
Member
Registered: 2008-03-09
Posts: 26

Re: [Request] Sharelin. A Gnutella2 p2p client

The p2p clients you mention connects to Gnutella network, Sharelin connects to Gnutella2 (G2)

http://g2.trillinux.org/index.php?title=Main_Page
http://en.wikipedia.org/wiki/Gnutella2

Frostwire dropped gnutella because nowadays is full of fake files. On the opposite hand Gnutella2 is ok.

Last edited by unixNeophyte (2011-08-13 03:44:52)

Offline

#4 2011-08-13 06:02:15

unixNeophyte
Member
Registered: 2008-03-09
Posts: 26

Re: [Request] Sharelin. A Gnutella2 p2p client

jackdroido wrote:

And if all else fail, you could also try to package Sharelin yourself following the directions given in the wiki: https://wiki.archlinux.org/index.php/Creating_Packages

... is not that hard and can be also fun wink


Iam trying to follow the steps archlinux wiki proposed but fails from the beginning


$ cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.47.0
-- Found the following Boost libraries:
--   system
--   filesystem
--   iostreams
--   thread
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.5")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/UserName/Downloads/sharelin-0.2.4
$ make
Scanning dependencies of target sharelin
[  1%] Building CXX object sharelin/CMakeFiles/sharelin.dir/system.cpp.o
In file included from /home/Username/Downloads/sharelin-0.2.4/src/system.cpp:35:0:
/home/UserName/Downloads/sharelin-0.2.4/src/filesystem.hpp: In function ‘void FileSystem::ScanDirectory(const string&, OutIter, Predicate, FileSystem::FollowType)’:
/home/UserName/Downloads/sharelin-0.2.4/src/filesystem.hpp:86:28: σφάλμα: ‘class boost::filesystem3::directory_entry’ has no member named ‘string’
make[2]: *** [sharelin/CMakeFiles/sharelin.dir/system.cpp.o] Error 1
make[1]: *** [sharelin/CMakeFiles/sharelin.dir/all] Error 2
make: *** [all] Error 2

Offline

#5 2011-08-13 08:16:35

jomasti
Member
From: USA
Registered: 2010-08-17
Posts: 96

Re: [Request] Sharelin. A Gnutella2 p2p client

That error is because the code is based on version 2 of the boost filesystem API. The default of boost 1.47 is version 3. So, to work around that, you can just apply this simple patch before cmake:

boost-filesystem.patch (or whatever you want to call it)

--- src/sharelin-0.2.4.orig/src/filesystem.hpp  2011-08-12 23:54:27.213441244 -0700
+++ src/sharelin-0.2.4/src/filesystem.hpp       2011-08-12 23:55:09.848726306 -0700
@@ -19,6 +19,8 @@
 #ifndef FILESYSTEM_HPP
 #define FILESYSTEM_HPP
 
+#define BOOST_FILESYSTEM_VERSION 2
+
 #include <string>
 #include <boost/cstdint.hpp>
 #include <boost/filesystem.hpp>

Last edited by jomasti (2011-08-13 08:21:51)

Offline

#6 2011-08-13 12:25:27

jackdroido
Member
From: Italy
Registered: 2011-07-26
Posts: 8

Re: [Request] Sharelin. A Gnutella2 p2p client

unixNeophyte wrote:

The p2p clients you mention connects to Gnutella network, Sharelin connects to Gnutella2 (G2)

http://g2.trillinux.org/index.php?title=Main_Page
http://en.wikipedia.org/wiki/Gnutella2

Frostwire dropped gnutella because nowadays is full of fake files. On the opposite hand Gnutella2 is ok.

Sorry, you're right. I must read questions twice next times big_smile

Offline

#7 2011-08-13 17:27:49

lucak3
Member
From: Italy
Registered: 2010-01-23
Posts: 72

Re: [Request] Sharelin. A Gnutella2 p2p client

I quickly whipped up a lean PKGBUILD, available here http://pastie.org/2366728
It already includes jomasti's advice. If you're going to add it to the AUR, please add the Maintainer line as you can see in many PKGBUILDs.


The Linux philosophy is 'laugh in the face of danger'. Oops. Wrong one. 'Do it yourself'. That's it. - Linus Torvalds

Offline

#8 2011-08-13 19:13:02

unixNeophyte
Member
Registered: 2008-03-09
Posts: 26

Re: [Request] Sharelin. A Gnutella2 p2p client

Thanks very much for the pkgbuild
Sharelin works great, I really appreciate your help, and  jomasti help too.

Currently I am not going to add this to aur. I don't think that I am capable to maintain it.

Offline

#9 2011-08-13 19:49:04

lucak3
Member
From: Italy
Registered: 2010-01-23
Posts: 72

Re: [Request] Sharelin. A Gnutella2 p2p client

I don't think you would have much to do when a new version is up, just change pkgver and md5sums and you're done.
Else, consult the wiki on PKGBUILD and the man page of makepkg, those are great starting points.
Nonetheless, this community is here if you have any problem with packages.
Maintaining a package is the best way to start learning what's needed in Arch smile
P.S. If the problem is time, don't worry, this will need just some minutes for each release, especially if you have nice users for your package, notifying you for newer versions.


The Linux philosophy is 'laugh in the face of danger'. Oops. Wrong one. 'Do it yourself'. That's it. - Linus Torvalds

Offline

Board footer

Powered by FluxBB