<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://test.amule.szerverem.hu/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://test.amule.szerverem.hu/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Libre</id>
		<title>AMule Project FAQ - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://test.amule.szerverem.hu/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Libre"/>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/Special:Contributions/Libre"/>
		<updated>2026-04-05T08:59:45Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.3</generator>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/AMule_problems</id>
		<title>AMule problems</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/AMule_problems"/>
				<updated>2012-05-22T16:35:16Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /*aMule's Preview hang MPlayer? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[AMule_problems-de|Deutsch]] | &lt;br /&gt;
[[AMule_problems-es|Espa&amp;amp;ntilde;ol]] | &lt;br /&gt;
[[AMule_problems-hu|Magyar]] | &lt;br /&gt;
[[AMule_problems-it|Italiano ]] | &lt;br /&gt;
[[AMule_problems-nl|Nederlands]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Where are my downloaded files? ==&lt;br /&gt;
By default, aMule stores completed files in ''~/.aMule/Incoming'' but, since ''~/.aMule'' directory is a hidden directory, your file manager might not show it. Make sure you have enabled your file manager to show hidden files.&lt;br /&gt;
&lt;br /&gt;
By default, files being downloaded are placed in ''~/.aMule/Temp'', so again, this is a hidden directory and the file managed must be configured to show hidden files.&lt;br /&gt;
&lt;br /&gt;
On a Macintosh downloads are in ''~/Library/Application Support/aMule/Incoming'' and Windows users can find downloads in the folder ''aMule downloads'' in their user folder.&lt;br /&gt;
&lt;br /&gt;
== Why is aMule taking so much CPU resources at start-up? ==&lt;br /&gt;
This happens because aMule is hashing new files found on the Shared Directories.&lt;br /&gt;
&lt;br /&gt;
If aMule is always taking a lot of CPU at startup and no new files have been added or modified in any way in the Shared Directories, then something is wrong.&lt;br /&gt;
&lt;br /&gt;
In aMule versions earlier than 2.0.0-rc3 this used to happen when having the Temp, Incoming or any Shared Directory in a FAT32 partition. Since aMule 2.0.0-rc3 this is not happening any more.&lt;br /&gt;
&lt;br /&gt;
Also, in aMule versions earlier than 2.0.0-rc4 filesystems with UTF-8 encoding (known to happen with SuSE 9.1) could present problems when some file or directory in the Shared Directories path contained a special character. If this is your problem, there's a workaround (thanks '''nachbarnebenan'''): after aMule has hashed all shared files (that is, when it stops taking a lot of your CPU's resources), close aMule and enconde ~/.aMule/known.met into UTF-8 encoding (you can do this with the application ''[http://www.gnu.org/directory/recode.html recode]'' by running the following command: ''recode u8 ~/.aMule/known.met''). This should be done whenever a files is added or modified in any Shared Directory. So, best option is to upgrade to latest aMule version.&lt;br /&gt;
&lt;br /&gt;
If non of the above helps you, then something went really wrong on ''known.met'' file, probably some external program or user broke it. Best option is to delete it, start aMule and let aMule rehash all files again.&lt;br /&gt;
&lt;br /&gt;
== So now aMule starts, but why is it displaying this message: &amp;quot;No valid servers to connect in serverlist found&amp;quot;? ==&lt;br /&gt;
That's because you enabled the option &amp;quot;Auto connect to servers the static list only&amp;quot;. So, disable it or add some server to the static list.&lt;br /&gt;
&lt;br /&gt;
To disable that option, go to Preferences -&amp;gt; Servers -&amp;gt; &amp;quot;Auto connect to servers the static list only&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To add a server to the static list, go to the Servers window and right-click on the server you want to add to the static list. Then select &amp;quot;Add to static&amp;quot; and do this exact process wit all the servers you want to add to the static list.&lt;br /&gt;
&lt;br /&gt;
== Why does it happen that sometimes aMule suddenly has no/few servers in is server list? ==&lt;br /&gt;
You probably have enabled the options Preferences -&amp;gt; Servers -&amp;gt; &amp;quot;Remove dead server after X retries&amp;quot; and Preferences -&amp;gt; Connection -&amp;gt; &amp;quot;Reconnect on loss&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If so, most probably you lost internet (or lan, etc) connection for a period of time so aMule noticed it was not connected to the ed2k server anymore and went trying to connect to other servers until all servers were removed (after trying X times each).&lt;br /&gt;
&lt;br /&gt;
To solve this problem, disable the &amp;quot;Remove dead server after X retries&amp;quot; option. Disabling the option &amp;quot;Remove dead server after X retries&amp;quot; is safe in most cases. You most probably don't want to disable the &amp;quot;Reconnect on loss&amp;quot; option, so keep it enabled.&lt;br /&gt;
&lt;br /&gt;
== aMule connects to server, but it is always given Low-ID. Why? and, can I do something about it? ==&lt;br /&gt;
This can bue due to three reasons:&lt;br /&gt;
*Some necessary port is not opened in your firewall. Read [[FAQ_eD2k-Kademlia#What_is_LowID_and_HighID?|this]] to get to know what to do and check [http://www.amule.org/testport.php here] if the ports are open.&lt;br /&gt;
*The server is very busy or maybe badly configured, so it's giving you a [[Low ID|Low-ID]]. There's nothing that can be done in this case other than reconnect or connect to some other server.&lt;br /&gt;
*Some ISP forbid the use of p2p applications, such as aMule, by not allowing traffic through popular p2p ports. In these cases, configure aMule to use some other port. It would be even better if it was some popular port used for some other issue. It's been known that on some ISPs it worked with port TCP 25600.&lt;br /&gt;
&lt;br /&gt;
== [[aMule]] was interrupted while completing a file and it is now never completing it (although it's 100% downloaded). How can I complete it? ==&lt;br /&gt;
This one is easy: Close [[aMule]]. Now go into the Temp directory (by default, ''~/.aMule/Temp'') and run the following command:&lt;br /&gt;
&lt;br /&gt;
''touch ./*''&lt;br /&gt;
&lt;br /&gt;
Finally, run [[aMule]] and let it complete the files.&lt;br /&gt;
&lt;br /&gt;
== I just lost a download. Is there any way I can recover it? ==&lt;br /&gt;
This is strange to happen, but it might, although in most cases it is the result of some non-aMule-related stuff going weird (or user's fault).&amp;lt;br&amp;gt;&lt;br /&gt;
Two things may have happened. Either *.part.met files were deleted, or *.part files were deleted.&lt;br /&gt;
&lt;br /&gt;
If *.part files have disappeared, the only solution is to restart the downloads from the beginning (if *.part.met files are still there, aMule will restart the downloads on next start). However this should '''never''' happen unless the user directly deleted them.&lt;br /&gt;
&lt;br /&gt;
If *.part.met files have disappeared but *.part files are still in the Temp directory, then search if *.part.met.bak are also in the Temp directory. If they are, then just rename ''*.part.met.bak'' files to ''*.part.met'' just by running:&lt;br /&gt;
&lt;br /&gt;
''for file in *.part.met.bak; do mv -f &amp;quot;$file&amp;quot; &amp;quot;${file%.bak}; done''&lt;br /&gt;
&lt;br /&gt;
Still, it could happen that, although you have the *.part files, neither *.part.met nor *.part.met.bak files exist any longer. In this case, you would have two ways ways to work out of this:&lt;br /&gt;
&lt;br /&gt;
Either, use [http://www.bigwillystyle42.com/mfr/ MetFileRegenerator] (Java needed) to reconstruct the *.part.met files.&lt;br /&gt;
&lt;br /&gt;
Or, search again on aMule for the files you were downloading and rename their part number in the *.part.met files to the ones it used to have. For example, if you were downloading ''aMule_1.2.6.tar.gz'' and that was being downloaded in Temp directory as ''008.part'', then that file used to have it's corresponding ''008.part.met'' file and, probably, it's ''008.part.met.bak'' file. But this two latter files have mysteriously disappeared. Then search again on aMule for ''aMule_1.2.6.tar.gz'' and start downloading it. Close aMule and you'll have this new download as, for example, ''011.part'' file in the Temp directory. Of course, this download will have it's ''011.part.met'' file. Well, rename ''011.part.met'' to ''008.part.met'' and then delete ''011.part'' (and ''011.part.met.bak'' if it existed). Now start aMule and you will have recovered the download from the point it was before the *.part.met files disapeared.&lt;br /&gt;
&lt;br /&gt;
== Why does aMule suddenly become unresponsive to the mouse although it's not hanged? ==&lt;br /&gt;
It sometimes happens that you left a dialog window somewhere hidden in the desktop. aMule is waiting for that window to be closed, so it becomes unresponsive until you click OK, Cancel, or whatever you have to click.&lt;br /&gt;
&lt;br /&gt;
So, make sure there's no aMule dialog left around in '''any workspace'''.&lt;br /&gt;
&lt;br /&gt;
== Why are some files in my shared folders not shown in the Shared Folders window? ==&lt;br /&gt;
This could happen if you added this files after aMule has been started. Press the &amp;quot;Reload&amp;quot; button on Shared Folders window and it should find the new files and hash them (this may take some CPU time).&lt;br /&gt;
&lt;br /&gt;
However, on some releases it has happened that after restarting aMule, some files dissapear from the Shared Folders window although they are in the shared folders. In such cases, the only way to have them back is to delete ''~/.aMule/known.met'' but, of course, on next aMule start, all shared files will have to be rehashed, and that will take some time most probably.&lt;br /&gt;
&lt;br /&gt;
== I always get a message about addresses.met when I start aMule. What's wrong? ==&lt;br /&gt;
This happens when you enable the option Preferences -&amp;gt; Servers -&amp;gt; &amp;quot;Auto-update serverlist at startup&amp;quot; and you have no serverlists' urls in ''addresses.dat''. You can either add some to ''addresses.dat'' by adding them at Preferences -&amp;gt; Servers -&amp;gt; List or just disable Preferences -&amp;gt; Servers -&amp;gt; &amp;quot;Auto-update serverlist at startup&amp;quot; if you don't really need it.&lt;br /&gt;
&lt;br /&gt;
== I sometimes get a message on the log about credits being lost. Should I be worried? ==&lt;br /&gt;
No, you don't need to be worried. Credits for a client are deleted after 150 days (more or less 5 months) without &amp;quot;seeing&amp;quot; that client. Also, bad clients might lose their credits too. So those messages are just for debug information, you shouldn't worry about them.&lt;br /&gt;
&lt;br /&gt;
== What should I do if I lose my ''cryptkey.dat'' file? ==&lt;br /&gt;
Losing this files means you lose all of your credits. Sorry. Since you'll need to start building credits up again, you'll need to delete ''~/.aMule/preferences.dat'' or you'll not be able to collect credits on [[client|clients]] who have previously identified you (prior to losing cryptkey.dat).&lt;br /&gt;
&lt;br /&gt;
== Why is Upload/Download limit always back to 0 after every restart? ==&lt;br /&gt;
This happened on aMule versions previous to 2.0.0-rc4 when you trying to set a Upload or Download limit value higher than the Upload or Download Capacity value. However, since version 2.0.0-rc4 this is fixed (read [[FAQ_aMule#What_is_the_real_point_on_setting_up_Line_Capacities_in_Preferences?_Shouldn't_aMule_only_care_for_the_Bandwidth_Limits?|What is the real point on setting up Line Capacities&lt;br /&gt;
in Preferences? Shouldn't aMule only care for the Bandwidth Limits?]] to understand why) and shouldn't happen anymore.&lt;br /&gt;
&lt;br /&gt;
== Why is aMule ignoring the bandwidth I set per slot? ==&lt;br /&gt;
The bandwidth set to each slot can be set in Preferences, but it will be ignored if the bandwidth set per slot doesn't allow at least three connections at the same time.&lt;br /&gt;
&lt;br /&gt;
So, the maximum speed allowed per slot is '''BandwidthLimit/3'''.&lt;br /&gt;
&lt;br /&gt;
Please do '''NOT''' confuse '''Bandwidth limit''' with '''Bandwidth Capacity'''. Read [[FAQ_aMule#What is the real point on setting up Line Capacities in Preferences? Shouldn't aMule only care for the Bandwidth Limits?|What is the real point on setting up Line Capacities in Preferences? Shouldn't aMule only care for the Bandwidth Limits?]] since the meaning of the Bandwidth Capacity setting is not intuitive.&lt;br /&gt;
&lt;br /&gt;
Also, if [[aMule]] detects that, after having set all the slots for uploading, still some bandwidth is left before getting to the Bandwidth Limit, it will allow another slot and divide all the slot bandwidths to so use the same amount of bandwidth.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
*Bandwidth Limit: 7 KBps&lt;br /&gt;
*Slot allocation: 2 KBps&lt;br /&gt;
&lt;br /&gt;
When [[aMule]] sets the slots to some clients to upload to them, after giving out three slots, it will notice that there are no more 2KBps left, since the limit is 7 KBps, but there is still 1 KBps left in the bandwidth before reaching the Bandwidth Limit. So, it will allow another slot to upload to a client and, instead of giving that last slot a 1 KBps bandwidth connection (and leave the rest with a 2 KBps bandwidth connection), it will give all four slots a 1.8 KBps bandwidth connection.&lt;br /&gt;
&lt;br /&gt;
== Why can't I set aMule's download limit to more than X? ==&lt;br /&gt;
To keep the ED2K network alive, all ED2K clients have an upload/download limits ratio hardcoded which, depending on the upload limit set, is:&lt;br /&gt;
*&amp;lt;u&amp;gt;From 0KBps to 3KBps:&amp;lt;/u&amp;gt;&lt;br /&gt;
*DownloadLimit can't be more than UploadLimit*3&lt;br /&gt;
*&amp;lt;u&amp;gt;From 4KBps to 9KBps:&amp;lt;/u&amp;gt;&lt;br /&gt;
*DownloadLimit can't be more than UploadLimit*4&lt;br /&gt;
*&amp;lt;u&amp;gt;UploadLimit values over 9KBps:&amp;lt;/u&amp;gt;&lt;br /&gt;
*There's &amp;lt;b&amp;gt;no&amp;lt;/b&amp;gt; DownloadLimit limitation.&lt;br /&gt;
&lt;br /&gt;
Be careful when setting 0KBps as Upload Limit. It might not mean what you think it is. Read [[AMule_problems#I_set_Upload_Limit_to_0KBps,_but_aMule_is_still_transferring._What_did_I_do_wrong?|I set Upload Limit to 0KBps, but aMule is still transferring. What did I do wrong?]] to make sure you understand it's meaning.&lt;br /&gt;
&lt;br /&gt;
== I set Upload Limit to 0KBps, but aMule is still transferring. What did I do wrong? ==&lt;br /&gt;
Setting Upload limit to 0KBps will not stop transfers, instead, ''0'' value means '''unlimited''', so, it's right the opposite of you're trying to do. There's no way to stop aMule from uploading files, and that's the same on all ED2K clients (eMule, eDonkey, etc). Allowing people not to upload would bring the ED2K network to its end.&lt;br /&gt;
&lt;br /&gt;
Even if you don't share any directory, the Temp directory will '''always''' be shared, so that files that you are downloading are shared with other clients.&lt;br /&gt;
&lt;br /&gt;
== Why am I getting &amp;quot;Too many connections&amp;quot; messages on the terminal? ==&lt;br /&gt;
This happens when you set a very high value at Preferences -&amp;gt; Connections -&amp;gt; &amp;quot;Connection limits&amp;quot; -&amp;gt; &amp;quot;Max connections&amp;quot;. If this value is as almost as big as the the amount of connections your system allows you to have, then aMule will fail to establish connections and display those messages (have in mind that other applications may also have some connections established).&lt;br /&gt;
&lt;br /&gt;
On Windows 9x/ME platforms there is a limit of 100 TCP connections so, although you might set aMule to establish more than 100 connections, it will be unable to do so. You can change Windows's TCP connections limit by editing the Windows Register ('''Start -&amp;gt; Run -&amp;gt; regedit.exe''') and setting (you'll most surely have to add the value since in most cases it doesn't exist):&lt;br /&gt;
&lt;br /&gt;
''HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\MSTCP\MaxConnections'' (which is a String type and it's value must be a 32-bit number).&lt;br /&gt;
&lt;br /&gt;
== My progress bars have lost most of their 3D effect and look more ugly now. Can I turn its look back? ==&lt;br /&gt;
In most aMule versions setting the progress bar style to the most right on Preferences -&amp;gt; &amp;quot;GUI tweaks&amp;quot; is the way to have the progress bar have the best 3D effect. But in versions 2.0.0-rc4 to 2.0.0-rc6 the best 3D effect is given when the style bar is set to the middle. Setting it to the most right would give the progress bar a flat look while setting it to the most left will give it a dark look.&lt;br /&gt;
&lt;br /&gt;
== All my downloads suddenly paused and I can't resume them. What's going on? ==&lt;br /&gt;
Check if there's any free space in the filesystem where the Temp directory is placed. If there is any at all, check if there's more free space than the minimum free space set at Preferences -&amp;gt; Files -&amp;gt; &amp;quot;Min disk space&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The minimum free space required for [[aMule]] is 9.28MB, since that's what [[aMule]] needs to be able to download a [[FAQ_eD2k-Kademlia#What_is_a_chunk?|part]] of a file.&lt;br /&gt;
&lt;br /&gt;
== Why can't I preview a file? ==&lt;br /&gt;
First of all you must know that [[aMule]] only allows to preview video files.&lt;br /&gt;
&lt;br /&gt;
To be able to preview a file [[aMule]] requires two things:&lt;br /&gt;
*The file must have a known video extension in its filename&lt;br /&gt;
*You must have downloaded the first 256KBs of the file&lt;br /&gt;
&lt;br /&gt;
Anyway, sometimes it happens that the file is previewable though [[aMule]] doesn't allow you. In that case, go to the Temp directory and preview them manually, if you can and wish.&lt;br /&gt;
&lt;br /&gt;
== Why isn't [[aMule]]'s Preview working at all with MPlayer? ==&lt;br /&gt;
Since aMule 2.0.0-rc4 Preview command isn't being run in the same terminal as aMule. As a result, your Preview program may fail to start. This is the case of MPlayer. If you need a terminal to run your Preview player, use some command like ''xterm -e &amp;lt;preview-app&amp;gt;'' i.e.:&lt;br /&gt;
&lt;br /&gt;
''xterm -T &amp;quot;aMule preview&amp;quot; -iconic -e mplayer -idx''&lt;br /&gt;
&lt;br /&gt;
Sometime, mplayer will hang with incomplete avi files. The best way I know to avoid it is with ''[http://wiki.multimedia.cx/index.php?title=MPlayer_FAQ -demuxer lavf]'' i.e.:&lt;br /&gt;
&lt;br /&gt;
''xterm -T &amp;quot;aMule preview&amp;quot; -iconic -e mplayer -demuxer lavf  &amp;quot;%PARTFILE&amp;quot;''&lt;br /&gt;
&lt;br /&gt;
== After exitting MPlayer on Preview, my aMule keeps locked? ==&lt;br /&gt;
Preview used to lock aMule on purpose until aMule reached version 2.0.0-rc4. As a result of this, people using MPlayer suffered from a bug on MPlayer which remains the main process in background when closing the main MPlayer window. The way to walk around this MPlayer bug on aMule versions previous to 2.0.0-rc4 is to exit MPlayer by pressing the '''Q''' key. Any way, it'd be better if you could possibly upgrade aMule to the latest versions.&lt;br /&gt;
&lt;br /&gt;
== Why is ''Transfered'' a smaller number than ''Completed''? ==&lt;br /&gt;
It's a common mistake to think it should be bigger or, at least, equal.&lt;br /&gt;
&lt;br /&gt;
Please read [[FAQ_aMule#What_is_the_difference_between_Transfered_and_Completed_in_the_Transfers_window?|What is the difference between Transfered and Completed in the Transfers window?]] to know more about this.&lt;br /&gt;
&lt;br /&gt;
== aMule always slows down my computer when it completes a download. Is this a normal behaviour? ==&lt;br /&gt;
Yes it is. When aMule completes a download it checks it has not been corrupted. although this is already checked while downloading (by checking the chunk's hash values), once the file is completely downloaded aMule hashes all the chunks to check that the chunks which were previously downloaded weren't somehow corrupted by the user or an external application while the rest of the file was being downloaded.&lt;br /&gt;
&lt;br /&gt;
== Is there any way to recursively select a whole directory and its contents? ==&lt;br /&gt;
Yes, there is. And it's simple:&lt;br /&gt;
*On [[aMule]] 2.0.0-rc4 or later, right-click on the icon of the directory you want to recursively select.&lt;br /&gt;
*On [[aMule]] 1.x and up to 2.0.0-rc3 (included), while clicking on the directory, hold the CTRL key.&lt;br /&gt;
&lt;br /&gt;
And that's it.&lt;br /&gt;
&lt;br /&gt;
== I downloaded a file and it got corrupted somehow by my hard disk or some external application once completed. Can I avoid redownloading the whole of it? ==&lt;br /&gt;
If you still have the [[ed2k_link|ed2k:// link]], start the download again and when a whole chunk (9.28MB) has been downloaded (any chunk), close [[aMule]], rename the corrupted file to the filename the current download has (something like ''002.part''), touch the corrupted file (i.e.: ''touch ~/.aMule/Temp/002.part*'') and restart [[aMule]].&lt;br /&gt;
&lt;br /&gt;
[[aMule]] will detect the completed chunks and the corrupted ones, and will only download the chunks which got corrupted.&lt;br /&gt;
&lt;br /&gt;
== What should I be aware of when using NFS mounts with [[aMule]]? ==&lt;br /&gt;
When using NFS mounts with [[aMule]], make sure you unmount those NFS mounts (the ones from the computer being shut down) from the computer running [[aMule]] because, otherwise, [[aMule]] will simply hang until those mounts are back up again. How to notice this? If you leave [[aMule]] running at night, and on the next day you go to the stats and see straight lines for [[Download]]/[[Upload]]/[[Connect]]ions stats (non-zero) and after mounting those NFS mounts, those straight lines drop to zero resuming normal behaviour, that is a sign. Plus, after unmouting the NFS mounts from any computer being shut down, '''reload''' [[aMule]]'s shared files.&lt;br /&gt;
&lt;br /&gt;
''I noticed all this from my frustrating experience of countless days with no downloads at night ;) ... --[[User:PedroAlgarvio|PedroAlgarvio]] 00:25, 15 Jun 2005 (CEST)''&lt;br /&gt;
&lt;br /&gt;
== Downloaded files don't get the permissions I set in Preferences. Why? ==&lt;br /&gt;
aMule must follow the permissions it is allowed to set by ''umask''. ''umask'' sets the permissions which applications should '''not''' be allowed to assign files.&lt;br /&gt;
&lt;br /&gt;
Therefore, if you set, for example, file permissions to ''664'' in aMule's Preferences, and umask's value (check it by running ''umask'') is ''022'', aMule will create files with permissions ''644'' (that is, ''664'' - ''022'' = ''644'').&lt;br /&gt;
&lt;br /&gt;
== aMule fails to create files/shows file descriptor errors. What's going on? ==&lt;br /&gt;
This should never happen. If it happens chances are you have the resources limits very low, so aMule is denied to create/open new files. Run ''ulimit -a'' to check your resources limits. Read ''man ulimit'' to learn how to set the limits as you want them, and remember that this has to be set on every system restart (probably your distribution provides a configuration file which sets this automatically).&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2012-05-09T15:58:09Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* The SVN ebuild - updated the ChangeLog */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 01.08.2009 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. As such, [[aMule]] comes in a variety of versions. This article will cover the installation of the last PORTAGE version, and of [[aMule SVN]] through a personal overlay.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
1. Show what will be done:&lt;br /&gt;
  emerge -pv amule&lt;br /&gt;
2. Adjust your USE flags for amule into ''/etc/portage/package.use&lt;br /&gt;
&lt;br /&gt;
3. Emerge amule:&lt;br /&gt;
  emerge -a amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay Overlay: Creating_a_local_overlay]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;. As aMule is using the revision to name the tarball, we will use it for the '''version_date_of_the_tarball'''.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-9732.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 31 July 2009 revision 9732 that was working fine for me, but you can change the revision like you want.  Be careful to choose a version number available on the [http://amule.sourceforge.net/tarballs/ tarballs page], otherwise your ebuild will fail.&lt;br /&gt;
&lt;br /&gt;
==== The SVN ebuild ====&lt;br /&gt;
ChangeLog:&lt;br /&gt;
* 01-08-2009 Initial SVN ebuild&lt;br /&gt;
* 04-08-2009 Updated DEPEND + RDEPEND&lt;br /&gt;
* 27-08-2009 Updated for the 2_2_X trunk&lt;br /&gt;
* 12-04-2011 USE flag change&lt;br /&gt;
* 16-04-2011 Updated to EAPI=&amp;quot;3&lt;br /&gt;
* 14-10-2011 Workaround debian specific test with USE=plasma&lt;br /&gt;
* 04-05-2012 Plasma need kde4-base that need EAPI=&amp;quot;3&amp;quot; (Change in portage?). Fix it. &lt;br /&gt;
For more details, see the [http://forum.amule.org/index.php?topic=17143.0 forum thread].&lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2011 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 EAPI=&amp;quot;3&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic kde4-base wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_P=&amp;quot;aMule-SVN-r${PV}&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}&amp;quot;/${MY_P}&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://amule.sourceforge.net/tarballs/${MY_P}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;daemon debug ed2k fileview geoip gtk mmap nls plasma remote static stats unicode upnp xchat&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8.12*&lt;br /&gt;
 	&amp;gt;=dev-libs/crypto++-5.5.2&lt;br /&gt;
 	&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 	stats? ( &amp;gt;=media-libs/gd-2.0.26[jpeg] )&lt;br /&gt;
 	geoip? ( dev-libs/geoip )&lt;br /&gt;
 	plasma? ( kde-base/kdelibs )&lt;br /&gt;
 	upnp? ( &amp;gt;=net-libs/libupnp-1.6.6 )&lt;br /&gt;
 	remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 	unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RDEPEND=&amp;quot;$DEPEND&lt;br /&gt;
 	xchat? ( net-irc/xchat[perl] )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 	if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use daemon; then&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;You have to specify at least one of gtk, remote or daemon&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 		einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use daemon || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_configure() {&lt;br /&gt;
 	local myconf&lt;br /&gt;
 &lt;br /&gt;
 	WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk; then&lt;br /&gt;
 		einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets unicode&lt;br /&gt;
 	else&lt;br /&gt;
 		einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets base&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk ; then&lt;br /&gt;
 		use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-wxcas&lt;br /&gt;
 			--enable-alc&amp;quot;&lt;br /&gt;
 		use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-amule-gui&amp;quot;&lt;br /&gt;
 	else&lt;br /&gt;
 		myconf=&amp;quot;&lt;br /&gt;
 			--disable-monolithic&lt;br /&gt;
 			--disable-amule-gui&lt;br /&gt;
 			--disable-wxcas&lt;br /&gt;
 			--disable-alc&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	econf \&lt;br /&gt;
 		--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 		--enable-amulecmd \&lt;br /&gt;
 		$(use_enable debug) \&lt;br /&gt;
 		$(use_enable !debug optimize) \&lt;br /&gt;
 		$(use_enable daemon amule-daemon) \&lt;br /&gt;
 		$(use_enable ed2k) \&lt;br /&gt;
 		$(use_enable fileview) \&lt;br /&gt;
 		$(use_enable geoip) \&lt;br /&gt;
 		$(use_enable mmap) \&lt;br /&gt;
 		$(use_enable nls) \&lt;br /&gt;
 		$(use_enable plasma plasmamule ) \&lt;br /&gt;
 		$(use_enable remote webserver) \&lt;br /&gt;
 		$(use_enable static) \&lt;br /&gt;
 		$(use_enable stats cas) \&lt;br /&gt;
 		$(use_enable stats alcc) \&lt;br /&gt;
 		$(use_enable upnp) \&lt;br /&gt;
 		$(use_enable xchat xas) \&lt;br /&gt;
 		${myconf} || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_compile() {&lt;br /&gt;
 	cd ${S}&lt;br /&gt;
 	emake&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 	emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 	if use daemon; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 	fi&lt;br /&gt;
 	if use remote; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Copy the files directory from PORTAGE:&lt;br /&gt;
  cp -r /usr/portage/net-p2p/amule/files files&lt;br /&gt;
&lt;br /&gt;
7. Remove the unneeded files:&lt;br /&gt;
  rm files/*.patch&lt;br /&gt;
&lt;br /&gt;
8. Digest the ebuild:&lt;br /&gt;
  ebuild amule-9732.ebuild digest&lt;br /&gt;
&lt;br /&gt;
9. As you can see, this ebuild depend on x11-libs/wxGTK-2.8.12 which is not yet in portage. You can find it at [http://bugs.gentoo.org/show_bug.cgi?id=363319 Gentoo's Bugzilla – Bug 363319]. What you have to do is to dpwnload the ebuild from bugzilla and put it into the x11-libs/wxGTK directory of your overlay. You must also copy the files directory from PORTAGE and digest the ebuild:&lt;br /&gt;
  cd /usr/local/portage/x11-libs/wxGTK&lt;br /&gt;
  cp -r /usr/portage/x11-libs/wxGTK/files files&lt;br /&gt;
  ebuild wxGTK-2.8.12.ebuild digest&lt;br /&gt;
&lt;br /&gt;
10. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
11. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
12. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
13. As other programs can depend on wxGTK, it can be a good opportunity to update your system as usual. emerge --sync, and so on as explained into the handbook.&lt;br /&gt;
&lt;br /&gt;
==== Possible crash ====&lt;br /&gt;
On my ~amd64 system, I get a crash at amule startup with recent libcrypto++ versions.&lt;br /&gt;
To avoid it, mask it into /etc/portage/package.mask:&lt;br /&gt;
 echo =dev-libs/crypto++-5.6.0 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 echo =dev-libs/crypto++-5.6.0-r1 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 echo dev-libs/crypto++-5.6.1 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 emerge -a crypto++ amule&lt;br /&gt;
 revdep-rebuild&lt;br /&gt;
Revdep-rebuild didn't find anything into my system, but it is safer to run it anyway.&lt;br /&gt;
&lt;br /&gt;
Another solution is to use the ebuild and the patch in [http://bugs.gentoo.org/show_bug.cgi?id=322713 bug 322713] for merging the last version of libcrypto++.&lt;br /&gt;
&lt;br /&gt;
'''Update:''' It look like to be fixed. If it should append again with the same crypto++ version, please ask to reopen this bug.&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2012-05-04T17:32:41Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* The SVN ebuild */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 01.08.2009 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. As such, [[aMule]] comes in a variety of versions. This article will cover the installation of the last PORTAGE version, and of [[aMule SVN]] through a personal overlay.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
1. Show what will be done:&lt;br /&gt;
  emerge -pv amule&lt;br /&gt;
2. Adjust your USE flags for amule into ''/etc/portage/package.use&lt;br /&gt;
&lt;br /&gt;
3. Emerge amule:&lt;br /&gt;
  emerge -a amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay Overlay: Creating_a_local_overlay]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;. As aMule is using the revision to name the tarball, we will use it for the '''version_date_of_the_tarball'''.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-9732.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 31 July 2009 revision 9732 that was working fine for me, but you can change the revision like you want.  Be careful to choose a version number available on the [http://amule.sourceforge.net/tarballs/ tarballs page], otherwise your ebuild will fail.&lt;br /&gt;
&lt;br /&gt;
==== The SVN ebuild ====&lt;br /&gt;
ChangeLog:&lt;br /&gt;
* 01-08-2009 Initial SVN ebuild&lt;br /&gt;
* 04-08-2009 Updated DEPEND + RDEPEND&lt;br /&gt;
* 27-08-2009 Updated for the 2_2_X trunk&lt;br /&gt;
* 12-04-2011 USE flag change&lt;br /&gt;
* 16-04-2011 Updated to EAPI=&amp;quot;3&lt;br /&gt;
* 14-10-2011 Workaround debian specific test with USE=plasma&lt;br /&gt;
For more details, see the [http://forum.amule.org/index.php?topic=17143.0 forum thread].&lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2011 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 EAPI=&amp;quot;3&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic kde4-base wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_P=&amp;quot;aMule-SVN-r${PV}&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}&amp;quot;/${MY_P}&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://amule.sourceforge.net/tarballs/${MY_P}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;daemon debug ed2k fileview geoip gtk mmap nls plasma remote static stats unicode upnp xchat&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8.12*&lt;br /&gt;
 	&amp;gt;=dev-libs/crypto++-5.5.2&lt;br /&gt;
 	&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 	stats? ( &amp;gt;=media-libs/gd-2.0.26[jpeg] )&lt;br /&gt;
 	geoip? ( dev-libs/geoip )&lt;br /&gt;
 	plasma? ( kde-base/kdelibs )&lt;br /&gt;
 	upnp? ( &amp;gt;=net-libs/libupnp-1.6.6 )&lt;br /&gt;
 	remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 	unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RDEPEND=&amp;quot;$DEPEND&lt;br /&gt;
 	xchat? ( net-irc/xchat[perl] )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 	if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use daemon; then&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;You have to specify at least one of gtk, remote or daemon&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 		einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use daemon || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_configure() {&lt;br /&gt;
 	local myconf&lt;br /&gt;
 &lt;br /&gt;
 	WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk; then&lt;br /&gt;
 		einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets unicode&lt;br /&gt;
 	else&lt;br /&gt;
 		einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets base&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk ; then&lt;br /&gt;
 		use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-wxcas&lt;br /&gt;
 			--enable-alc&amp;quot;&lt;br /&gt;
 		use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-amule-gui&amp;quot;&lt;br /&gt;
 	else&lt;br /&gt;
 		myconf=&amp;quot;&lt;br /&gt;
 			--disable-monolithic&lt;br /&gt;
 			--disable-amule-gui&lt;br /&gt;
 			--disable-wxcas&lt;br /&gt;
 			--disable-alc&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	econf \&lt;br /&gt;
 		--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 		--enable-amulecmd \&lt;br /&gt;
 		$(use_enable debug) \&lt;br /&gt;
 		$(use_enable !debug optimize) \&lt;br /&gt;
 		$(use_enable daemon amule-daemon) \&lt;br /&gt;
 		$(use_enable ed2k) \&lt;br /&gt;
 		$(use_enable fileview) \&lt;br /&gt;
 		$(use_enable geoip) \&lt;br /&gt;
 		$(use_enable mmap) \&lt;br /&gt;
 		$(use_enable nls) \&lt;br /&gt;
 		$(use_enable plasma plasmamule ) \&lt;br /&gt;
 		$(use_enable remote webserver) \&lt;br /&gt;
 		$(use_enable static) \&lt;br /&gt;
 		$(use_enable stats cas) \&lt;br /&gt;
 		$(use_enable stats alcc) \&lt;br /&gt;
 		$(use_enable upnp) \&lt;br /&gt;
 		$(use_enable xchat xas) \&lt;br /&gt;
 		${myconf} || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_compile() {&lt;br /&gt;
 	cd ${S}&lt;br /&gt;
 	emake&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 	emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 	if use daemon; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 	fi&lt;br /&gt;
 	if use remote; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Copy the files directory from PORTAGE:&lt;br /&gt;
  cp -r /usr/portage/net-p2p/amule/files files&lt;br /&gt;
&lt;br /&gt;
7. Remove the unneeded files:&lt;br /&gt;
  rm files/*.patch&lt;br /&gt;
&lt;br /&gt;
8. Digest the ebuild:&lt;br /&gt;
  ebuild amule-9732.ebuild digest&lt;br /&gt;
&lt;br /&gt;
9. As you can see, this ebuild depend on x11-libs/wxGTK-2.8.12 which is not yet in portage. You can find it at [http://bugs.gentoo.org/show_bug.cgi?id=363319 Gentoo's Bugzilla – Bug 363319]. What you have to do is to dpwnload the ebuild from bugzilla and put it into the x11-libs/wxGTK directory of your overlay. You must also copy the files directory from PORTAGE and digest the ebuild:&lt;br /&gt;
  cd /usr/local/portage/x11-libs/wxGTK&lt;br /&gt;
  cp -r /usr/portage/x11-libs/wxGTK/files files&lt;br /&gt;
  ebuild wxGTK-2.8.12.ebuild digest&lt;br /&gt;
&lt;br /&gt;
10. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
11. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
12. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
13. As other programs can depend on wxGTK, it can be a good opportunity to update your system as usual. emerge --sync, and so on as explained into the handbook.&lt;br /&gt;
&lt;br /&gt;
==== Possible crash ====&lt;br /&gt;
On my ~amd64 system, I get a crash at amule startup with recent libcrypto++ versions.&lt;br /&gt;
To avoid it, mask it into /etc/portage/package.mask:&lt;br /&gt;
 echo =dev-libs/crypto++-5.6.0 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 echo =dev-libs/crypto++-5.6.0-r1 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 echo dev-libs/crypto++-5.6.1 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 emerge -a crypto++ amule&lt;br /&gt;
 revdep-rebuild&lt;br /&gt;
Revdep-rebuild didn't find anything into my system, but it is safer to run it anyway.&lt;br /&gt;
&lt;br /&gt;
Another solution is to use the ebuild and the patch in [http://bugs.gentoo.org/show_bug.cgi?id=322713 bug 322713] for merging the last version of libcrypto++.&lt;br /&gt;
&lt;br /&gt;
'''Update:''' It look like to be fixed. If it should append again with the same crypto++ version, please ask to reopen this bug.&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2011-11-13T11:00:20Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* The SVN ebuild - reversed DEB_HOST change*/&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 01.08.2009 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. As such, [[aMule]] comes in a variety of versions. This article will cover the installation of the last PORTAGE version, and of [[aMule SVN]] through a personal overlay.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
1. Show what will be done:&lt;br /&gt;
  emerge -pv amule&lt;br /&gt;
2. Adjust your USE flags for amule into ''/etc/portage/package.use&lt;br /&gt;
&lt;br /&gt;
3. Emerge amule:&lt;br /&gt;
  emerge -a amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay Overlay: Creating_a_local_overlay]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;. As aMule is using the revision to name the tarball, we will use it for the '''version_date_of_the_tarball'''.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-9732.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 31 July 2009 revision 9732 that was working fine for me, but you can change the revision like you want.  Be careful to choose a version number available on the [http://amule.sourceforge.net/tarballs/ tarballs page], otherwise your ebuild will fail.&lt;br /&gt;
&lt;br /&gt;
==== The SVN ebuild ====&lt;br /&gt;
ChangeLog:&lt;br /&gt;
* 01-08-2009 Initial SVN ebuild&lt;br /&gt;
* 04-08-2009 Updated DEPEND + RDEPEND&lt;br /&gt;
* 27-08-2009 Updated for the 2_2_X trunk&lt;br /&gt;
* 12-04-2011 USE flag change&lt;br /&gt;
* 16-04-2011 Updated to EAPI=&amp;quot;3&lt;br /&gt;
* 14-10-2011 Workaround debian specific test with USE=plasma&lt;br /&gt;
For more details, see the [http://forum.amule.org/index.php?topic=17143.0 forum thread].&lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2011 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 EAPI=&amp;quot;3&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic kde4-base wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_P=&amp;quot;aMule-SVN-r${PV}&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}&amp;quot;/${MY_P}&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://amule.sourceforge.net/tarballs/${MY_P}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;daemon debug ed2k fileview geoip gtk mmap nls plasma remote static stats unicode upnp xchat&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8.12*&lt;br /&gt;
 	&amp;gt;=dev-libs/crypto++-5.5.2&lt;br /&gt;
 	&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 	stats? ( &amp;gt;=media-libs/gd-2.0.26[jpeg] )&lt;br /&gt;
 	geoip? ( dev-libs/geoip )&lt;br /&gt;
 	plasma? ( kde-base/kdelibs )&lt;br /&gt;
 	upnp? ( &amp;gt;=net-libs/libupnp-1.6.6 )&lt;br /&gt;
 	remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 	unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RDEPEND=&amp;quot;$DEPEND&lt;br /&gt;
 	xchat? ( net-irc/xchat[perl] )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 	if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use daemon; then&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;You have to specify at least one of gtk, remote or daemon&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 		einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use daemon || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_configure() {&lt;br /&gt;
 	local myconf&lt;br /&gt;
 &lt;br /&gt;
 	WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk; then&lt;br /&gt;
 		einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets unicode&lt;br /&gt;
 	else&lt;br /&gt;
 		einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets base&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk ; then&lt;br /&gt;
 		use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-wxcas&lt;br /&gt;
 			--enable-alc&amp;quot;&lt;br /&gt;
 		use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-amule-gui&amp;quot;&lt;br /&gt;
 	else&lt;br /&gt;
 		myconf=&amp;quot;&lt;br /&gt;
 			--disable-monolithic&lt;br /&gt;
 			--disable-amule-gui&lt;br /&gt;
 			--disable-wxcas&lt;br /&gt;
 			--disable-alc&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	econf \&lt;br /&gt;
 		--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 		--enable-amulecmd \&lt;br /&gt;
 		$(use_enable debug) \&lt;br /&gt;
 		$(use_enable !debug optimize) \&lt;br /&gt;
 		$(use_enable daemon amule-daemon) \&lt;br /&gt;
 		$(use_enable ed2k) \&lt;br /&gt;
 		$(use_enable fileview) \&lt;br /&gt;
 		$(use_enable geoip) \&lt;br /&gt;
 		$(use_enable mmap) \&lt;br /&gt;
 		$(use_enable nls) \&lt;br /&gt;
 		$(use_enable plasma plasmamule ) \&lt;br /&gt;
 		$(use_enable remote webserver) \&lt;br /&gt;
 		$(use_enable static) \&lt;br /&gt;
 		$(use_enable stats cas) \&lt;br /&gt;
 		$(use_enable stats alcc) \&lt;br /&gt;
 		$(use_enable upnp) \&lt;br /&gt;
 		$(use_enable xchat xas) \&lt;br /&gt;
 		${myconf} || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 	emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 	if use daemon; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 	fi&lt;br /&gt;
 	if use remote; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Copy the files directory from PORTAGE:&lt;br /&gt;
  cp -r /usr/portage/net-p2p/amule/files files&lt;br /&gt;
&lt;br /&gt;
7. Remove the unneeded files:&lt;br /&gt;
  rm files/*.patch&lt;br /&gt;
&lt;br /&gt;
8. Digest the ebuild:&lt;br /&gt;
  ebuild amule-9732.ebuild digest&lt;br /&gt;
&lt;br /&gt;
9. As you can see, this ebuild depend on x11-libs/wxGTK-2.8.12 which is not yet in portage. You can find it at [http://bugs.gentoo.org/show_bug.cgi?id=363319 Gentoo's Bugzilla – Bug 363319]. What you have to do is to dpwnload the ebuild from bugzilla and put it into the x11-libs/wxGTK directory of your overlay. You must also copy the files directory from PORTAGE and digest the ebuild:&lt;br /&gt;
  cd /usr/local/portage/x11-libs/wxGTK&lt;br /&gt;
  cp -r /usr/portage/x11-libs/wxGTK/files files&lt;br /&gt;
  ebuild wxGTK-2.8.12.ebuild digest&lt;br /&gt;
&lt;br /&gt;
10. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
11. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
12. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
13. As other programs can depend on wxGTK, it can be a good opportunity to update your system as usual. emerge --sync, and so on as explained into the handbook.&lt;br /&gt;
&lt;br /&gt;
==== Possible crash ====&lt;br /&gt;
On my ~amd64 system, I get a crash at amule startup with recent libcrypto++ versions.&lt;br /&gt;
To avoid it, mask it into /etc/portage/package.mask:&lt;br /&gt;
 echo =dev-libs/crypto++-5.6.0 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 echo =dev-libs/crypto++-5.6.0-r1 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 echo dev-libs/crypto++-5.6.1 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 emerge -a crypto++ amule&lt;br /&gt;
 revdep-rebuild&lt;br /&gt;
Revdep-rebuild didn't find anything into my system, but it is safer to run it anyway.&lt;br /&gt;
&lt;br /&gt;
Another solution is to use the ebuild and the patch in [http://bugs.gentoo.org/show_bug.cgi?id=322713 bug 322713] for merging the last version of libcrypto++.&lt;br /&gt;
&lt;br /&gt;
'''Update:''' It look like to be fixed. If it should append again with the same crypto++ version, please ask to reopen this bug.&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/User:Libre</id>
		<title>User:Libre</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/User:Libre"/>
				<updated>2011-10-21T18:34:08Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* More about me */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi all,&lt;br /&gt;
&lt;br /&gt;
== Me and linux ==&lt;br /&gt;
&lt;br /&gt;
I have a technical background in electronic, all the electronic from the vacuum tubes to DSP processors. I prefer the analog electronic and I buy my first PC, a x86, when I see what could be archived with an analog electronic simulation software.&lt;br /&gt;
&lt;br /&gt;
I learned English with books on electronics, so, it is not terrific -:)&lt;br /&gt;
&lt;br /&gt;
I am an old linux user, my first working linux installation was a real pain, one week of work to get it running on my x386 box. A few weeks later, I try on my Amiga 2000, and surprise, in one hour the same work was done. But the 1.3 Amiga OS was so better, than i just installed it back... Now, the heart of my box is a phenom, and it just work like hell with gentoo-linux. This is the fastest and more stable box I never had. The stability of this AMD box is truly amazing, and its speed is amazing too.&lt;br /&gt;
&lt;br /&gt;
For the distributions, Suse, Suse again, Suse always. But I get sick of a few things like its inability to deal reliably on the long run with multiple repositories. I shifted to gentoo. I learned a lot more on linux but eventually not enough, and I get back to Suse after an unrepairable system crash. Same problem than before with it, so I shifted to debian. Debian is not better with its management of multiple repositories, so I shifted back to gentoo. This time, I took my time to experiment with the most critical part of the gentoo install: the cflags.&lt;br /&gt;
&lt;br /&gt;
My conclusion is that, if you use sane cflags, a gentoo system is more stable than even debian. But with insane cflags, it is possible to crash it to death in a few months, days, or even hours, and the only way to get it back will be trough, like with window$, a format and a full reinstall.&lt;br /&gt;
&lt;br /&gt;
What are sane cflags: the ones used in the gentoo handbook.&lt;br /&gt;
What are insane cflags: any other combination.&lt;br /&gt;
&lt;br /&gt;
Conclusion bis: if you are not 100% sure, use the same cflags than in the handbook.&lt;br /&gt;
&lt;br /&gt;
The problem posed by the cflags is multiple. They are optimization flags used by gcc when compiling a program. On one hand, you can get a speed boost with them. On the other hand, more optimizations can introduce very strange bugs that can be very difficult to trace: as example, a software can compile just fine, but you can get troubles during its execution, and that even if it doesn't crash.&lt;br /&gt;
&lt;br /&gt;
It is 2 solutions to that problem:&lt;br /&gt;
1) Use sane cflags as explained before. (easy, read and paste -:)&lt;br /&gt;
2) Do flags optimization for each single program in the box with a profiler like valgrind.&lt;br /&gt;
&lt;br /&gt;
The problem with 2) is than I know nobody that have the time to do that with each and every single installed package, and to redone this work at each upgrade.&lt;br /&gt;
&lt;br /&gt;
And it is more. Flag optimization can give you a speed boost. But this boost will be very marginal with most software, and for the other, the software developers of the program, or the package maintainers of the distribution, will do the profiling for you.&lt;br /&gt;
&lt;br /&gt;
It is much more, but I skip it... In short, the same unsafe cflag can behave differently with different gcc versions and different source codes... ... ... In consequence: don't trust the optimization made by software developers, they just don't have the same system than yours. -:) It is also for that than it is best to set sane cflags into /etc/make.conf&lt;br /&gt;
&lt;br /&gt;
And last, it is a much better way to get a speed boost: compile your kernel with a processor type that is corresponding to the processor in your box. On gentoo, you already know that. With the other distributions, you have to install the kernel sources that correspond to your kernel in use, copy the .config file of this kernel into the kernel sources, run &amp;quot;make oldconfig&amp;quot; and &amp;quot;make menuconfig&amp;quot;. In this menu, go to &amp;quot;Processor tape and features&amp;quot; -&amp;gt; &amp;quot;Processor family&amp;quot; and select the most appropriated family. Exit the menu, compile and install the kernel and its modules. For more information of the process of kernel compilation and installation, take a look at the forum of your distribution. It can be important distribution specific tricks that will make this easier and safer (in case of system upgrade and so on).&lt;br /&gt;
&lt;br /&gt;
== More about me ==&lt;br /&gt;
Hopefully, it is a life outside the computadores, the real life.&lt;br /&gt;
&lt;br /&gt;
For now, I have one foot in Switzerland and one in Cuba. &lt;br /&gt;
&lt;br /&gt;
Switzerland is an amazing country, but behind its goodies, it is very boring, peoples here are like in all the rich countries I know, obsessed by the money and so selfish. But it is here than I get at work 5 days a week. And for that, it is yet a good country.&lt;br /&gt;
&lt;br /&gt;
Cuba is another amazing country. It is not only a tropical island, but also a socialist country. And the people here is truly kind and free. OK, they are not free to travel because they are too poor, but they are free to go at school at any age, they have free housing, free healthcare, phone and electricity prices are very very low, and they have many other advantages that are just unthinkable in a capitalist country. They can watch the TV canals from both Cuba and the US, same thing with the radio canals, and if they choose the Cuban's ones most of the time, it is because they are better. It is even 2 educational TV canals with subjects of all kinds, from the ground level up to the university level.&lt;br /&gt;
&lt;br /&gt;
One time, I was walking into the country side, and I come into a very little village. Peoples was very surprised to see a tourist here, but very kind. The houses was simple, but in very good condition, it was electricity and a clean water system in all the houses, it was a common house with a TV and other amenities (as well than TV sets in the other houses), it was a little healthcare center done by a family doctor, and even a house with a popular university. I have never seen a so little village with so many facilities into a so rich country such as Switzerland. I was not in Switzerland but in Cuba.&lt;br /&gt;
&lt;br /&gt;
I discussed with a lot of peoples, from a Police Commissioner or the director of one the biggest society in Cuba (the one that rent cars to the tourists), to ordinary peoples of all kinds, even with some rogue guys. I noticed 2 things unthinkable in Switzerland: all have a good education, are very open-minded and very critical of the Cuban system, all know their system better than most of us know the capitalism, and all of them don't want another system than the Cuban one. They are all very proud of what they are accomplishing in Cuba, and they all never forget that the first conquest of the Cuban revolution is the real independence of the Island.&lt;br /&gt;
&lt;br /&gt;
Also, their criticism of their system is always constructive. The don't say &amp;quot;It's all bullshit&amp;quot; or non-understandable political talks. Instead, they said things like &amp;quot;This is not going well because this and that. We are aware of the problem, we want to correct it, and we are discussing the possible solutions. One is that, the other is this, and a few other peoples think like this. We must deepen the discussion in order to find the better solution for all of us.&amp;quot; Sometime they add &amp;quot;because of the US blockade, we don't have the means to do it now, this is a wishful thinking&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Also, the nature of the Island is one of the most beautiful I have never seen. If you like to walk, prefer the winter, it is less hot.&lt;br /&gt;
&lt;br /&gt;
In short, I am in love with Cuba, its inhabitants, their way of life, their choices, and also and of course with my future Cuban wife. She will be my third wife, and I hope the good and last one.&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/User:Libre</id>
		<title>User:Libre</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/User:Libre"/>
				<updated>2011-10-21T18:24:51Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* Me and linux */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi all,&lt;br /&gt;
&lt;br /&gt;
== Me and linux ==&lt;br /&gt;
&lt;br /&gt;
I have a technical background in electronic, all the electronic from the vacuum tubes to DSP processors. I prefer the analog electronic and I buy my first PC, a x86, when I see what could be archived with an analog electronic simulation software.&lt;br /&gt;
&lt;br /&gt;
I learned English with books on electronics, so, it is not terrific -:)&lt;br /&gt;
&lt;br /&gt;
I am an old linux user, my first working linux installation was a real pain, one week of work to get it running on my x386 box. A few weeks later, I try on my Amiga 2000, and surprise, in one hour the same work was done. But the 1.3 Amiga OS was so better, than i just installed it back... Now, the heart of my box is a phenom, and it just work like hell with gentoo-linux. This is the fastest and more stable box I never had. The stability of this AMD box is truly amazing, and its speed is amazing too.&lt;br /&gt;
&lt;br /&gt;
For the distributions, Suse, Suse again, Suse always. But I get sick of a few things like its inability to deal reliably on the long run with multiple repositories. I shifted to gentoo. I learned a lot more on linux but eventually not enough, and I get back to Suse after an unrepairable system crash. Same problem than before with it, so I shifted to debian. Debian is not better with its management of multiple repositories, so I shifted back to gentoo. This time, I took my time to experiment with the most critical part of the gentoo install: the cflags.&lt;br /&gt;
&lt;br /&gt;
My conclusion is that, if you use sane cflags, a gentoo system is more stable than even debian. But with insane cflags, it is possible to crash it to death in a few months, days, or even hours, and the only way to get it back will be trough, like with window$, a format and a full reinstall.&lt;br /&gt;
&lt;br /&gt;
What are sane cflags: the ones used in the gentoo handbook.&lt;br /&gt;
What are insane cflags: any other combination.&lt;br /&gt;
&lt;br /&gt;
Conclusion bis: if you are not 100% sure, use the same cflags than in the handbook.&lt;br /&gt;
&lt;br /&gt;
The problem posed by the cflags is multiple. They are optimization flags used by gcc when compiling a program. On one hand, you can get a speed boost with them. On the other hand, more optimizations can introduce very strange bugs that can be very difficult to trace: as example, a software can compile just fine, but you can get troubles during its execution, and that even if it doesn't crash.&lt;br /&gt;
&lt;br /&gt;
It is 2 solutions to that problem:&lt;br /&gt;
1) Use sane cflags as explained before. (easy, read and paste -:)&lt;br /&gt;
2) Do flags optimization for each single program in the box with a profiler like valgrind.&lt;br /&gt;
&lt;br /&gt;
The problem with 2) is than I know nobody that have the time to do that with each and every single installed package, and to redone this work at each upgrade.&lt;br /&gt;
&lt;br /&gt;
And it is more. Flag optimization can give you a speed boost. But this boost will be very marginal with most software, and for the other, the software developers of the program, or the package maintainers of the distribution, will do the profiling for you.&lt;br /&gt;
&lt;br /&gt;
It is much more, but I skip it... In short, the same unsafe cflag can behave differently with different gcc versions and different source codes... ... ... In consequence: don't trust the optimization made by software developers, they just don't have the same system than yours. -:) It is also for that than it is best to set sane cflags into /etc/make.conf&lt;br /&gt;
&lt;br /&gt;
And last, it is a much better way to get a speed boost: compile your kernel with a processor type that is corresponding to the processor in your box. On gentoo, you already know that. With the other distributions, you have to install the kernel sources that correspond to your kernel in use, copy the .config file of this kernel into the kernel sources, run &amp;quot;make oldconfig&amp;quot; and &amp;quot;make menuconfig&amp;quot;. In this menu, go to &amp;quot;Processor tape and features&amp;quot; -&amp;gt; &amp;quot;Processor family&amp;quot; and select the most appropriated family. Exit the menu, compile and install the kernel and its modules. For more information of the process of kernel compilation and installation, take a look at the forum of your distribution. It can be important distribution specific tricks that will make this easier and safer (in case of system upgrade and so on).&lt;br /&gt;
&lt;br /&gt;
== More about me ==&lt;br /&gt;
Hopefully, it is a life outside the computadores, the real life.&lt;br /&gt;
&lt;br /&gt;
For now, I have one foot in Switzerland and one in Cuba. &lt;br /&gt;
&lt;br /&gt;
Switzerland is an amazing country, but behind its goodies, it is very boring, peoples here are like in all the rich countries I know, obsessed by the money and so selfish. But it is here than I get at work 5 days a week. And for that, it is yet a good country.&lt;br /&gt;
&lt;br /&gt;
Cuba is another amazing country. It is not only a tropical island, but also a socialist country. And the people here is truly kind and free. OK, they are not free to travel because they are too poor, but they are free to go at school at any age, they have free housing, free healthcare, phone and electricity prices are very very low, and they have many other advantages that are just unthinkable in a capitalist country. They can watch the TV canals from both Cuba and the US, same thing with the radio canals, and if they choose the Cuban's ones most of the time, it is because they are better. It is even 2 educational TV canals with subjects of all kinds, from the ground level up to the university level.&lt;br /&gt;
&lt;br /&gt;
One time, I was walking into the country side, and I come into a very little village. Peoples was very surprised to see a tourist here, but very kind. The houses was simple, but in very good condition, it was electricity and a clean water system in all the houses, it was a common house with a TV and other amenities (as well than TV sets in the other houses), it was a little healthcare center done by a family doctor, and even a house with a popular university. I have never seen a so little village with so many facilities into a so rich country such as Switzerland. I was not in Switzerland but in Cuba.&lt;br /&gt;
&lt;br /&gt;
I discussed with a lot of peoples, from a Police Commissioner or the director of one the biggest society in Cuba (the one that rent cars to the tourists), to ordinary peoples of all kinds, even with some rogue guys. I noticed 2 things unthinkable in Switzerland: all have a good education, are very open-minded and very critical of the Cuban system, all know their system better than most of us know the capitalism, and all of them don't want another system than the Cuban one. They are all very proud of what they are accomplishing in Cuba, and they all never forget that the first conquest of the Cuban revolution is the real independence of the Island.&lt;br /&gt;
&lt;br /&gt;
Also, their criticism of their system is always constructive. The don't say &amp;quot;It's all bullshit&amp;quot; or non-understandable political talks. Instead, they said things like &amp;quot;This is not going well because this and that. We are aware of the problem, we want to correct it, and we are discussing the possible solutions. One is that, the other is this, and a few other peoples think like this. We must deepen the discussion in order to find the better solution.&amp;quot; Sometime they add &amp;quot;because of the US blockade, we don't have the means to do it know and this is a wishful thinking&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Also, the nature of the Island is one of the most beautiful I have never seen. If you like to walk, prefer the winter, it is less hot.&lt;br /&gt;
&lt;br /&gt;
In short, I am in love with Cuba, its inhabitants, their way of life, their choices, and also and of course with my future Cuban wife. She will be my third wife, and I hope the good and last one.&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/User:Libre</id>
		<title>User:Libre</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/User:Libre"/>
				<updated>2011-10-21T18:18:21Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi all,&lt;br /&gt;
&lt;br /&gt;
== Me and linux ==&lt;br /&gt;
&lt;br /&gt;
I have a technical background in electronic, all the electronic from the vacuum tubes to DSP processors. I prefer the analog electronic and I buy my first PC, a x86, when I see what could be archived with an analog electronic simulation software.&lt;br /&gt;
&lt;br /&gt;
I learned English with books on electronics, so, it is not terrific -:)&lt;br /&gt;
&lt;br /&gt;
I am an old linux user, my first working linux installation was a real pain, one week of work to get it running on my x386 box. A few weeks later, I try on my Amiga 2000, and surprise, in one hour the same work was done. But the 1.3 Amiga OS was so better, than i just installed it back... Now, the heart of my box is a phenom, and it just work like hell with gentoo-linux. This is the fastest and more stable box I never had. The stability of this AMD box is truly amazing, and its speed is amazing too.&lt;br /&gt;
&lt;br /&gt;
For the distributions, Suse, Suse again, Suse always. But I get sick of a few things like its inability to deal reliably on the long run with multiple repositories. I shifted to gentoo. I learned a lot more on linux but eventually not enough, and I get back to Suse after an unrepairable system crash. Same problem than before with it, so I shifted to debian. Debian is not better with its management of multiple repositories, so I shifted back to gentoo. This time, I took my time to experiment with the most critical part of the gentoo install: the cflags.&lt;br /&gt;
&lt;br /&gt;
My conclusion is that, if you use sane cflags, a gentoo system is more stable than even debian. But with insane cflags, it is possible to crash it to death in a few months, days, or even hours, and the only way to get it back will be trough, like with window$, a format and a full reinstall.&lt;br /&gt;
&lt;br /&gt;
What are sane cflags: the ones used in the gentoo handbook.&lt;br /&gt;
What are insane cflags: any other combination.&lt;br /&gt;
&lt;br /&gt;
Conclusion bis: if you are not 100% sure, use the same cflags than in the handbook.&lt;br /&gt;
&lt;br /&gt;
The problem posed by the cflags is multiple. They are optimization flags used by gcc when compiling a program. On one hand, you can get a speed boost with them. On the other hand, more optimizations can introduce very strange bugs that can be very difficult to trace: as example, a software can compile just fine, but you can get troubles during its execution, and that even if it doesn't crash.&lt;br /&gt;
&lt;br /&gt;
It is 2 solutions to that problem:&lt;br /&gt;
1) Use sane cflags as explained before. (easy, read and paste -:)&lt;br /&gt;
2) Do flags optimization for each single program in the box with a profiler like valgrind.&lt;br /&gt;
&lt;br /&gt;
The problem with 2) is than I know nobody that have the time to do that with each and every single installed package, and to redone this work at each upgrade.&lt;br /&gt;
&lt;br /&gt;
And it is more. Flag optimization can give you a speed boost. But this boost will be very marginal with most software, and for the other, the software developers of the program, or the package maintainers of the distribution, will do the profiling for you.&lt;br /&gt;
&lt;br /&gt;
It is much more, but I skip it... In short, the same unsafe cflag can behave differently with different gcc versions and different source codes... ... ... -:)&lt;br /&gt;
&lt;br /&gt;
And last, it is a much better way to get a speed boost: compile your kernel with a processor type that is corresponding to the processor in your box. On gentoo, you already know that. With the other distributions, you have to install the kernel sources that correspond to your kernel in use, copy the .config file of this kernel into the kernel sources, run &amp;quot;make oldconfig&amp;quot; and &amp;quot;make menuconfig&amp;quot;. In this menu, go to &amp;quot;Processor tape and features&amp;quot; -&amp;gt; &amp;quot;Processor family&amp;quot; and select the most appropriated family. Exit the menu, compile and install the kernel and its modules. For more information of the process of kernel compilation and installation, take a look at the forum of your distribution. It can be important distribution specific tricks that will make this easier and safer (in case of system upgrade and so on).&lt;br /&gt;
&lt;br /&gt;
== More about me ==&lt;br /&gt;
Hopefully, it is a life outside the computadores, the real life.&lt;br /&gt;
&lt;br /&gt;
For now, I have one foot in Switzerland and one in Cuba. &lt;br /&gt;
&lt;br /&gt;
Switzerland is an amazing country, but behind its goodies, it is very boring, peoples here are like in all the rich countries I know, obsessed by the money and so selfish. But it is here than I get at work 5 days a week. And for that, it is yet a good country.&lt;br /&gt;
&lt;br /&gt;
Cuba is another amazing country. It is not only a tropical island, but also a socialist country. And the people here is truly kind and free. OK, they are not free to travel because they are too poor, but they are free to go at school at any age, they have free housing, free healthcare, phone and electricity prices are very very low, and they have many other advantages that are just unthinkable in a capitalist country. They can watch the TV canals from both Cuba and the US, same thing with the radio canals, and if they choose the Cuban's ones most of the time, it is because they are better. It is even 2 educational TV canals with subjects of all kinds, from the ground level up to the university level.&lt;br /&gt;
&lt;br /&gt;
One time, I was walking into the country side, and I come into a very little village. Peoples was very surprised to see a tourist here, but very kind. The houses was simple, but in very good condition, it was electricity and a clean water system in all the houses, it was a common house with a TV and other amenities (as well than TV sets in the other houses), it was a little healthcare center done by a family doctor, and even a house with a popular university. I have never seen a so little village with so many facilities into a so rich country such as Switzerland. I was not in Switzerland but in Cuba.&lt;br /&gt;
&lt;br /&gt;
I discussed with a lot of peoples, from a Police Commissioner or the director of one the biggest society in Cuba (the one that rent cars to the tourists), to ordinary peoples of all kinds, even with some rogue guys. I noticed 2 things unthinkable in Switzerland: all have a good education, are very open-minded and very critical of the Cuban system, all know their system better than most of us know the capitalism, and all of them don't want another system than the Cuban one. They are all very proud of what they are accomplishing in Cuba, and they all never forget that the first conquest of the Cuban revolution is the real independence of the Island.&lt;br /&gt;
&lt;br /&gt;
Also, their criticism of their system is always constructive. The don't say &amp;quot;It's all bullshit&amp;quot; or non-understandable political talks. Instead, they said things like &amp;quot;This is not going well because this and that. We are aware of the problem, we want to correct it, and we are discussing the possible solutions. One is that, the other is this, and a few other peoples think like this. We must deepen the discussion in order to find the better solution.&amp;quot; Sometime they add &amp;quot;because of the US blockade, we don't have the means to do it know and this is a wishful thinking&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Also, the nature of the Island is one of the most beautiful I have never seen. If you like to walk, prefer the winter, it is less hot.&lt;br /&gt;
&lt;br /&gt;
In short, I am in love with Cuba, its inhabitants, their way of life, their choices, and also and of course with my future Cuban wife. She will be my third wife, and I hope the good and last one.&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/User:Libre</id>
		<title>User:Libre</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/User:Libre"/>
				<updated>2011-10-21T18:15:14Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* Me and linux */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi all,&lt;br /&gt;
&lt;br /&gt;
== Me and linux ==&lt;br /&gt;
&lt;br /&gt;
I have a technical background in electronic, all the electronic from the vacuum tubes to DSP processors. I prefer the analog electronic and I buy my first PC, a x86, when I see what could be archived with an analog electronic simulation software.&lt;br /&gt;
&lt;br /&gt;
I learned English with books on electronics, so, it is not terrific -:)&lt;br /&gt;
&lt;br /&gt;
I am an old linux user, my first working linux installation was a real pain, one week of work to get it running on my x386 box. A few weeks later, I try on my Amiga 2000, and surprise, in one hour the same work was done. But the 1.3 Amiga OS was so better, than i just installed it back... Now, the heart of my box is a phenom, and it just work like hell with gentoo-linux. This is the fastest and more stable box I never had. The stability of this AMD box is truly amazing, and its speed is amazing too.&lt;br /&gt;
&lt;br /&gt;
For the distributions, Suse, Suse again, Suse always. But I get sick of a few things like its inability to deal reliably on the long run with multiple repositories. I shifted to gentoo. I learned a lot more on linux but eventually not enough, and I get back to Suse after a unrepairable system crash. Same problem than before with it, so I shifted to debian. Debian is not better with its management of multiple repositories, so I shifted back to gentoo. This time, I took my time to experiment with the most critical part of the gentoo install: the cflags.&lt;br /&gt;
&lt;br /&gt;
My conclusion is that, if you use sane cflags, a gentoo system is more stable than even debian. But with insane cflags, it is possible to crash it to death in a few months, days, or even hours, and the only way to get it back will be trough, like with window$, a format and a full reinstall.&lt;br /&gt;
&lt;br /&gt;
What are sane cflags: the ones used in the gentoo handbook.&lt;br /&gt;
What are insane cflags: any other combination.&lt;br /&gt;
&lt;br /&gt;
Conclusion bis: if you are not 100% sure, use the same cflags than in the handbook.&lt;br /&gt;
&lt;br /&gt;
The problem posed by the cflags is multiple. They are optimization flags used by gcc when compiling a program. On one hand, you can get a speed boost with them. On the other hand, more optimizations can introduce very strange bugs that can be very difficult to trace: as example, a software can compile just fine, but you can get troubles during its execution, and that even if it doesn't crash.&lt;br /&gt;
&lt;br /&gt;
It is 2 solutions to that problem:&lt;br /&gt;
1) Use sane cflags as explained before. (easy, read and paste -:)&lt;br /&gt;
2) Do flags optimization for each single program in the box with a profiler like valgrind.&lt;br /&gt;
&lt;br /&gt;
The problem with 2) is than I know nobody that have the time to do that with each and every single installed package, and to redone this work at each upgrade.&lt;br /&gt;
&lt;br /&gt;
And it is more. Flag optimization can give you a speed boost. But this boost will be very marginal with most software, and for the other, the software developers of the program, or the package maintainers of the distribution, will do the profiling for you.&lt;br /&gt;
&lt;br /&gt;
It is much more, but I skip it... In short, the same unsafe cflag can behave differently with different gcc versions and different source codes... ... ... -:)&lt;br /&gt;
&lt;br /&gt;
And last, it is a much better way to get a speed boost: compile your kernel with a processor type that is corresponding to the processor in your box. On gentoo, you already know that. With the other distributions, you have to install the kernel sources that correspond to your kernel in use, copy the .config file of this kernel into the kernel sources, run &amp;quot;make oldconfig&amp;quot; and &amp;quot;make menuconfig&amp;quot;. In this menu, go to &amp;quot;Processor tape and features&amp;quot; -&amp;gt; &amp;quot;Processor family&amp;quot; and select the most appropriated family. Exit the menu, compile and install the kernel and its modules. For more information of the process of kernel compilation and installation, take a look at the forum of your distribution. It can be important distribution specific tricks that will make this easier and safer (in case of system upgrade and so on).&lt;br /&gt;
&lt;br /&gt;
== More about me ==&lt;br /&gt;
Hopefully, it is a life outside the computadores, the real life.&lt;br /&gt;
&lt;br /&gt;
For now, I have one foot in Switzerland and one in Cuba. &lt;br /&gt;
&lt;br /&gt;
Switzerland is an amazing country, but behind its goodies, it is very boring, peoples here are like in all the rich countries I know, obsessed by the money and so selfish. But it is here than I get at work 5 days a week. And for that, it is yet a good country.&lt;br /&gt;
&lt;br /&gt;
Cuba is another amazing country. It is not only a tropical island, but also a socialist country. And the people here is truly kind and free. OK, they are not free to travel because they are too poor, but they are free to go at school at any age, they have free housing, free healthcare, phone and electricity prices are very very low, and they have many other advantages that are just unthinkable in a capitalist country. They can watch the TV canals from both Cuba and the US, same thing with the radio canals, and if they choose the Cuban's ones most of the time, it is because they are better. It is even 2 educational TV canals with subjects of all kinds, from the ground level up to the university level.&lt;br /&gt;
&lt;br /&gt;
One time, I was walking into the country side, and I come into a very little village. Peoples was very surprised to see a tourist here, but very kind. The houses was simple, but in very good condition, it was electricity and a clean water system in all the houses, it was a common house with a TV and other amenities (as well than TV sets in the other houses), it was a little healthcare center done by a family doctor, and even a house with a popular university. I have never seen a so little village with so many facilities into a so rich country such as Switzerland. I was not in Switzerland but in Cuba.&lt;br /&gt;
&lt;br /&gt;
I discussed with a lot of peoples, from a Police Commissioner or the director of one the biggest society in Cuba (the one that rent cars to the tourists), to ordinary peoples of all kinds, even with some rogue guys. I noticed 2 things unthinkable in Switzerland: all have a good education, are very open-minded and very critical of the Cuban system, all know their system better than most of us know the capitalism, and all of them don't want another system than the Cuban one. They are all very proud of what they are accomplishing in Cuba, and they all never forget that the first conquest of the Cuban revolution is the real independence of the Island.&lt;br /&gt;
&lt;br /&gt;
Also, their criticism of their system is always constructive. The don't say &amp;quot;It's all bullshit&amp;quot; or non-understandable political talks. Instead, they said things like &amp;quot;This is not going well because this and that. We are aware of the problem, we want to correct it, and we are discussing the possible solutions. One is that, the other is this, and a few other peoples think like this. We must deepen the discussion in order to find the better solution.&amp;quot; Sometime they add &amp;quot;because of the US blockade, we don't have the means to do it know and this is a wishful thinking&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Also, the nature of the Island is one of the most beautiful I have never seen. If you like to walk, prefer the winter, it is less hot.&lt;br /&gt;
&lt;br /&gt;
In short, I am in love with Cuba, its inhabitants, their way of life, their choices, and also and of course with my future Cuban wife. She will be my third wife, and I hope the good and last one.&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/User:Libre</id>
		<title>User:Libre</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/User:Libre"/>
				<updated>2011-10-21T18:13:44Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi all,&lt;br /&gt;
&lt;br /&gt;
== Me and linux ==&lt;br /&gt;
&lt;br /&gt;
I have a technical background in electronic, all the electronic from the vacuum tubes to DSP processors. I prefer the analog electronic and I buy my first PC, a x86, when I see what could be archived with an analog electronic simulation software.&lt;br /&gt;
&lt;br /&gt;
I am an old linux user, my first working linux installation was a real pain, one week of work to get it running on my x386 box. A few weeks later, I try on my Amiga 2000, and surprise, in one hour the same work was done. But the 1.3 Amiga OS was so better, than i just installed it back... Now, the heart of my box is a phenom, and it just work like hell with gentoo-linux. This is the fastest and more stable box I never had. The stability of this AMD box is truly amazing, and its speed is amazing too.&lt;br /&gt;
&lt;br /&gt;
For the distributions, Suse, Suse again, Suse always. But I get sick of a few things like its inability to deal reliably on the long run with multiple repositories. I shifted to gentoo. I learned a lot more on linux but eventually not enough, and I get back to Suse after a unrepairable system crash. Same problem than before with it, so I shifted to debian. Debian is not better with its management of multiple repositories, so I shifted back to gentoo. This time, I took my time to experiment with the most critical part of the gentoo install: the cflags.&lt;br /&gt;
&lt;br /&gt;
My conclusion is that, if you use sane cflags, a gentoo system is more stable than even debian. But with insane cflags, it is possible to crash it to death in a few months, days, or even hours, and the only way to get it back will be trough, like with window$, a format and a full reinstall.&lt;br /&gt;
&lt;br /&gt;
What are sane cflags: the ones used in the gentoo handbook.&lt;br /&gt;
What are insane cflags: any other combination.&lt;br /&gt;
&lt;br /&gt;
Conclusion bis: if you are not 100% sure, use the same cflags than in the handbook.&lt;br /&gt;
&lt;br /&gt;
The problem posed by the cflags is multiple. They are optimization flags used by gcc when compiling a program. On one hand, you can get a speed boost with them. On the other hand, more optimizations can introduce very strange bugs that can be very difficult to trace: as example, a software can compile just fine, but you can get troubles during its execution, and that even if it doesn't crash.&lt;br /&gt;
&lt;br /&gt;
It is 2 solutions to that problem:&lt;br /&gt;
1) Use sane cflags as explained before. (easy, read and paste -:)&lt;br /&gt;
2) Do flags optimization for each single program in the box with a profiler like valgrind.&lt;br /&gt;
&lt;br /&gt;
The problem with 2) is than I know nobody that have the time to do that with each and every single installed package, and to redone this work at each upgrade.&lt;br /&gt;
&lt;br /&gt;
And it is more. Flag optimization can give you a speed boost. But this boost will be very marginal with most software, and for the other, the software developers of the program, or the package maintainers of the distribution, will do the profiling for you.&lt;br /&gt;
&lt;br /&gt;
It is much more, but I skip it... In short, the same unsafe cflag can behave differently with different gcc versions and different source codes... ... ... -:)&lt;br /&gt;
&lt;br /&gt;
And last, it is a much better way to get a speed boost: compile your kernel with a processor type that is corresponding to the processor in your box. On gentoo, you already know that. With the other distributions, you have to install the kernel sources that correspond to your kernel in use, copy the .config file of this kernel into the kernel sources, run &amp;quot;make oldconfig&amp;quot; and &amp;quot;make menuconfig&amp;quot;. In this menu, go to &amp;quot;Processor tape and features&amp;quot; -&amp;gt; &amp;quot;Processor family&amp;quot; and select the most appropriated family. Exit the menu, compile and install the kernel and its modules. For more information of the process of kernel compilation and installation, take a look at the forum of your distribution. It can be important distribution specific tricks that will make this easier and safer (in case of system upgrade and so on).&lt;br /&gt;
&lt;br /&gt;
== More about me ==&lt;br /&gt;
Hopefully, it is a life outside the computadores, the real life.&lt;br /&gt;
&lt;br /&gt;
For now, I have one foot in Switzerland and one in Cuba. &lt;br /&gt;
&lt;br /&gt;
Switzerland is an amazing country, but behind its goodies, it is very boring, peoples here are like in all the rich countries I know, obsessed by the money and so selfish. But it is here than I get at work 5 days a week. And for that, it is yet a good country.&lt;br /&gt;
&lt;br /&gt;
Cuba is another amazing country. It is not only a tropical island, but also a socialist country. And the people here is truly kind and free. OK, they are not free to travel because they are too poor, but they are free to go at school at any age, they have free housing, free healthcare, phone and electricity prices are very very low, and they have many other advantages that are just unthinkable in a capitalist country. They can watch the TV canals from both Cuba and the US, same thing with the radio canals, and if they choose the Cuban's ones most of the time, it is because they are better. It is even 2 educational TV canals with subjects of all kinds, from the ground level up to the university level.&lt;br /&gt;
&lt;br /&gt;
One time, I was walking into the country side, and I come into a very little village. Peoples was very surprised to see a tourist here, but very kind. The houses was simple, but in very good condition, it was electricity and a clean water system in all the houses, it was a common house with a TV and other amenities (as well than TV sets in the other houses), it was a little healthcare center done by a family doctor, and even a house with a popular university. I have never seen a so little village with so many facilities into a so rich country such as Switzerland. I was not in Switzerland but in Cuba.&lt;br /&gt;
&lt;br /&gt;
I discussed with a lot of peoples, from a Police Commissioner or the director of one the biggest society in Cuba (the one that rent cars to the tourists), to ordinary peoples of all kinds, even with some rogue guys. I noticed 2 things unthinkable in Switzerland: all have a good education, are very open-minded and very critical of the Cuban system, all know their system better than most of us know the capitalism, and all of them don't want another system than the Cuban one. They are all very proud of what they are accomplishing in Cuba, and they all never forget that the first conquest of the Cuban revolution is the real independence of the Island.&lt;br /&gt;
&lt;br /&gt;
Also, their criticism of their system is always constructive. The don't say &amp;quot;It's all bullshit&amp;quot; or non-understandable political talks. Instead, they said things like &amp;quot;This is not going well because this and that. We are aware of the problem, we want to correct it, and we are discussing the possible solutions. One is that, the other is this, and a few other peoples think like this. We must deepen the discussion in order to find the better solution.&amp;quot; Sometime they add &amp;quot;because of the US blockade, we don't have the means to do it know and this is a wishful thinking&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Also, the nature of the Island is one of the most beautiful I have never seen. If you like to walk, prefer the winter, it is less hot.&lt;br /&gt;
&lt;br /&gt;
In short, I am in love with Cuba, its inhabitants, their way of life, their choices, and also and of course with my future Cuban wife. She will be my third wife, and I hope the good and last one.&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/User:Libre</id>
		<title>User:Libre</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/User:Libre"/>
				<updated>2011-10-21T17:58:37Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: Created page with 'Hi all,  I am an old linux user, my first working linux installation was a real pain, one week of work to get it running on my 386 box. A few weeks later, I try on my Amiga 2000,…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi all,&lt;br /&gt;
&lt;br /&gt;
I am an old linux user, my first working linux installation was a real pain, one week of work to get it running on my 386 box. A few weeks later, I try on my Amiga 2000, and surprise, in one hour the same work was done. But the 1.3 Amiga OS was so better, than i just installed it back... Now, the heart of my box is a phenom and it just work like hell with gentoo-linux. This is the fastest and more stable boy I ever had.&lt;br /&gt;
&lt;br /&gt;
For the distribution, Suse, Suse again, Suse always. But I get sick of a few things like the inability of such distributions to deal reliably on the long run with multiple repositories. I shifted to gentoo. I learned a lot more on linux but eventually not enough, and I get back to Suse. Same problem than before with it, so I shifted to debian. Debian is not better with its management of multiple repositories, so I shifted back to gentoo. This time, I took my time to experiment with the most critical part of the gentoo install: the cflags.&lt;br /&gt;
&lt;br /&gt;
My conclusion is that, if you use sane cflags, a gentoo system is more stable than even debian. But with insane cflags, it is possible to crash it to death in a few months, days, or even hours, and the only way to get it back will be trough, like with window$, a format and a full reinstall.&lt;br /&gt;
&lt;br /&gt;
What are sane cflags: the ones used in the gentoo handbook.&lt;br /&gt;
What are insane cflags: any other combination.&lt;br /&gt;
&lt;br /&gt;
Conclusion bis: if you are not 100% sure, use the same cflags than in the handbook.&lt;br /&gt;
&lt;br /&gt;
The problem posed by the cflags is multiple. They are optimization flags used by gcc when compiling a program. On one hand, you can get a speed boost with them. On the other hand, more optimizations can introduce very strange bugs that can be very difficult to trace: as example, a software can compile just fine, but you can get troubles during its execution, and that even if it doesn't crash.&lt;br /&gt;
&lt;br /&gt;
It is 2 solutions to that problem:&lt;br /&gt;
1) Use sane cflags as explained before.&lt;br /&gt;
2) Do flags optimization for each single program in the box with a profiler like valgrind.&lt;br /&gt;
&lt;br /&gt;
The problem with 2 is than I know nobody that have the time to do that with each and every single installed package, and to redone this work at each upgrade.&lt;br /&gt;
&lt;br /&gt;
And it is more. Flag optimization can give you a speed boost. But this boost will be very marginal with most software, and for the other, the software developers of the program, or the package maintainers of the distribution, will do the profiling for you.&lt;br /&gt;
&lt;br /&gt;
It is much more, but I skip it... In short, the same flag can behave differently with different gcc versions... ... ... -:)&lt;br /&gt;
&lt;br /&gt;
And last, it is a much better way to get a speed boost: compile your kernel with a processor type that is corresponding to the processor in your box. On gentoo, you already know that. With the other distributions, you have to install the kernel sources that correspond to your kernel in use, copy the .config file of this kernel into the kernel sources, run &amp;quot;make oldconfig&amp;quot; and &amp;quot;make menuconfig&amp;quot;. In this menu, go to &amp;quot;Processor tape and features&amp;quot; -&amp;gt; &amp;quot;Processor family&amp;quot; and select the most appropriated family. Exit the menu, compile and install the kernel and its modules. For more information of the process of kernel compilation and installation, take a look at the forum of your distribution. It can be important distribution specific tricks that will make this easier and safer in case of system upgrade and so on.&lt;br /&gt;
&lt;br /&gt;
== More about me ==&lt;br /&gt;
Hopefully, it is a life outside the computadores, the real life.&lt;br /&gt;
&lt;br /&gt;
For now, I have one foot in Switzerland and one in Cuba. &lt;br /&gt;
&lt;br /&gt;
Switzerland is an amazing country, but behind its goodies, it is very boring, peoples here are like in all the rich countries I know, obsessed by the money and so selfish. But it is here than I get at work 5 days a week. And for that, it is yet a good country.&lt;br /&gt;
&lt;br /&gt;
Cuba is another amazing country. It is not only a tropical island, but also a socialist country. And the people here is truly kind and free. OK, they are not free to travel because they are too poor, but they are free to go at school at any age, they have free housing, free healthcare, phone and electricity prices are very very low, and they have many other advantages that are just unthinkable in a capitalist country. They can watch the TV canals from both Cuba and the US, same thing with the radio canals, and if they choose the Cuban's ones most of the time, it is because they are better. It is even 2 educational TV canals with subjects of all kinds, from the ground level up to the university level.&lt;br /&gt;
&lt;br /&gt;
One time, I was walking into the country side, and I come into a very little village. Peoples was very surprised to see a tourist here, but very kind. The houses was simple, but in very good condition, it was electricity and a clean water system in all the houses, it was a common house with a TV and other amenities (as well than TV sets in the other houses), it was a little healthcare center done by a family doctor, and even a house with a popular university. I have never seen a so little village with so many facilities into a so rich country such as Switzerland. I was not in Switzerland but in Cuba.&lt;br /&gt;
&lt;br /&gt;
I discussed with a lot of peoples, from a Police Commissioner or the director of one the biggest society in Cuba (the one that rent cars to the tourists), to ordinary peoples of all kinds, even with some rogue guys. I noticed 2 things unthinkable in Switzerland: all have a good education, are very open-minded and very critical of the Cuban system, all know their system better than most of us know the capitalism, and all of them don't want another system than the Cuban one. They are all very proud of what they are accomplishing in Cuba, and they all never forget that the first conquest of the Cuban revolution is the real independence of the Island.&lt;br /&gt;
&lt;br /&gt;
Also, their criticism of their system is always constructive. The don't say &amp;quot;It's all bullshit&amp;quot; or non-understandable political talks. Instead, they said things like &amp;quot;This is not going well because this and that. We are aware of the problem, we want to correct it, and we are discussing the possible solutions. One is that, the other is this, and a few other peoples think like this. We must deepen the discussion in order to find the better solution.&amp;quot; Sometime they add &amp;quot;because of the US blockade, we don't have the means to do it know and this is a wishful thinking&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Also, the nature of the Island is one of the most beautiful I have never seen. If you like to walk, prefer the winter, it is less hot.&lt;br /&gt;
&lt;br /&gt;
In short, I am in love with Cuba, its inhabitants, their way of life, their choices, and also and of course with my future Cuban wife. She will be my third wife, and I hope the good and last one.&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2011-10-21T16:00:19Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* amule SVN */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 01.08.2009 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. As such, [[aMule]] comes in a variety of versions. This article will cover the installation of the last PORTAGE version, and of [[aMule SVN]] through a personal overlay.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
1. Show what will be done:&lt;br /&gt;
  emerge -pv amule&lt;br /&gt;
2. Adjust your USE flags for amule into ''/etc/portage/package.use&lt;br /&gt;
&lt;br /&gt;
3. Emerge amule:&lt;br /&gt;
  emerge -a amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay Overlay: Creating_a_local_overlay]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;. As aMule is using the revision to name the tarball, we will use it for the '''version_date_of_the_tarball'''.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-9732.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 31 July 2009 revision 9732 that was working fine for me, but you can change the revision like you want.  Be careful to choose a version number available on the [http://amule.sourceforge.net/tarballs/ tarballs page], otherwise your ebuild will fail.&lt;br /&gt;
&lt;br /&gt;
==== The SVN ebuild ====&lt;br /&gt;
ChangeLog:&lt;br /&gt;
* 01-08-2009 Initial SVN ebuild&lt;br /&gt;
* 04-08-2009 Updated DEPEND + RDEPEND&lt;br /&gt;
* 27-08-2009 Updated for the 2_2_X trunk&lt;br /&gt;
* 12-04-2011 USE flag change&lt;br /&gt;
* 16-04-2011 Updated to EAPI=&amp;quot;3&lt;br /&gt;
* 14-10-2011 Workaround debian specific test with USE=plasma&lt;br /&gt;
For more details, see the [http://forum.amule.org/index.php?topic=17143.0 forum thread].&lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2011 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 EAPI=&amp;quot;3&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic kde4-base wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_P=&amp;quot;aMule-SVN-r${PV}&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}&amp;quot;/${MY_P}&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://amule.sourceforge.net/tarballs/${MY_P}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;daemon debug ed2k fileview geoip gtk mmap nls plasma remote static stats unicode upnp xchat&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8.12*&lt;br /&gt;
 	&amp;gt;=dev-libs/crypto++-5.5.2&lt;br /&gt;
 	&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 	stats? ( &amp;gt;=media-libs/gd-2.0.26[jpeg] )&lt;br /&gt;
 	geoip? ( dev-libs/geoip )&lt;br /&gt;
 	plasma? ( kde-base/kdelibs )&lt;br /&gt;
 	upnp? ( &amp;gt;=net-libs/libupnp-1.6.6 )&lt;br /&gt;
 	remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 	unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RDEPEND=&amp;quot;$DEPEND&lt;br /&gt;
 	xchat? ( net-irc/xchat[perl] )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 	if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use daemon; then&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;You have to specify at least one of gtk, remote or daemon&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 		einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use daemon || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_configure() {&lt;br /&gt;
 	local myconf&lt;br /&gt;
 &lt;br /&gt;
 	WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk; then&lt;br /&gt;
 		einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets unicode&lt;br /&gt;
 	else&lt;br /&gt;
 		einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets base&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk ; then&lt;br /&gt;
 		use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-wxcas&lt;br /&gt;
 			--enable-alc&amp;quot;&lt;br /&gt;
 		use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-amule-gui&amp;quot;&lt;br /&gt;
 	else&lt;br /&gt;
 		myconf=&amp;quot;&lt;br /&gt;
 			--disable-monolithic&lt;br /&gt;
 			--disable-amule-gui&lt;br /&gt;
 			--disable-wxcas&lt;br /&gt;
 			--disable-alc&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	DEB_HOST_ARCH=&amp;quot;no&amp;quot; econf \&lt;br /&gt;
 		--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 		--enable-amulecmd \&lt;br /&gt;
 		$(use_enable debug) \&lt;br /&gt;
 		$(use_enable !debug optimize) \&lt;br /&gt;
 		$(use_enable daemon amule-daemon) \&lt;br /&gt;
 		$(use_enable ed2k) \&lt;br /&gt;
 		$(use_enable fileview) \&lt;br /&gt;
 		$(use_enable geoip) \&lt;br /&gt;
 		$(use_enable mmap) \&lt;br /&gt;
 		$(use_enable nls) \&lt;br /&gt;
 		$(use_enable plasma plasmamule ) \&lt;br /&gt;
 		$(use_enable remote webserver) \&lt;br /&gt;
 		$(use_enable static) \&lt;br /&gt;
 		$(use_enable stats cas) \&lt;br /&gt;
 		$(use_enable stats alcc) \&lt;br /&gt;
 		$(use_enable upnp) \&lt;br /&gt;
 		$(use_enable xchat xas) \&lt;br /&gt;
 		${myconf} || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 	emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 	if use daemon; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 	fi&lt;br /&gt;
 	if use remote; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Copy the files directory from PORTAGE:&lt;br /&gt;
  cp -r /usr/portage/net-p2p/amule/files files&lt;br /&gt;
&lt;br /&gt;
7. Remove the unneeded files:&lt;br /&gt;
  rm files/*.patch&lt;br /&gt;
&lt;br /&gt;
8. Digest the ebuild:&lt;br /&gt;
  ebuild amule-9732.ebuild digest&lt;br /&gt;
&lt;br /&gt;
9. As you can see, this ebuild depend on x11-libs/wxGTK-2.8.12 which is not yet in portage. You can find it at [http://bugs.gentoo.org/show_bug.cgi?id=363319 Gentoo's Bugzilla – Bug 363319]. What you have to do is to dpwnload the ebuild from bugzilla and put it into the x11-libs/wxGTK directory of your overlay. You must also copy the files directory from PORTAGE and digest the ebuild:&lt;br /&gt;
  cd /usr/local/portage/x11-libs/wxGTK&lt;br /&gt;
  cp -r /usr/portage/x11-libs/wxGTK/files files&lt;br /&gt;
  ebuild wxGTK-2.8.12.ebuild digest&lt;br /&gt;
&lt;br /&gt;
10. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
11. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
12. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
13. As other programs can depend on wxGTK, it can be a good opportunity to update your system as usual. emerge --sync, and so on as explained into the handbook.&lt;br /&gt;
&lt;br /&gt;
==== Possible crash ====&lt;br /&gt;
On my ~amd64 system, I get a crash at amule startup with recent libcrypto++ versions.&lt;br /&gt;
To avoid it, mask it into /etc/portage/package.mask:&lt;br /&gt;
 echo =dev-libs/crypto++-5.6.0 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 echo =dev-libs/crypto++-5.6.0-r1 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 echo dev-libs/crypto++-5.6.1 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 emerge -a crypto++ amule&lt;br /&gt;
 revdep-rebuild&lt;br /&gt;
Revdep-rebuild didn't find anything into my system, but it is safer to run it anyway.&lt;br /&gt;
&lt;br /&gt;
Another solution is to use the ebuild and the patch in [http://bugs.gentoo.org/show_bug.cgi?id=322713 bug 322713] for merging the last version of libcrypto++.&lt;br /&gt;
&lt;br /&gt;
'''Update:''' It look like to be fixed. If it should append again with the same crypto++ version, please ask to reopen this bug.&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2011-10-14T19:46:12Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* amule SVN  + mmap USE flag; DEB_HOST_ARCH=&amp;quot;no&amp;quot; */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 01.08.2009 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. As such, [[aMule]] comes in a variety of versions. This article will cover the installation of the last PORTAGE version, and of [[aMule SVN]] through a personal overlay.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
1. Show what will be done:&lt;br /&gt;
  emerge -pv amule&lt;br /&gt;
2. Adjust your USE flags for amule into ''/etc/portage/package.use&lt;br /&gt;
&lt;br /&gt;
3. Emerge amule:&lt;br /&gt;
  emerge -a amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay Overlay: Creating_a_local_overlay]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;. As aMule is using the revision to name the tarball, we will use it for the '''version_date_of_the_tarball'''.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-9732.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 31 July 2009 revision 9732 that was working fine for me, but you can change the revision like you want.  Be careful to choose a version number available on the [http://amule.sourceforge.net/tarballs/ tarballs page], otherwise your ebuild will fail.&lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2011 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 EAPI=&amp;quot;3&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic kde4-base wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_P=&amp;quot;aMule-SVN-r${PV}&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}&amp;quot;/${MY_P}&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://amule.sourceforge.net/tarballs/${MY_P}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;daemon debug ed2k fileview geoip gtk mmap nls plasma remote static stats unicode upnp xchat&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8.12*&lt;br /&gt;
 	&amp;gt;=dev-libs/crypto++-5.5.2&lt;br /&gt;
 	&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 	stats? ( &amp;gt;=media-libs/gd-2.0.26[jpeg] )&lt;br /&gt;
 	geoip? ( dev-libs/geoip )&lt;br /&gt;
 	plasma? ( kde-base/kdelibs )&lt;br /&gt;
 	upnp? ( &amp;gt;=net-libs/libupnp-1.6.6 )&lt;br /&gt;
 	remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 	unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RDEPEND=&amp;quot;$DEPEND&lt;br /&gt;
 	xchat? ( net-irc/xchat[perl] )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 	if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use daemon; then&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;You have to specify at least one of gtk, remote or daemon&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 		einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use daemon || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_configure() {&lt;br /&gt;
 	local myconf&lt;br /&gt;
 &lt;br /&gt;
 	WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk; then&lt;br /&gt;
 		einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets unicode&lt;br /&gt;
 	else&lt;br /&gt;
 		einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets base&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk ; then&lt;br /&gt;
 		use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-wxcas&lt;br /&gt;
 			--enable-alc&amp;quot;&lt;br /&gt;
 		use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-amule-gui&amp;quot;&lt;br /&gt;
 	else&lt;br /&gt;
 		myconf=&amp;quot;&lt;br /&gt;
 			--disable-monolithic&lt;br /&gt;
 			--disable-amule-gui&lt;br /&gt;
 			--disable-wxcas&lt;br /&gt;
 			--disable-alc&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	DEB_HOST_ARCH=&amp;quot;no&amp;quot; econf \&lt;br /&gt;
 		--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 		--enable-amulecmd \&lt;br /&gt;
 		$(use_enable debug) \&lt;br /&gt;
 		$(use_enable !debug optimize) \&lt;br /&gt;
 		$(use_enable daemon amule-daemon) \&lt;br /&gt;
 		$(use_enable ed2k) \&lt;br /&gt;
 		$(use_enable fileview) \&lt;br /&gt;
 		$(use_enable geoip) \&lt;br /&gt;
 		$(use_enable mmap) \&lt;br /&gt;
 		$(use_enable nls) \&lt;br /&gt;
 		$(use_enable plasma plasmamule ) \&lt;br /&gt;
 		$(use_enable remote webserver) \&lt;br /&gt;
 		$(use_enable static) \&lt;br /&gt;
 		$(use_enable stats cas) \&lt;br /&gt;
 		$(use_enable stats alcc) \&lt;br /&gt;
 		$(use_enable upnp) \&lt;br /&gt;
 		$(use_enable xchat xas) \&lt;br /&gt;
 		${myconf} || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 	emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 	if use daemon; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 	fi&lt;br /&gt;
 	if use remote; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Copy the files directory from PORTAGE:&lt;br /&gt;
  cp -r /usr/portage/net-p2p/amule/files files&lt;br /&gt;
&lt;br /&gt;
7. Remove the unneeded files:&lt;br /&gt;
  rm files/*.patch&lt;br /&gt;
&lt;br /&gt;
8. Digest the ebuild:&lt;br /&gt;
  ebuild amule-9732.ebuild digest&lt;br /&gt;
&lt;br /&gt;
9. As you can see, this ebuild depend on x11-libs/wxGTK-2.8.12 which is not yet in portage. You can find it at [http://bugs.gentoo.org/show_bug.cgi?id=363319 Gentoo's Bugzilla – Bug 363319]. What you have to do is to dpwnload the ebuild from bugzilla and put it into the x11-libs/wxGTK directory of your overlay. You must also copy the files directory from PORTAGE and digest the ebuild:&lt;br /&gt;
  cd /usr/local/portage/x11-libs/wxGTK&lt;br /&gt;
  cp -r /usr/portage/x11-libs/wxGTK/files files&lt;br /&gt;
  ebuild wxGTK-2.8.12.ebuild digest&lt;br /&gt;
&lt;br /&gt;
10. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
11. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
12. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
13. As other programs can depend on wxGTK, it can be a good opportunity to update your system as usual. emerge --sync, and so on as explained into the handbook.&lt;br /&gt;
&lt;br /&gt;
==== Possible crash ====&lt;br /&gt;
On my ~amd64 system, I get a crash at amule startup with recent libcrypto++ versions.&lt;br /&gt;
To avoid it, mask it into /etc/portage/package.mask:&lt;br /&gt;
 echo =dev-libs/crypto++-5.6.0 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 echo =dev-libs/crypto++-5.6.0-r1 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 echo dev-libs/crypto++-5.6.1 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 emerge -a crypto++ amule&lt;br /&gt;
 revdep-rebuild&lt;br /&gt;
Revdep-rebuild didn't find anything into my system, but it is safer to run it anyway.&lt;br /&gt;
&lt;br /&gt;
Another solution is to use the ebuild and the patch in [http://bugs.gentoo.org/show_bug.cgi?id=322713 bug 322713] for merging the last version of libcrypto++.&lt;br /&gt;
&lt;br /&gt;
'''Update:''' It look like to be fixed. If it should append again with the same crypto++ version, please ask to reopen this bug.&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2011-04-16T16:23:22Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* amule SVN */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 01.08.2009 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. As such, [[aMule]] comes in a variety of versions. This article will cover the installation of the last PORTAGE version, and of [[aMule SVN]] through a personal overlay.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
1. Show what will be done:&lt;br /&gt;
  emerge -pv amule&lt;br /&gt;
2. Adjust your USE flags for amule into ''/etc/portage/package.use&lt;br /&gt;
&lt;br /&gt;
3. Emerge amule:&lt;br /&gt;
  emerge -a amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay Overlay: Creating_a_local_overlay]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;. As aMule is using the revision to name the tarball, we will use it for the '''version_date_of_the_tarball'''.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-9732.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 31 July 2009 revision 9732 that was working fine for me, but you can change the revision like you want.  Be careful to choose a version number available on the [http://amule.sourceforge.net/tarballs/ tarballs page], otherwise your ebuild will fail.&lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2011 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 EAPI=&amp;quot;3&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic kde4-base wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_P=&amp;quot;aMule-SVN-r${PV}&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}&amp;quot;/${MY_P}&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://amule.sourceforge.net/tarballs/${MY_P}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;daemon debug ed2k fileview geoip gtk nls plasma remote static stats unicode upnp xchat&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8.12*&lt;br /&gt;
 	&amp;gt;=dev-libs/crypto++-5.5.2&lt;br /&gt;
 	&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 	stats? ( &amp;gt;=media-libs/gd-2.0.26[jpeg] )&lt;br /&gt;
 	geoip? ( dev-libs/geoip )&lt;br /&gt;
 	plasma? ( kde-base/kdelibs )&lt;br /&gt;
 	upnp? ( &amp;gt;=net-libs/libupnp-1.6.6 )&lt;br /&gt;
 	remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 	unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RDEPEND=&amp;quot;$DEPEND&lt;br /&gt;
 	xchat? ( net-irc/xchat[perl] )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 	if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use daemon; then&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;You have to specify at least one of gtk, remote or daemon&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 		einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use daemon || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_configure() {&lt;br /&gt;
 	local myconf&lt;br /&gt;
 &lt;br /&gt;
 	WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk; then&lt;br /&gt;
 		einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets unicode&lt;br /&gt;
 	else&lt;br /&gt;
 		einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets base&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk ; then&lt;br /&gt;
 		use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-wxcas&lt;br /&gt;
 			--enable-alc&amp;quot;&lt;br /&gt;
 		use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-amule-gui&amp;quot;&lt;br /&gt;
 	else&lt;br /&gt;
 		myconf=&amp;quot;&lt;br /&gt;
 			--disable-monolithic&lt;br /&gt;
 			--disable-amule-gui&lt;br /&gt;
 			--disable-wxcas&lt;br /&gt;
 			--disable-alc&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	econf \&lt;br /&gt;
 		--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 		--enable-amulecmd \&lt;br /&gt;
 		$(use_enable debug) \&lt;br /&gt;
 		$(use_enable !debug optimize) \&lt;br /&gt;
 		$(use_enable daemon amule-daemon) \&lt;br /&gt;
 		$(use_enable ed2k) \&lt;br /&gt;
 		$(use_enable fileview) \&lt;br /&gt;
 		$(use_enable geoip) \&lt;br /&gt;
 		$(use_enable nls) \&lt;br /&gt;
 		$(use_enable plasma plasmamule ) \&lt;br /&gt;
 		$(use_enable remote webserver) \&lt;br /&gt;
 		$(use_enable static) \&lt;br /&gt;
 		$(use_enable stats cas) \&lt;br /&gt;
 		$(use_enable stats alcc) \&lt;br /&gt;
 		$(use_enable upnp) \&lt;br /&gt;
 		$(use_enable xchat xas) \&lt;br /&gt;
 		${myconf} || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 	emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 	if use daemon; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 	fi&lt;br /&gt;
 	if use remote; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Copy the files directory from PORTAGE:&lt;br /&gt;
  cp -r /usr/portage/net-p2p/amule/files files&lt;br /&gt;
&lt;br /&gt;
7. Remove the unneeded files:&lt;br /&gt;
  rm files/*.patch&lt;br /&gt;
&lt;br /&gt;
8. Digest the ebuild:&lt;br /&gt;
  ebuild amule-9732.ebuild digest&lt;br /&gt;
&lt;br /&gt;
9. As you can see, this ebuild depend on x11-libs/wxGTK-2.8.12 which is not yet in portage. You can find it at [http://bugs.gentoo.org/show_bug.cgi?id=363319 Gentoo's Bugzilla – Bug 363319]. What you have to do is to dpwnload the ebuild from bugzilla and put it into the x11-libs/wxGTK directory of your overlay. You must also copy the files directory from PORTAGE and digest the ebuild:&lt;br /&gt;
  cd /usr/local/portage/x11-libs/wxGTK&lt;br /&gt;
  cp -r /usr/portage/x11-libs/wxGTK/files files&lt;br /&gt;
  ebuild wxGTK-2.8.12.ebuild digest&lt;br /&gt;
&lt;br /&gt;
10. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
11. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
12. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
13. As other programs can depend on wxGTK, it can be a good opportunity to update your system as usual. emerge --sync, and so on as explained into the handbook.&lt;br /&gt;
&lt;br /&gt;
==== Possible crash ====&lt;br /&gt;
On my ~amd64 system, I get a crash at amule startup with recent libcrypto++ versions.&lt;br /&gt;
To avoid it, mask it into /etc/portage/package.mask:&lt;br /&gt;
 echo =dev-libs/crypto++-5.6.0 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 echo =dev-libs/crypto++-5.6.0-r1 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 echo dev-libs/crypto++-5.6.1 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 emerge -a crypto++ amule&lt;br /&gt;
 revdep-rebuild&lt;br /&gt;
Revdep-rebuild didn't find anything into my system, but it is safer to run it anyway.&lt;br /&gt;
&lt;br /&gt;
Another solution is to use the ebuild and the patch in [http://bugs.gentoo.org/show_bug.cgi?id=322713 bug 322713] for merging the last version of libcrypto++.&lt;br /&gt;
&lt;br /&gt;
'''Update:''' It look like to be fixed. If it should append again with the same crypto++ version, please ask to reopen this bug.&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2011-04-12T18:00:37Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* amule SVN */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 01.08.2009 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. As such, [[aMule]] comes in a variety of versions. This article will cover the installation of the last PORTAGE version, and of [[aMule SVN]] through a personal overlay.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
1. Show what will be done:&lt;br /&gt;
  emerge -pv amule&lt;br /&gt;
2. Adjust your USE flags for amule into ''/etc/portage/package.use&lt;br /&gt;
&lt;br /&gt;
3. Emerge amule:&lt;br /&gt;
  emerge -a amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay Overlay: Creating_a_local_overlay]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;. As aMule is using the revision to name the tarball, we will use it for the '''version_date_of_the_tarball'''.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-9732.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 31 July 2009 revision 9732 that was working fine for me, but you can change the revision like you want.  Be careful to choose a version number available on the [http://amule.sourceforge.net/tarballs/ tarballs page], otherwise your ebuild will fail.&lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2011 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 EAPI=&amp;quot;2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic kde4-base wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_P=&amp;quot;aMule-SVN-r${PV}&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}&amp;quot;/${MY_P}&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://amule.sourceforge.net/tarballs/${MY_P}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;daemon debug ed2k fileview geoip gtk nls plasma remote static stats unicode upnp xchat&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8.12*&lt;br /&gt;
 	&amp;gt;=dev-libs/crypto++-5.5.2&lt;br /&gt;
 	&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 	stats? ( &amp;gt;=media-libs/gd-2.0.26[jpeg] )&lt;br /&gt;
 	geoip? ( dev-libs/geoip )&lt;br /&gt;
 	plasma? ( kde-base/kdelibs )&lt;br /&gt;
 	upnp? ( &amp;gt;=net-libs/libupnp-1.6.6 )&lt;br /&gt;
 	remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 	unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RDEPEND=&amp;quot;$DEPEND&lt;br /&gt;
 	xchat? ( net-irc/xchat[perl] )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 	if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use daemon; then&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;You have to specify at least one of gtk, remote or daemon&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 		einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use daemon || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_configure() {&lt;br /&gt;
 	local myconf&lt;br /&gt;
 &lt;br /&gt;
 	WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk; then&lt;br /&gt;
 		einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets unicode&lt;br /&gt;
 	else&lt;br /&gt;
 		einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets base&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk ; then&lt;br /&gt;
 		use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-wxcas&lt;br /&gt;
 			--enable-alc&amp;quot;&lt;br /&gt;
 		use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-amule-gui&amp;quot;&lt;br /&gt;
 	else&lt;br /&gt;
 		myconf=&amp;quot;&lt;br /&gt;
 			--disable-monolithic&lt;br /&gt;
 			--disable-amule-gui&lt;br /&gt;
 			--disable-wxcas&lt;br /&gt;
 			--disable-alc&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	econf \&lt;br /&gt;
 		--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 		--enable-amulecmd \&lt;br /&gt;
 		$(use_enable debug) \&lt;br /&gt;
 		$(use_enable !debug optimize) \&lt;br /&gt;
 		$(use_enable daemon amule-daemon) \&lt;br /&gt;
 		$(use_enable ed2k) \&lt;br /&gt;
 		$(use_enable fileview) \&lt;br /&gt;
 		$(use_enable geoip) \&lt;br /&gt;
 		$(use_enable nls) \&lt;br /&gt;
 		$(use_enable plasma plasmamule ) \&lt;br /&gt;
 		$(use_enable remote webserver) \&lt;br /&gt;
 		$(use_enable static) \&lt;br /&gt;
 		$(use_enable stats cas) \&lt;br /&gt;
 		$(use_enable stats alcc) \&lt;br /&gt;
 		$(use_enable upnp) \&lt;br /&gt;
 		$(use_enable xchat xas) \&lt;br /&gt;
 		${myconf} || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 	emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 	if use daemon; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 	fi&lt;br /&gt;
 	if use remote; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Copy the files directory from PORTAGE:&lt;br /&gt;
  cp -r /usr/portage/net-p2p/amule/files files&lt;br /&gt;
&lt;br /&gt;
7. Remove the unneeded files:&lt;br /&gt;
  rm files/*.patch&lt;br /&gt;
&lt;br /&gt;
8. Digest the ebuild:&lt;br /&gt;
  ebuild amule-9732.ebuild digest&lt;br /&gt;
&lt;br /&gt;
9. As you can see, this ebuild depend on x11-libs/wxGTK-2.8.12 which is not yet in portage. You can find it at [http://bugs.gentoo.org/show_bug.cgi?id=363319 Gentoo's Bugzilla – Bug 363319]. What you have to do is to dpwnload the ebuild from bugzilla and put it into the x11-libs/wxGTK directory of your overlay. You must also copy the files directory from PORTAGE and digest the ebuild:&lt;br /&gt;
  cd /usr/local/portage/x11-libs/wxGTK&lt;br /&gt;
  cp -r /usr/portage/x11-libs/wxGTK/files files&lt;br /&gt;
  ebuild wxGTK-2.8.12.ebuild digest&lt;br /&gt;
&lt;br /&gt;
10. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
11. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
12. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
13. As other programs can depend on wxGTK, it can be a good opportunity to update your system as usual. emerge --sync, and so on as explained into the handbook.&lt;br /&gt;
&lt;br /&gt;
==== Possible crash ====&lt;br /&gt;
On my ~amd64 system, I get a crash at amule startup with recent libcrypto++ versions.&lt;br /&gt;
To avoid it, mask it into /etc/portage/package.mask:&lt;br /&gt;
 echo =dev-libs/crypto++-5.6.0 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 echo =dev-libs/crypto++-5.6.0-r1 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 echo dev-libs/crypto++-5.6.1 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 emerge -a crypto++ amule&lt;br /&gt;
 revdep-rebuild&lt;br /&gt;
Revdep-rebuild didn't find anything into my system, but it is safer to run it anyway.&lt;br /&gt;
&lt;br /&gt;
Another solution is to use the ebuild and the patch in [http://bugs.gentoo.org/show_bug.cgi?id=322713 bug 322713] for merging the last version of libcrypto++.&lt;br /&gt;
&lt;br /&gt;
'''Update:''' It look like to be fixed. If it should append again with the same crypto++ version, please ask to reopen this bug.&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2011-04-12T17:22:38Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* amule SVN */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 01.08.2009 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. As such, [[aMule]] comes in a variety of versions. This article will cover the installation of the last PORTAGE version, and of [[aMule SVN]] through a personal overlay.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
1. Show what will be done:&lt;br /&gt;
  emerge -pv amule&lt;br /&gt;
2. Adjust your USE flags for amule into ''/etc/portage/package.use&lt;br /&gt;
&lt;br /&gt;
3. Emerge amule:&lt;br /&gt;
  emerge -a amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay Overlay: Creating_a_local_overlay]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;. As aMule is using the revision to name the tarball, we will use it for the '''version_date_of_the_tarball'''.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-9732.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 31 July 2009 revision 9732 that was working fine for me, but you can change the revision like you want.  Be careful to choose a version number available on the [http://amule.sourceforge.net/tarballs/ tarballs page], otherwise your ebuild will fail.&lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2009 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 EAPI=&amp;quot;2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 # bleeding-edge development&lt;br /&gt;
 MY_P=&amp;quot;aMule-SVN-r${PV}&amp;quot;&lt;br /&gt;
 # 2_2_X branch, currently unavailable&lt;br /&gt;
 # MY_P=&amp;quot;aMule-SVN-r${PV}-RELEASE-2_2_X&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 S=&amp;quot;${WORKDIR}/${MY_P}&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://amule.sourceforge.net/tarballs/${MY_P}.tar.bz2&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;daemon debug geoip gtk nls remote stats unicode upnp xchat&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8.12*&lt;br /&gt;
 	&amp;gt;=dev-libs/crypto++-5.5.2&lt;br /&gt;
 	&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 	stats? ( &amp;gt;=media-libs/gd-2.0.26[jpeg] )&lt;br /&gt;
 	geoip? ( dev-libs/geoip )&lt;br /&gt;
 	upnp? ( &amp;gt;=net-libs/libupnp-1.6.6 )&lt;br /&gt;
 	remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 	unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RDEPEND=&amp;quot;$DEPEND&lt;br /&gt;
 	xchat? ( net-irc/xchat[perl] )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
  &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 	if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use daemon; then&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;You have to specify at least one of gtk, remote or daemon&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 		einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use daemon || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_configure() {&lt;br /&gt;
 	local myconf&lt;br /&gt;
 &lt;br /&gt;
 	WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk; then&lt;br /&gt;
 		einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets unicode&lt;br /&gt;
 	else&lt;br /&gt;
 		einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets base&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk ; then&lt;br /&gt;
 		use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-wxcas&lt;br /&gt;
 			--enable-alc&amp;quot;&lt;br /&gt;
 		use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-amule-gui&amp;quot;&lt;br /&gt;
 	else&lt;br /&gt;
 		myconf=&amp;quot;&lt;br /&gt;
 			--disable-monolithic&lt;br /&gt;
 			--disable-amule-gui&lt;br /&gt;
 			--disable-wxcas&lt;br /&gt;
 			--disable-alc&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	econf \&lt;br /&gt;
 		--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 		--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 		--enable-amulecmd \&lt;br /&gt;
 		$(use_enable debug) \&lt;br /&gt;
 		$(use_enable !debug optimize) \&lt;br /&gt;
 		$(use_enable daemon amule-daemon) \&lt;br /&gt;
 		$(use_enable geoip) \&lt;br /&gt;
 		$(use_enable nls) \&lt;br /&gt;
 		$(use_enable remote webserver) \&lt;br /&gt;
 		$(use_enable stats cas) \&lt;br /&gt;
 		$(use_enable stats alcc) \&lt;br /&gt;
 		$(use_enable xchat xas) \&lt;br /&gt;
 		${myconf} || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 	emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 	if use daemon; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 	fi&lt;br /&gt;
 	if use remote; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Copy the files directory from PORTAGE:&lt;br /&gt;
  cp -r /usr/portage/net-p2p/amule/files files&lt;br /&gt;
&lt;br /&gt;
7. Remove the unneeded files:&lt;br /&gt;
  rm files/*.patch&lt;br /&gt;
&lt;br /&gt;
8. Digest the ebuild:&lt;br /&gt;
  ebuild amule-9732.ebuild digest&lt;br /&gt;
&lt;br /&gt;
9. As you can see, this ebuild depend on x11-libs/wxGTK-2.8.12 which is not yet in portage. You can find it at [http://bugs.gentoo.org/show_bug.cgi?id=363319 Gentoo's Bugzilla – Bug 363319]. What you have to do is to dpwnload the ebuild from bugzilla and put it into the x11-libs/wxGTK directory of your overlay. You must also copy the files directory from PORTAGE and digest the ebuild:&lt;br /&gt;
  cd /usr/local/portage/x11-libs/wxGTK&lt;br /&gt;
  cp -r /usr/portage/x11-libs/wxGTK/files files&lt;br /&gt;
  ebuild wxGTK-2.8.12.ebuild digest&lt;br /&gt;
&lt;br /&gt;
10. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
11. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
12. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
13. As other programs can depend on wxGTK, it can be a good opportunity to update your system as usual. emerge --sync, and so on as explained into the handbook.&lt;br /&gt;
&lt;br /&gt;
==== Possible crash ====&lt;br /&gt;
On my ~amd64 system, I get a crash at amule startup with recent libcrypto++ versions.&lt;br /&gt;
To avoid it, mask it into /etc/portage/package.mask:&lt;br /&gt;
 echo =dev-libs/crypto++-5.6.0 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 echo =dev-libs/crypto++-5.6.0-r1 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 echo dev-libs/crypto++-5.6.1 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 emerge -a crypto++ amule&lt;br /&gt;
 revdep-rebuild&lt;br /&gt;
Revdep-rebuild didn't find anything into my system, but it is safer to run it anyway.&lt;br /&gt;
&lt;br /&gt;
Another solution is to use the ebuild and the patch in [http://bugs.gentoo.org/show_bug.cgi?id=322713 bug 322713] for merging the last version of libcrypto++.&lt;br /&gt;
&lt;br /&gt;
'''Update:''' It look like to be fixed. If it should append again with the same crypto++ version, please ask to reopen this bug.&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2011-04-12T17:17:38Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* amule SVN */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 01.08.2009 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. As such, [[aMule]] comes in a variety of versions. This article will cover the installation of the last PORTAGE version, and of [[aMule SVN]] through a personal overlay.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
1. Show what will be done:&lt;br /&gt;
  emerge -pv amule&lt;br /&gt;
2. Adjust your USE flags for amule into ''/etc/portage/package.use&lt;br /&gt;
&lt;br /&gt;
3. Emerge amule:&lt;br /&gt;
  emerge -a amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay Overlay: Creating_a_local_overlay]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;. As aMule is using the revision to name the tarball, we will use it for the '''version_date_of_the_tarball'''.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-9732.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 31 July 2009 revision 9732 that was working fine for me, but you can change the revision like you want.  Be careful to choose a version number available on the [http://amule.sourceforge.net/tarballs/ tarballs page], otherwise your ebuild will fail.&lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2009 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 EAPI=&amp;quot;2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 # bleeding-edge development&lt;br /&gt;
 MY_P=&amp;quot;aMule-SVN-r${PV}&amp;quot;&lt;br /&gt;
 # 2_2_X branch, currently unavailable&lt;br /&gt;
 # MY_P=&amp;quot;aMule-SVN-r${PV}-RELEASE-2_2_X&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 S=&amp;quot;${WORKDIR}/${MY_P}&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://amule.sourceforge.net/tarballs/${MY_P}.tar.bz2&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;daemon debug geoip gtk nls remote stats unicode upnp xchat&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8.12&lt;br /&gt;
 	&amp;gt;=dev-libs/crypto++-5.5.2&lt;br /&gt;
 	&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 	stats? ( &amp;gt;=media-libs/gd-2.0.26[jpeg] )&lt;br /&gt;
 	geoip? ( dev-libs/geoip )&lt;br /&gt;
 	upnp? ( &amp;gt;=net-libs/libupnp-1.6.6 )&lt;br /&gt;
 	remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 	unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RDEPEND=&amp;quot;$DEPEND&lt;br /&gt;
 	xchat? ( net-irc/xchat[perl] )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
  &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 	if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use daemon; then&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;You have to specify at least one of gtk, remote or daemon&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 		einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use daemon || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_configure() {&lt;br /&gt;
 	local myconf&lt;br /&gt;
 &lt;br /&gt;
 	WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk; then&lt;br /&gt;
 		einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets unicode&lt;br /&gt;
 	else&lt;br /&gt;
 		einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets base&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk ; then&lt;br /&gt;
 		use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-wxcas&lt;br /&gt;
 			--enable-alc&amp;quot;&lt;br /&gt;
 		use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-amule-gui&amp;quot;&lt;br /&gt;
 	else&lt;br /&gt;
 		myconf=&amp;quot;&lt;br /&gt;
 			--disable-monolithic&lt;br /&gt;
 			--disable-amule-gui&lt;br /&gt;
 			--disable-wxcas&lt;br /&gt;
 			--disable-alc&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	econf \&lt;br /&gt;
 		--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 		--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 		--enable-amulecmd \&lt;br /&gt;
 		$(use_enable debug) \&lt;br /&gt;
 		$(use_enable !debug optimize) \&lt;br /&gt;
 		$(use_enable daemon amule-daemon) \&lt;br /&gt;
 		$(use_enable geoip) \&lt;br /&gt;
 		$(use_enable nls) \&lt;br /&gt;
 		$(use_enable remote webserver) \&lt;br /&gt;
 		$(use_enable stats cas) \&lt;br /&gt;
 		$(use_enable stats alcc) \&lt;br /&gt;
 		$(use_enable xchat xas) \&lt;br /&gt;
 		${myconf} || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 	emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 	if use daemon; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 	fi&lt;br /&gt;
 	if use remote; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Copy the files directory from PORTAGE:&lt;br /&gt;
  cp -r /usr/portage/net-p2p/amule/files files&lt;br /&gt;
&lt;br /&gt;
7. Remove the unneeded files:&lt;br /&gt;
  rm files/*.patch&lt;br /&gt;
&lt;br /&gt;
8. Digest the ebuild:&lt;br /&gt;
  ebuild amule-9732.ebuild digest&lt;br /&gt;
&lt;br /&gt;
9. As you can see, this ebuild depend on x11-libs/wxGTK-2.8.12 which is not yet in portage. You can find it at [http://bugs.gentoo.org/show_bug.cgi?id=363319 Gentoo's Bugzilla – Bug 363319]. What you have to do is to dpwnload the ebuild from bugzilla and put it into the x11-libs/wxGTK directory of your overlay. You must also copy the files directory from PORTAGE and digest the ebuild:&lt;br /&gt;
  cd /usr/local/portage/x11-libs/wxGTK&lt;br /&gt;
  cp -r /usr/portage/x11-libs/wxGTK/files files&lt;br /&gt;
  ebuild wxGTK-2.8.12.ebuild digest&lt;br /&gt;
&lt;br /&gt;
10. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
11. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
12. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
13. As other programs can depend on wxGTK, it can be a good opportunity to update your system as usual. emerge --sync, and so on as explained into the handbook.&lt;br /&gt;
&lt;br /&gt;
==== Possible crash ====&lt;br /&gt;
On my ~amd64 system, I get a crash at amule startup with recent libcrypto++ versions.&lt;br /&gt;
To avoid it, mask it into /etc/portage/package.mask:&lt;br /&gt;
 echo =dev-libs/crypto++-5.6.0 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 echo =dev-libs/crypto++-5.6.0-r1 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 echo dev-libs/crypto++-5.6.1 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 emerge -a crypto++ amule&lt;br /&gt;
 revdep-rebuild&lt;br /&gt;
Revdep-rebuild didn't find anything into my system, but it is safer to run it anyway.&lt;br /&gt;
&lt;br /&gt;
Another solution is to use the ebuild and the patch in [http://bugs.gentoo.org/show_bug.cgi?id=322713 bug 322713] for merging the last version of libcrypto++.&lt;br /&gt;
&lt;br /&gt;
'''Update:''' It look like to be fixed. If it should append again with the same crypto++ version, please ask to reopen this bug.&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/Ed2k_links_handling</id>
		<title>Ed2k links handling</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/Ed2k_links_handling"/>
				<updated>2011-02-05T12:59:48Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* Add multiple downloads to aMule at once */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[Ed2k_links_handling-de|Deutsch]] | &lt;br /&gt;
[[Ed2k_links_handling-nl|Nederlands]] | &lt;br /&gt;
[[Ed2k_links_handling-ko_KR|Korean]] | &lt;br /&gt;
[[Ed2k_links_handling-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The way to make [[aMule]] handle your [[ed2k link|ed2k links]] on your favorite web browser will depend on which web browser you use and which operating system you have installed. So, here's a list of mini-HowTos for each of the most popular web browsers and operating systems.&lt;br /&gt;
&lt;br /&gt;
Have in mind that everywhere on this document, ''/path/to/ed2k'' should be replaced with ''/usr/local/bin/ed2k'', ''/usr/bin/ed2k'', ''c:\Program Files\aMule\ed2k.exe'' or whatever, depending on your own system's configuration.&lt;br /&gt;
&lt;br /&gt;
= Local handling of ed2k links =&lt;br /&gt;
== GNU/Linux ==&lt;br /&gt;
As a general idea, in most [http://www.kernel.org Linux] systems, self-compiled [[aMule]]s will install the [[FAQ_ed2k_command|ed2k]] utility in ''/usr/local/bin/ed2k'', while package-installed [[aMule]]s will install it in ''/usr/bin/ed2k''. As an exception, it is known that [http://www.opensuse.org SuSE] packages install it in ''/usr/local/bin/ed2k''.&lt;br /&gt;
&lt;br /&gt;
If you have installed Debian or Ubuntu '''you must install''' &amp;quot;'''amule-utils'''&amp;quot; (and &amp;quot;'''amule-ed2k'''&amp;quot; only for Debian) to get this way working.&lt;br /&gt;
&lt;br /&gt;
To know where amule and ed2k are located, just do ''which amule'' and ''which ed2k'' in console!&lt;br /&gt;
&lt;br /&gt;
=== [http://www.mozilla.org/products/firefox Firefox] 2 and 3 (or later)===&lt;br /&gt;
Handling ED2k links in Firefox can be configured in two ways: either for an individual user, or for all users of the computer.&lt;br /&gt;
&lt;br /&gt;
==== Configuration for a single user ====&lt;br /&gt;
*Insert ''about:config'' in the address bar&lt;br /&gt;
&lt;br /&gt;
*Right click on the list, select '''New''', then '''Boolean'''; insert ''network.protocol-handler.external.ed2k'' as '''Preference Name''' and ''true'' as '''Value'''&lt;br /&gt;
&lt;br /&gt;
*Now another right click, select '''New''' and '''String'''; insert ''network.protocol-handler.app.ed2k'' as '''Preference Name''' and ''/path/to/ed2k'' (path to where the file is installed on your system) as '''Value'''.&lt;br /&gt;
&lt;br /&gt;
For Ubuntu Lucid users, you should set the Value to just &amp;quot;ed2k&amp;quot; instead of &amp;quot;/usr/bin/ed2k&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
For Firefox 3 and higher only, you should also:&lt;br /&gt;
&lt;br /&gt;
*Right click on the list, select '''New''', then '''Boolean'''; insert ''network.protocol-handler.expose.ed2k'' as '''Preference Name''' and ''false'' as '''Value'''&lt;br /&gt;
&lt;br /&gt;
After that, click over an ed2k link, and Firefox should ask which app you want to use to open the link. Choose /usr/bin/ed2k and it should work.&lt;br /&gt;
&lt;br /&gt;
[[Image:Ed2k-ff3.png]]&lt;br /&gt;
&lt;br /&gt;
==== System-wide configuration ====&lt;br /&gt;
*Having root privileges, open the file ''/usr/share/firefox/greprefs/all.js'' (or ''/usr/local/share/firefox/greprefs/all.js'') in a text editor&lt;br /&gt;
&lt;br /&gt;
*Add the following lines at the end of the file:&lt;br /&gt;
 // ED2K link handling&lt;br /&gt;
 pref(&amp;quot;network.protocol-handler.external.ed2k&amp;quot;, true);&lt;br /&gt;
 pref(&amp;quot;network.protocol-handler.app.ed2k&amp;quot;, &amp;quot;/path/to/ed2k&amp;quot;);&lt;br /&gt;
Substitute the &amp;quot;/path/to/ed2k&amp;quot; string with the program's real path.&lt;br /&gt;
&lt;br /&gt;
For Firefox 3 and higher only:&lt;br /&gt;
*Add yet another line to the ''all.js''file:&lt;br /&gt;
 pref(&amp;quot;network.protocol-handler.expose.ed2k&amp;quot;, false);&lt;br /&gt;
&lt;br /&gt;
After saving changes, restart the browser. After clicking over an ed2k link, Firefox should ask which app you want to use to open the link. Choose /usr/local/bin/ed2k and it should work.&lt;br /&gt;
&lt;br /&gt;
==== Add multiple downloads to aMule at once ====&lt;br /&gt;
Setup Firefox as already explained and install the [https://addons.mozilla.org/fr/firefox/addon/firemule/ FireMule] module for Firefox.&lt;br /&gt;
&lt;br /&gt;
=== [http://wiki.debian.org/Iceweasel Iceweasel] ===&lt;br /&gt;
&lt;br /&gt;
==== Configuration for a single user ====&lt;br /&gt;
In addition to what was said for Firefox, do the following:&lt;br /&gt;
*Right click on the list, select '''New''', then '''Boolean'''; insert ''network.protocol-handler.warn-external.ed2k'' as '''Preference Name''' and ''true'' as '''Value'''.&lt;br /&gt;
This is necessary so that Iceweasel asks you which application you want to use to open the link.&lt;br /&gt;
&lt;br /&gt;
=== [http://www.opera.com Opera]  ===&lt;br /&gt;
&lt;br /&gt;
In [http://www.opera.com Opera] go to ''Tools -&amp;gt; Preferences -&amp;gt; Programms -&amp;gt; Add...''&lt;br /&gt;
&lt;br /&gt;
In the &amp;quot;Protocol&amp;quot; field enter ''ed2k''&lt;br /&gt;
&lt;br /&gt;
In the &amp;quot;Open with another application&amp;quot; field enter ''/path/to/ed2k''&lt;br /&gt;
&lt;br /&gt;
[[Image:Ed2k-op.png]]&lt;br /&gt;
&lt;br /&gt;
=== [http://www.konqueror.org Konqueror] ===&lt;br /&gt;
To have ed2k links work from [http://www.konqueror.com Konqueror] you have to add a protocol-file to the directory with the other protocol-files. You can find this directory by searching for file names ending with ''.protocol''. To search run ''`find /usr -name &amp;quot;*.protocol&amp;quot;`'' or ''`find /opt -name &amp;quot;*.protocol&amp;quot;`''. If you're not sure about the directory where KDE is installed you can even put ''/'' as search path.&lt;br /&gt;
&lt;br /&gt;
If the search was successful, create a file named like ''ed2k.protocol'' in the mentioned directory:&lt;br /&gt;
 [Protocol]&lt;br /&gt;
 exec=/path/to/ed2k &amp;quot;%u&amp;quot;&lt;br /&gt;
 protocol=ed2k&lt;br /&gt;
 input=none&lt;br /&gt;
 output=none&lt;br /&gt;
 helper=true&lt;br /&gt;
 listing=false&lt;br /&gt;
 reading=false&lt;br /&gt;
 writing=false&lt;br /&gt;
 makedir=false&lt;br /&gt;
 deleting=false&lt;br /&gt;
&lt;br /&gt;
Now just restart [http://www.konqueror.org Konqueror].&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' You might get a security warning. don't worry. it is just warning you that the link is being sent to an external application.&lt;br /&gt;
&lt;br /&gt;
'''NOTE2:''' If after clicking ''OK'' on the security warning the link is still not being sent to [[aMule]], just right-click on the [[ed2k link]] and tell [http://www.konqueror.org Konqueror] to open it in a new window/tab.&lt;br /&gt;
&lt;br /&gt;
=== [http://galeon.sourceforge.net Galeon] ===&lt;br /&gt;
&lt;br /&gt;
Execute the following three commands to create the appropriate ''gconf'' keys:&lt;br /&gt;
&lt;br /&gt;
*''gconftool-2 -t string -s /desktop/gnome/url-handlers/ed2k/command &amp;quot;/usr/bin/ed2k \&amp;quot;%s\&amp;quot;&amp;quot;''&lt;br /&gt;
*''gconftool-2 -t bool -s /desktop/gnome/url-handlers/ed2k/enabled true''&lt;br /&gt;
*''gconftool-2 -t bool -s /desktop/gnome/url-handlers/ed2k/needs_terminal false''&lt;br /&gt;
&lt;br /&gt;
Replace &amp;quot;''/usr/bin/ed2k''&amp;quot; above with the path and name of the ''ed2k'' executable on your system.&lt;br /&gt;
&lt;br /&gt;
Uninstalling this protocol handler is similarly simple:&lt;br /&gt;
*''gconftool-2 -u /desktop/gnome/url-handlers/ed2k --recursive-unset''&lt;br /&gt;
&lt;br /&gt;
=== [http://xray.sai.msu.ru/~karpov/links-hacked Links] ===&lt;br /&gt;
(Probably this will work for the usual links and/or [[ed2k link|elinks]], too)&lt;br /&gt;
&lt;br /&gt;
add to ''url.c'' behind the lines about telnet and tn3270:&lt;br /&gt;
  ''--snip''&lt;br /&gt;
  ''{&amp;quot;ed2k&amp;quot;, 0, NULL, ed2k_func, 0, 0, 0},''&lt;br /&gt;
  ''--snap''&lt;br /&gt;
&lt;br /&gt;
add to ''links.h'' behind the definitions of /* mailto.c */:&lt;br /&gt;
  ''--snip''&lt;br /&gt;
  ''void ed2k_func(struct session *, unsigned char *);''&lt;br /&gt;
  ''--snap''&lt;br /&gt;
&lt;br /&gt;
add to ''mailto.c'' at the end:&lt;br /&gt;
  ''--snip''&lt;br /&gt;
  ''void ed2k_func(struct session *ses, unsigned char *url)''&lt;br /&gt;
  ''{''&lt;br /&gt;
  ''tn_func(ses, url, options_get(&amp;quot;network_program_ed2k&amp;quot;), TEXT(T_ED2K), TEXT(T_BAD_ED2K_URL));''&lt;br /&gt;
  ''}''&lt;br /&gt;
  ''--snap''&lt;br /&gt;
&lt;br /&gt;
add to ''options_register.c'' behind telnet and tn3270:&lt;br /&gt;
  ''--snip''&lt;br /&gt;
  ''register_option_char(&amp;quot;network_program_ed2k&amp;quot;, TEXT(T_ED2K_PROG),NULL,2);''&lt;br /&gt;
  ''--snap''&lt;br /&gt;
&lt;br /&gt;
add to ''intl/*.lng'' behind &lt;br /&gt;
  ''&amp;quot;T_TN3270_PROG&amp;quot;: T_ED2K_PROG, &amp;quot;ed2k program&amp;quot;,'' (or whatever that is in your language), behind&lt;br /&gt;
  ''&amp;quot;T_TN3270&amp;quot;: T_ED2K, &amp;quot;ed2k&amp;quot;,'' and behind &lt;br /&gt;
  ''&amp;quot;T_BAD_TN3270_URL&amp;quot;: T_BAD_ED2K_URL'' (I guess you've got the picture)&lt;br /&gt;
&lt;br /&gt;
If you want to automatize this stuff, execute the following commands:&lt;br /&gt;
  ''cd intl''&lt;br /&gt;
  ''for l in *.lng; do''&lt;br /&gt;
    ''cp $l $l.bak''&lt;br /&gt;
    ''cat $l.bak | sed -e &amp;quot;/T_TN3270_PROG*/aT_ED2K_PROG\, \&amp;quot;ed2k program\&amp;quot;\,&amp;quot; \''&lt;br /&gt;
     ''-e &amp;quot;/T_TN3270,\ */aT_ED2K\, \&amp;quot;ed2k\&amp;quot;\,&amp;quot; \''&lt;br /&gt;
     ''-e &amp;quot;/T_BAD_TN3270_URL*/aT_BAD_ED2K_URL\, \&amp;quot;Bad ed2k url\&amp;quot;\,&amp;quot; &amp;gt; $l''&lt;br /&gt;
  ''done''&lt;br /&gt;
  &lt;br /&gt;
Anyway, run afterwards before recompiling links-hacked:&lt;br /&gt;
  ''./synclang''&lt;br /&gt;
  ''cd ..''&lt;br /&gt;
&lt;br /&gt;
Now you can compile with&lt;br /&gt;
  ''./configure'' (add your favourite options here) ''&amp;amp;&amp;amp;''&lt;br /&gt;
  ''make &amp;amp;&amp;amp;''&lt;br /&gt;
  ''make install''&lt;br /&gt;
&lt;br /&gt;
Because links somewhat malforms the urls, we need a small bash script handler:&lt;br /&gt;
  ''cat &amp;gt; /usr/bin/ed2k4links.sh &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;''&lt;br /&gt;
  ''#!/bin/bash''&lt;br /&gt;
  ''ed2k $(echo &amp;quot;ed2k://$1&amp;quot; | sed s/_/\|/g)''&lt;br /&gt;
  ''EOF''&lt;br /&gt;
  ''chmod a+x /usr/bin/ed2k4links.sh''&lt;br /&gt;
&lt;br /&gt;
Do not forget to setup links (Options-&amp;gt;Network Options-&amp;gt;Mail and Telnet Programs) to call our ''ed2k4links.sh'' for [[ed2k link]]s:&lt;br /&gt;
  ''ed2k4links.sh %''&lt;br /&gt;
&lt;br /&gt;
Attention: The Percent Mark is important! Now links should work with [[ed2k link]]s.&lt;br /&gt;
&lt;br /&gt;
== Windows ==&lt;br /&gt;
To make Windows aware of the ed2k link protocol we need to add some keys to the registry. Create a file called ed2k.reg and add this code:&lt;br /&gt;
 REGEDIT4&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k]&lt;br /&gt;
 @=&amp;quot;URL: ed2k Protocol&amp;quot;&lt;br /&gt;
 &amp;quot;URL Protocol&amp;quot;=&amp;quot;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\DefaultIcon]&lt;br /&gt;
 @=&amp;quot;C:\\Program Files\\aMule\\amulegui.exe&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\shell]&lt;br /&gt;
 @=&amp;quot;open&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\shell\open]&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\shell\open\command]&lt;br /&gt;
 @=&amp;quot;\&amp;quot;C:\\Program Files\\aMule\\ed2k\&amp;quot; \&amp;quot;%1\&amp;quot;&amp;quot;&lt;br /&gt;
Save the file and run it (double click) to add these keys to the registry.&lt;br /&gt;
&lt;br /&gt;
If your config directory is in d:\amule\config instead of the default place you have to pass it as an option:&lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\shell\open\command]&lt;br /&gt;
 @=&amp;quot;\&amp;quot;C:\\Program Files\\aMule\\ed2k\&amp;quot; -c d:\\amule\\config \&amp;quot;%1\&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== [http://www.microsoft.com/windows/ie Internet Explorer] ===&lt;br /&gt;
Internet Explorer will recognize ed2k links with just the changes in the registry.&lt;br /&gt;
&lt;br /&gt;
== Mac OS X ==&lt;br /&gt;
&lt;br /&gt;
Adapted from Ken's post in the [http://forum.amule.org/index.php?topic=5679.msg30209#msg30209 forum].&lt;br /&gt;
&lt;br /&gt;
# Run aMule at least once&lt;br /&gt;
# Run Safari (even if you normally use Firefox or another browser)&lt;br /&gt;
# Browse to a page with an ed2k link that you want to download&lt;br /&gt;
# Drag the link to the location field at the top of the window&lt;br /&gt;
# The OS will present a dialog asking if you want to allow a program to run to handle the link.  Allow it.&lt;br /&gt;
&lt;br /&gt;
Now, the program that helps aMule handle ed2k links is known to the system.&lt;br /&gt;
&lt;br /&gt;
=== Safari ===&lt;br /&gt;
If you use Safari, you will have to drag the link to the location field every time.  For unclear reasons, Safari will not process ed2k (or other non-Apple protocol) links if you click on them.&lt;br /&gt;
&lt;br /&gt;
=== Firefox ===&lt;br /&gt;
If you use Firefox, clicking on an ed2k link will work. The first time, for security purposes, Firefox will present a dialog asking if you want to allow the helper program to run. (Yes, even though the OS already asked you the same question.) After that, it will work just as you would expect.&lt;br /&gt;
&lt;br /&gt;
= Remote handling of ed2k links =&lt;br /&gt;
You can also handle links remotely, which means that you click over an [[ed2k link]] in a browser somewhere in the world and it gets into your home's [[aMule]] queue. It works by using [[aMuleCMD]] instead of using the [[ed2k command]].&lt;br /&gt;
&lt;br /&gt;
== Linux ==&lt;br /&gt;
Instead of using the [[ed2k command]], use the following as the command to use:&lt;br /&gt;
&lt;br /&gt;
''/'''path'''/'''to'''/amulecmd -h $server -P $pw -c &amp;quot;Add %u&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Obviously, you'll have to replace ''$server'' and ''$pw'' with your server's [[IP address|IP]] (or [http://www.webopedia.com/TERM/D/DNS.html DNS]) and your [[External Connections]] password.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' In [http://www.mozilla.org Firefox], it is not possible to start a command with parameters. An easy solution is a shell script with the command described above. You only have to replace %u with $1. This shell script must be executable (chmod +x ed2k.sh) and defined as external ed2k app in Firefox.&lt;br /&gt;
&lt;br /&gt;
== Windows ==&lt;br /&gt;
Make sure aMule is installed with the [[aMuleCMD]] option checked.&lt;br /&gt;
&lt;br /&gt;
We need a batch script to handle the ed2k links from the browser, and we need to add some keys to the registry to make the browser recognize the ed2k links. Things are different for 32 and 64 bit versions of Windows so pick the right section below. After you created the files and updated the registry, configure your browser if neccesary.&lt;br /&gt;
&lt;br /&gt;
=== 32 bit ===&lt;br /&gt;
Create a file named '''ed2k_remote.bat''' containing the following code:&lt;br /&gt;
 @echo off&lt;br /&gt;
 set link=%1&lt;br /&gt;
 for /f &amp;quot;useback tokens=*&amp;quot; %%a in ('%link%') do set link=%%~a&lt;br /&gt;
 &amp;quot;c:\Program Files\aMule\amulecmd.exe&amp;quot; /h '''server''' /P '''pass''' /c &amp;quot;add %link%&amp;quot;&lt;br /&gt;
Don't forget to replace '''server''' and '''pass''' with your data and save the file in your aMule directory ''C:\Program Files\aMule''.&lt;br /&gt;
&lt;br /&gt;
Create a file named '''ed2k_remote.reg''' containing the following code:&lt;br /&gt;
 REGEDIT4&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k]&lt;br /&gt;
 @=&amp;quot;URL: ed2k Protocol&amp;quot;&lt;br /&gt;
 &amp;quot;URL Protocol&amp;quot;=&amp;quot;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\DefaultIcon]&lt;br /&gt;
 @=&amp;quot;C:\\Program Files\\aMule\\amulegui.exe&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\shell]&lt;br /&gt;
 @=&amp;quot;open&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\shell\open]&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\shell\open\command]&lt;br /&gt;
 @=&amp;quot;\&amp;quot;C:\\Program Files\\aMule\\ed2k_remote.bat\&amp;quot; \&amp;quot;%1\&amp;quot;&amp;quot;&lt;br /&gt;
Save the file and run it (double click) to add these keys to the registry.&lt;br /&gt;
&lt;br /&gt;
=== 64 bit ===&lt;br /&gt;
Create a file named '''ed2k_remote.bat''' containing the following code:&lt;br /&gt;
 @echo off&lt;br /&gt;
 set link=%1&lt;br /&gt;
 for /f &amp;quot;useback tokens=*&amp;quot; %%a in ('%link%') do set link=%%~a&lt;br /&gt;
 &amp;quot;c:\Program Files (x86)\aMule\amulecmd.exe&amp;quot; /h '''server''' /P '''pass''' /c &amp;quot;add %link%&amp;quot;&lt;br /&gt;
Don't forget to replace '''server''' and '''pass''' with your data and save the file in your aMule directory ''C:\Program Files (x86)\aMule''.&lt;br /&gt;
&lt;br /&gt;
Create a file named '''ed2k_remote_64.reg''' containing the following code:&lt;br /&gt;
 REGEDIT4&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k]&lt;br /&gt;
 @=&amp;quot;URL: ed2k Protocol&amp;quot;&lt;br /&gt;
 &amp;quot;URL Protocol&amp;quot;=&amp;quot;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\DefaultIcon]&lt;br /&gt;
 @=&amp;quot;C:\\Program Files (x86)\\aMule\\amulegui.exe&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\shell]&lt;br /&gt;
 @=&amp;quot;open&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\shell\open]&lt;br /&gt;
 &lt;br /&gt;
 [HKEY_CLASSES_ROOT\ed2k\shell\open\command]&lt;br /&gt;
 @=&amp;quot;\&amp;quot;C:\\Program Files (x86)\\aMule\\ed2k_remote.bat\&amp;quot; \&amp;quot;%1\&amp;quot;&amp;quot;&lt;br /&gt;
Save the file and run it (double click) to add these keys to the registry.&lt;br /&gt;
&lt;br /&gt;
=== Internet Explorer ===&lt;br /&gt;
You should be OK with just the changes to the registry and the batch script in your aMule directory.&lt;br /&gt;
&lt;br /&gt;
=== Safari ===&lt;br /&gt;
Safari will take over the settings in the registry, like Internet Explorer.&lt;br /&gt;
&lt;br /&gt;
=== Chrome ===&lt;br /&gt;
Chrome will take over the settings in the registry. It asks for confirmation, so tick the &amp;quot;Don't ask me again&amp;quot; box.&lt;br /&gt;
[[File:Chrome confirm.png]]&lt;br /&gt;
&lt;br /&gt;
=== Firefox ===&lt;br /&gt;
The first time you click an ed2k link in Firefox you will get the following dialog:&lt;br /&gt;
&lt;br /&gt;
[[Image:Firefox ed2k link.PNG]]&lt;br /&gt;
&lt;br /&gt;
Tick the Remember box and click OK.&lt;br /&gt;
&lt;br /&gt;
=== Opera ===&lt;br /&gt;
Open the preferences window and click the Programs tab&lt;br /&gt;
&lt;br /&gt;
[[Image:Opera preferences programs.PNG]]&lt;br /&gt;
&lt;br /&gt;
Click the Add... button&lt;br /&gt;
&lt;br /&gt;
Make Opera aware of the ed2k link protocol with these settings:&lt;br /&gt;
&lt;br /&gt;
[[Image:Opera_protocols_ed2k.PNG]]&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/Talk:HowTo_Compile_In_Gentoo</id>
		<title>Talk:HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/Talk:HowTo_Compile_In_Gentoo"/>
				<updated>2010-10-21T16:14:46Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;PORTAGE_OVERLAY=&amp;quot;/usr/local/portage&amp;quot; can't be use anymore must use :&lt;br /&gt;
&lt;br /&gt;
PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
'''Done'''&lt;br /&gt;
&lt;br /&gt;
--------------------------&lt;br /&gt;
&lt;br /&gt;
You forgot to mention that the (allegedly stable) build usually fails.  For a while it worked only with the crypto++ library installed; now it doesn't compile at all.  Perhaps this is because of the recent gcc 3.4 update, but I don't know for sure.&lt;br /&gt;
&lt;br /&gt;
Done. It is a bug into recent libcrypto++. 2 solutions, see the article. &lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------&lt;br /&gt;
&lt;br /&gt;
Also, you should add the fact that, you *must not* have &amp;quot;-gtk&amp;quot; in your USE flags... It was a real pain in the ... grass to find out, because the error message displayed gets you to search around problems with wxGTK and such...&lt;br /&gt;
&lt;br /&gt;
Résumé: -gtk must not be in the USE flags, else, it won't compile, even though other dependencies will&lt;br /&gt;
&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
  # emerge -vp amule&lt;br /&gt;
  &lt;br /&gt;
  These are the packages that would be merged, in order:&lt;br /&gt;
  &lt;br /&gt;
  Calculating dependencies... done!&lt;br /&gt;
  [ebuild   R   ] net-p2p/amule-9900  USE=&amp;quot;daemon debug geoip gtk&lt;br /&gt;
 nls remote stats unicode upnp -xchat&amp;quot; 0 kB [1]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compile and work fine here on ~amd64 with gcc-4.4.2, gtk+-2.18.3 and wxGTK-2.8.10.1. --[[User:Libre|Libre]] 16:45, 14 December 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
And it depend of what you want to do. Wuth USE=&amp;quot;-gtk&amp;quot;, it will compile the console version, and you will be able to control it from your browser or from another computer with the appropriate setup. --[[User:Libre|Libre]] 16:14, 21 October 2010 (UTC)&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2010-10-21T16:04:56Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* Possible crash */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 01.08.2009 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. As such, [[aMule]] comes in a variety of versions. This article will cover the installation of the last PORTAGE version, and of [[aMule SVN]] through a personal overlay.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
1. Show what will be done:&lt;br /&gt;
  emerge -pv amule&lt;br /&gt;
2. Adjust your USE flags for amule into ''/etc/portage/package.use&lt;br /&gt;
&lt;br /&gt;
3. Emerge amule:&lt;br /&gt;
  emerge -a amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay Overlay: Creating_a_local_overlay]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;. As aMule is using the revision to name the tarball, we will use it for the '''version_date_of_the_tarball'''.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-9732.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 31 July 2009 revision 9732 that was working fine for me, but you can change the revision like you want.  Be careful to choose a version number available on the [http://amule.sourceforge.net/tarballs/ tarballs page], otherwise your ebuild will fail.&lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2009 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 EAPI=&amp;quot;2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 # bleeding-edge development&lt;br /&gt;
 MY_P=&amp;quot;aMule-SVN-r${PV}&amp;quot;&lt;br /&gt;
 # 2_2_X branch, currently unavailable&lt;br /&gt;
 # MY_P=&amp;quot;aMule-SVN-r${PV}-RELEASE-2_2_X&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 S=&amp;quot;${WORKDIR}/${MY_P}&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://amule.sourceforge.net/tarballs/${MY_P}.tar.bz2&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;daemon debug geoip gtk nls remote stats unicode upnp xchat&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8*&lt;br /&gt;
 	&amp;gt;=dev-libs/crypto++-5.5.2&lt;br /&gt;
 	&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 	stats? ( &amp;gt;=media-libs/gd-2.0.26[jpeg] )&lt;br /&gt;
 	geoip? ( dev-libs/geoip )&lt;br /&gt;
 	upnp? ( &amp;gt;=net-libs/libupnp-1.6.6 )&lt;br /&gt;
 	remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 	unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RDEPEND=&amp;quot;$DEPEND&lt;br /&gt;
 	xchat? ( net-irc/xchat[perl] )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
  &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 	if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use daemon; then&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;You have to specify at least one of gtk, remote or daemon&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 		einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use daemon || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_configure() {&lt;br /&gt;
 	local myconf&lt;br /&gt;
 &lt;br /&gt;
 	WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk; then&lt;br /&gt;
 		einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets unicode&lt;br /&gt;
 	else&lt;br /&gt;
 		einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets base&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk ; then&lt;br /&gt;
 		use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-wxcas&lt;br /&gt;
 			--enable-alc&amp;quot;&lt;br /&gt;
 		use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-amule-gui&amp;quot;&lt;br /&gt;
 	else&lt;br /&gt;
 		myconf=&amp;quot;&lt;br /&gt;
 			--disable-monolithic&lt;br /&gt;
 			--disable-amule-gui&lt;br /&gt;
 			--disable-wxcas&lt;br /&gt;
 			--disable-alc&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	econf \&lt;br /&gt;
 		--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 		--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 		--enable-amulecmd \&lt;br /&gt;
 		$(use_enable debug) \&lt;br /&gt;
 		$(use_enable !debug optimize) \&lt;br /&gt;
 		$(use_enable daemon amule-daemon) \&lt;br /&gt;
 		$(use_enable geoip) \&lt;br /&gt;
 		$(use_enable nls) \&lt;br /&gt;
 		$(use_enable remote webserver) \&lt;br /&gt;
 		$(use_enable stats cas) \&lt;br /&gt;
 		$(use_enable stats alcc) \&lt;br /&gt;
 		$(use_enable xchat xas) \&lt;br /&gt;
 		${myconf} || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 	emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 	if use daemon; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 	fi&lt;br /&gt;
 	if use remote; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Copy the files directory from PORTAGE:&lt;br /&gt;
  cp -r /usr/portage/net-p2p/amule/files files&lt;br /&gt;
&lt;br /&gt;
7. Remove the unneeded files:&lt;br /&gt;
  rm files/*.patch&lt;br /&gt;
&lt;br /&gt;
8. Digest the ebuild:&lt;br /&gt;
  ebuild amule-9732.ebuild digest&lt;br /&gt;
&lt;br /&gt;
9. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
10. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
9. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
==== Possible crash ====&lt;br /&gt;
On my ~amd64 system, I get a crash at amule startup with recent libcrypto++ versions.&lt;br /&gt;
To avoid it, mask it into /etc/portage/package.mask:&lt;br /&gt;
 echo =dev-libs/crypto++-5.6.0 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 echo =dev-libs/crypto++-5.6.0-r1 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 echo dev-libs/crypto++-5.6.1 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 emerge -a crypto++ amule&lt;br /&gt;
 revdep-rebuild&lt;br /&gt;
Revdep-rebuild didn't find anything into my system, but it is safer to run it anyway.&lt;br /&gt;
&lt;br /&gt;
Another solution is to use the ebuild and the patch in [http://bugs.gentoo.org/show_bug.cgi?id=322713 bug 322713] for merging the last version of libcrypto++.&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2010-10-10T23:46:30Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* Possible crash */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 01.08.2009 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. As such, [[aMule]] comes in a variety of versions. This article will cover the installation of the last PORTAGE version, and of [[aMule SVN]] through a personal overlay.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
1. Show what will be done:&lt;br /&gt;
  emerge -pv amule&lt;br /&gt;
2. Adjust your USE flags for amule into ''/etc/portage/package.use&lt;br /&gt;
&lt;br /&gt;
3. Emerge amule:&lt;br /&gt;
  emerge -a amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay Overlay: Creating_a_local_overlay]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;. As aMule is using the revision to name the tarball, we will use it for the '''version_date_of_the_tarball'''.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-9732.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 31 July 2009 revision 9732 that was working fine for me, but you can change the revision like you want.  Be careful to choose a version number available on the [http://amule.sourceforge.net/tarballs/ tarballs page], otherwise your ebuild will fail.&lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2009 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 EAPI=&amp;quot;2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 # bleeding-edge development&lt;br /&gt;
 MY_P=&amp;quot;aMule-SVN-r${PV}&amp;quot;&lt;br /&gt;
 # 2_2_X branch, currently unavailable&lt;br /&gt;
 # MY_P=&amp;quot;aMule-SVN-r${PV}-RELEASE-2_2_X&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 S=&amp;quot;${WORKDIR}/${MY_P}&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://amule.sourceforge.net/tarballs/${MY_P}.tar.bz2&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;daemon debug geoip gtk nls remote stats unicode upnp xchat&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8*&lt;br /&gt;
 	&amp;gt;=dev-libs/crypto++-5.5.2&lt;br /&gt;
 	&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 	stats? ( &amp;gt;=media-libs/gd-2.0.26[jpeg] )&lt;br /&gt;
 	geoip? ( dev-libs/geoip )&lt;br /&gt;
 	upnp? ( &amp;gt;=net-libs/libupnp-1.6.6 )&lt;br /&gt;
 	remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 	unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RDEPEND=&amp;quot;$DEPEND&lt;br /&gt;
 	xchat? ( net-irc/xchat[perl] )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
  &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 	if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use daemon; then&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;You have to specify at least one of gtk, remote or daemon&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 		einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use daemon || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_configure() {&lt;br /&gt;
 	local myconf&lt;br /&gt;
 &lt;br /&gt;
 	WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk; then&lt;br /&gt;
 		einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets unicode&lt;br /&gt;
 	else&lt;br /&gt;
 		einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets base&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk ; then&lt;br /&gt;
 		use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-wxcas&lt;br /&gt;
 			--enable-alc&amp;quot;&lt;br /&gt;
 		use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-amule-gui&amp;quot;&lt;br /&gt;
 	else&lt;br /&gt;
 		myconf=&amp;quot;&lt;br /&gt;
 			--disable-monolithic&lt;br /&gt;
 			--disable-amule-gui&lt;br /&gt;
 			--disable-wxcas&lt;br /&gt;
 			--disable-alc&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	econf \&lt;br /&gt;
 		--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 		--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 		--enable-amulecmd \&lt;br /&gt;
 		$(use_enable debug) \&lt;br /&gt;
 		$(use_enable !debug optimize) \&lt;br /&gt;
 		$(use_enable daemon amule-daemon) \&lt;br /&gt;
 		$(use_enable geoip) \&lt;br /&gt;
 		$(use_enable nls) \&lt;br /&gt;
 		$(use_enable remote webserver) \&lt;br /&gt;
 		$(use_enable stats cas) \&lt;br /&gt;
 		$(use_enable stats alcc) \&lt;br /&gt;
 		$(use_enable xchat xas) \&lt;br /&gt;
 		${myconf} || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 	emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 	if use daemon; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 	fi&lt;br /&gt;
 	if use remote; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Copy the files directory from PORTAGE:&lt;br /&gt;
  cp -r /usr/portage/net-p2p/amule/files files&lt;br /&gt;
&lt;br /&gt;
7. Remove the unneeded files:&lt;br /&gt;
  rm files/*.patch&lt;br /&gt;
&lt;br /&gt;
8. Digest the ebuild:&lt;br /&gt;
  ebuild amule-9732.ebuild digest&lt;br /&gt;
&lt;br /&gt;
9. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
10. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
9. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
==== Possible crash ====&lt;br /&gt;
On my ~amd64 system, I get a crash at amule startup with recent libcrypto++ versions.&lt;br /&gt;
To avoid it, mask it into /etc/portage/package.mask:&lt;br /&gt;
 echo =dev-libs/crypto++-5.6.0 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 echo =dev-libs/crypto++-5.6.0-r1 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 echo dev-libs/crypto++-5.6.1 &amp;gt;&amp;gt; /etc/portage/package.mask&lt;br /&gt;
 emerge -a crypto++ amule&lt;br /&gt;
 revdep-rebuild&lt;br /&gt;
Revdep-rebuild didn't find anything into my system, but it is safer to run it anyway.&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2010-10-10T23:29:10Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* amule SVN */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 01.08.2009 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. As such, [[aMule]] comes in a variety of versions. This article will cover the installation of the last PORTAGE version, and of [[aMule SVN]] through a personal overlay.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
1. Show what will be done:&lt;br /&gt;
  emerge -pv amule&lt;br /&gt;
2. Adjust your USE flags for amule into ''/etc/portage/package.use&lt;br /&gt;
&lt;br /&gt;
3. Emerge amule:&lt;br /&gt;
  emerge -a amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay Overlay: Creating_a_local_overlay]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;. As aMule is using the revision to name the tarball, we will use it for the '''version_date_of_the_tarball'''.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-9732.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 31 July 2009 revision 9732 that was working fine for me, but you can change the revision like you want.  Be careful to choose a version number available on the [http://amule.sourceforge.net/tarballs/ tarballs page], otherwise your ebuild will fail.&lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2009 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 EAPI=&amp;quot;2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 # bleeding-edge development&lt;br /&gt;
 MY_P=&amp;quot;aMule-SVN-r${PV}&amp;quot;&lt;br /&gt;
 # 2_2_X branch, currently unavailable&lt;br /&gt;
 # MY_P=&amp;quot;aMule-SVN-r${PV}-RELEASE-2_2_X&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 S=&amp;quot;${WORKDIR}/${MY_P}&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://amule.sourceforge.net/tarballs/${MY_P}.tar.bz2&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;daemon debug geoip gtk nls remote stats unicode upnp xchat&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8*&lt;br /&gt;
 	&amp;gt;=dev-libs/crypto++-5.5.2&lt;br /&gt;
 	&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 	stats? ( &amp;gt;=media-libs/gd-2.0.26[jpeg] )&lt;br /&gt;
 	geoip? ( dev-libs/geoip )&lt;br /&gt;
 	upnp? ( &amp;gt;=net-libs/libupnp-1.6.6 )&lt;br /&gt;
 	remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 	unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RDEPEND=&amp;quot;$DEPEND&lt;br /&gt;
 	xchat? ( net-irc/xchat[perl] )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
  &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 	if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use daemon; then&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;You have to specify at least one of gtk, remote or daemon&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 		einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use daemon || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_configure() {&lt;br /&gt;
 	local myconf&lt;br /&gt;
 &lt;br /&gt;
 	WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk; then&lt;br /&gt;
 		einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets unicode&lt;br /&gt;
 	else&lt;br /&gt;
 		einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets base&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk ; then&lt;br /&gt;
 		use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-wxcas&lt;br /&gt;
 			--enable-alc&amp;quot;&lt;br /&gt;
 		use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-amule-gui&amp;quot;&lt;br /&gt;
 	else&lt;br /&gt;
 		myconf=&amp;quot;&lt;br /&gt;
 			--disable-monolithic&lt;br /&gt;
 			--disable-amule-gui&lt;br /&gt;
 			--disable-wxcas&lt;br /&gt;
 			--disable-alc&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	econf \&lt;br /&gt;
 		--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 		--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 		--enable-amulecmd \&lt;br /&gt;
 		$(use_enable debug) \&lt;br /&gt;
 		$(use_enable !debug optimize) \&lt;br /&gt;
 		$(use_enable daemon amule-daemon) \&lt;br /&gt;
 		$(use_enable geoip) \&lt;br /&gt;
 		$(use_enable nls) \&lt;br /&gt;
 		$(use_enable remote webserver) \&lt;br /&gt;
 		$(use_enable stats cas) \&lt;br /&gt;
 		$(use_enable stats alcc) \&lt;br /&gt;
 		$(use_enable xchat xas) \&lt;br /&gt;
 		${myconf} || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 	emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 	if use daemon; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 	fi&lt;br /&gt;
 	if use remote; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Copy the files directory from PORTAGE:&lt;br /&gt;
  cp -r /usr/portage/net-p2p/amule/files files&lt;br /&gt;
&lt;br /&gt;
7. Remove the unneeded files:&lt;br /&gt;
  rm files/*.patch&lt;br /&gt;
&lt;br /&gt;
8. Digest the ebuild:&lt;br /&gt;
  ebuild amule-9732.ebuild digest&lt;br /&gt;
&lt;br /&gt;
9. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
10. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
9. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
==== Possible crash ====&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/Talk:HowTo_Compile_In_Gentoo</id>
		<title>Talk:HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/Talk:HowTo_Compile_In_Gentoo"/>
				<updated>2009-12-14T16:45:46Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;PORTAGE_OVERLAY=&amp;quot;/usr/local/portage&amp;quot; can't be use anymore must use :&lt;br /&gt;
&lt;br /&gt;
PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
'''Done'''&lt;br /&gt;
&lt;br /&gt;
--------------------------&lt;br /&gt;
&lt;br /&gt;
You forgot to mention that the (allegedly stable) build usually fails.  For a while it worked only with the crypto++ library installed; now it doesn't compile at all.  Perhaps this is because of the recent gcc 3.4 update, but I don't know for sure.&lt;br /&gt;
&lt;br /&gt;
--------------------------&lt;br /&gt;
&lt;br /&gt;
Also, you should add the fact that, you *must not* have &amp;quot;-gtk&amp;quot; in your USE flags... It was a real pain in the ... grass to find out, because the error message displayed gets you to search around problems with wxGTK and such...&lt;br /&gt;
&lt;br /&gt;
Résumé: -gtk must not be in the USE flags, else, it won't compile, even though other dependencies will&lt;br /&gt;
&lt;br /&gt;
-------------&lt;br /&gt;
&lt;br /&gt;
  # emerge -vp amule&lt;br /&gt;
  &lt;br /&gt;
  These are the packages that would be merged, in order:&lt;br /&gt;
  &lt;br /&gt;
  Calculating dependencies... done!&lt;br /&gt;
  [ebuild   R   ] net-p2p/amule-9900  USE=&amp;quot;daemon debug geoip gtk&lt;br /&gt;
 nls remote stats unicode upnp -xchat&amp;quot; 0 kB [1]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compile and work fine here on ~amd64 with gcc-4.4.2, gtk+-2.18.3 and wxGTK-2.8.10.1. --[[User:Libre|Libre]] 16:45, 14 December 2009 (UTC)&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2009-08-27T16:29:16Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* amule SVN - updated ebuild for 2_2_X trunk */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 01.08.2009 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. As such, [[aMule]] comes in a variety of versions. This article will cover the installation of the last PORTAGE version, and of [[aMule SVN]] through a personal overlay.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
1. Show what will be done:&lt;br /&gt;
  emerge -pv amule&lt;br /&gt;
2. Adjust your USE flags for amule into ''/etc/portage/package.use&lt;br /&gt;
&lt;br /&gt;
3. Emerge amule:&lt;br /&gt;
  emerge -a amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay Overlay: Creating_a_local_overlay]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;. As aMule is using the revision to name the tarball, we will use it for the '''version_date_of_the_tarball'''.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-9732.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 31 July 2009 revision 9732 that was working fine for me, but you can change the revision like you want. &lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2009 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 EAPI=&amp;quot;2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 # old trunk&lt;br /&gt;
 # MY_P=&amp;quot;aMule-SVN-r${PV}&amp;quot;&lt;br /&gt;
 # current 2_2_X trunk&lt;br /&gt;
 MY_P=&amp;quot;aMule-SVN-r${PV}-RELEASE-2_2_X&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 S=&amp;quot;${WORKDIR}/${MY_P}&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://amule.sourceforge.net/tarballs/${MY_P}.tar.bz2&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;daemon debug geoip gtk nls remote stats unicode upnp xchat&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8*&lt;br /&gt;
 	&amp;gt;=dev-libs/crypto++-5.5.2&lt;br /&gt;
 	&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 	stats? ( &amp;gt;=media-libs/gd-2.0.26[jpeg] )&lt;br /&gt;
 	geoip? ( dev-libs/geoip )&lt;br /&gt;
 	upnp? ( &amp;gt;=net-libs/libupnp-1.6.6 )&lt;br /&gt;
 	remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 	unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RDEPEND=&amp;quot;$DEPEND&lt;br /&gt;
 	xchat? ( net-irc/xchat[perl] )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
  &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 	if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use daemon; then&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;You have to specify at least one of gtk, remote or daemon&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 		einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use daemon || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_configure() {&lt;br /&gt;
 	local myconf&lt;br /&gt;
 &lt;br /&gt;
 	WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk; then&lt;br /&gt;
 		einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets unicode&lt;br /&gt;
 	else&lt;br /&gt;
 		einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets base&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk ; then&lt;br /&gt;
 		use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-wxcas&lt;br /&gt;
 			--enable-alc&amp;quot;&lt;br /&gt;
 		use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-amule-gui&amp;quot;&lt;br /&gt;
 	else&lt;br /&gt;
 		myconf=&amp;quot;&lt;br /&gt;
 			--disable-monolithic&lt;br /&gt;
 			--disable-amule-gui&lt;br /&gt;
 			--disable-wxcas&lt;br /&gt;
 			--disable-alc&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	econf \&lt;br /&gt;
 		--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 		--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 		--enable-amulecmd \&lt;br /&gt;
 		$(use_enable debug) \&lt;br /&gt;
 		$(use_enable !debug optimize) \&lt;br /&gt;
 		$(use_enable daemon amule-daemon) \&lt;br /&gt;
 		$(use_enable geoip) \&lt;br /&gt;
 		$(use_enable nls) \&lt;br /&gt;
 		$(use_enable remote webserver) \&lt;br /&gt;
 		$(use_enable stats cas) \&lt;br /&gt;
 		$(use_enable stats alcc) \&lt;br /&gt;
 		$(use_enable xchat xas) \&lt;br /&gt;
 		${myconf} || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 	emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 	if use daemon; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 	fi&lt;br /&gt;
 	if use remote; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Copy the files directory from PORTAGE:&lt;br /&gt;
  cp -r /usr/portage/net-p2p/amule/files files&lt;br /&gt;
&lt;br /&gt;
7. Remove the unneeded files:&lt;br /&gt;
  rm files/*.patch&lt;br /&gt;
&lt;br /&gt;
8. Digest the ebuild:&lt;br /&gt;
  ebuild amule-9732.ebuild digest&lt;br /&gt;
&lt;br /&gt;
9. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
10. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
9. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2009-08-04T06:59:57Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* amule SVN - updated ebuild */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 01.08.2009 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. As such, [[aMule]] comes in a variety of versions. This article will cover the installation of the last PORTAGE version, and of [[aMule SVN]] through a personal overlay.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
1. Show what will be done:&lt;br /&gt;
  emerge -pv amule&lt;br /&gt;
2. Adjust your USE flags for amule into ''/etc/portage/package.use&lt;br /&gt;
&lt;br /&gt;
3. Emerge amule:&lt;br /&gt;
  emerge -a amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay Overlay: Creating_a_local_overlay]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;. As aMule is using the revision to name the tarball, we will use it for the '''version_date_of_the_tarball'''.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-9732.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 31 July 2009 revision 9732 that was working fine for me, but you can change the revision like you want. &lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2009 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 EAPI=&amp;quot;2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_P=&amp;quot;aMule-SVN-r${PV}&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}/${MY_P}&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://amule.sourceforge.net/tarballs/${MY_P}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;daemon debug geoip gtk nls remote stats unicode upnp xchat&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8*&lt;br /&gt;
 	&amp;gt;=dev-libs/crypto++-5.5.2&lt;br /&gt;
 	&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 	stats? ( &amp;gt;=media-libs/gd-2.0.26[jpeg] )&lt;br /&gt;
 	geoip? ( dev-libs/geoip )&lt;br /&gt;
 	upnp? ( &amp;gt;=net-libs/libupnp-1.6.6 )&lt;br /&gt;
 	remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 	unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RDEPEND=&amp;quot;$DEPEND&lt;br /&gt;
 	xchat? ( net-irc/xchat[perl] )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
  &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 	if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use daemon; then&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;You have to specify at least one of gtk, remote or daemon&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 		einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use daemon || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_configure() {&lt;br /&gt;
 	local myconf&lt;br /&gt;
 &lt;br /&gt;
 	WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk; then&lt;br /&gt;
 		einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets unicode&lt;br /&gt;
 	else&lt;br /&gt;
 		einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets base&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk ; then&lt;br /&gt;
 		use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-wxcas&lt;br /&gt;
 			--enable-alc&amp;quot;&lt;br /&gt;
 		use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-amule-gui&amp;quot;&lt;br /&gt;
 	else&lt;br /&gt;
 		myconf=&amp;quot;&lt;br /&gt;
 			--disable-monolithic&lt;br /&gt;
 			--disable-amule-gui&lt;br /&gt;
 			--disable-wxcas&lt;br /&gt;
 			--disable-alc&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	econf \&lt;br /&gt;
 		--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 		--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 		--enable-amulecmd \&lt;br /&gt;
 		$(use_enable debug) \&lt;br /&gt;
 		$(use_enable !debug optimize) \&lt;br /&gt;
 		$(use_enable daemon amule-daemon) \&lt;br /&gt;
 		$(use_enable geoip) \&lt;br /&gt;
 		$(use_enable nls) \&lt;br /&gt;
 		$(use_enable remote webserver) \&lt;br /&gt;
 		$(use_enable stats cas) \&lt;br /&gt;
 		$(use_enable stats alcc) \&lt;br /&gt;
 		$(use_enable xchat xas) \&lt;br /&gt;
 		${myconf} || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 	emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 	if use daemon; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 	fi&lt;br /&gt;
 	if use remote; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Copy the files directory from PORTAGE:&lt;br /&gt;
  cp -r /usr/portage/net-p2p/amule/files files&lt;br /&gt;
&lt;br /&gt;
7. Remove the unneeded files:&lt;br /&gt;
  rm files/*.patch&lt;br /&gt;
&lt;br /&gt;
8. Digest the ebuild:&lt;br /&gt;
  ebuild amule-9732.ebuild digest&lt;br /&gt;
&lt;br /&gt;
9. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
10. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
9. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/Backtraces</id>
		<title>Backtraces</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/Backtraces"/>
				<updated>2009-08-02T06:27:02Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* On Gentoo */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
[[Backtraces|English]] | &lt;br /&gt;
[[Backtraces-es|Espa&amp;amp;ntilde;ol]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Well, not hard to guess, this is about backtraces.&lt;br /&gt;
&lt;br /&gt;
Usually, it should not be necessary for the normal user to do this. However, we might have a bad day and release a somewhat buggy version or you are running [http://subversion.tigris.org SVN] which can also be unstable sometimes.&lt;br /&gt;
This is where the backtraces come in: if [[aMule]] crashes, and you get an &amp;quot;OOPS - aMule crashed&amp;quot; and so on, we'd like to know. The backtrace [[aMule]] provides is not always very usefull as it contains little information, but, as usual, there's a better way: A *real* backtrace.&lt;br /&gt;
&lt;br /&gt;
== The GNU Debugger ==&lt;br /&gt;
First of all, you need the [http://www.gnu.org/software/gdb/gdb.html GNU Debugger] installed. It's called ''gdb'' and you could check for that by typing ''which gdb'' in a console window. You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 $ which gdb&lt;br /&gt;
 /usr/bin/gdb&lt;br /&gt;
&lt;br /&gt;
If you don't have [http://www.gnu.org/software/gdb/gdb.html GDB] installed, you will get a message like this:&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 $ which gdb&lt;br /&gt;
 which: no gdb in (/bin:/usr/bin:[etc])&lt;br /&gt;
&lt;br /&gt;
If that is the case, the [http://www.gnu.org/software/gdb/gdb.html GNU Debugger] is most likely not installed on your system and you should install it before you proceed.&lt;br /&gt;
&lt;br /&gt;
If your OS is [http://www.gentoo.org Gentoo Linux] you have just to type this:&lt;br /&gt;
 # emerge -av gdb&lt;br /&gt;
&lt;br /&gt;
== Compiling [[aMule]] ==&lt;br /&gt;
Then, compile [[aMule]] with debugging information:&lt;br /&gt;
&lt;br /&gt;
 $ ./configure --enable-debug --disable-optimize --prefix=/where/to/install/aMule&lt;br /&gt;
 $ make&lt;br /&gt;
 $ make install&lt;br /&gt;
&lt;br /&gt;
If you do not want to overwrite you old copy of [[aMule]], simply do this instead:&lt;br /&gt;
&lt;br /&gt;
 $ ./configure --enable-debug --disable-optimize&lt;br /&gt;
 $ make&lt;br /&gt;
&lt;br /&gt;
[[aMule]] can then be run by going into the dir ''src'' and typing ''./amule''&lt;br /&gt;
&lt;br /&gt;
If you are unable or unwilling to recompile, or are running a RPM version, proceed anyway, but be aware that backtraces from debugging enabled builds are much more useful to us.&lt;br /&gt;
&lt;br /&gt;
=== On Gentoo ===&lt;br /&gt;
You must follow [http://www.gentoo.org/proj/en/qa/backtraces.xml How to get meaningful backtraces in Gentoo].&lt;br /&gt;
&lt;br /&gt;
In short, most gentoo users want to edit ''/etc/make.conf'', add ''-ggdb'' into their CFLAGS and&lt;br /&gt;
 FEATURES=&amp;quot;splitdebug&amp;quot;&lt;br /&gt;
Those are needed by gdb in order to find the debug symbols.&lt;br /&gt;
Emerge amule as usual with&lt;br /&gt;
 USE=&amp;quot;debug&amp;quot; emerge amule&lt;br /&gt;
If you don't use ''USE=&amp;quot;debug&amp;quot;'', you will get a little bit less information from gdb, so it is better to use it.&lt;br /&gt;
After merging amule, you can safely remove ''-ggdb'' and ''splitdebug'' from ''/etc/make.conf''.&lt;br /&gt;
&lt;br /&gt;
== Create a backtrace ==&lt;br /&gt;
Now create in your home directory the file ''.gdbinit'' and put these lines into it (or you can type them in at the ''(gdb)'' prompt later):&lt;br /&gt;
&lt;br /&gt;
 ha SIGPIPE nostop noprint pass&lt;br /&gt;
 ha SIG32 nostop noprint pass&lt;br /&gt;
 ha SIG33 nostop noprint pass&lt;br /&gt;
 ha SIG34 nostop noprint pass&lt;br /&gt;
&lt;br /&gt;
For those who want to know the meaning of the previous lines:&lt;br /&gt;
the first one avoid [http://www.gnu.org/software/gdb/gdb.html GDB] stopping at broken pipes;&lt;br /&gt;
the second one avoid [http://www.gnu.org/software/gdb/gdb.html GDB] stopping at new thread.&lt;br /&gt;
&lt;br /&gt;
To create a backtrace, open a console and do the following:&lt;br /&gt;
&lt;br /&gt;
 $ gdb /where/to/install/aMule/bin/amule&lt;br /&gt;
 (gdb) run&lt;br /&gt;
&lt;br /&gt;
Now use [[aMule]] normally until it crashes. If it crashes do the following:&lt;br /&gt;
&lt;br /&gt;
 (gdb) bt&lt;br /&gt;
 (gdb) bt full&lt;br /&gt;
 (gdb) thread apply all bt&lt;br /&gt;
&lt;br /&gt;
Post the output of the last three commands in the [http://forum.amule.org/index.php?board=33.0 backtraces forum] with some additional comment about the circumstances the segfault happened and what [[aMule]] version you used (or checkout time for [http://www.gnu.org/software/cvs CVS]).&lt;br /&gt;
&lt;br /&gt;
== The core file ==&lt;br /&gt;
If your [[aMule]] executable has been compiled with debug information (''--enable-debug'' configure flag), but you were not running it from within [http://www.gnu.org/software/gdb/gdb.html GDB], there is still a way to generate a backtrace, if your system was configured to generate '''core files'''.&lt;br /&gt;
&lt;br /&gt;
Core files are the full memory image of a process that crashed. Your session must be properly configured, so that the system generates core files. Add the following command to ''~/.bashrc'':&lt;br /&gt;
&lt;br /&gt;
''ulimit -c unlimited''&lt;br /&gt;
&lt;br /&gt;
Now, when a program crashes, suppose it generate the file ''core.1234'' (this name can be different, but usually will start with 'core') you can enter [http://www.gnu.org/software/gdb/gdb.html GDB] like that:&lt;br /&gt;
&lt;br /&gt;
''$ gdb --core=/path/to/amule /path/to/core/file/core.1234''&lt;br /&gt;
&lt;br /&gt;
REMARK: ''$ gdb /path/to/amule --core=/path/to/core/file/core.&amp;lt;pid&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
and then proceed as in the last session and issue 'bt' and 'bt full'.&lt;br /&gt;
&lt;br /&gt;
So, that's it, have fun with [[aMule]]&lt;br /&gt;
&lt;br /&gt;
Greetings, [[User:Citroklar|Citroklar]] &amp;amp; [[User:Phoenix|Phoenix]]&lt;br /&gt;
&lt;br /&gt;
(Most of the above shamelessly stolen from pure_ascii's post in backtraces forum, thanks, pure!)&lt;br /&gt;
&lt;br /&gt;
Please read [[Using_gdb_and_valgrind|this]] to learn more about [http://www.gnu.org/software/gdb/gdb.html GDB] and [http://valgrind.kde.org Valgrind].&lt;br /&gt;
&lt;br /&gt;
== General pitfalls and caveats ==&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;-fomit-frame-pointer&amp;lt;/tt&amp;gt;&lt;br /&gt;
:On &amp;lt;tt&amp;gt;x86&amp;lt;/tt&amp;gt; platforms the &amp;lt;tt&amp;gt;-fomit-frame-pointer&amp;lt;/tt&amp;gt; compiler flag usually results in an extra free register to use, but unfortunately it most likely causes ''gdb'' to be unable to parse the resulting executable. Check your &amp;lt;tt&amp;gt;CFLAGS&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;CXXFLAGS&amp;lt;/tt&amp;gt; variables.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;-fPIE&amp;lt;/tt&amp;gt;&lt;br /&gt;
:If you use the &amp;lt;tt&amp;gt;-fPIE&amp;lt;/tt&amp;gt; compiler flag to compile aMule, you must use &amp;lt;tt&amp;gt;-nopie&amp;lt;/tt&amp;gt; for the linking stage: add &amp;lt;tt&amp;gt;-nopie&amp;lt;/tt&amp;gt; to your &amp;lt;tt&amp;gt;LDFLAGS&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
;Stripping binaries&lt;br /&gt;
:You must not strip the binaries (remove debug info), if you want to create a backtrace. The make process does not automatically strip the binaries, except for the &amp;lt;tt&amp;gt;install-strip&amp;lt;/tt&amp;gt; target. Do not use it.&lt;br /&gt;
:The GNU linker (&amp;lt;tt&amp;gt;ld&amp;lt;/tt&amp;gt;) is capable of automatically stripping the binaries, if the &amp;lt;tt&amp;gt;-s&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;-S&amp;lt;/tt&amp;gt; flag is passed to it. This is usually passed via &amp;lt;tt&amp;gt;LDFLAGS&amp;lt;/tt&amp;gt; as &amp;lt;tt&amp;gt;-Wl,-s&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;-Wl,-S&amp;lt;/tt&amp;gt;. Please check that you don't use any of them.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
 #0  0x000000000057b790 in ?? ()&lt;br /&gt;
 #1  0x000000000051e66b in ?? ()&lt;br /&gt;
 #2  0x000000000051edb6 in ?? ()&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
This is an exmple of an unuseful backtrace. It doesn't show where the error happened and what went wrong. If your backtrace looks like this, it is pretty unuseful for us. This backtrace is either created from a binary without debug information (stripped), or ''gdb'' was unable to parse it (see above section).&lt;br /&gt;
&lt;br /&gt;
 #0  0x1003f604 in CUpDownClient::ClearDownloadBlockRequests ()&lt;br /&gt;
 #1  0x10044978 in CUpDownClient::Disconnected ()&lt;br /&gt;
 #2  0x1004d958 in CClientList::ProcessDirectCallbackList ()&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Now this is better, but still not enough. We now have global symbols, so we can see which function called which. But this still lacks line number and local symbol information, making it really hard to find the cause of the crash.&lt;br /&gt;
&lt;br /&gt;
 #0  0x000000000046fcab in CUpDownClient::ClearDownloadBlockRequests (this=0x45bf9e0) at BaseClient.cpp:1175&lt;br /&gt;
 #1  0x00000000004d1480 in CUpDownClient::SetDownloadState (this=0x45bf9e0, byNewState=1 '\001') at DownloadClient.cpp:541&lt;br /&gt;
 #2  0x00000000004703bd in CUpDownClient::Disconnected (this=0x45bf9e0, strReason=@0x7ffffc74e2b0, bFromSocket=false) at BaseClient.cpp:1239&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Well, this is what I call a useful backtrace. It has both global and local symbols and line numbers. Now we can see the program state as it was at the time of the crash, and can possibly &amp;quot;easily&amp;quot; identify, what went wrong.&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
* [http://www.gentoo.org/proj/en/qa/backtraces.xml How to get meaningful backtraces in Gentoo]&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2009-08-02T06:13:24Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* amule SVN */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 01.08.2009 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. As such, [[aMule]] comes in a variety of versions. This article will cover the installation of the last PORTAGE version, and of [[aMule SVN]] through a personal overlay.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
1. Show what will be done:&lt;br /&gt;
  emerge -pv amule&lt;br /&gt;
2. Adjust your USE flags for amule into ''/etc/portage/package.use&lt;br /&gt;
&lt;br /&gt;
3. Emerge amule:&lt;br /&gt;
  emerge -a amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay Overlay: Creating_a_local_overlay]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;. As aMule is using the revision to name the tarball, we will use it for the '''version_date_of_the_tarball'''.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-9732.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 31 July 2009 revision 9732 that was working fine for me, but you can change the revision like you want. &lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2009 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 EAPI=&amp;quot;2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_PN=&amp;quot;aMule-SVN-r&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}/${MY_PN}${PV}&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://amule.sourceforge.net/tarballs/${MY_PN}${PV}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;daemon debug geoip gtk nls remote stats unicode upnp xchat&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8*&lt;br /&gt;
 	&amp;gt;=dev-libs/crypto++-5.5.2&lt;br /&gt;
 	&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 	stats? ( &amp;gt;=media-libs/gd-2.0.26[jpeg] )&lt;br /&gt;
 	geoip? ( dev-libs/geoip )&lt;br /&gt;
 	upnp? ( &amp;gt;=net-libs/libupnp-1.6.6 )&lt;br /&gt;
 	remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 	unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&lt;br /&gt;
 	xchat? ( net-irc/xchat )&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 	if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use daemon; then&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;You have to specify at least one of gtk, remote or daemon&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 		einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use daemon || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_configure() {&lt;br /&gt;
 	local myconf&lt;br /&gt;
 &lt;br /&gt;
 	WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk; then&lt;br /&gt;
 		einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets unicode&lt;br /&gt;
 	else&lt;br /&gt;
 		einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets base&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk ; then&lt;br /&gt;
 		use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-wxcas&lt;br /&gt;
 			--enable-alc&amp;quot;&lt;br /&gt;
 		use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-amule-gui&amp;quot;&lt;br /&gt;
 	else&lt;br /&gt;
 		myconf=&amp;quot;&lt;br /&gt;
 			--disable-monolithic&lt;br /&gt;
 			--disable-amule-gui&lt;br /&gt;
 			--disable-wxcas&lt;br /&gt;
 			--disable-alc&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	econf \&lt;br /&gt;
 		--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 		--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 		--enable-amulecmd \&lt;br /&gt;
 		$(use_enable debug) \&lt;br /&gt;
 		$(use_enable !debug optimize) \&lt;br /&gt;
 		$(use_enable daemon amule-daemon) \&lt;br /&gt;
 		$(use_enable geoip) \&lt;br /&gt;
 		$(use_enable nls) \&lt;br /&gt;
 		$(use_enable remote webserver) \&lt;br /&gt;
 		$(use_enable stats cas) \&lt;br /&gt;
 		$(use_enable stats alcc) \&lt;br /&gt;
 		$(use_enable xchat xas) \&lt;br /&gt;
 		${myconf} || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 	emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 	if use daemon; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 	fi&lt;br /&gt;
 	if use remote; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Copy the files directory from PORTAGE:&lt;br /&gt;
  cp -r /usr/portage/net-p2p/amule/files files&lt;br /&gt;
&lt;br /&gt;
7. Remove the unneeded files:&lt;br /&gt;
  rm files/*.patch&lt;br /&gt;
&lt;br /&gt;
8. Digest the ebuild:&lt;br /&gt;
  ebuild amule-9732.ebuild digest&lt;br /&gt;
&lt;br /&gt;
9. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
10. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
9. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2009-08-02T06:11:55Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* added xchat into ehe ebuild */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 01.08.2009 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. As such, [[aMule]] comes in a variety of versions. This article will cover the installation of the last PORTAGE version, and of [[aMule SVN]] through a personal overlay.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
1. Show what will be done:&lt;br /&gt;
  emerge -pv amule&lt;br /&gt;
2. Adjust your USE flags for amule into ''/etc/portage/package.use&lt;br /&gt;
&lt;br /&gt;
3. Emerge amule:&lt;br /&gt;
  emerge -a amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay Overlay: Creating_a_local_overlay]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;. As aMule is using the revision to name the tarball, we will use it for the '''version_date_of_the_tarball'''.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-9732.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 31 July 2009 revision 9732 that was working fine for me, but you can change the revision like you want. &lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2009 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 EAPI=&amp;quot;2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_PN=&amp;quot;aMule-SVN-r&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}/${MY_PN}${PV}&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://amule.sourceforge.net/tarballs/${MY_PN}${PV}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;daemon debug geoip gtk nls remote stats unicode upnp xchat&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8*&lt;br /&gt;
 	&amp;gt;=dev-libs/crypto++-5.5.2&lt;br /&gt;
 	&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 	stats? ( &amp;gt;=media-libs/gd-2.0.26[jpeg] )&lt;br /&gt;
 	geoip? ( dev-libs/geoip )&lt;br /&gt;
 	upnp? ( &amp;gt;=net-libs/libupnp-1.6.6 )&lt;br /&gt;
 	remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 	unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&lt;br /&gt;
	xchat? ( net-irc/xchat )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 	if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use daemon; then&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;You have to specify at least one of gtk, remote or daemon&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 		einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use daemon || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_configure() {&lt;br /&gt;
 	local myconf&lt;br /&gt;
 &lt;br /&gt;
 	WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk; then&lt;br /&gt;
 		einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets unicode&lt;br /&gt;
 	else&lt;br /&gt;
 		einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets base&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk ; then&lt;br /&gt;
 		use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-wxcas&lt;br /&gt;
 			--enable-alc&amp;quot;&lt;br /&gt;
 		use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-amule-gui&amp;quot;&lt;br /&gt;
 	else&lt;br /&gt;
 		myconf=&amp;quot;&lt;br /&gt;
 			--disable-monolithic&lt;br /&gt;
 			--disable-amule-gui&lt;br /&gt;
 			--disable-wxcas&lt;br /&gt;
 			--disable-alc&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	econf \&lt;br /&gt;
 		--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 		--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 		--enable-amulecmd \&lt;br /&gt;
 		$(use_enable debug) \&lt;br /&gt;
 		$(use_enable !debug optimize) \&lt;br /&gt;
 		$(use_enable daemon amule-daemon) \&lt;br /&gt;
 		$(use_enable geoip) \&lt;br /&gt;
 		$(use_enable nls) \&lt;br /&gt;
 		$(use_enable remote webserver) \&lt;br /&gt;
 		$(use_enable stats cas) \&lt;br /&gt;
 		$(use_enable stats alcc) \&lt;br /&gt;
		$(use_enable xchat xas) \&lt;br /&gt;
 		${myconf} || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 	emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 	if use daemon; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 	fi&lt;br /&gt;
 	if use remote; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Copy the files directory from PORTAGE:&lt;br /&gt;
  cp -r /usr/portage/net-p2p/amule/files files&lt;br /&gt;
&lt;br /&gt;
7. Remove the unneeded files:&lt;br /&gt;
  rm files/*.patch&lt;br /&gt;
&lt;br /&gt;
8. Digest the ebuild:&lt;br /&gt;
  ebuild amule-9732.ebuild digest&lt;br /&gt;
&lt;br /&gt;
9. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
10. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
9. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2009-08-01T20:19:08Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* amule SVN */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 01.08.2009 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. As such, [[aMule]] comes in a variety of versions. This article will cover the installation of the last PORTAGE version, and of [[aMule SVN]] through a personal overlay.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
1. Show what will be done:&lt;br /&gt;
  emerge -pv amule&lt;br /&gt;
2. Adjust your USE flags for amule into ''/etc/portage/package.use&lt;br /&gt;
&lt;br /&gt;
3. Emerge amule:&lt;br /&gt;
  emerge -a amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay Overlay: Creating_a_local_overlay]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;. As aMule is using the revision to name the tarball, we will use it for the '''version_date_of_the_tarball'''.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-9732.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 31 July 2009 revision 9732 that was working fine for me, but you can change the revision like you want. &lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2009 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 EAPI=&amp;quot;2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_PN=&amp;quot;aMule-SVN-r&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}/${MY_PN}${PV}&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://amule.sourceforge.net/tarballs/${MY_PN}${PV}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;daemon debug geoip gtk nls remote stats unicode upnp&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8*&lt;br /&gt;
 	&amp;gt;=dev-libs/crypto++-5.5.2&lt;br /&gt;
 	&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 	stats? ( &amp;gt;=media-libs/gd-2.0.26[jpeg] )&lt;br /&gt;
 	geoip? ( dev-libs/geoip )&lt;br /&gt;
 	upnp? ( &amp;gt;=net-libs/libupnp-1.6.6 )&lt;br /&gt;
 	remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 	unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 	if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use daemon; then&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;You have to specify at least one of gtk, remote or daemon&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 		einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use daemon || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_configure() {&lt;br /&gt;
 	local myconf&lt;br /&gt;
 &lt;br /&gt;
 	WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk; then&lt;br /&gt;
 		einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets unicode&lt;br /&gt;
 	else&lt;br /&gt;
 		einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets base&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk ; then&lt;br /&gt;
 		use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-wxcas&lt;br /&gt;
 			--enable-alc&amp;quot;&lt;br /&gt;
 		use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-amule-gui&amp;quot;&lt;br /&gt;
 	else&lt;br /&gt;
 		myconf=&amp;quot;&lt;br /&gt;
 			--disable-monolithic&lt;br /&gt;
 			--disable-amule-gui&lt;br /&gt;
 			--disable-wxcas&lt;br /&gt;
 			--disable-alc&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	econf \&lt;br /&gt;
 		--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 		--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 		--enable-amulecmd \&lt;br /&gt;
 		$(use_enable debug) \&lt;br /&gt;
 		$(use_enable !debug optimize) \&lt;br /&gt;
 		$(use_enable daemon amule-daemon) \&lt;br /&gt;
 		$(use_enable geoip) \&lt;br /&gt;
 		$(use_enable nls) \&lt;br /&gt;
 		$(use_enable remote webserver) \&lt;br /&gt;
 		$(use_enable stats cas) \&lt;br /&gt;
 		$(use_enable stats alcc) \&lt;br /&gt;
 		${myconf} || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 	emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 	if use daemon; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 	fi&lt;br /&gt;
 	if use remote; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Copy the files directory from PORTAGE:&lt;br /&gt;
  cp -r /usr/portage/net-p2p/amule/files files&lt;br /&gt;
&lt;br /&gt;
7. Remove the unneeded files:&lt;br /&gt;
  rm files/*.patch&lt;br /&gt;
&lt;br /&gt;
8. Digest the ebuild:&lt;br /&gt;
  ebuild amule-9732.ebuild digest&lt;br /&gt;
&lt;br /&gt;
9. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
10. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
9. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2009-08-01T19:52:01Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 01.08.2009 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. As such, [[aMule]] comes in a variety of versions. This article will cover the installation of the last PORTAGE version, and of [[aMule SVN]] through a personal overlay.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
1. Show what will be done:&lt;br /&gt;
  emerge -pv amule&lt;br /&gt;
2. Adjust your USE flags for amule into ''/etc/portage/package.use&lt;br /&gt;
&lt;br /&gt;
3. Emerge amule:&lt;br /&gt;
  emerge -a amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay Overlay: Creating_a_local_overlay]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;. As aMule is using the revision to name the tarball, we will use it for the '''version_date_of_the_tarball'''.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-9732.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 31 July 2009 revision 9732 that was working fine for me, but you can change the revision like you want. &lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2009 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 EAPI=&amp;quot;2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_PN=&amp;quot;aMule-SVN-r&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}&amp;quot;/${MY_PN}${PV}&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://amule.sourceforge.net/tarballs/${MY_PN}${PV}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;daemon debug geoip gtk nls remote stats unicode upnp&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8*&lt;br /&gt;
 	&amp;gt;=dev-libs/crypto++-5.5.2&lt;br /&gt;
 	&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 	stats? ( &amp;gt;=media-libs/gd-2.0.26[jpeg] )&lt;br /&gt;
 	geoip? ( dev-libs/geoip )&lt;br /&gt;
 	upnp? ( &amp;gt;=net-libs/libupnp-1.6.6 )&lt;br /&gt;
 	remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 	unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 	if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use daemon; then&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;You have to specify at least one of gtk, remote or daemon&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 		einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use daemon || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_configure() {&lt;br /&gt;
 	local myconf&lt;br /&gt;
 &lt;br /&gt;
 	WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk; then&lt;br /&gt;
 		einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets unicode&lt;br /&gt;
 	else&lt;br /&gt;
 		einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets base&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk ; then&lt;br /&gt;
 		use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-wxcas&lt;br /&gt;
 			--enable-alc&amp;quot;&lt;br /&gt;
 		use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-amule-gui&amp;quot;&lt;br /&gt;
 	else&lt;br /&gt;
 		myconf=&amp;quot;&lt;br /&gt;
 			--disable-monolithic&lt;br /&gt;
 			--disable-amule-gui&lt;br /&gt;
 			--disable-wxcas&lt;br /&gt;
 			--disable-alc&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	econf \&lt;br /&gt;
 		--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 		--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 		--enable-amulecmd \&lt;br /&gt;
 		$(use_enable debug) \&lt;br /&gt;
 		$(use_enable !debug optimize) \&lt;br /&gt;
 		$(use_enable daemon amule-daemon) \&lt;br /&gt;
 		$(use_enable geoip) \&lt;br /&gt;
 		$(use_enable nls) \&lt;br /&gt;
 		$(use_enable remote webserver) \&lt;br /&gt;
 		$(use_enable stats cas) \&lt;br /&gt;
 		$(use_enable stats alcc) \&lt;br /&gt;
 		${myconf} || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 	emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 	if use daemon; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 	fi&lt;br /&gt;
 	if use remote; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Copy the files directory from PORTAGE:&lt;br /&gt;
  cp -r /usr/portage/net-p2p/amule/files files&lt;br /&gt;
&lt;br /&gt;
7. Remove the unneeded files:&lt;br /&gt;
  rm files/*.patch&lt;br /&gt;
&lt;br /&gt;
8. Digest the ebuild:&lt;br /&gt;
  ebuild amule-9732.ebuild digest&lt;br /&gt;
&lt;br /&gt;
9. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
10. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
9. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2009-08-01T19:48:18Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 01.08.2009 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. As such, [[aMule]] comes in a variety of versions. This article will cover the installation of the last PORTAGE version, and of aMule-SVN through a personal overlay.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
1. Show what will be done:&lt;br /&gt;
  emerge -pv amule&lt;br /&gt;
2. Adjust your USE flags for amule into ''/etc/portage/package.use&lt;br /&gt;
&lt;br /&gt;
3. Emerge amule:&lt;br /&gt;
  emerge -a amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay Overlay: Creating_a_local_overlay]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;. As aMule is using the revision to name the tarball, we will use it for the '''version_date_of_the_tarball'''.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-9732.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 31 July 2009 revision 9732 that was working fine for me, but you can change the revision like you want. &lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2009 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 EAPI=&amp;quot;2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_PN=&amp;quot;aMule-SVN-r&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}&amp;quot;/${MY_PN}${PV}&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://amule.sourceforge.net/tarballs/${MY_PN}${PV}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;daemon debug geoip gtk nls remote stats unicode upnp&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8*&lt;br /&gt;
 	&amp;gt;=dev-libs/crypto++-5.5.2&lt;br /&gt;
 	&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 	stats? ( &amp;gt;=media-libs/gd-2.0.26[jpeg] )&lt;br /&gt;
 	geoip? ( dev-libs/geoip )&lt;br /&gt;
 	upnp? ( &amp;gt;=net-libs/libupnp-1.6.6 )&lt;br /&gt;
 	remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 	unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 	if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use daemon; then&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;You have to specify at least one of gtk, remote or daemon&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 		einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use daemon || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_configure() {&lt;br /&gt;
 	local myconf&lt;br /&gt;
 &lt;br /&gt;
 	WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk; then&lt;br /&gt;
 		einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets unicode&lt;br /&gt;
 	else&lt;br /&gt;
 		einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets base&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk ; then&lt;br /&gt;
 		use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-wxcas&lt;br /&gt;
 			--enable-alc&amp;quot;&lt;br /&gt;
 		use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-amule-gui&amp;quot;&lt;br /&gt;
 	else&lt;br /&gt;
 		myconf=&amp;quot;&lt;br /&gt;
 			--disable-monolithic&lt;br /&gt;
 			--disable-amule-gui&lt;br /&gt;
 			--disable-wxcas&lt;br /&gt;
 			--disable-alc&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	econf \&lt;br /&gt;
 		--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 		--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 		--enable-amulecmd \&lt;br /&gt;
 		$(use_enable debug) \&lt;br /&gt;
 		$(use_enable !debug optimize) \&lt;br /&gt;
 		$(use_enable daemon amule-daemon) \&lt;br /&gt;
 		$(use_enable geoip) \&lt;br /&gt;
 		$(use_enable nls) \&lt;br /&gt;
 		$(use_enable remote webserver) \&lt;br /&gt;
 		$(use_enable stats cas) \&lt;br /&gt;
 		$(use_enable stats alcc) \&lt;br /&gt;
 		${myconf} || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 	emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 	if use daemon; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 	fi&lt;br /&gt;
 	if use remote; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Copy the files directory from PORTAGE:&lt;br /&gt;
  cp -r /usr/portage/net-p2p/amule/files files&lt;br /&gt;
&lt;br /&gt;
7. Remove the unneeded files:&lt;br /&gt;
  rm files/*.patch&lt;br /&gt;
&lt;br /&gt;
8. Digest the ebuild:&lt;br /&gt;
  ebuild amule-9732.ebuild digest&lt;br /&gt;
&lt;br /&gt;
9. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
10. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
9. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo-es</id>
		<title>HowTo Compile In Gentoo-es</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo-es"/>
				<updated>2009-08-01T19:44:00Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt; &amp;lt;h1&amp;gt;&amp;lt;font color=red&amp;gt;Someone should check how recent this Article is, and update it for 2.2.5&amp;lt;/font&amp;gt;&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[HowTo_Compile_In_Gentoo|English]] | '''Español''' | [[HowTo_Compile_In_Gentoo-de|Alemán]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Introducción ==&lt;br /&gt;
Gentoo es conocido por sus opciones. Desgraciadamente, algunas opciones requieren más trabajo que otras. Como tal, [[aMule]] entra una variedad de versiones y de metodos de instalación basados en la versión de [[WxWidgets|wxGTK]] que usted decide utilizar.&lt;br /&gt;
&lt;br /&gt;
== Métodos de Instalación ==&lt;br /&gt;
=== amule-2.0.3.ebuild ===&lt;br /&gt;
Este ebuild esta marquado como '''estable''' para todas arquitecturas.&lt;br /&gt;
&lt;br /&gt;
Este ebuild se corresponde con la version mas actualizada y estable disponible de [[aMule]].&lt;br /&gt;
&lt;br /&gt;
Dependencias: &amp;gt;=x11-libs/wxGTK-2.6.0; &amp;gt;=sys-libs/zlib-1.2.2; sys-devel/gettext; &amp;gt;=media-libs/libpng-1.2.8; &amp;gt;=media-libs/gd-2.0.32&lt;br /&gt;
&lt;br /&gt;
=== amule-svn ===&lt;br /&gt;
Este ebuild esta marcado como '''inestable''' para todas arquitecturas.&lt;br /&gt;
&lt;br /&gt;
No destinado para el publico general. Si usted quere probar el paquete desarrollado diariamente, entonces esta es la version para usted.&lt;br /&gt;
&lt;br /&gt;
Dependencias: &amp;gt;=x11-libs/wxGTK-2.6.0; &amp;gt;=sys-libs/zlib-1.2.1; &amp;gt;=media-libs/gd-2.0.26; &amp;gt;=media-libs/libpng-1.2.0&amp;lt;br&amp;gt;&lt;br /&gt;
Status: Desarrollo; no en Portage; requiere portage overlay&lt;br /&gt;
&lt;br /&gt;
== Instrucciones de Instalación ==&lt;br /&gt;
=== amule-2.0.3.ebuild ===&lt;br /&gt;
1. Haga emerge del paquete:&lt;br /&gt;
  emerge --sync&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
=== amule-svn ===&lt;br /&gt;
El ebuild acutal para [[aMule SVN]] se puede encontrar [http://forum.amule.org/index.php?topic=5732 aquí]. Descárguelo y continúe con este artículo.&lt;br /&gt;
&lt;br /&gt;
1. Definir ''PORTDIR_OVERLAY''. Abra ''/etc/make.conf'' con su editor de texto preferido y defina la varible ''PORTDIR_OVERLAY''. Por defecto es:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Cree el overlay para ''amule-svn-2'':&lt;br /&gt;
  mkdir -p {PORTDIR_OVERLAY}/net-p2p/amule-svn-2&lt;br /&gt;
&lt;br /&gt;
3. Agregue a package.keywords:&lt;br /&gt;
  echo &amp;quot;net-p2p/amule-svn ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copie [http://forum.amule.org/thread.php?postid=38002#post38002 amule-svn-2.ebuild] a ''{PORTDIR_OVERLAY}/net-p2p/amule-svn-2'':&lt;br /&gt;
&lt;br /&gt;
5. Cambie al directorio:&lt;br /&gt;
  cd {PORTDIR_OVERLAY}/net-p2p/amule-svn-2/&lt;br /&gt;
&lt;br /&gt;
6. Haga touch en el archivo:&lt;br /&gt;
  touch amule-svn-2.ebuild&lt;br /&gt;
&lt;br /&gt;
7. Digiera el ebuild:&lt;br /&gt;
  ebuild amule-svn-2.ebuild digest&lt;br /&gt;
&lt;br /&gt;
8. Revise las opciones de la instalación:&lt;br /&gt;
  emerge amule-svn -pv&lt;br /&gt;
&lt;br /&gt;
9. Modifique ''/etc/portage/package.use'' para convenir sus necesidades (por favor nota que ''debug'' será activado sin condición).&lt;br /&gt;
  net-p2p/amule-svn X -amuled -debug gtk2 kad nls -nosystray -optimize -remote -remote-gui -stats unicode&lt;br /&gt;
&lt;br /&gt;
10. Finalmente, haga emerge [[aMule SVN]].&lt;br /&gt;
  emerge amule-svn&lt;br /&gt;
&lt;br /&gt;
'''POR FAVOR! POR FAVOR! POR FAVOR!''' haga ''emerge amule-svn -pv'' antes de instalar para determinar como quires compilar aMule-SVN.&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2009-08-01T19:43:04Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* update date */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 01.08.2009 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. Unfortunately, some choices require more labor than others. As such, [[aMule]] comes in a variety of versions and installation methods based on what version of [[WxWidgets|wxGTK]] you decide to use...&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
1. Show what will be done:&lt;br /&gt;
  emerge -pv amule&lt;br /&gt;
2. Adjust your USE flags for amule into ''/etc/portage/package.use&lt;br /&gt;
&lt;br /&gt;
3. Emerge amule:&lt;br /&gt;
  emerge -a amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay Overlay: Creating_a_local_overlay]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;. As aMule is using the revision to name the tarball, we will use it for the '''version_date_of_the_tarball'''.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-9732.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 31 July 2009 revision 9732 that was working fine for me, but you can change the revision like you want. &lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2009 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 EAPI=&amp;quot;2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_PN=&amp;quot;aMule-SVN-r&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}&amp;quot;/${MY_PN}${PV}&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://amule.sourceforge.net/tarballs/${MY_PN}${PV}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;daemon debug geoip gtk nls remote stats unicode upnp&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8*&lt;br /&gt;
 	&amp;gt;=dev-libs/crypto++-5.5.2&lt;br /&gt;
 	&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 	stats? ( &amp;gt;=media-libs/gd-2.0.26[jpeg] )&lt;br /&gt;
 	geoip? ( dev-libs/geoip )&lt;br /&gt;
 	upnp? ( &amp;gt;=net-libs/libupnp-1.6.6 )&lt;br /&gt;
 	remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 	unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 	if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use daemon; then&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;You have to specify at least one of gtk, remote or daemon&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 		einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use daemon || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_configure() {&lt;br /&gt;
 	local myconf&lt;br /&gt;
 &lt;br /&gt;
 	WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk; then&lt;br /&gt;
 		einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets unicode&lt;br /&gt;
 	else&lt;br /&gt;
 		einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets base&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk ; then&lt;br /&gt;
 		use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-wxcas&lt;br /&gt;
 			--enable-alc&amp;quot;&lt;br /&gt;
 		use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-amule-gui&amp;quot;&lt;br /&gt;
 	else&lt;br /&gt;
 		myconf=&amp;quot;&lt;br /&gt;
 			--disable-monolithic&lt;br /&gt;
 			--disable-amule-gui&lt;br /&gt;
 			--disable-wxcas&lt;br /&gt;
 			--disable-alc&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	econf \&lt;br /&gt;
 		--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 		--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 		--enable-amulecmd \&lt;br /&gt;
 		$(use_enable debug) \&lt;br /&gt;
 		$(use_enable !debug optimize) \&lt;br /&gt;
 		$(use_enable daemon amule-daemon) \&lt;br /&gt;
 		$(use_enable geoip) \&lt;br /&gt;
 		$(use_enable nls) \&lt;br /&gt;
 		$(use_enable remote webserver) \&lt;br /&gt;
 		$(use_enable stats cas) \&lt;br /&gt;
 		$(use_enable stats alcc) \&lt;br /&gt;
 		${myconf} || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 	emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 	if use daemon; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 	fi&lt;br /&gt;
 	if use remote; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Copy the files directory from PORTAGE:&lt;br /&gt;
  cp -r /usr/portage/net-p2p/amule/files files&lt;br /&gt;
&lt;br /&gt;
7. Remove the unneeded files:&lt;br /&gt;
  rm files/*.patch&lt;br /&gt;
&lt;br /&gt;
8. Digest the ebuild:&lt;br /&gt;
  ebuild amule-9732.ebuild digest&lt;br /&gt;
&lt;br /&gt;
9. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
10. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
9. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2009-08-01T19:41:14Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* Removed outdated aMule 2.1.1 Compilation FAQ */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
I am currently editing this very outdated article!&lt;br /&gt;
English version updated: 23.12.2007 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. Unfortunately, some choices require more labor than others. As such, [[aMule]] comes in a variety of versions and installation methods based on what version of [[WxWidgets|wxGTK]] you decide to use...&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
1. Show what will be done:&lt;br /&gt;
  emerge -pv amule&lt;br /&gt;
2. Adjust your USE flags for amule into ''/etc/portage/package.use&lt;br /&gt;
&lt;br /&gt;
3. Emerge amule:&lt;br /&gt;
  emerge -a amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay Overlay: Creating_a_local_overlay]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;. As aMule is using the revision to name the tarball, we will use it for the '''version_date_of_the_tarball'''.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-9732.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 31 July 2009 revision 9732 that was working fine for me, but you can change the revision like you want. &lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2009 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 EAPI=&amp;quot;2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_PN=&amp;quot;aMule-SVN-r&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}&amp;quot;/${MY_PN}${PV}&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://amule.sourceforge.net/tarballs/${MY_PN}${PV}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;daemon debug geoip gtk nls remote stats unicode upnp&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8*&lt;br /&gt;
 	&amp;gt;=dev-libs/crypto++-5.5.2&lt;br /&gt;
 	&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 	stats? ( &amp;gt;=media-libs/gd-2.0.26[jpeg] )&lt;br /&gt;
 	geoip? ( dev-libs/geoip )&lt;br /&gt;
 	upnp? ( &amp;gt;=net-libs/libupnp-1.6.6 )&lt;br /&gt;
 	remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 	unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 	if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use daemon; then&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;You have to specify at least one of gtk, remote or daemon&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 		einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use daemon || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_configure() {&lt;br /&gt;
 	local myconf&lt;br /&gt;
 &lt;br /&gt;
 	WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk; then&lt;br /&gt;
 		einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets unicode&lt;br /&gt;
 	else&lt;br /&gt;
 		einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets base&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk ; then&lt;br /&gt;
 		use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-wxcas&lt;br /&gt;
 			--enable-alc&amp;quot;&lt;br /&gt;
 		use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-amule-gui&amp;quot;&lt;br /&gt;
 	else&lt;br /&gt;
 		myconf=&amp;quot;&lt;br /&gt;
 			--disable-monolithic&lt;br /&gt;
 			--disable-amule-gui&lt;br /&gt;
 			--disable-wxcas&lt;br /&gt;
 			--disable-alc&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	econf \&lt;br /&gt;
 		--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 		--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 		--enable-amulecmd \&lt;br /&gt;
 		$(use_enable debug) \&lt;br /&gt;
 		$(use_enable !debug optimize) \&lt;br /&gt;
 		$(use_enable daemon amule-daemon) \&lt;br /&gt;
 		$(use_enable geoip) \&lt;br /&gt;
 		$(use_enable nls) \&lt;br /&gt;
 		$(use_enable remote webserver) \&lt;br /&gt;
 		$(use_enable stats cas) \&lt;br /&gt;
 		$(use_enable stats alcc) \&lt;br /&gt;
 		${myconf} || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 	emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 	if use daemon; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 	fi&lt;br /&gt;
 	if use remote; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Copy the files directory from PORTAGE:&lt;br /&gt;
  cp -r /usr/portage/net-p2p/amule/files files&lt;br /&gt;
&lt;br /&gt;
7. Remove the unneeded files:&lt;br /&gt;
  rm files/*.patch&lt;br /&gt;
&lt;br /&gt;
8. Digest the ebuild:&lt;br /&gt;
  ebuild amule-9732.ebuild digest&lt;br /&gt;
&lt;br /&gt;
9. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
10. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
9. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2009-08-01T19:39:15Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* amule SVN */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
I am currently editing this very outdated article!&lt;br /&gt;
English version updated: 23.12.2007 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. Unfortunately, some choices require more labor than others. As such, [[aMule]] comes in a variety of versions and installation methods based on what version of [[WxWidgets|wxGTK]] you decide to use...&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
1. Show what will be done:&lt;br /&gt;
  emerge -pv amule&lt;br /&gt;
2. Adjust your USE flags for amule into ''/etc/portage/package.use&lt;br /&gt;
&lt;br /&gt;
3. Emerge amule:&lt;br /&gt;
  emerge -a amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay Overlay: Creating_a_local_overlay]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;. As aMule is using the revision to name the tarball, we will use it for the '''version_date_of_the_tarball'''.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-9732.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 31 July 2009 revision 9732 that was working fine for me, but you can change the revision like you want. &lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2009 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 EAPI=&amp;quot;2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_PN=&amp;quot;aMule-SVN-r&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}&amp;quot;/${MY_PN}${PV}&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://amule.sourceforge.net/tarballs/${MY_PN}${PV}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;daemon debug geoip gtk nls remote stats unicode upnp&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8*&lt;br /&gt;
 	&amp;gt;=dev-libs/crypto++-5.5.2&lt;br /&gt;
 	&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 	stats? ( &amp;gt;=media-libs/gd-2.0.26[jpeg] )&lt;br /&gt;
 	geoip? ( dev-libs/geoip )&lt;br /&gt;
 	upnp? ( &amp;gt;=net-libs/libupnp-1.6.6 )&lt;br /&gt;
 	remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 	unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 	if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use daemon; then&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;You have to specify at least one of gtk, remote or daemon&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 		einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use daemon || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_configure() {&lt;br /&gt;
 	local myconf&lt;br /&gt;
 &lt;br /&gt;
 	WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk; then&lt;br /&gt;
 		einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets unicode&lt;br /&gt;
 	else&lt;br /&gt;
 		einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets base&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk ; then&lt;br /&gt;
 		use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-wxcas&lt;br /&gt;
 			--enable-alc&amp;quot;&lt;br /&gt;
 		use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-amule-gui&amp;quot;&lt;br /&gt;
 	else&lt;br /&gt;
 		myconf=&amp;quot;&lt;br /&gt;
 			--disable-monolithic&lt;br /&gt;
 			--disable-amule-gui&lt;br /&gt;
 			--disable-wxcas&lt;br /&gt;
 			--disable-alc&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	econf \&lt;br /&gt;
 		--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 		--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 		--enable-amulecmd \&lt;br /&gt;
 		$(use_enable debug) \&lt;br /&gt;
 		$(use_enable !debug optimize) \&lt;br /&gt;
 		$(use_enable daemon amule-daemon) \&lt;br /&gt;
 		$(use_enable geoip) \&lt;br /&gt;
 		$(use_enable nls) \&lt;br /&gt;
 		$(use_enable remote webserver) \&lt;br /&gt;
 		$(use_enable stats cas) \&lt;br /&gt;
 		$(use_enable stats alcc) \&lt;br /&gt;
 		${myconf} || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 	emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 	if use daemon; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 	fi&lt;br /&gt;
 	if use remote; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Copy the files directory from PORTAGE:&lt;br /&gt;
  cp -r /usr/portage/net-p2p/amule/files files&lt;br /&gt;
&lt;br /&gt;
7. Remove the unneeded files:&lt;br /&gt;
  rm files/*.patch&lt;br /&gt;
&lt;br /&gt;
8. Digest the ebuild:&lt;br /&gt;
  ebuild amule-9732.ebuild digest&lt;br /&gt;
&lt;br /&gt;
9. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
10. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
9. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
== aMule 2.1.1 Compilation FAQ ==&lt;br /&gt;
When compiling aMule-2.1.1 on a hardened system with gcc-3.4.5(at least), it will fail with something like:&lt;br /&gt;
 WebServer.h: In member function `T* UpdatableItemsContainer&amp;lt;T, G, I&amp;gt;::GetByID(I) [with T = SharedFile, G = CEC_SharedFile_Tag, I = CMD4Hash]':&lt;br /&gt;
 WebServer.h:270: internal compiler error: in sweep_string_variable, at protector.c:1158&lt;br /&gt;
&lt;br /&gt;
The possible problem is the -fPIE CFLAG because using `gcc-config` to select ''i386-pc-linux-gnu-3.4.5-hardenednopiessp'' fixed the problem, and you can even remove from the ebuild:&lt;br /&gt;
 if has_hardened; then&lt;br /&gt;
     filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
You can read more on the subject following the link http://bugs.gentoo.org/show_bug.cgi?id=74457&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2009-08-01T19:18:50Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* amule SVN - current ebuild */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
I am currently editing this very outdated article!&lt;br /&gt;
English version updated: 23.12.2007 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. Unfortunately, some choices require more labor than others. As such, [[aMule]] comes in a variety of versions and installation methods based on what version of [[WxWidgets|wxGTK]] you decide to use...&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
1. Show what will be done:&lt;br /&gt;
  emerge -pv amule&lt;br /&gt;
2. Adjust your USE flags for amule into ''/etc/portage/package.use&lt;br /&gt;
&lt;br /&gt;
3. Emerge amule:&lt;br /&gt;
  emerge -a amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay Overlay: Creating_a_local_overlay]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;. As aMule is using the revision to name the tarball, we will use it for the '''version_date_of_the_tarball'''.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-9732.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 31 July 2009 revision 9732 that was working fine for me, but you can change the revision like you want. &lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2009 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 EAPI=&amp;quot;2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_PN=&amp;quot;aMule-SVN-r&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}&amp;quot;/${MY_PN}${PV}&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://amule.sourceforge.net/tarballs/${MY_PN}${PV}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;daemon debug geoip gtk nls remote stats unicode upnp&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8*&lt;br /&gt;
 	&amp;gt;=dev-libs/crypto++-5.5.2&lt;br /&gt;
 	&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 	stats? ( &amp;gt;=media-libs/gd-2.0.26[jpeg] )&lt;br /&gt;
 	geoip? ( dev-libs/geoip )&lt;br /&gt;
 	upnp? ( &amp;gt;=net-libs/libupnp-1.6.6 )&lt;br /&gt;
 	remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 	unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 	if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use daemon; then&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;You have to specify at least one of gtk, remote or daemon&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 		eerror &amp;quot;&amp;quot;&lt;br /&gt;
 		die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 		einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 		einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use daemon || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_configure() {&lt;br /&gt;
 	local myconf&lt;br /&gt;
 &lt;br /&gt;
 	WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk; then&lt;br /&gt;
 		einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets unicode&lt;br /&gt;
 	else&lt;br /&gt;
 		einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 		need-wxwidgets base&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	if use gtk ; then&lt;br /&gt;
 		use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-wxcas&lt;br /&gt;
 			--enable-alc&amp;quot;&lt;br /&gt;
 		use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 			--enable-amule-gui&amp;quot;&lt;br /&gt;
 	else&lt;br /&gt;
 		myconf=&amp;quot;&lt;br /&gt;
 			--disable-monolithic&lt;br /&gt;
 			--disable-amule-gui&lt;br /&gt;
 			--disable-wxcas&lt;br /&gt;
 			--disable-alc&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 &lt;br /&gt;
 	econf \&lt;br /&gt;
 		--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 		--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 		--enable-amulecmd \&lt;br /&gt;
 		$(use_enable debug) \&lt;br /&gt;
 		$(use_enable !debug optimize) \&lt;br /&gt;
 		$(use_enable daemon amule-daemon) \&lt;br /&gt;
 		$(use_enable geoip) \&lt;br /&gt;
 		$(use_enable nls) \&lt;br /&gt;
 		$(use_enable remote webserver) \&lt;br /&gt;
 		$(use_enable stats cas) \&lt;br /&gt;
 		$(use_enable stats alcc) \&lt;br /&gt;
 		${myconf} || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 	emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 	if use daemon; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 	fi&lt;br /&gt;
 	if use remote; then&lt;br /&gt;
 		newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 		newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Digest the ebuild:&lt;br /&gt;
  ebuild amule-2.2.0_p10071217.ebuild digest&lt;br /&gt;
&lt;br /&gt;
7. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
8. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
9. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
== aMule 2.1.1 Compilation FAQ ==&lt;br /&gt;
When compiling aMule-2.1.1 on a hardened system with gcc-3.4.5(at least), it will fail with something like:&lt;br /&gt;
 WebServer.h: In member function `T* UpdatableItemsContainer&amp;lt;T, G, I&amp;gt;::GetByID(I) [with T = SharedFile, G = CEC_SharedFile_Tag, I = CMD4Hash]':&lt;br /&gt;
 WebServer.h:270: internal compiler error: in sweep_string_variable, at protector.c:1158&lt;br /&gt;
&lt;br /&gt;
The possible problem is the -fPIE CFLAG because using `gcc-config` to select ''i386-pc-linux-gnu-3.4.5-hardenednopiessp'' fixed the problem, and you can even remove from the ebuild:&lt;br /&gt;
 if has_hardened; then&lt;br /&gt;
     filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
You can read more on the subject following the link http://bugs.gentoo.org/show_bug.cgi?id=74457&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2009-08-01T19:03:53Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* Installation instructions - 2.2.5 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
I am currently editing this very outdated article!&lt;br /&gt;
English version updated: 23.12.2007 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. Unfortunately, some choices require more labor than others. As such, [[aMule]] comes in a variety of versions and installation methods based on what version of [[WxWidgets|wxGTK]] you decide to use...&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
1. Show what will be done:&lt;br /&gt;
  emerge -pv amule&lt;br /&gt;
2. Adjust your USE flags for amule into ''/etc/portage/package.use&lt;br /&gt;
&lt;br /&gt;
3. Emerge amule:&lt;br /&gt;
  emerge -a amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN (latest one) ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds HOWTO Installing 3rd Party Ebuilds]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-2.2.0_p20071217.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 17 December 2007 that was working fine for me, but you can change the date like you want. I use '''p''' in order to distinguish this ebuild from the ones in portage (using '''pre'''). &lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2007 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_PN=${PN/m/M}&lt;br /&gt;
 MY_PV=&amp;quot;${PV/2.2.0_p/}&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}/amule-svn&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://www.hirnriss.net/files/svn/${MY_PN}-SVN-${MY_PV}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;amuled debug geoip gtk nls remote stats unicode&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8*&lt;br /&gt;
 		&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 		stats? ( &amp;gt;=media-libs/gd-2.0.26 )&lt;br /&gt;
 		geoip? ( dev-libs/geoip )&lt;br /&gt;
 		remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 		unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 		if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use amuled; then&lt;br /&gt;
 				eerror &amp;quot;&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;You have to specify at least one of gtk, remote or amuled&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;&amp;quot;&lt;br /&gt;
 				die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 				einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 				einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 				einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use stats &amp;amp;&amp;amp; ! built_with_use media-libs/gd jpeg; then&lt;br /&gt;
 				die &amp;quot;media-libs/gd should be compiled with the jpeg use flag when you have the stats use   flag set&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use amuled || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_compile() {&lt;br /&gt;
 		local myconf&lt;br /&gt;
 &lt;br /&gt;
 		WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 		if use gtk; then&lt;br /&gt;
 				einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 				need-wxwidgets unicode&lt;br /&gt;
 		else&lt;br /&gt;
 				einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 				need-wxwidgets base&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use gtk ; then&lt;br /&gt;
 				use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 					--enable-wxcas&lt;br /&gt;
 					--enable-alc&amp;quot;&lt;br /&gt;
 				use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 					--enable-amule-gui&amp;quot;&lt;br /&gt;
 		else&lt;br /&gt;
 				myconf=&amp;quot;&lt;br /&gt;
 					--disable-monolithic&lt;br /&gt;
 					--disable-amule-gui&lt;br /&gt;
 					--disable-wxcas&lt;br /&gt;
 					--disable-alc&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		econf \&lt;br /&gt;
 				--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 				--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 				--enable-amulecmd \&lt;br /&gt;
 				$(use_enable debug) \&lt;br /&gt;
 				$(use_enable !debug optimize) \&lt;br /&gt;
 				$(use_enable amuled amule-daemon) \&lt;br /&gt;
 				$(use_enable geoip) \&lt;br /&gt;
 				$(use_enable nls) \&lt;br /&gt;
 				$(use_enable remote webserver) \&lt;br /&gt;
 				$(use_enable stats cas) \&lt;br /&gt;
 				$(use_enable stats alcc) \&lt;br /&gt;
 				${myconf} || die&lt;br /&gt;
 &lt;br /&gt;
 		# we filter ssp until bug #74457 is closed to build on hardened&lt;br /&gt;
 		filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 &lt;br /&gt;
 		emake -j1 || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 		emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 		if use amuled; then&lt;br /&gt;
 				newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 				newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use remote; then&lt;br /&gt;
 				newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 				newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 		fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Digest the ebuild:&lt;br /&gt;
  ebuild amule-2.2.0_p10071217.ebuild digest&lt;br /&gt;
&lt;br /&gt;
7. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
8. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
9. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
== aMule 2.1.1 Compilation FAQ ==&lt;br /&gt;
When compiling aMule-2.1.1 on a hardened system with gcc-3.4.5(at least), it will fail with something like:&lt;br /&gt;
 WebServer.h: In member function `T* UpdatableItemsContainer&amp;lt;T, G, I&amp;gt;::GetByID(I) [with T = SharedFile, G = CEC_SharedFile_Tag, I = CMD4Hash]':&lt;br /&gt;
 WebServer.h:270: internal compiler error: in sweep_string_variable, at protector.c:1158&lt;br /&gt;
&lt;br /&gt;
The possible problem is the -fPIE CFLAG because using `gcc-config` to select ''i386-pc-linux-gnu-3.4.5-hardenednopiessp'' fixed the problem, and you can even remove from the ebuild:&lt;br /&gt;
 if has_hardened; then&lt;br /&gt;
     filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
You can read more on the subject following the link http://bugs.gentoo.org/show_bug.cgi?id=74457&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2009-08-01T18:59:04Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* Removed outdated amule and wxGTK-2.8* */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
I am currently editing this very outdated article!&lt;br /&gt;
English version updated: 23.12.2007 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. Unfortunately, some choices require more labor than others. As such, [[aMule]] comes in a variety of versions and installation methods based on what version of [[WxWidgets|wxGTK]] you decide to use...&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
They must be updated to reflect the actual portage state. Some volunteer?&lt;br /&gt;
=== amule-2.1.3.ebuild ===&lt;br /&gt;
1. Emerge package:&lt;br /&gt;
  emerge --sync&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN (latest one) ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds HOWTO Installing 3rd Party Ebuilds]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-2.2.0_p20071217.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 17 December 2007 that was working fine for me, but you can change the date like you want. I use '''p''' in order to distinguish this ebuild from the ones in portage (using '''pre'''). &lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2007 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_PN=${PN/m/M}&lt;br /&gt;
 MY_PV=&amp;quot;${PV/2.2.0_p/}&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}/amule-svn&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://www.hirnriss.net/files/svn/${MY_PN}-SVN-${MY_PV}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;amuled debug geoip gtk nls remote stats unicode&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8*&lt;br /&gt;
 		&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 		stats? ( &amp;gt;=media-libs/gd-2.0.26 )&lt;br /&gt;
 		geoip? ( dev-libs/geoip )&lt;br /&gt;
 		remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 		unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 		if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use amuled; then&lt;br /&gt;
 				eerror &amp;quot;&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;You have to specify at least one of gtk, remote or amuled&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;&amp;quot;&lt;br /&gt;
 				die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 				einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 				einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 				einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use stats &amp;amp;&amp;amp; ! built_with_use media-libs/gd jpeg; then&lt;br /&gt;
 				die &amp;quot;media-libs/gd should be compiled with the jpeg use flag when you have the stats use   flag set&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use amuled || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_compile() {&lt;br /&gt;
 		local myconf&lt;br /&gt;
 &lt;br /&gt;
 		WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 		if use gtk; then&lt;br /&gt;
 				einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 				need-wxwidgets unicode&lt;br /&gt;
 		else&lt;br /&gt;
 				einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 				need-wxwidgets base&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use gtk ; then&lt;br /&gt;
 				use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 					--enable-wxcas&lt;br /&gt;
 					--enable-alc&amp;quot;&lt;br /&gt;
 				use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 					--enable-amule-gui&amp;quot;&lt;br /&gt;
 		else&lt;br /&gt;
 				myconf=&amp;quot;&lt;br /&gt;
 					--disable-monolithic&lt;br /&gt;
 					--disable-amule-gui&lt;br /&gt;
 					--disable-wxcas&lt;br /&gt;
 					--disable-alc&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		econf \&lt;br /&gt;
 				--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 				--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 				--enable-amulecmd \&lt;br /&gt;
 				$(use_enable debug) \&lt;br /&gt;
 				$(use_enable !debug optimize) \&lt;br /&gt;
 				$(use_enable amuled amule-daemon) \&lt;br /&gt;
 				$(use_enable geoip) \&lt;br /&gt;
 				$(use_enable nls) \&lt;br /&gt;
 				$(use_enable remote webserver) \&lt;br /&gt;
 				$(use_enable stats cas) \&lt;br /&gt;
 				$(use_enable stats alcc) \&lt;br /&gt;
 				${myconf} || die&lt;br /&gt;
 &lt;br /&gt;
 		# we filter ssp until bug #74457 is closed to build on hardened&lt;br /&gt;
 		filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 &lt;br /&gt;
 		emake -j1 || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 		emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 		if use amuled; then&lt;br /&gt;
 				newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 				newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use remote; then&lt;br /&gt;
 				newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 				newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 		fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Digest the ebuild:&lt;br /&gt;
  ebuild amule-2.2.0_p10071217.ebuild digest&lt;br /&gt;
&lt;br /&gt;
7. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
8. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
9. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
== aMule 2.1.1 Compilation FAQ ==&lt;br /&gt;
When compiling aMule-2.1.1 on a hardened system with gcc-3.4.5(at least), it will fail with something like:&lt;br /&gt;
 WebServer.h: In member function `T* UpdatableItemsContainer&amp;lt;T, G, I&amp;gt;::GetByID(I) [with T = SharedFile, G = CEC_SharedFile_Tag, I = CMD4Hash]':&lt;br /&gt;
 WebServer.h:270: internal compiler error: in sweep_string_variable, at protector.c:1158&lt;br /&gt;
&lt;br /&gt;
The possible problem is the -fPIE CFLAG because using `gcc-config` to select ''i386-pc-linux-gnu-3.4.5-hardenednopiessp'' fixed the problem, and you can even remove from the ebuild:&lt;br /&gt;
 if has_hardened; then&lt;br /&gt;
     filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
You can read more on the subject following the link http://bugs.gentoo.org/show_bug.cgi?id=74457&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2009-08-01T18:58:21Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* amule-2.1.3.ebuild */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
I am currently editing this very outdated article!&lt;br /&gt;
English version updated: 23.12.2007 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. Unfortunately, some choices require more labor than others. As such, [[aMule]] comes in a variety of versions and installation methods based on what version of [[WxWidgets|wxGTK]] you decide to use...&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.2.5.ebuild ===&lt;br /&gt;
This ebuild matches the 2.2.5 stable [[aMule]] release, it is available 28.08.2009 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.8*; &amp;gt;=dev-libs/crypto++-5.5.2; &amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
&lt;br /&gt;
Conditional dependencies: &amp;gt;=dev-libs/geoip for geoip support; &amp;gt;=net-libs/libupnp for Intel UPnP stack support; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support and or statistic reporting.&lt;br /&gt;
&lt;br /&gt;
=== amule and wxGTK-2.8* ===&lt;br /&gt;
It is a few ebuilds for compiling amule against wxGTK-2.8* at that time of writing (1-11-2008): amule-2.1.3-r1.ebuild (the same as above, but for wxGTK-2.8*); amule-2.2.0_pre20080304.ebuild (2.2.0 pre-release); amule-2.2.1.ebuild (stable version of amule);  amule-2.2.2.ebuild (last stable amule release).&lt;br /&gt;
&lt;br /&gt;
They can be marked as stable or unstable depending to your arch.&lt;br /&gt;
&lt;br /&gt;
Dependencies for the 2.2.2 version: &amp;gt;=x11-libs/wxGTK-2.8.*; &amp;gt;=sys-libs/zlib-1.2.1; &amp;gt;=media-libs/crypto°°-5.5.2; unicode? stats? &amp;gt;=media-libs/gd-2.0.26; remote? &amp;gt;=media-libs/libpng-1.2.0; geoip? devs-libs/geoip&amp;lt;br&amp;gt;; upnp? net-libs/libupnp.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
They must be updated to reflect the actual portage state. Some volunteer?&lt;br /&gt;
=== amule-2.1.3.ebuild ===&lt;br /&gt;
1. Emerge package:&lt;br /&gt;
  emerge --sync&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN (latest one) ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds HOWTO Installing 3rd Party Ebuilds]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-2.2.0_p20071217.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 17 December 2007 that was working fine for me, but you can change the date like you want. I use '''p''' in order to distinguish this ebuild from the ones in portage (using '''pre'''). &lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2007 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_PN=${PN/m/M}&lt;br /&gt;
 MY_PV=&amp;quot;${PV/2.2.0_p/}&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}/amule-svn&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://www.hirnriss.net/files/svn/${MY_PN}-SVN-${MY_PV}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;amuled debug geoip gtk nls remote stats unicode&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8*&lt;br /&gt;
 		&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 		stats? ( &amp;gt;=media-libs/gd-2.0.26 )&lt;br /&gt;
 		geoip? ( dev-libs/geoip )&lt;br /&gt;
 		remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 		unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 		if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use amuled; then&lt;br /&gt;
 				eerror &amp;quot;&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;You have to specify at least one of gtk, remote or amuled&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;&amp;quot;&lt;br /&gt;
 				die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 				einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 				einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 				einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use stats &amp;amp;&amp;amp; ! built_with_use media-libs/gd jpeg; then&lt;br /&gt;
 				die &amp;quot;media-libs/gd should be compiled with the jpeg use flag when you have the stats use   flag set&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use amuled || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_compile() {&lt;br /&gt;
 		local myconf&lt;br /&gt;
 &lt;br /&gt;
 		WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 		if use gtk; then&lt;br /&gt;
 				einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 				need-wxwidgets unicode&lt;br /&gt;
 		else&lt;br /&gt;
 				einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 				need-wxwidgets base&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use gtk ; then&lt;br /&gt;
 				use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 					--enable-wxcas&lt;br /&gt;
 					--enable-alc&amp;quot;&lt;br /&gt;
 				use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 					--enable-amule-gui&amp;quot;&lt;br /&gt;
 		else&lt;br /&gt;
 				myconf=&amp;quot;&lt;br /&gt;
 					--disable-monolithic&lt;br /&gt;
 					--disable-amule-gui&lt;br /&gt;
 					--disable-wxcas&lt;br /&gt;
 					--disable-alc&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		econf \&lt;br /&gt;
 				--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 				--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 				--enable-amulecmd \&lt;br /&gt;
 				$(use_enable debug) \&lt;br /&gt;
 				$(use_enable !debug optimize) \&lt;br /&gt;
 				$(use_enable amuled amule-daemon) \&lt;br /&gt;
 				$(use_enable geoip) \&lt;br /&gt;
 				$(use_enable nls) \&lt;br /&gt;
 				$(use_enable remote webserver) \&lt;br /&gt;
 				$(use_enable stats cas) \&lt;br /&gt;
 				$(use_enable stats alcc) \&lt;br /&gt;
 				${myconf} || die&lt;br /&gt;
 &lt;br /&gt;
 		# we filter ssp until bug #74457 is closed to build on hardened&lt;br /&gt;
 		filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 &lt;br /&gt;
 		emake -j1 || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 		emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 		if use amuled; then&lt;br /&gt;
 				newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 				newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use remote; then&lt;br /&gt;
 				newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 				newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 		fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Digest the ebuild:&lt;br /&gt;
  ebuild amule-2.2.0_p10071217.ebuild digest&lt;br /&gt;
&lt;br /&gt;
7. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
8. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
9. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
== aMule 2.1.1 Compilation FAQ ==&lt;br /&gt;
When compiling aMule-2.1.1 on a hardened system with gcc-3.4.5(at least), it will fail with something like:&lt;br /&gt;
 WebServer.h: In member function `T* UpdatableItemsContainer&amp;lt;T, G, I&amp;gt;::GetByID(I) [with T = SharedFile, G = CEC_SharedFile_Tag, I = CMD4Hash]':&lt;br /&gt;
 WebServer.h:270: internal compiler error: in sweep_string_variable, at protector.c:1158&lt;br /&gt;
&lt;br /&gt;
The possible problem is the -fPIE CFLAG because using `gcc-config` to select ''i386-pc-linux-gnu-3.4.5-hardenednopiessp'' fixed the problem, and you can even remove from the ebuild:&lt;br /&gt;
 if has_hardened; then&lt;br /&gt;
     filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
You can read more on the subject following the link http://bugs.gentoo.org/show_bug.cgi?id=74457&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2009-08-01T18:48:19Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
I am currently editing this very outdated article!&lt;br /&gt;
English version updated: 23.12.2007 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. Unfortunately, some choices require more labor than others. As such, [[aMule]] comes in a variety of versions and installation methods based on what version of [[WxWidgets|wxGTK]] you decide to use...&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.1.3.ebuild ===&lt;br /&gt;
This ebuild matches the 2.1.3 stable [[aMule]] release, it is available 13.10.2007 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.6.*; &amp;gt;=sys-libs/zlib-1.2.1; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support.&lt;br /&gt;
&lt;br /&gt;
=== amule and wxGTK-2.8* ===&lt;br /&gt;
It is a few ebuilds for compiling amule against wxGTK-2.8* at that time of writing (1-11-2008): amule-2.1.3-r1.ebuild (the same as above, but for wxGTK-2.8*); amule-2.2.0_pre20080304.ebuild (2.2.0 pre-release); amule-2.2.1.ebuild (stable version of amule);  amule-2.2.2.ebuild (last stable amule release).&lt;br /&gt;
&lt;br /&gt;
They can be marked as stable or unstable depending to your arch.&lt;br /&gt;
&lt;br /&gt;
Dependencies for the 2.2.2 version: &amp;gt;=x11-libs/wxGTK-2.8.*; &amp;gt;=sys-libs/zlib-1.2.1; &amp;gt;=media-libs/crypto°°-5.5.2; unicode? stats? &amp;gt;=media-libs/gd-2.0.26; remote? &amp;gt;=media-libs/libpng-1.2.0; geoip? devs-libs/geoip&amp;lt;br&amp;gt;; upnp? net-libs/libupnp.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
They must be updated to reflect the actual portage state. Some volunteer?&lt;br /&gt;
=== amule-2.1.3.ebuild ===&lt;br /&gt;
1. Emerge package:&lt;br /&gt;
  emerge --sync&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN (latest one) ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds HOWTO Installing 3rd Party Ebuilds]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-2.2.0_p20071217.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 17 December 2007 that was working fine for me, but you can change the date like you want. I use '''p''' in order to distinguish this ebuild from the ones in portage (using '''pre'''). &lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2007 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_PN=${PN/m/M}&lt;br /&gt;
 MY_PV=&amp;quot;${PV/2.2.0_p/}&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}/amule-svn&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://www.hirnriss.net/files/svn/${MY_PN}-SVN-${MY_PV}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;amuled debug geoip gtk nls remote stats unicode&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8*&lt;br /&gt;
 		&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 		stats? ( &amp;gt;=media-libs/gd-2.0.26 )&lt;br /&gt;
 		geoip? ( dev-libs/geoip )&lt;br /&gt;
 		remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 		unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 		if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use amuled; then&lt;br /&gt;
 				eerror &amp;quot;&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;You have to specify at least one of gtk, remote or amuled&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;&amp;quot;&lt;br /&gt;
 				die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 				einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 				einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 				einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use stats &amp;amp;&amp;amp; ! built_with_use media-libs/gd jpeg; then&lt;br /&gt;
 				die &amp;quot;media-libs/gd should be compiled with the jpeg use flag when you have the stats use   flag set&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use amuled || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_compile() {&lt;br /&gt;
 		local myconf&lt;br /&gt;
 &lt;br /&gt;
 		WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 		if use gtk; then&lt;br /&gt;
 				einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 				need-wxwidgets unicode&lt;br /&gt;
 		else&lt;br /&gt;
 				einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 				need-wxwidgets base&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use gtk ; then&lt;br /&gt;
 				use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 					--enable-wxcas&lt;br /&gt;
 					--enable-alc&amp;quot;&lt;br /&gt;
 				use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 					--enable-amule-gui&amp;quot;&lt;br /&gt;
 		else&lt;br /&gt;
 				myconf=&amp;quot;&lt;br /&gt;
 					--disable-monolithic&lt;br /&gt;
 					--disable-amule-gui&lt;br /&gt;
 					--disable-wxcas&lt;br /&gt;
 					--disable-alc&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		econf \&lt;br /&gt;
 				--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 				--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 				--enable-amulecmd \&lt;br /&gt;
 				$(use_enable debug) \&lt;br /&gt;
 				$(use_enable !debug optimize) \&lt;br /&gt;
 				$(use_enable amuled amule-daemon) \&lt;br /&gt;
 				$(use_enable geoip) \&lt;br /&gt;
 				$(use_enable nls) \&lt;br /&gt;
 				$(use_enable remote webserver) \&lt;br /&gt;
 				$(use_enable stats cas) \&lt;br /&gt;
 				$(use_enable stats alcc) \&lt;br /&gt;
 				${myconf} || die&lt;br /&gt;
 &lt;br /&gt;
 		# we filter ssp until bug #74457 is closed to build on hardened&lt;br /&gt;
 		filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 &lt;br /&gt;
 		emake -j1 || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 		emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 		if use amuled; then&lt;br /&gt;
 				newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 				newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use remote; then&lt;br /&gt;
 				newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 				newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 		fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Digest the ebuild:&lt;br /&gt;
  ebuild amule-2.2.0_p10071217.ebuild digest&lt;br /&gt;
&lt;br /&gt;
7. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
8. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
9. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
== aMule 2.1.1 Compilation FAQ ==&lt;br /&gt;
When compiling aMule-2.1.1 on a hardened system with gcc-3.4.5(at least), it will fail with something like:&lt;br /&gt;
 WebServer.h: In member function `T* UpdatableItemsContainer&amp;lt;T, G, I&amp;gt;::GetByID(I) [with T = SharedFile, G = CEC_SharedFile_Tag, I = CMD4Hash]':&lt;br /&gt;
 WebServer.h:270: internal compiler error: in sweep_string_variable, at protector.c:1158&lt;br /&gt;
&lt;br /&gt;
The possible problem is the -fPIE CFLAG because using `gcc-config` to select ''i386-pc-linux-gnu-3.4.5-hardenednopiessp'' fixed the problem, and you can even remove from the ebuild:&lt;br /&gt;
 if has_hardened; then&lt;br /&gt;
     filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
You can read more on the subject following the link http://bugs.gentoo.org/show_bug.cgi?id=74457&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2009-08-01T18:46:36Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
I am currently editing this very outdated article!&lt;br /&gt;
English version updated: 23.12.2007 - Newest Gentoo Version are now 2.2.5.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. Unfortunately, some choices require more labor than others. As such, [[aMule]] comes in a variety of versions and installation methods based on what version of [[WxWidgets|wxGTK]] you decide to use...&lt;br /&gt;
&lt;br /&gt;
Also, if you plan to build a GUI-less core, you might want to take a look at http://bugs.gentoo.org/show_bug.cgi?id=109515, comment #3 contains a patch for wxGTK-2.6 ebuild that removes the dependency on X.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.1.3.ebuild ===&lt;br /&gt;
This ebuild matches the 2.1.3 stable [[aMule]] release, it is available 13.10.2007 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.6.*; &amp;gt;=sys-libs/zlib-1.2.1; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support.&lt;br /&gt;
&lt;br /&gt;
=== amule and wxGTK-2.8* ===&lt;br /&gt;
It is a few ebuilds for compiling amule against wxGTK-2.8* at that time of writing (1-11-2008): amule-2.1.3-r1.ebuild (the same as above, but for wxGTK-2.8*); amule-2.2.0_pre20080304.ebuild (2.2.0 pre-release); amule-2.2.1.ebuild (stable version of amule);  amule-2.2.2.ebuild (last stable amule release).&lt;br /&gt;
&lt;br /&gt;
They can be marked as stable or unstable depending to your arch.&lt;br /&gt;
&lt;br /&gt;
Dependencies for the 2.2.2 version: &amp;gt;=x11-libs/wxGTK-2.8.*; &amp;gt;=sys-libs/zlib-1.2.1; &amp;gt;=media-libs/crypto°°-5.5.2; unicode? stats? &amp;gt;=media-libs/gd-2.0.26; remote? &amp;gt;=media-libs/libpng-1.2.0; geoip? devs-libs/geoip&amp;lt;br&amp;gt;; upnp? net-libs/libupnp.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
They must be updated to reflect the actual portage state. Some volunteer?&lt;br /&gt;
=== amule-2.1.3.ebuild ===&lt;br /&gt;
1. Emerge package:&lt;br /&gt;
  emerge --sync&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN (latest one) ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds HOWTO Installing 3rd Party Ebuilds]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-2.2.0_p20071217.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 17 December 2007 that was working fine for me, but you can change the date like you want. I use '''p''' in order to distinguish this ebuild from the ones in portage (using '''pre'''). &lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2007 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_PN=${PN/m/M}&lt;br /&gt;
 MY_PV=&amp;quot;${PV/2.2.0_p/}&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}/amule-svn&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://www.hirnriss.net/files/svn/${MY_PN}-SVN-${MY_PV}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;amuled debug geoip gtk nls remote stats unicode&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8*&lt;br /&gt;
 		&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 		stats? ( &amp;gt;=media-libs/gd-2.0.26 )&lt;br /&gt;
 		geoip? ( dev-libs/geoip )&lt;br /&gt;
 		remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 		unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 		if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use amuled; then&lt;br /&gt;
 				eerror &amp;quot;&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;You have to specify at least one of gtk, remote or amuled&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;&amp;quot;&lt;br /&gt;
 				die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 				einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 				einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 				einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use stats &amp;amp;&amp;amp; ! built_with_use media-libs/gd jpeg; then&lt;br /&gt;
 				die &amp;quot;media-libs/gd should be compiled with the jpeg use flag when you have the stats use   flag set&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use amuled || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_compile() {&lt;br /&gt;
 		local myconf&lt;br /&gt;
 &lt;br /&gt;
 		WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 		if use gtk; then&lt;br /&gt;
 				einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 				need-wxwidgets unicode&lt;br /&gt;
 		else&lt;br /&gt;
 				einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 				need-wxwidgets base&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use gtk ; then&lt;br /&gt;
 				use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 					--enable-wxcas&lt;br /&gt;
 					--enable-alc&amp;quot;&lt;br /&gt;
 				use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 					--enable-amule-gui&amp;quot;&lt;br /&gt;
 		else&lt;br /&gt;
 				myconf=&amp;quot;&lt;br /&gt;
 					--disable-monolithic&lt;br /&gt;
 					--disable-amule-gui&lt;br /&gt;
 					--disable-wxcas&lt;br /&gt;
 					--disable-alc&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		econf \&lt;br /&gt;
 				--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 				--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 				--enable-amulecmd \&lt;br /&gt;
 				$(use_enable debug) \&lt;br /&gt;
 				$(use_enable !debug optimize) \&lt;br /&gt;
 				$(use_enable amuled amule-daemon) \&lt;br /&gt;
 				$(use_enable geoip) \&lt;br /&gt;
 				$(use_enable nls) \&lt;br /&gt;
 				$(use_enable remote webserver) \&lt;br /&gt;
 				$(use_enable stats cas) \&lt;br /&gt;
 				$(use_enable stats alcc) \&lt;br /&gt;
 				${myconf} || die&lt;br /&gt;
 &lt;br /&gt;
 		# we filter ssp until bug #74457 is closed to build on hardened&lt;br /&gt;
 		filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 &lt;br /&gt;
 		emake -j1 || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 		emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 		if use amuled; then&lt;br /&gt;
 				newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 				newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use remote; then&lt;br /&gt;
 				newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 				newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 		fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Digest the ebuild:&lt;br /&gt;
  ebuild amule-2.2.0_p10071217.ebuild digest&lt;br /&gt;
&lt;br /&gt;
7. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
8. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
9. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
== aMule 2.1.1 Compilation FAQ ==&lt;br /&gt;
When compiling aMule-2.1.1 on a hardened system with gcc-3.4.5(at least), it will fail with something like:&lt;br /&gt;
 WebServer.h: In member function `T* UpdatableItemsContainer&amp;lt;T, G, I&amp;gt;::GetByID(I) [with T = SharedFile, G = CEC_SharedFile_Tag, I = CMD4Hash]':&lt;br /&gt;
 WebServer.h:270: internal compiler error: in sweep_string_variable, at protector.c:1158&lt;br /&gt;
&lt;br /&gt;
The possible problem is the -fPIE CFLAG because using `gcc-config` to select ''i386-pc-linux-gnu-3.4.5-hardenednopiessp'' fixed the problem, and you can even remove from the ebuild:&lt;br /&gt;
 if has_hardened; then&lt;br /&gt;
     filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
You can read more on the subject following the link http://bugs.gentoo.org/show_bug.cgi?id=74457&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2009-08-01T18:42:07Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* Removed outdated amule SVN (portage) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 23.12.2007 - Newest Gentoo Version are now 2.1.3 as well that 2 SVN versions.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. Unfortunately, some choices require more labor than others. As such, [[aMule]] comes in a variety of versions and installation methods based on what version of [[WxWidgets|wxGTK]] you decide to use...&lt;br /&gt;
&lt;br /&gt;
Also, if you plan to build a GUI-less core, you might want to take a look at http://bugs.gentoo.org/show_bug.cgi?id=109515, comment #3 contains a patch for wxGTK-2.6 ebuild that removes the dependency on X.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.1.3.ebuild ===&lt;br /&gt;
This ebuild matches the 2.1.3 stable [[aMule]] release, it is available 13.10.2007 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.6.*; &amp;gt;=sys-libs/zlib-1.2.1; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support.&lt;br /&gt;
&lt;br /&gt;
=== amule and wxGTK-2.8* ===&lt;br /&gt;
It is a few ebuilds for compiling amule against wxGTK-2.8* at that time of writing (1-11-2008): amule-2.1.3-r1.ebuild (the same as above, but for wxGTK-2.8*); amule-2.2.0_pre20080304.ebuild (2.2.0 pre-release); amule-2.2.1.ebuild (stable version of amule);  amule-2.2.2.ebuild (last stable amule release).&lt;br /&gt;
&lt;br /&gt;
They can be marked as stable or unstable depending to your arch.&lt;br /&gt;
&lt;br /&gt;
Dependencies for the 2.2.2 version: &amp;gt;=x11-libs/wxGTK-2.8.*; &amp;gt;=sys-libs/zlib-1.2.1; &amp;gt;=media-libs/crypto°°-5.5.2; unicode? stats? &amp;gt;=media-libs/gd-2.0.26; remote? &amp;gt;=media-libs/libpng-1.2.0; geoip? devs-libs/geoip&amp;lt;br&amp;gt;; upnp? net-libs/libupnp.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
They must be updated to reflect the actual portage state. Some volunteer?&lt;br /&gt;
=== amule-2.1.3.ebuild ===&lt;br /&gt;
1. Emerge package:&lt;br /&gt;
  emerge --sync&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN (latest one) ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds HOWTO Installing 3rd Party Ebuilds]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-2.2.0_p20071217.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 17 December 2007 that was working fine for me, but you can change the date like you want. I use '''p''' in order to distinguish this ebuild from the ones in portage (using '''pre'''). &lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2007 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_PN=${PN/m/M}&lt;br /&gt;
 MY_PV=&amp;quot;${PV/2.2.0_p/}&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}/amule-svn&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://www.hirnriss.net/files/svn/${MY_PN}-SVN-${MY_PV}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;amuled debug geoip gtk nls remote stats unicode&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8*&lt;br /&gt;
 		&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 		stats? ( &amp;gt;=media-libs/gd-2.0.26 )&lt;br /&gt;
 		geoip? ( dev-libs/geoip )&lt;br /&gt;
 		remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 		unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 		if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use amuled; then&lt;br /&gt;
 				eerror &amp;quot;&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;You have to specify at least one of gtk, remote or amuled&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;&amp;quot;&lt;br /&gt;
 				die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 				einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 				einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 				einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use stats &amp;amp;&amp;amp; ! built_with_use media-libs/gd jpeg; then&lt;br /&gt;
 				die &amp;quot;media-libs/gd should be compiled with the jpeg use flag when you have the stats use   flag set&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use amuled || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_compile() {&lt;br /&gt;
 		local myconf&lt;br /&gt;
 &lt;br /&gt;
 		WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 		if use gtk; then&lt;br /&gt;
 				einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 				need-wxwidgets unicode&lt;br /&gt;
 		else&lt;br /&gt;
 				einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 				need-wxwidgets base&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use gtk ; then&lt;br /&gt;
 				use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 					--enable-wxcas&lt;br /&gt;
 					--enable-alc&amp;quot;&lt;br /&gt;
 				use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 					--enable-amule-gui&amp;quot;&lt;br /&gt;
 		else&lt;br /&gt;
 				myconf=&amp;quot;&lt;br /&gt;
 					--disable-monolithic&lt;br /&gt;
 					--disable-amule-gui&lt;br /&gt;
 					--disable-wxcas&lt;br /&gt;
 					--disable-alc&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		econf \&lt;br /&gt;
 				--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 				--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 				--enable-amulecmd \&lt;br /&gt;
 				$(use_enable debug) \&lt;br /&gt;
 				$(use_enable !debug optimize) \&lt;br /&gt;
 				$(use_enable amuled amule-daemon) \&lt;br /&gt;
 				$(use_enable geoip) \&lt;br /&gt;
 				$(use_enable nls) \&lt;br /&gt;
 				$(use_enable remote webserver) \&lt;br /&gt;
 				$(use_enable stats cas) \&lt;br /&gt;
 				$(use_enable stats alcc) \&lt;br /&gt;
 				${myconf} || die&lt;br /&gt;
 &lt;br /&gt;
 		# we filter ssp until bug #74457 is closed to build on hardened&lt;br /&gt;
 		filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 &lt;br /&gt;
 		emake -j1 || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 		emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 		if use amuled; then&lt;br /&gt;
 				newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 				newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use remote; then&lt;br /&gt;
 				newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 				newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 		fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Digest the ebuild:&lt;br /&gt;
  ebuild amule-2.2.0_p10071217.ebuild digest&lt;br /&gt;
&lt;br /&gt;
7. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
8. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
9. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
== aMule 2.1.1 Compilation FAQ ==&lt;br /&gt;
When compiling aMule-2.1.1 on a hardened system with gcc-3.4.5(at least), it will fail with something like:&lt;br /&gt;
 WebServer.h: In member function `T* UpdatableItemsContainer&amp;lt;T, G, I&amp;gt;::GetByID(I) [with T = SharedFile, G = CEC_SharedFile_Tag, I = CMD4Hash]':&lt;br /&gt;
 WebServer.h:270: internal compiler error: in sweep_string_variable, at protector.c:1158&lt;br /&gt;
&lt;br /&gt;
The possible problem is the -fPIE CFLAG because using `gcc-config` to select ''i386-pc-linux-gnu-3.4.5-hardenednopiessp'' fixed the problem, and you can even remove from the ebuild:&lt;br /&gt;
 if has_hardened; then&lt;br /&gt;
     filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
You can read more on the subject following the link http://bugs.gentoo.org/show_bug.cgi?id=74457&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2009-08-01T18:41:14Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* Remived outdated amule-2.2.0_pre-20071204, */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-de|Deutsch]] | &lt;br /&gt;
[[HowTo_Compile_In_Gentoo-es|Español]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 23.12.2007 - Newest Gentoo Version are now 2.1.3 as well that 2 SVN versions.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. Unfortunately, some choices require more labor than others. As such, [[aMule]] comes in a variety of versions and installation methods based on what version of [[WxWidgets|wxGTK]] you decide to use...&lt;br /&gt;
&lt;br /&gt;
Also, if you plan to build a GUI-less core, you might want to take a look at http://bugs.gentoo.org/show_bug.cgi?id=109515, comment #3 contains a patch for wxGTK-2.6 ebuild that removes the dependency on X.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.1.3.ebuild ===&lt;br /&gt;
This ebuild matches the 2.1.3 stable [[aMule]] release, it is available 13.10.2007 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.6.*; &amp;gt;=sys-libs/zlib-1.2.1; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support.&lt;br /&gt;
&lt;br /&gt;
=== amule and wxGTK-2.8* ===&lt;br /&gt;
It is a few ebuilds for compiling amule against wxGTK-2.8* at that time of writing (1-11-2008): amule-2.1.3-r1.ebuild (the same as above, but for wxGTK-2.8*); amule-2.2.0_pre20080304.ebuild (2.2.0 pre-release); amule-2.2.1.ebuild (stable version of amule);  amule-2.2.2.ebuild (last stable amule release).&lt;br /&gt;
&lt;br /&gt;
They can be marked as stable or unstable depending to your arch.&lt;br /&gt;
&lt;br /&gt;
Dependencies for the 2.2.2 version: &amp;gt;=x11-libs/wxGTK-2.8.*; &amp;gt;=sys-libs/zlib-1.2.1; &amp;gt;=media-libs/crypto°°-5.5.2; unicode? stats? &amp;gt;=media-libs/gd-2.0.26; remote? &amp;gt;=media-libs/libpng-1.2.0; geoip? devs-libs/geoip&amp;lt;br&amp;gt;; upnp? net-libs/libupnp.&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
They must be updated to reflect the actual portage state. Some volunteer?&lt;br /&gt;
=== amule-2.1.3.ebuild ===&lt;br /&gt;
1. Emerge package:&lt;br /&gt;
  emerge --sync&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN (portage) ===&lt;br /&gt;
Portage have 2 SVN ebuilds: amule-2.2.0_pre20070422.ebuild with wXgtk-2.6 support and amule-2.2.0_pre20071204.ebuild with wXgtk-2.8 support. Both are marked as '''unstable''' for all architectures.&lt;br /&gt;
&lt;br /&gt;
====To install amule-2.2.0_pre20070422:====&lt;br /&gt;
1. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
2. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
3. Modify ''/etc/portage/package.use'' to suit your needs :&lt;br /&gt;
  net-p2p/amule -amuled -debug gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
Personally, I have the unicode USE flag in /etc/make.conf so that any program that support unicode will be compiled with unicode support. &lt;br /&gt;
&lt;br /&gt;
4. Install [[aMule]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
=== amule SVN (latest one) ===&lt;br /&gt;
It is no ebuild for the current [[aMule SVN]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds HOWTO Installing 3rd Party Ebuilds]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. SVN ebuild from a SVN tarball are not named as '''package_name-SVN''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real SVN ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-svn:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-2.2.0_p20071217.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 17 December 2007 that was working fine for me, but you can change the date like you want. I use '''p''' in order to distinguish this ebuild from the ones in portage (using '''pre'''). &lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2007 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_PN=${PN/m/M}&lt;br /&gt;
 MY_PV=&amp;quot;${PV/2.2.0_p/}&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}/amule-svn&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://www.hirnriss.net/files/svn/${MY_PN}-SVN-${MY_PV}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;amuled debug geoip gtk nls remote stats unicode&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8*&lt;br /&gt;
 		&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 		stats? ( &amp;gt;=media-libs/gd-2.0.26 )&lt;br /&gt;
 		geoip? ( dev-libs/geoip )&lt;br /&gt;
 		remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 		unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 		if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use amuled; then&lt;br /&gt;
 				eerror &amp;quot;&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;You have to specify at least one of gtk, remote or amuled&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;&amp;quot;&lt;br /&gt;
 				die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 				einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 				einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 				einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use stats &amp;amp;&amp;amp; ! built_with_use media-libs/gd jpeg; then&lt;br /&gt;
 				die &amp;quot;media-libs/gd should be compiled with the jpeg use flag when you have the stats use   flag set&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use amuled || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_compile() {&lt;br /&gt;
 		local myconf&lt;br /&gt;
 &lt;br /&gt;
 		WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 		if use gtk; then&lt;br /&gt;
 				einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 				need-wxwidgets unicode&lt;br /&gt;
 		else&lt;br /&gt;
 				einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 				need-wxwidgets base&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use gtk ; then&lt;br /&gt;
 				use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 					--enable-wxcas&lt;br /&gt;
 					--enable-alc&amp;quot;&lt;br /&gt;
 				use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 					--enable-amule-gui&amp;quot;&lt;br /&gt;
 		else&lt;br /&gt;
 				myconf=&amp;quot;&lt;br /&gt;
 					--disable-monolithic&lt;br /&gt;
 					--disable-amule-gui&lt;br /&gt;
 					--disable-wxcas&lt;br /&gt;
 					--disable-alc&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		econf \&lt;br /&gt;
 				--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 				--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 				--enable-amulecmd \&lt;br /&gt;
 				$(use_enable debug) \&lt;br /&gt;
 				$(use_enable !debug optimize) \&lt;br /&gt;
 				$(use_enable amuled amule-daemon) \&lt;br /&gt;
 				$(use_enable geoip) \&lt;br /&gt;
 				$(use_enable nls) \&lt;br /&gt;
 				$(use_enable remote webserver) \&lt;br /&gt;
 				$(use_enable stats cas) \&lt;br /&gt;
 				$(use_enable stats alcc) \&lt;br /&gt;
 				${myconf} || die&lt;br /&gt;
 &lt;br /&gt;
 		# we filter ssp until bug #74457 is closed to build on hardened&lt;br /&gt;
 		filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 &lt;br /&gt;
 		emake -j1 || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 		emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 		if use amuled; then&lt;br /&gt;
 				newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 				newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use remote; then&lt;br /&gt;
 				newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 				newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 		fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Digest the ebuild:&lt;br /&gt;
  ebuild amule-2.2.0_p10071217.ebuild digest&lt;br /&gt;
&lt;br /&gt;
7. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
8. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
9. Install [[aMule SVN]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
== aMule 2.1.1 Compilation FAQ ==&lt;br /&gt;
When compiling aMule-2.1.1 on a hardened system with gcc-3.4.5(at least), it will fail with something like:&lt;br /&gt;
 WebServer.h: In member function `T* UpdatableItemsContainer&amp;lt;T, G, I&amp;gt;::GetByID(I) [with T = SharedFile, G = CEC_SharedFile_Tag, I = CMD4Hash]':&lt;br /&gt;
 WebServer.h:270: internal compiler error: in sweep_string_variable, at protector.c:1158&lt;br /&gt;
&lt;br /&gt;
The possible problem is the -fPIE CFLAG because using `gcc-config` to select ''i386-pc-linux-gnu-3.4.5-hardenednopiessp'' fixed the problem, and you can even remove from the ebuild:&lt;br /&gt;
 if has_hardened; then&lt;br /&gt;
     filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
You can read more on the subject following the link http://bugs.gentoo.org/show_bug.cgi?id=74457&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/Backtraces</id>
		<title>Backtraces</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/Backtraces"/>
				<updated>2009-07-31T16:39:29Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* On Gentoo */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
[[Backtraces|English]] | &lt;br /&gt;
[[Backtraces-es|Espa&amp;amp;ntilde;ol]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Well, not hard to guess, this is about backtraces.&lt;br /&gt;
&lt;br /&gt;
Usually, it should not be necessary for the normal user to do this. However, we might have a bad day and release a somewhat buggy version or you are running [http://subversion.tigris.org SVN] which can also be unstable sometimes.&lt;br /&gt;
This is where the backtraces come in: if [[aMule]] crashes, and you get an &amp;quot;OOPS - aMule crashed&amp;quot; and so on, we'd like to know. The backtrace [[aMule]] provides is not always very usefull as it contains little information, but, as usual, there's a better way: A *real* backtrace.&lt;br /&gt;
&lt;br /&gt;
== The GNU Debugger ==&lt;br /&gt;
First of all, you need the [http://www.gnu.org/software/gdb/gdb.html GNU Debugger] installed. It's called ''gdb'' and you could check for that by typing ''which gdb'' in a console window. You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 $ which gdb&lt;br /&gt;
 /usr/bin/gdb&lt;br /&gt;
&lt;br /&gt;
If you don't have [http://www.gnu.org/software/gdb/gdb.html GDB] installed, you will get a message like this:&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 $ which gdb&lt;br /&gt;
 which: no gdb in (/bin:/usr/bin:[etc])&lt;br /&gt;
&lt;br /&gt;
If that is the case, the [http://www.gnu.org/software/gdb/gdb.html GNU Debugger] is most likely not installed on your system and you should install it before you proceed.&lt;br /&gt;
&lt;br /&gt;
If your OS is [http://www.gentoo.org Gentoo Linux] you have just to type this:&lt;br /&gt;
 # emerge -av gdb&lt;br /&gt;
&lt;br /&gt;
== Compiling [[aMule]] ==&lt;br /&gt;
Then, compile [[aMule]] with debugging information:&lt;br /&gt;
&lt;br /&gt;
 $ ./configure --enable-debug --disable-optimize --prefix=/where/to/install/aMule&lt;br /&gt;
 $ make&lt;br /&gt;
 $ make install&lt;br /&gt;
&lt;br /&gt;
If you do not want to overwrite you old copy of [[aMule]], simply do this instead:&lt;br /&gt;
&lt;br /&gt;
 $ ./configure --enable-debug --disable-optimize&lt;br /&gt;
 $ make&lt;br /&gt;
&lt;br /&gt;
[[aMule]] can then be run by going into the dir ''src'' and typing ''./amule''&lt;br /&gt;
&lt;br /&gt;
If you are unable or unwilling to recompile, or are running a RPM version, proceed anyway, but be aware that backtraces from debugging enabled builds are much more useful to us.&lt;br /&gt;
&lt;br /&gt;
=== On Gentoo ===&lt;br /&gt;
You must follow [http://www.gentoo.org/proj/en/qa/backtraces.xml How to get meaningful backtraces in Gentoo].&lt;br /&gt;
&lt;br /&gt;
In short, most gentoo users want to edit /etc/make.conf, add &amp;quot;-ggdb&amp;quot; into their CFLAGS and&lt;br /&gt;
 FEATURES=&amp;quot;splitdebug&amp;quot;&lt;br /&gt;
Those are needed by gdb in order to find the debug symbols.&lt;br /&gt;
Emerge amule as usual with&lt;br /&gt;
 USE=&amp;quot;debug&amp;quot; emerge amule&lt;br /&gt;
If you don't use &amp;quot;USE=&amp;quot;debug&amp;quot;&amp;quot;, you will get a little bit less information from gdb, so it is better to use it.&lt;br /&gt;
After merging amule, you can safely remove -ggdb and splitdebug from /etc/make.conf.&lt;br /&gt;
&lt;br /&gt;
== Create a backtrace ==&lt;br /&gt;
Now create in your home directory the file ''.gdbinit'' and put these lines into it (or you can type them in at the ''(gdb)'' prompt later):&lt;br /&gt;
&lt;br /&gt;
 ha SIGPIPE nostop noprint pass&lt;br /&gt;
 ha SIG32 nostop noprint pass&lt;br /&gt;
 ha SIG33 nostop noprint pass&lt;br /&gt;
 ha SIG34 nostop noprint pass&lt;br /&gt;
&lt;br /&gt;
For those who want to know the meaning of the previous lines:&lt;br /&gt;
the first one avoid [http://www.gnu.org/software/gdb/gdb.html GDB] stopping at broken pipes;&lt;br /&gt;
the second one avoid [http://www.gnu.org/software/gdb/gdb.html GDB] stopping at new thread.&lt;br /&gt;
&lt;br /&gt;
To create a backtrace, open a console and do the following:&lt;br /&gt;
&lt;br /&gt;
 $ gdb /where/to/install/aMule/bin/amule&lt;br /&gt;
 (gdb) run&lt;br /&gt;
&lt;br /&gt;
Now use [[aMule]] normally until it crashes. If it crashes do the following:&lt;br /&gt;
&lt;br /&gt;
 (gdb) bt&lt;br /&gt;
 (gdb) bt full&lt;br /&gt;
 (gdb) thread apply all bt&lt;br /&gt;
&lt;br /&gt;
Post the output of the last three commands in the [http://forum.amule.org/index.php?board=33.0 backtraces forum] with some additional comment about the circumstances the segfault happened and what [[aMule]] version you used (or checkout time for [http://www.gnu.org/software/cvs CVS]).&lt;br /&gt;
&lt;br /&gt;
== The core file ==&lt;br /&gt;
If your [[aMule]] executable has been compiled with debug information (''--enable-debug'' configure flag), but you were not running it from within [http://www.gnu.org/software/gdb/gdb.html GDB], there is still a way to generate a backtrace, if your system was configured to generate '''core files'''.&lt;br /&gt;
&lt;br /&gt;
Core files are the full memory image of a process that crashed. Your session must be properly configured, so that the system generates core files. Add the following command to ''~/.bashrc'':&lt;br /&gt;
&lt;br /&gt;
''ulimit -c unlimited''&lt;br /&gt;
&lt;br /&gt;
Now, when a program crashes, suppose it generate the file ''core.1234'' (this name can be different, but usually will start with 'core') you can enter [http://www.gnu.org/software/gdb/gdb.html GDB] like that:&lt;br /&gt;
&lt;br /&gt;
''$ gdb --core=/path/to/amule /path/to/core/file/core.1234''&lt;br /&gt;
&lt;br /&gt;
REMARK: ''$ gdb /path/to/amule --core=/path/to/core/file/core.&amp;lt;pid&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
and then proceed as in the last session and issue 'bt' and 'bt full'.&lt;br /&gt;
&lt;br /&gt;
So, that's it, have fun with [[aMule]]&lt;br /&gt;
&lt;br /&gt;
Greetings, [[User:Citroklar|Citroklar]] &amp;amp; [[User:Phoenix|Phoenix]]&lt;br /&gt;
&lt;br /&gt;
(Most of the above shamelessly stolen from pure_ascii's post in backtraces forum, thanks, pure!)&lt;br /&gt;
&lt;br /&gt;
Please read [[Using_gdb_and_valgrind|this]] to learn more about [http://www.gnu.org/software/gdb/gdb.html GDB] and [http://valgrind.kde.org Valgrind].&lt;br /&gt;
&lt;br /&gt;
== General pitfalls and caveats ==&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;-fomit-frame-pointer&amp;lt;/tt&amp;gt;&lt;br /&gt;
:On &amp;lt;tt&amp;gt;x86&amp;lt;/tt&amp;gt; platforms the &amp;lt;tt&amp;gt;-fomit-frame-pointer&amp;lt;/tt&amp;gt; compiler flag usually results in an extra free register to use, but unfortunately it most likely causes ''gdb'' to be unable to parse the resulting executable. Check your &amp;lt;tt&amp;gt;CFLAGS&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;CXXFLAGS&amp;lt;/tt&amp;gt; variables.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;-fPIE&amp;lt;/tt&amp;gt;&lt;br /&gt;
:If you use the &amp;lt;tt&amp;gt;-fPIE&amp;lt;/tt&amp;gt; compiler flag to compile aMule, you must use &amp;lt;tt&amp;gt;-nopie&amp;lt;/tt&amp;gt; for the linking stage: add &amp;lt;tt&amp;gt;-nopie&amp;lt;/tt&amp;gt; to your &amp;lt;tt&amp;gt;LDFLAGS&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
;Stripping binaries&lt;br /&gt;
:You must not strip the binaries (remove debug info), if you want to create a backtrace. The make process does not automatically strip the binaries, except for the &amp;lt;tt&amp;gt;install-strip&amp;lt;/tt&amp;gt; target. Do not use it.&lt;br /&gt;
:The GNU linker (&amp;lt;tt&amp;gt;ld&amp;lt;/tt&amp;gt;) is capable of automatically stripping the binaries, if the &amp;lt;tt&amp;gt;-s&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;-S&amp;lt;/tt&amp;gt; flag is passed to it. This is usually passed via &amp;lt;tt&amp;gt;LDFLAGS&amp;lt;/tt&amp;gt; as &amp;lt;tt&amp;gt;-Wl,-s&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;-Wl,-S&amp;lt;/tt&amp;gt;. Please check that you don't use any of them.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
 #0  0x000000000057b790 in ?? ()&lt;br /&gt;
 #1  0x000000000051e66b in ?? ()&lt;br /&gt;
 #2  0x000000000051edb6 in ?? ()&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
This is an exmple of an unuseful backtrace. It doesn't show where the error happened and what went wrong. If your backtrace looks like this, it is pretty unuseful for us. This backtrace is either created from a binary without debug information (stripped), or ''gdb'' was unable to parse it (see above section).&lt;br /&gt;
&lt;br /&gt;
 #0  0x1003f604 in CUpDownClient::ClearDownloadBlockRequests ()&lt;br /&gt;
 #1  0x10044978 in CUpDownClient::Disconnected ()&lt;br /&gt;
 #2  0x1004d958 in CClientList::ProcessDirectCallbackList ()&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Now this is better, but still not enough. We now have global symbols, so we can see which function called which. But this still lacks line number and local symbol information, making it really hard to find the cause of the crash.&lt;br /&gt;
&lt;br /&gt;
 #0  0x000000000046fcab in CUpDownClient::ClearDownloadBlockRequests (this=0x45bf9e0) at BaseClient.cpp:1175&lt;br /&gt;
 #1  0x00000000004d1480 in CUpDownClient::SetDownloadState (this=0x45bf9e0, byNewState=1 '\001') at DownloadClient.cpp:541&lt;br /&gt;
 #2  0x00000000004703bd in CUpDownClient::Disconnected (this=0x45bf9e0, strReason=@0x7ffffc74e2b0, bFromSocket=false) at BaseClient.cpp:1239&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Well, this is what I call a useful backtrace. It has both global and local symbols and line numbers. Now we can see the program state as it was at the time of the crash, and can possibly &amp;quot;easily&amp;quot; identify, what went wrong.&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
* [http://www.gentoo.org/proj/en/qa/backtraces.xml How to get meaningful backtraces in Gentoo]&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/Backtraces</id>
		<title>Backtraces</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/Backtraces"/>
				<updated>2009-07-31T16:37:15Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* Compiling aMule on gentoo */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
[[Backtraces|English]] | &lt;br /&gt;
[[Backtraces-es|Espa&amp;amp;ntilde;ol]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Well, not hard to guess, this is about backtraces.&lt;br /&gt;
&lt;br /&gt;
Usually, it should not be necessary for the normal user to do this. However, we might have a bad day and release a somewhat buggy version or you are running [http://subversion.tigris.org SVN] which can also be unstable sometimes.&lt;br /&gt;
This is where the backtraces come in: if [[aMule]] crashes, and you get an &amp;quot;OOPS - aMule crashed&amp;quot; and so on, we'd like to know. The backtrace [[aMule]] provides is not always very usefull as it contains little information, but, as usual, there's a better way: A *real* backtrace.&lt;br /&gt;
&lt;br /&gt;
== The GNU Debugger ==&lt;br /&gt;
First of all, you need the [http://www.gnu.org/software/gdb/gdb.html GNU Debugger] installed. It's called ''gdb'' and you could check for that by typing ''which gdb'' in a console window. You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 $ which gdb&lt;br /&gt;
 /usr/bin/gdb&lt;br /&gt;
&lt;br /&gt;
If you don't have [http://www.gnu.org/software/gdb/gdb.html GDB] installed, you will get a message like this:&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 $ which gdb&lt;br /&gt;
 which: no gdb in (/bin:/usr/bin:[etc])&lt;br /&gt;
&lt;br /&gt;
If that is the case, the [http://www.gnu.org/software/gdb/gdb.html GNU Debugger] is most likely not installed on your system and you should install it before you proceed.&lt;br /&gt;
&lt;br /&gt;
If your OS is [http://www.gentoo.org Gentoo Linux] you have just to type this:&lt;br /&gt;
 # emerge -av gdb&lt;br /&gt;
&lt;br /&gt;
== Compiling [[aMule]] ==&lt;br /&gt;
Then, compile [[aMule]] with debugging information:&lt;br /&gt;
&lt;br /&gt;
 $ ./configure --enable-debug --disable-optimize --prefix=/where/to/install/aMule&lt;br /&gt;
 $ make&lt;br /&gt;
 $ make install&lt;br /&gt;
&lt;br /&gt;
If you do not want to overwrite you old copy of [[aMule]], simply do this instead:&lt;br /&gt;
&lt;br /&gt;
 $ ./configure --enable-debug --disable-optimize&lt;br /&gt;
 $ make&lt;br /&gt;
&lt;br /&gt;
[[aMule]] can then be run by going into the dir ''src'' and typing ''./amule''&lt;br /&gt;
&lt;br /&gt;
If you are unable or unwilling to recompile, or are running a RPM version, proceed anyway, but be aware that backtraces from debugging enabled builds are much more useful to us.&lt;br /&gt;
&lt;br /&gt;
=== On Gentoo ===&lt;br /&gt;
You must follow [http://www.gentoo.org/proj/en/qa/backtraces.xml How to get meaningful backtraces in Gentoo].&lt;br /&gt;
&lt;br /&gt;
In short, most gentoo users want to edit /etc/make.conf, add &amp;quot;-ggdb&amp;quot; into their CFLAGS and&lt;br /&gt;
 FEATURES=&amp;quot;splitdebug&amp;quot;&lt;br /&gt;
Those are needed by gdb in order to find the debug symbols.&lt;br /&gt;
Emerge amule as usual with&lt;br /&gt;
 USE=&amp;quot;debug&amp;quot; emerge amule&lt;br /&gt;
If you don't use &amp;quot;USE=&amp;quot;debug&amp;quot;&amp;quot;, you will get a little bit less information from gdb, so it is better to use it.&lt;br /&gt;
&lt;br /&gt;
== Create a backtrace ==&lt;br /&gt;
Now create in your home directory the file ''.gdbinit'' and put these lines into it (or you can type them in at the ''(gdb)'' prompt later):&lt;br /&gt;
&lt;br /&gt;
 ha SIGPIPE nostop noprint pass&lt;br /&gt;
 ha SIG32 nostop noprint pass&lt;br /&gt;
 ha SIG33 nostop noprint pass&lt;br /&gt;
 ha SIG34 nostop noprint pass&lt;br /&gt;
&lt;br /&gt;
For those who want to know the meaning of the previous lines:&lt;br /&gt;
the first one avoid [http://www.gnu.org/software/gdb/gdb.html GDB] stopping at broken pipes;&lt;br /&gt;
the second one avoid [http://www.gnu.org/software/gdb/gdb.html GDB] stopping at new thread.&lt;br /&gt;
&lt;br /&gt;
To create a backtrace, open a console and do the following:&lt;br /&gt;
&lt;br /&gt;
 $ gdb /where/to/install/aMule/bin/amule&lt;br /&gt;
 (gdb) run&lt;br /&gt;
&lt;br /&gt;
Now use [[aMule]] normally until it crashes. If it crashes do the following:&lt;br /&gt;
&lt;br /&gt;
 (gdb) bt&lt;br /&gt;
 (gdb) bt full&lt;br /&gt;
 (gdb) thread apply all bt&lt;br /&gt;
&lt;br /&gt;
Post the output of the last three commands in the [http://forum.amule.org/index.php?board=33.0 backtraces forum] with some additional comment about the circumstances the segfault happened and what [[aMule]] version you used (or checkout time for [http://www.gnu.org/software/cvs CVS]).&lt;br /&gt;
&lt;br /&gt;
== The core file ==&lt;br /&gt;
If your [[aMule]] executable has been compiled with debug information (''--enable-debug'' configure flag), but you were not running it from within [http://www.gnu.org/software/gdb/gdb.html GDB], there is still a way to generate a backtrace, if your system was configured to generate '''core files'''.&lt;br /&gt;
&lt;br /&gt;
Core files are the full memory image of a process that crashed. Your session must be properly configured, so that the system generates core files. Add the following command to ''~/.bashrc'':&lt;br /&gt;
&lt;br /&gt;
''ulimit -c unlimited''&lt;br /&gt;
&lt;br /&gt;
Now, when a program crashes, suppose it generate the file ''core.1234'' (this name can be different, but usually will start with 'core') you can enter [http://www.gnu.org/software/gdb/gdb.html GDB] like that:&lt;br /&gt;
&lt;br /&gt;
''$ gdb --core=/path/to/amule /path/to/core/file/core.1234''&lt;br /&gt;
&lt;br /&gt;
REMARK: ''$ gdb /path/to/amule --core=/path/to/core/file/core.&amp;lt;pid&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
and then proceed as in the last session and issue 'bt' and 'bt full'.&lt;br /&gt;
&lt;br /&gt;
So, that's it, have fun with [[aMule]]&lt;br /&gt;
&lt;br /&gt;
Greetings, [[User:Citroklar|Citroklar]] &amp;amp; [[User:Phoenix|Phoenix]]&lt;br /&gt;
&lt;br /&gt;
(Most of the above shamelessly stolen from pure_ascii's post in backtraces forum, thanks, pure!)&lt;br /&gt;
&lt;br /&gt;
Please read [[Using_gdb_and_valgrind|this]] to learn more about [http://www.gnu.org/software/gdb/gdb.html GDB] and [http://valgrind.kde.org Valgrind].&lt;br /&gt;
&lt;br /&gt;
== General pitfalls and caveats ==&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;-fomit-frame-pointer&amp;lt;/tt&amp;gt;&lt;br /&gt;
:On &amp;lt;tt&amp;gt;x86&amp;lt;/tt&amp;gt; platforms the &amp;lt;tt&amp;gt;-fomit-frame-pointer&amp;lt;/tt&amp;gt; compiler flag usually results in an extra free register to use, but unfortunately it most likely causes ''gdb'' to be unable to parse the resulting executable. Check your &amp;lt;tt&amp;gt;CFLAGS&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;CXXFLAGS&amp;lt;/tt&amp;gt; variables.&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;-fPIE&amp;lt;/tt&amp;gt;&lt;br /&gt;
:If you use the &amp;lt;tt&amp;gt;-fPIE&amp;lt;/tt&amp;gt; compiler flag to compile aMule, you must use &amp;lt;tt&amp;gt;-nopie&amp;lt;/tt&amp;gt; for the linking stage: add &amp;lt;tt&amp;gt;-nopie&amp;lt;/tt&amp;gt; to your &amp;lt;tt&amp;gt;LDFLAGS&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
;Stripping binaries&lt;br /&gt;
:You must not strip the binaries (remove debug info), if you want to create a backtrace. The make process does not automatically strip the binaries, except for the &amp;lt;tt&amp;gt;install-strip&amp;lt;/tt&amp;gt; target. Do not use it.&lt;br /&gt;
:The GNU linker (&amp;lt;tt&amp;gt;ld&amp;lt;/tt&amp;gt;) is capable of automatically stripping the binaries, if the &amp;lt;tt&amp;gt;-s&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;-S&amp;lt;/tt&amp;gt; flag is passed to it. This is usually passed via &amp;lt;tt&amp;gt;LDFLAGS&amp;lt;/tt&amp;gt; as &amp;lt;tt&amp;gt;-Wl,-s&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;-Wl,-S&amp;lt;/tt&amp;gt;. Please check that you don't use any of them.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
 #0  0x000000000057b790 in ?? ()&lt;br /&gt;
 #1  0x000000000051e66b in ?? ()&lt;br /&gt;
 #2  0x000000000051edb6 in ?? ()&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
This is an exmple of an unuseful backtrace. It doesn't show where the error happened and what went wrong. If your backtrace looks like this, it is pretty unuseful for us. This backtrace is either created from a binary without debug information (stripped), or ''gdb'' was unable to parse it (see above section).&lt;br /&gt;
&lt;br /&gt;
 #0  0x1003f604 in CUpDownClient::ClearDownloadBlockRequests ()&lt;br /&gt;
 #1  0x10044978 in CUpDownClient::Disconnected ()&lt;br /&gt;
 #2  0x1004d958 in CClientList::ProcessDirectCallbackList ()&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Now this is better, but still not enough. We now have global symbols, so we can see which function called which. But this still lacks line number and local symbol information, making it really hard to find the cause of the crash.&lt;br /&gt;
&lt;br /&gt;
 #0  0x000000000046fcab in CUpDownClient::ClearDownloadBlockRequests (this=0x45bf9e0) at BaseClient.cpp:1175&lt;br /&gt;
 #1  0x00000000004d1480 in CUpDownClient::SetDownloadState (this=0x45bf9e0, byNewState=1 '\001') at DownloadClient.cpp:541&lt;br /&gt;
 #2  0x00000000004703bd in CUpDownClient::Disconnected (this=0x45bf9e0, strReason=@0x7ffffc74e2b0, bFromSocket=false) at BaseClient.cpp:1239&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
Well, this is what I call a useful backtrace. It has both global and local symbols and line numbers. Now we can see the program state as it was at the time of the crash, and can possibly &amp;quot;easily&amp;quot; identify, what went wrong.&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
* [http://www.gentoo.org/proj/en/qa/backtraces.xml How to get meaningful backtraces in Gentoo]&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2007-12-23T21:42:23Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* amule CVS (latest one) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[HowTo_Compile_In_Gentoo-es|Español]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 23.12.2007 - Newest Gentoo Version are now 2.1.3 as well that 2 CVS versions.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. Unfortunately, some choices require more labor than others. As such, [[aMule]] comes in a variety of versions and installation methods based on what version of [[wxGTK]] you decide to use...&lt;br /&gt;
&lt;br /&gt;
Also, if you plan to build a GUI-less core, you might want to take a look at http://bugs.gentoo.org/show_bug.cgi?id=109515, comment #3 contains a patch for wxGTK ebuild that removes the dependency on X.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.1.3.ebuild ===&lt;br /&gt;
This ebuild matches the most current, stable [[aMule]] release, it is available 13.10.2007 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.6.*; &amp;gt;=sys-libs/zlib-1.2.1; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support.&lt;br /&gt;
&lt;br /&gt;
=== amule-cvs ===&lt;br /&gt;
This ebuild is marked as '''unstable''' for all architectures.&lt;br /&gt;
&lt;br /&gt;
Not intended for the general public. If you'd like to test out the daily development snapshot, then this is the version for you.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.6.* or 2.8.*; &amp;gt;=sys-libs/zlib-1.2.1; &amp;gt;=media-libs/gd-2.0.26; &amp;gt;=media-libs/libpng-1.2.0; devs-libs/geoip&amp;lt;br&amp;gt;&lt;br /&gt;
Status: In development; 2 versions in portage; the latest tarball need a personal portage overlay&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
=== amule-2.1.3.ebuild ===&lt;br /&gt;
1. Emerge package:&lt;br /&gt;
  emerge --sync&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
=== amule CVS (portage) ===&lt;br /&gt;
Portage have 2 CVS ebuilds: amule-2.2.0_pre20070422.ebuild with wXgtk-2.6 support and amule-2.2.0_pre20071204.ebuild with wXgtk-2.8 support. Both are marked as '''unstable''' for all architectures.&lt;br /&gt;
&lt;br /&gt;
====To install amule-2.2.0_pre20070422:====&lt;br /&gt;
&lt;br /&gt;
1. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
2. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
3. Modify ''/etc/portage/package.use'' to suit your needs :&lt;br /&gt;
  net-p2p/amule -amuled -debug gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
Personally, I have the unicode USE flag in /etc/make.conf so that any program that support unicode will be compiled with unicode support. &lt;br /&gt;
&lt;br /&gt;
4. Install [[aMule]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
====To install amule-2.2.0_pre-20071204,====&lt;br /&gt;
we need to unmask wXgtk-2.8. Process like for amule-2.2.0_pre20070422, but with this supplementary step:&lt;br /&gt;
&lt;br /&gt;
1. Unmask amule-2.2.0_pre-20071204 and wXgtk-2.8&lt;br /&gt;
  echo &amp;quot;=net-p2p/amule-2.2.0_pre20071204&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.unmask&lt;br /&gt;
  echo &amp;quot;=x11-libs/wxGTK-2.8.7.1&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.unmask&lt;br /&gt;
&lt;br /&gt;
=== amule CVS (latest one) ===&lt;br /&gt;
It is no ebuild for the current [[aMule CVS]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds HOWTO Installing 3rd Party Ebuilds]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. CVS ebuild from a CVS tarball are not named as '''package_name-cvs''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real CVS ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-cvs:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-2.2.0_p20071217.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 17 December 2007 that was working fine for me, but you can change the date like you want. I use '''p''' in order to distinguish this ebuild from the ones in portage (using '''pre'''). &lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2007 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_PN=${PN/m/M}&lt;br /&gt;
 MY_PV=&amp;quot;${PV/2.2.0_p/}&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}/amule-cvs&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://www.hirnriss.net/files/cvs/${MY_PN}-CVS-${MY_PV}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;amuled debug geoip gtk nls remote stats unicode&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8*&lt;br /&gt;
 		&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 		stats? ( &amp;gt;=media-libs/gd-2.0.26 )&lt;br /&gt;
 		geoip? ( dev-libs/geoip )&lt;br /&gt;
 		remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 		unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 		if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use amuled; then&lt;br /&gt;
 				eerror &amp;quot;&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;You have to specify at least one of gtk, remote or amuled&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;&amp;quot;&lt;br /&gt;
 				die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 				einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 				einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 				einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use stats &amp;amp;&amp;amp; ! built_with_use media-libs/gd jpeg; then&lt;br /&gt;
 				die &amp;quot;media-libs/gd should be compiled with the jpeg use flag when you have the stats use   flag set&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use amuled || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_compile() {&lt;br /&gt;
 		local myconf&lt;br /&gt;
 &lt;br /&gt;
 		WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 		if use gtk; then&lt;br /&gt;
 				einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 				need-wxwidgets unicode&lt;br /&gt;
 		else&lt;br /&gt;
 				einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 				need-wxwidgets base&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use gtk ; then&lt;br /&gt;
 				use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 					--enable-wxcas&lt;br /&gt;
 					--enable-alc&amp;quot;&lt;br /&gt;
 				use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 					--enable-amule-gui&amp;quot;&lt;br /&gt;
 		else&lt;br /&gt;
 				myconf=&amp;quot;&lt;br /&gt;
 					--disable-monolithic&lt;br /&gt;
 					--disable-amule-gui&lt;br /&gt;
 					--disable-wxcas&lt;br /&gt;
 					--disable-alc&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		econf \&lt;br /&gt;
 				--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 				--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 				--enable-amulecmd \&lt;br /&gt;
 				$(use_enable debug) \&lt;br /&gt;
 				$(use_enable !debug optimize) \&lt;br /&gt;
 				$(use_enable amuled amule-daemon) \&lt;br /&gt;
 				$(use_enable geoip) \&lt;br /&gt;
 				$(use_enable nls) \&lt;br /&gt;
 				$(use_enable remote webserver) \&lt;br /&gt;
 				$(use_enable stats cas) \&lt;br /&gt;
 				$(use_enable stats alcc) \&lt;br /&gt;
 				${myconf} || die&lt;br /&gt;
 &lt;br /&gt;
 		# we filter ssp until bug #74457 is closed to build on hardened&lt;br /&gt;
 		filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 &lt;br /&gt;
 		emake -j1 || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 		emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 		if use amuled; then&lt;br /&gt;
 				newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 				newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use remote; then&lt;br /&gt;
 				newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 				newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 		fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Digest the ebuild:&lt;br /&gt;
  ebuild amule-2.2.0_p10071217.ebuild digest&lt;br /&gt;
&lt;br /&gt;
7. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
8. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug geoip gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
9. Install [[aMule CVS]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
== aMule 2.1.1 Compilation FAQ ==&lt;br /&gt;
When compiling aMule-2.1.1 on a hardened system with gcc-3.4.5(at least), it will fail with something like:&lt;br /&gt;
 WebServer.h: In member function `T* UpdatableItemsContainer&amp;lt;T, G, I&amp;gt;::GetByID(I) [with T = SharedFile, G = CEC_SharedFile_Tag, I = CMD4Hash]':&lt;br /&gt;
 WebServer.h:270: internal compiler error: in sweep_string_variable, at protector.c:1158&lt;br /&gt;
&lt;br /&gt;
The possible problem is the -fPIE CFLAG because using `gcc-config` to select ''i386-pc-linux-gnu-3.4.5-hardenednopiessp'' fixed the problem, and you can even remove from the ebuild:&lt;br /&gt;
 if has_hardened; then&lt;br /&gt;
     filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
You can read more on the subject following the link http://bugs.gentoo.org/show_bug.cgi?id=74457&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2007-12-23T21:40:31Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[HowTo_Compile_In_Gentoo-es|Español]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 23.12.2007 - Newest Gentoo Version are now 2.1.3 as well that 2 CVS versions.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. Unfortunately, some choices require more labor than others. As such, [[aMule]] comes in a variety of versions and installation methods based on what version of [[wxGTK]] you decide to use...&lt;br /&gt;
&lt;br /&gt;
Also, if you plan to build a GUI-less core, you might want to take a look at http://bugs.gentoo.org/show_bug.cgi?id=109515, comment #3 contains a patch for wxGTK ebuild that removes the dependency on X.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.1.3.ebuild ===&lt;br /&gt;
This ebuild matches the most current, stable [[aMule]] release, it is available 13.10.2007 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.6.*; &amp;gt;=sys-libs/zlib-1.2.1; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support.&lt;br /&gt;
&lt;br /&gt;
=== amule-cvs ===&lt;br /&gt;
This ebuild is marked as '''unstable''' for all architectures.&lt;br /&gt;
&lt;br /&gt;
Not intended for the general public. If you'd like to test out the daily development snapshot, then this is the version for you.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.6.* or 2.8.*; &amp;gt;=sys-libs/zlib-1.2.1; &amp;gt;=media-libs/gd-2.0.26; &amp;gt;=media-libs/libpng-1.2.0; devs-libs/geoip&amp;lt;br&amp;gt;&lt;br /&gt;
Status: In development; 2 versions in portage; the latest tarball need a personal portage overlay&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
=== amule-2.1.3.ebuild ===&lt;br /&gt;
1. Emerge package:&lt;br /&gt;
  emerge --sync&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
=== amule CVS (portage) ===&lt;br /&gt;
Portage have 2 CVS ebuilds: amule-2.2.0_pre20070422.ebuild with wXgtk-2.6 support and amule-2.2.0_pre20071204.ebuild with wXgtk-2.8 support. Both are marked as '''unstable''' for all architectures.&lt;br /&gt;
&lt;br /&gt;
====To install amule-2.2.0_pre20070422:====&lt;br /&gt;
&lt;br /&gt;
1. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
2. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
3. Modify ''/etc/portage/package.use'' to suit your needs :&lt;br /&gt;
  net-p2p/amule -amuled -debug gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
Personally, I have the unicode USE flag in /etc/make.conf so that any program that support unicode will be compiled with unicode support. &lt;br /&gt;
&lt;br /&gt;
4. Install [[aMule]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
====To install amule-2.2.0_pre-20071204,====&lt;br /&gt;
we need to unmask wXgtk-2.8. Process like for amule-2.2.0_pre20070422, but with this supplementary step:&lt;br /&gt;
&lt;br /&gt;
1. Unmask amule-2.2.0_pre-20071204 and wXgtk-2.8&lt;br /&gt;
  echo &amp;quot;=net-p2p/amule-2.2.0_pre20071204&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.unmask&lt;br /&gt;
  echo &amp;quot;=x11-libs/wxGTK-2.8.7.1&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.unmask&lt;br /&gt;
&lt;br /&gt;
=== amule CVS (latest one) ===&lt;br /&gt;
It is no ebuild for the current [[aMule CVS]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds HOWTO Installing 3rd Party Ebuilds]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. CVS ebuild from a CVS tarball are not named as '''package_name-cvs''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real CVS ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-cvs:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-2.2.0_p20071217.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 17 December 2007 that was working fine for me, but you can change the date like you want. I use '''p''' in order to distinguish this ebuild from the ones in portage (using '''pre'''). &lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2007 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_PN=${PN/m/M}&lt;br /&gt;
 MY_PV=&amp;quot;${PV/2.2.0_p/}&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}/amule-cvs&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://www.hirnriss.net/files/cvs/${MY_PN}-CVS-${MY_PV}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;amuled debug geoip gtk nls remote stats unicode&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8*&lt;br /&gt;
 		&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 		stats? ( &amp;gt;=media-libs/gd-2.0.26 )&lt;br /&gt;
 		geoip? ( dev-libs/geoip )&lt;br /&gt;
 		remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 		unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 		if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use amuled; then&lt;br /&gt;
 				eerror &amp;quot;&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;You have to specify at least one of gtk, remote or amuled&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;&amp;quot;&lt;br /&gt;
 				die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 				einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 				einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 				einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use stats &amp;amp;&amp;amp; ! built_with_use media-libs/gd jpeg; then&lt;br /&gt;
 				die &amp;quot;media-libs/gd should be compiled with the jpeg use flag when you have the stats use   flag set&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use amuled || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_compile() {&lt;br /&gt;
 		local myconf&lt;br /&gt;
 &lt;br /&gt;
 		WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 		if use gtk; then&lt;br /&gt;
 				einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 				need-wxwidgets unicode&lt;br /&gt;
 		else&lt;br /&gt;
 				einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 				need-wxwidgets base&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use gtk ; then&lt;br /&gt;
 				use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 					--enable-wxcas&lt;br /&gt;
 					--enable-alc&amp;quot;&lt;br /&gt;
 				use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 					--enable-amule-gui&amp;quot;&lt;br /&gt;
 		else&lt;br /&gt;
 				myconf=&amp;quot;&lt;br /&gt;
 					--disable-monolithic&lt;br /&gt;
 					--disable-amule-gui&lt;br /&gt;
 					--disable-wxcas&lt;br /&gt;
 					--disable-alc&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		econf \&lt;br /&gt;
 				--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 				--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 				--enable-amulecmd \&lt;br /&gt;
 				$(use_enable debug) \&lt;br /&gt;
 				$(use_enable !debug optimize) \&lt;br /&gt;
 				$(use_enable amuled amule-daemon) \&lt;br /&gt;
 				$(use_enable geoip) \&lt;br /&gt;
 				$(use_enable nls) \&lt;br /&gt;
 				$(use_enable remote webserver) \&lt;br /&gt;
 				$(use_enable stats cas) \&lt;br /&gt;
 				$(use_enable stats alcc) \&lt;br /&gt;
 				${myconf} || die&lt;br /&gt;
 &lt;br /&gt;
 		# we filter ssp until bug #74457 is closed to build on hardened&lt;br /&gt;
 		filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 &lt;br /&gt;
 		emake -j1 || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 		emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 		if use amuled; then&lt;br /&gt;
 				newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 				newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use remote; then&lt;br /&gt;
 				newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 				newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 		fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Digest the ebuild:&lt;br /&gt;
  ebuild amule-2.2.0_p10071217.ebuild digest&lt;br /&gt;
&lt;br /&gt;
7. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
8. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule X amuled -debug geoip gtk nls -nosystray -optimize remote remote-gui -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
9. Install [[aMule CVS]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
== aMule 2.1.1 Compilation FAQ ==&lt;br /&gt;
When compiling aMule-2.1.1 on a hardened system with gcc-3.4.5(at least), it will fail with something like:&lt;br /&gt;
 WebServer.h: In member function `T* UpdatableItemsContainer&amp;lt;T, G, I&amp;gt;::GetByID(I) [with T = SharedFile, G = CEC_SharedFile_Tag, I = CMD4Hash]':&lt;br /&gt;
 WebServer.h:270: internal compiler error: in sweep_string_variable, at protector.c:1158&lt;br /&gt;
&lt;br /&gt;
The possible problem is the -fPIE CFLAG because using `gcc-config` to select ''i386-pc-linux-gnu-3.4.5-hardenednopiessp'' fixed the problem, and you can even remove from the ebuild:&lt;br /&gt;
 if has_hardened; then&lt;br /&gt;
     filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
You can read more on the subject following the link http://bugs.gentoo.org/show_bug.cgi?id=74457&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2007-12-23T21:40:09Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[HowTo_Compile_In_Gentoo-es|Español]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 23.12.2007 - Newest Gentoo Version are now 2.1.3 as well as 2 CVS versions.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. Unfortunately, some choices require more labor than others. As such, [[aMule]] comes in a variety of versions and installation methods based on what version of [[wxGTK]] you decide to use...&lt;br /&gt;
&lt;br /&gt;
Also, if you plan to build a GUI-less core, you might want to take a look at http://bugs.gentoo.org/show_bug.cgi?id=109515, comment #3 contains a patch for wxGTK ebuild that removes the dependency on X.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.1.3.ebuild ===&lt;br /&gt;
This ebuild matches the most current, stable [[aMule]] release, it is available 13.10.2007 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.6.*; &amp;gt;=sys-libs/zlib-1.2.1; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support.&lt;br /&gt;
&lt;br /&gt;
=== amule-cvs ===&lt;br /&gt;
This ebuild is marked as '''unstable''' for all architectures.&lt;br /&gt;
&lt;br /&gt;
Not intended for the general public. If you'd like to test out the daily development snapshot, then this is the version for you.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.6.* or 2.8.*; &amp;gt;=sys-libs/zlib-1.2.1; &amp;gt;=media-libs/gd-2.0.26; &amp;gt;=media-libs/libpng-1.2.0; devs-libs/geoip&amp;lt;br&amp;gt;&lt;br /&gt;
Status: In development; 2 versions in portage; the latest tarball need a personal portage overlay&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
=== amule-2.1.3.ebuild ===&lt;br /&gt;
1. Emerge package:&lt;br /&gt;
  emerge --sync&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
=== amule CVS (portage) ===&lt;br /&gt;
Portage have 2 CVS ebuilds: amule-2.2.0_pre20070422.ebuild with wXgtk-2.6 support and amule-2.2.0_pre20071204.ebuild with wXgtk-2.8 support. Both are marked as '''unstable''' for all architectures.&lt;br /&gt;
&lt;br /&gt;
====To install amule-2.2.0_pre20070422:====&lt;br /&gt;
&lt;br /&gt;
1. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
2. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
3. Modify ''/etc/portage/package.use'' to suit your needs :&lt;br /&gt;
  net-p2p/amule -amuled -debug gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
Personally, I have the unicode USE flag in /etc/make.conf so that any program that support unicode will be compiled with unicode support. &lt;br /&gt;
&lt;br /&gt;
4. Install [[aMule]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
====To install amule-2.2.0_pre-20071204,====&lt;br /&gt;
we need to unmask wXgtk-2.8. Process like for amule-2.2.0_pre20070422, but with this supplementary step:&lt;br /&gt;
&lt;br /&gt;
1. Unmask amule-2.2.0_pre-20071204 and wXgtk-2.8&lt;br /&gt;
  echo &amp;quot;=net-p2p/amule-2.2.0_pre20071204&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.unmask&lt;br /&gt;
  echo &amp;quot;=x11-libs/wxGTK-2.8.7.1&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.unmask&lt;br /&gt;
&lt;br /&gt;
=== amule CVS (latest one) ===&lt;br /&gt;
It is no ebuild for the current [[aMule CVS]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds HOWTO Installing 3rd Party Ebuilds]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. CVS ebuild from a CVS tarball are not named as '''package_name-cvs''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real CVS ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-cvs:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-2.2.0_p20071217.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 17 December 2007 that was working fine for me, but you can change the date like you want. I use '''p''' in order to distinguish this ebuild from the ones in portage (using '''pre'''). &lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2007 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_PN=${PN/m/M}&lt;br /&gt;
 MY_PV=&amp;quot;${PV/2.2.0_p/}&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}/amule-cvs&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://www.hirnriss.net/files/cvs/${MY_PN}-CVS-${MY_PV}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;amuled debug geoip gtk nls remote stats unicode&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8*&lt;br /&gt;
 		&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 		stats? ( &amp;gt;=media-libs/gd-2.0.26 )&lt;br /&gt;
 		geoip? ( dev-libs/geoip )&lt;br /&gt;
 		remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 		unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 		if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use amuled; then&lt;br /&gt;
 				eerror &amp;quot;&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;You have to specify at least one of gtk, remote or amuled&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;&amp;quot;&lt;br /&gt;
 				die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 				einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 				einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 				einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use stats &amp;amp;&amp;amp; ! built_with_use media-libs/gd jpeg; then&lt;br /&gt;
 				die &amp;quot;media-libs/gd should be compiled with the jpeg use flag when you have the stats use   flag set&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use amuled || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_compile() {&lt;br /&gt;
 		local myconf&lt;br /&gt;
 &lt;br /&gt;
 		WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 		if use gtk; then&lt;br /&gt;
 				einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 				need-wxwidgets unicode&lt;br /&gt;
 		else&lt;br /&gt;
 				einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 				need-wxwidgets base&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use gtk ; then&lt;br /&gt;
 				use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 					--enable-wxcas&lt;br /&gt;
 					--enable-alc&amp;quot;&lt;br /&gt;
 				use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 					--enable-amule-gui&amp;quot;&lt;br /&gt;
 		else&lt;br /&gt;
 				myconf=&amp;quot;&lt;br /&gt;
 					--disable-monolithic&lt;br /&gt;
 					--disable-amule-gui&lt;br /&gt;
 					--disable-wxcas&lt;br /&gt;
 					--disable-alc&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		econf \&lt;br /&gt;
 				--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 				--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 				--enable-amulecmd \&lt;br /&gt;
 				$(use_enable debug) \&lt;br /&gt;
 				$(use_enable !debug optimize) \&lt;br /&gt;
 				$(use_enable amuled amule-daemon) \&lt;br /&gt;
 				$(use_enable geoip) \&lt;br /&gt;
 				$(use_enable nls) \&lt;br /&gt;
 				$(use_enable remote webserver) \&lt;br /&gt;
 				$(use_enable stats cas) \&lt;br /&gt;
 				$(use_enable stats alcc) \&lt;br /&gt;
 				${myconf} || die&lt;br /&gt;
 &lt;br /&gt;
 		# we filter ssp until bug #74457 is closed to build on hardened&lt;br /&gt;
 		filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 &lt;br /&gt;
 		emake -j1 || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 		emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 		if use amuled; then&lt;br /&gt;
 				newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 				newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use remote; then&lt;br /&gt;
 				newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 				newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 		fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Digest the ebuild:&lt;br /&gt;
  ebuild amule-2.2.0_p10071217.ebuild digest&lt;br /&gt;
&lt;br /&gt;
7. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
8. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule X amuled -debug geoip gtk nls -nosystray -optimize remote remote-gui -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
9. Install [[aMule CVS]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
== aMule 2.1.1 Compilation FAQ ==&lt;br /&gt;
When compiling aMule-2.1.1 on a hardened system with gcc-3.4.5(at least), it will fail with something like:&lt;br /&gt;
 WebServer.h: In member function `T* UpdatableItemsContainer&amp;lt;T, G, I&amp;gt;::GetByID(I) [with T = SharedFile, G = CEC_SharedFile_Tag, I = CMD4Hash]':&lt;br /&gt;
 WebServer.h:270: internal compiler error: in sweep_string_variable, at protector.c:1158&lt;br /&gt;
&lt;br /&gt;
The possible problem is the -fPIE CFLAG because using `gcc-config` to select ''i386-pc-linux-gnu-3.4.5-hardenednopiessp'' fixed the problem, and you can even remove from the ebuild:&lt;br /&gt;
 if has_hardened; then&lt;br /&gt;
     filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
You can read more on the subject following the link http://bugs.gentoo.org/show_bug.cgi?id=74457&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2007-12-23T21:38:11Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* amule CVS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[HowTo_Compile_In_Gentoo-es|Español]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;h1&amp;gt;&amp;lt;font color=red&amp;gt;Someone should check how recent this Article is, and update it for 2.1.3 or better 2.2.0&amp;lt;/font&amp;gt;&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 24.10.2006 - Newest Gentoo Version is now 2.1.2&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. Unfortunately, some choices require more labor than others. As such, [[aMule]] comes in a variety of versions and installation methods based on what version of [[wxGTK]] you decide to use...&lt;br /&gt;
&lt;br /&gt;
Also, if you plan to build a GUI-less core, you might want to take a look at http://bugs.gentoo.org/show_bug.cgi?id=109515, comment #3 contains a patch for wxGTK ebuild that removes the dependency on X.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.1.3.ebuild ===&lt;br /&gt;
This ebuild matches the most current, stable [[aMule]] release, it is available 13.10.2007 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.6.*; &amp;gt;=sys-libs/zlib-1.2.1; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support.&lt;br /&gt;
&lt;br /&gt;
=== amule-cvs ===&lt;br /&gt;
This ebuild is marked as '''unstable''' for all architectures.&lt;br /&gt;
&lt;br /&gt;
Not intended for the general public. If you'd like to test out the daily development snapshot, then this is the version for you.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.6.* or 2.8.*; &amp;gt;=sys-libs/zlib-1.2.1; &amp;gt;=media-libs/gd-2.0.26; &amp;gt;=media-libs/libpng-1.2.0; devs-libs/geoip&amp;lt;br&amp;gt;&lt;br /&gt;
Status: In development; 2 versions in portage; the latest tarball need a personal portage overlay&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
=== amule-2.1.3.ebuild ===&lt;br /&gt;
1. Emerge package:&lt;br /&gt;
  emerge --sync&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
=== amule CVS (portage) ===&lt;br /&gt;
Portage have 2 CVS ebuilds: amule-2.2.0_pre20070422.ebuild with wXgtk-2.6 support and amule-2.2.0_pre20071204.ebuild with wXgtk-2.8 support. Both are marked as '''unstable''' for all architectures.&lt;br /&gt;
&lt;br /&gt;
====To install amule-2.2.0_pre20070422:====&lt;br /&gt;
&lt;br /&gt;
1. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
2. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
3. Modify ''/etc/portage/package.use'' to suit your needs :&lt;br /&gt;
  net-p2p/amule -amuled -debug gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule amuled -debug gtk nls remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
Personally, I have the unicode USE flag in /etc/make.conf so that any program that support unicode will be compiled with unicode support. &lt;br /&gt;
&lt;br /&gt;
4. Install [[aMule]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
====To install amule-2.2.0_pre-20071204,====&lt;br /&gt;
we need to unmask wXgtk-2.8. Process like for amule-2.2.0_pre20070422, but with this supplementary step:&lt;br /&gt;
&lt;br /&gt;
1. Unmask amule-2.2.0_pre-20071204 and wXgtk-2.8&lt;br /&gt;
  echo &amp;quot;=net-p2p/amule-2.2.0_pre20071204&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.unmask&lt;br /&gt;
  echo &amp;quot;=x11-libs/wxGTK-2.8.7.1&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.unmask&lt;br /&gt;
&lt;br /&gt;
=== amule CVS (latest one) ===&lt;br /&gt;
It is no ebuild for the current [[aMule CVS]] so we need to add one in portage. For that, we will make use of a personal portage overlay. If you don't already have one, just follow this HOWTO article: [http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds HOWTO Installing 3rd Party Ebuilds]&lt;br /&gt;
&lt;br /&gt;
We will also follow the naming scheme of portage. CVS ebuild from a CVS tarball are not named as '''package_name-cvs''' but as '''package_name-version_date_of_the_tarball'''. That is to distinguish them from real CVS ebuilds (the so called live ebuilds) named as '''package_name-9999''' and using keywords=&amp;quot;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. We will use:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-cvs:&lt;br /&gt;
  mkdir -p /usr/local/net-p2p/amule&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy the following ebuild into ''{PORTDIR_OVERLAY}/net-p2p/amule/amule-2.2.0_p20071217.ebuild''&lt;br /&gt;
&lt;br /&gt;
I use here the tarball from 17 December 2007 that was working fine for me, but you can change the date like you want. I use '''p''' in order to distinguish this ebuild from the ones in portage (using '''pre'''). &lt;br /&gt;
&lt;br /&gt;
 # Copyright 1999-2007 Gentoo Foundation&lt;br /&gt;
 # Distributed under the terms of the GNU General Public License v2&lt;br /&gt;
 # $Header: $&lt;br /&gt;
 &lt;br /&gt;
 inherit eutils flag-o-matic wxwidgets&lt;br /&gt;
 &lt;br /&gt;
 MY_PN=${PN/m/M}&lt;br /&gt;
 MY_PV=&amp;quot;${PV/2.2.0_p/}&amp;quot;&lt;br /&gt;
 S=&amp;quot;${WORKDIR}/amule-cvs&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DESCRIPTION=&amp;quot;aMule, the all-platform eMule p2p client&amp;quot;&lt;br /&gt;
 HOMEPAGE=&amp;quot;http://www.amule.org/&amp;quot;&lt;br /&gt;
 SRC_URI=&amp;quot;http://www.hirnriss.net/files/cvs/${MY_PN}-CVS-${MY_PV}.tar.bz2&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RESTRICT=&amp;quot;nomirror&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 LICENSE=&amp;quot;GPL-2&amp;quot;&lt;br /&gt;
 SLOT=&amp;quot;0&amp;quot;&lt;br /&gt;
 KEYWORDS=&amp;quot;~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86&amp;quot;&lt;br /&gt;
 IUSE=&amp;quot;amuled debug geoip gtk nls remote stats unicode&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 DEPEND=&amp;quot;=x11-libs/wxGTK-2.8*&lt;br /&gt;
 		&amp;gt;=sys-libs/zlib-1.2.1&lt;br /&gt;
 		stats? ( &amp;gt;=media-libs/gd-2.0.26 )&lt;br /&gt;
 		geoip? ( dev-libs/geoip )&lt;br /&gt;
 		remote? ( &amp;gt;=media-libs/libpng-1.2.0&lt;br /&gt;
 		unicode? ( &amp;gt;=media-libs/gd-2.0.26 ) )&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 pkg_setup() {&lt;br /&gt;
 		if ! use gtk &amp;amp;&amp;amp; ! use remote &amp;amp;&amp;amp; ! use amuled; then&lt;br /&gt;
 				eerror &amp;quot;&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;You have to specify at least one of gtk, remote or amuled&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;USE flag to build amule.&amp;quot;&lt;br /&gt;
 				eerror &amp;quot;&amp;quot;&lt;br /&gt;
 				die &amp;quot;Invalid USE flag set&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use stats &amp;amp;&amp;amp; ! use gtk; then&lt;br /&gt;
 				einfo &amp;quot;Note: You would need both the gtk and stats USE flags&amp;quot;&lt;br /&gt;
 				einfo &amp;quot;to compile aMule Statistics GUI.&amp;quot;&lt;br /&gt;
 				einfo &amp;quot;I will now compile console versions only.&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use stats &amp;amp;&amp;amp; ! built_with_use media-libs/gd jpeg; then&lt;br /&gt;
 				die &amp;quot;media-libs/gd should be compiled with the jpeg use flag when you have the stats use   flag set&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 pkg_preinst() {&lt;br /&gt;
 	if use amuled || use remote; then&lt;br /&gt;
 		enewgroup p2p&lt;br /&gt;
 		enewuser p2p -1 -1 /home/p2p p2p&lt;br /&gt;
 	fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_compile() {&lt;br /&gt;
 		local myconf&lt;br /&gt;
 &lt;br /&gt;
 		WX_GTK_VER=&amp;quot;2.8&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 		if use gtk; then&lt;br /&gt;
 				einfo &amp;quot;wxGTK with gtk support will be used&amp;quot;&lt;br /&gt;
 				need-wxwidgets unicode&lt;br /&gt;
 		else&lt;br /&gt;
 				einfo &amp;quot;wxGTK without X support will be used&amp;quot;&lt;br /&gt;
 				need-wxwidgets base&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use gtk ; then&lt;br /&gt;
 				use stats &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 					--enable-wxcas&lt;br /&gt;
 					--enable-alc&amp;quot;&lt;br /&gt;
 				use remote &amp;amp;&amp;amp; myconf=&amp;quot;${myconf}&lt;br /&gt;
 					--enable-amule-gui&amp;quot;&lt;br /&gt;
 		else&lt;br /&gt;
 				myconf=&amp;quot;&lt;br /&gt;
 					--disable-monolithic&lt;br /&gt;
 					--disable-amule-gui&lt;br /&gt;
 					--disable-wxcas&lt;br /&gt;
 					--disable-alc&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		econf \&lt;br /&gt;
 				--with-wx-config=${WX_CONFIG} \&lt;br /&gt;
 				--with-wxbase-config=${WX_CONFIG} \&lt;br /&gt;
 				--enable-amulecmd \&lt;br /&gt;
 				$(use_enable debug) \&lt;br /&gt;
 				$(use_enable !debug optimize) \&lt;br /&gt;
 				$(use_enable amuled amule-daemon) \&lt;br /&gt;
 				$(use_enable geoip) \&lt;br /&gt;
 				$(use_enable nls) \&lt;br /&gt;
 				$(use_enable remote webserver) \&lt;br /&gt;
 				$(use_enable stats cas) \&lt;br /&gt;
 				$(use_enable stats alcc) \&lt;br /&gt;
 				${myconf} || die&lt;br /&gt;
 &lt;br /&gt;
 		# we filter ssp until bug #74457 is closed to build on hardened&lt;br /&gt;
 		filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 &lt;br /&gt;
 		emake -j1 || die&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 src_install() {&lt;br /&gt;
 		emake DESTDIR=&amp;quot;${D}&amp;quot; install || die&lt;br /&gt;
 &lt;br /&gt;
 		if use amuled; then&lt;br /&gt;
 				newconfd &amp;quot;${FILESDIR}&amp;quot;/amuled.confd amuled&lt;br /&gt;
 				newinitd &amp;quot;${FILESDIR}&amp;quot;/amuled.initd amuled&lt;br /&gt;
 		fi&lt;br /&gt;
 &lt;br /&gt;
 		if use remote; then&lt;br /&gt;
 				newconfd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.confd amuleweb&lt;br /&gt;
 				newinitd &amp;quot;${FILESDIR}&amp;quot;/amuleweb.initd amuleweb&lt;br /&gt;
 		fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
5. Change directory:&lt;br /&gt;
  cd /usr/local/portage/net-p2p/amule/&lt;br /&gt;
&lt;br /&gt;
6. Digest the ebuild:&lt;br /&gt;
  ebuild amule-2.2.0_p10071217.ebuild digest&lt;br /&gt;
&lt;br /&gt;
7. Review installation flags:&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
&lt;br /&gt;
8. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule -amuled -debug geoip gtk nls -remote -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule X amuled -debug geoip gtk nls -nosystray -optimize remote remote-gui -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
9. Install [[aMule CVS]]:&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
'''PLEASE''' do ''emerge amule -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
== aMule 2.1.1 Compilation FAQ ==&lt;br /&gt;
When compiling aMule-2.1.1 on a hardened system with gcc-3.4.5(at least), it will fail with something like:&lt;br /&gt;
 WebServer.h: In member function `T* UpdatableItemsContainer&amp;lt;T, G, I&amp;gt;::GetByID(I) [with T = SharedFile, G = CEC_SharedFile_Tag, I = CMD4Hash]':&lt;br /&gt;
 WebServer.h:270: internal compiler error: in sweep_string_variable, at protector.c:1158&lt;br /&gt;
&lt;br /&gt;
The possible problem is the -fPIE CFLAG because using `gcc-config` to select ''i386-pc-linux-gnu-3.4.5-hardenednopiessp'' fixed the problem, and you can even remove from the ebuild:&lt;br /&gt;
 if has_hardened; then&lt;br /&gt;
     filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
You can read more on the subject following the link http://bugs.gentoo.org/show_bug.cgi?id=74457&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2007-12-23T20:08:55Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* amule-cvs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[HowTo_Compile_In_Gentoo-es|Español]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;h1&amp;gt;&amp;lt;font color=red&amp;gt;Someone should check how recent this Article is, and update it for 2.1.3 or better 2.2.0&amp;lt;/font&amp;gt;&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 24.10.2006 - Newest Gentoo Version is now 2.1.2&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. Unfortunately, some choices require more labor than others. As such, [[aMule]] comes in a variety of versions and installation methods based on what version of [[wxGTK]] you decide to use...&lt;br /&gt;
&lt;br /&gt;
Also, if you plan to build a GUI-less core, you might want to take a look at http://bugs.gentoo.org/show_bug.cgi?id=109515, comment #3 contains a patch for wxGTK ebuild that removes the dependency on X.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.1.3.ebuild ===&lt;br /&gt;
This ebuild matches the most current, stable [[aMule]] release, it is available 13.10.2007 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.6.*; &amp;gt;=sys-libs/zlib-1.2.1; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support.&lt;br /&gt;
&lt;br /&gt;
=== amule-cvs ===&lt;br /&gt;
This ebuild is marked as '''unstable''' for all architectures.&lt;br /&gt;
&lt;br /&gt;
Not intended for the general public. If you'd like to test out the daily development snapshot, then this is the version for you.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.6.* or 2.8.*; &amp;gt;=sys-libs/zlib-1.2.1; &amp;gt;=media-libs/gd-2.0.26; &amp;gt;=media-libs/libpng-1.2.0; devs-libs/geoip&amp;lt;br&amp;gt;&lt;br /&gt;
Status: In development; 2 versions in portage; the latest tarball need a personal portage overlay&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
=== amule-2.1.3.ebuild ===&lt;br /&gt;
1. Emerge package:&lt;br /&gt;
  emerge --sync&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
=== amule-cvs ===&lt;br /&gt;
The current ebuilds for [[aMule CVS]] can be found [http://forum.amule.org/thread.php?threadid=5732 here]. Download it and continue with this wiki article.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. The default is:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-cvs:&lt;br /&gt;
  mkdir -p {PORTDIR_OVERLAY}/net-p2p/amule-cvs/files&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule-cvs ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy [http://forum.amule.org/attachment.php?attachmentid=1342 amule-cvs-3.ebuild] from [http://forum.amule.org/thread.php?postid=46114#post46114 this forum post] to ''{PORTDIR_OVERLAY}/net-p2p/amule-cvs''&lt;br /&gt;
&lt;br /&gt;
5. Copy ''amuled'' and ''amuleweb'' init script from official ebuild files:&lt;br /&gt;
  cp {PORTDIR}/net-p2p/amule/files/amuled.* {PORTDIR_OVERLAY}/net-p2p/amule-cvs/files/&lt;br /&gt;
  cp {PORTDIR}/net-p2p/amule/files/amuleweb.* {PORTDIR_OVERLAY}/net-p2p/amule-cvs/files/&lt;br /&gt;
&lt;br /&gt;
''PORTDIR'' is the official portage directory (usually ''/usr/portage/'')&lt;br /&gt;
&lt;br /&gt;
6. Change directory:&lt;br /&gt;
  cd {PORTDIR_OVERLAY}/net-p2p/amule-cvs/&lt;br /&gt;
&lt;br /&gt;
7. Digest ebuild:&lt;br /&gt;
  ebuild amule-cvs-3.ebuild digest&lt;br /&gt;
&lt;br /&gt;
8. Review installation flags:&lt;br /&gt;
  emerge amule-cvs -pv&lt;br /&gt;
&lt;br /&gt;
9. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule-cvs X -amuled -debug gtk2 kad nls -nosystray -optimize -remote -remote-gui -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule-cvs X amuled -debug gtk2 kad nls -nosystray -optimize remote remote-gui -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
10. Install [[aMule CVS]]:&lt;br /&gt;
  emerge amule-cvs&lt;br /&gt;
&lt;br /&gt;
'''PLEASE PLEASE PLEASE''' do ''emerge amule-cvs -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
11. Finally, as this is a CVS version, it's to be run with special care, so you need to modify the init.script with the correct option.&lt;br /&gt;
Currently this is ''--i-would-marry-my-mule'' as seen in this output of a trial run (run ''amuled'' on command line):&lt;br /&gt;
  amuled: OnInit - starting timer&lt;br /&gt;
  This binary requires you to use the flag --i-would-marry-my-mule and only if you're very sure of it. Warning: not legal on most countries.''&lt;br /&gt;
&lt;br /&gt;
So, edit the init.d script:&lt;br /&gt;
  vi /etc/init.d/amuled&lt;br /&gt;
and change line 28 to&lt;br /&gt;
  -x /usr/bin/amuled -- --i-would-marry-my-mule &amp;gt;${LOG} 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
12. make sure that all lockfiles of previous runs are removed:&lt;br /&gt;
  rm /var/run/amule*.pid ~/.aMule/muleLock&lt;br /&gt;
&lt;br /&gt;
13. Finally start the deamon.&lt;br /&gt;
  /etc/init.d/amuled start&lt;br /&gt;
Use ''amulecmd'' or webinterface (start amuleweb) to control.&lt;br /&gt;
&lt;br /&gt;
Note that ''/var/log/amuled'' does '''NOT''' contain any log entries from amuled itself, as it is forked into the background right of the start and this file only may contain any errors the ''start-stop-deamon'' encounters before that.&lt;br /&gt;
&lt;br /&gt;
To view the log, use:&lt;br /&gt;
  less ~.aMule/logfile&lt;br /&gt;
&lt;br /&gt;
== aMule 2.1.1 Compilation FAQ ==&lt;br /&gt;
When compiling aMule-2.1.1 on a hardened system with gcc-3.4.5(at least), it will fail with something like:&lt;br /&gt;
 WebServer.h: In member function `T* UpdatableItemsContainer&amp;lt;T, G, I&amp;gt;::GetByID(I) [with T = SharedFile, G = CEC_SharedFile_Tag, I = CMD4Hash]':&lt;br /&gt;
 WebServer.h:270: internal compiler error: in sweep_string_variable, at protector.c:1158&lt;br /&gt;
&lt;br /&gt;
The possible problem is the -fPIE CFLAG because using `gcc-config` to select ''i386-pc-linux-gnu-3.4.5-hardenednopiessp'' fixed the problem, and you can even remove from the ebuild:&lt;br /&gt;
 if has_hardened; then&lt;br /&gt;
     filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
You can read more on the subject following the link http://bugs.gentoo.org/show_bug.cgi?id=74457&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo</id>
		<title>HowTo Compile In Gentoo</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_Compile_In_Gentoo"/>
				<updated>2007-12-23T20:08:25Z</updated>
		
		<summary type="html">&lt;p&gt;Libre: /* amule-cvs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[HowTo_Compile_In_Gentoo-es|Español]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;h1&amp;gt;&amp;lt;font color=red&amp;gt;Someone should check how recent this Article is, and update it for 2.1.3 or better 2.2.0&amp;lt;/font&amp;gt;&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
English version updated: 24.10.2006 - Newest Gentoo Version is now 2.1.2&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Gentoo is known for choices. Unfortunately, some choices require more labor than others. As such, [[aMule]] comes in a variety of versions and installation methods based on what version of [[wxGTK]] you decide to use...&lt;br /&gt;
&lt;br /&gt;
Also, if you plan to build a GUI-less core, you might want to take a look at http://bugs.gentoo.org/show_bug.cgi?id=109515, comment #3 contains a patch for wxGTK ebuild that removes the dependency on X.&lt;br /&gt;
&lt;br /&gt;
== Methods of Installation ==&lt;br /&gt;
=== amule-2.1.3.ebuild ===&lt;br /&gt;
This ebuild matches the most current, stable [[aMule]] release, it is available 13.10.2007 in portage.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.6.*; &amp;gt;=sys-libs/zlib-1.2.1; &amp;gt;=media-libs/libpng-1.2.0 for remote support; &amp;gt;=media-libs/gd-2.0.26 for unicode support.&lt;br /&gt;
&lt;br /&gt;
=== amule-cvs ===&lt;br /&gt;
This ebuild is marked as '''unstable''' for all architectures.&lt;br /&gt;
&lt;br /&gt;
Not intended for the general public. If you'd like to test out the daily development snapshot, then this is the version for you.&lt;br /&gt;
&lt;br /&gt;
Dependencies: &amp;gt;=x11-libs/wxGTK-2.6.* or 2.8.*; &amp;gt;=sys-libs/zlib-1.2.1; &amp;gt;=media-libs/gd-2.0.26; &amp;gt;=media-libs/libpng-1.2.0 devs-libs/geoip&amp;lt;br&amp;gt;&lt;br /&gt;
Status: In development; 2 versions in portage; the latest tarball need a personal portage overlay&lt;br /&gt;
&lt;br /&gt;
== Installation instructions ==&lt;br /&gt;
=== amule-2.1.3.ebuild ===&lt;br /&gt;
1. Emerge package:&lt;br /&gt;
  emerge --sync&lt;br /&gt;
  emerge amule -pv&lt;br /&gt;
  emerge amule&lt;br /&gt;
&lt;br /&gt;
=== amule-cvs ===&lt;br /&gt;
The current ebuilds for [[aMule CVS]] can be found [http://forum.amule.org/thread.php?threadid=5732 here]. Download it and continue with this wiki article.&lt;br /&gt;
&lt;br /&gt;
1. Define ''PORTDIR_OVERLAY''. Open up ''/etc/make.conf'' with your favourite text editor and define the ''PORTDIR_OVERLAY'' variable. The default is:&lt;br /&gt;
  PORTDIR_OVERLAY=&amp;quot;/usr/local/portage&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. Create overlay for amule-cvs:&lt;br /&gt;
  mkdir -p {PORTDIR_OVERLAY}/net-p2p/amule-cvs/files&lt;br /&gt;
&lt;br /&gt;
3. Add to ''package.keywords'':&lt;br /&gt;
  echo &amp;quot;net-p2p/amule-cvs ~x86&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
4. Copy [http://forum.amule.org/attachment.php?attachmentid=1342 amule-cvs-3.ebuild] from [http://forum.amule.org/thread.php?postid=46114#post46114 this forum post] to ''{PORTDIR_OVERLAY}/net-p2p/amule-cvs''&lt;br /&gt;
&lt;br /&gt;
5. Copy ''amuled'' and ''amuleweb'' init script from official ebuild files:&lt;br /&gt;
  cp {PORTDIR}/net-p2p/amule/files/amuled.* {PORTDIR_OVERLAY}/net-p2p/amule-cvs/files/&lt;br /&gt;
  cp {PORTDIR}/net-p2p/amule/files/amuleweb.* {PORTDIR_OVERLAY}/net-p2p/amule-cvs/files/&lt;br /&gt;
&lt;br /&gt;
''PORTDIR'' is the official portage directory (usually ''/usr/portage/'')&lt;br /&gt;
&lt;br /&gt;
6. Change directory:&lt;br /&gt;
  cd {PORTDIR_OVERLAY}/net-p2p/amule-cvs/&lt;br /&gt;
&lt;br /&gt;
7. Digest ebuild:&lt;br /&gt;
  ebuild amule-cvs-3.ebuild digest&lt;br /&gt;
&lt;br /&gt;
8. Review installation flags:&lt;br /&gt;
  emerge amule-cvs -pv&lt;br /&gt;
&lt;br /&gt;
9. Modify ''/etc/portage/package.use'' to suit your needs (please note that ''debug'' is enabled regardless of ''USE'' flag):&lt;br /&gt;
  net-p2p/amule-cvs X -amuled -debug gtk2 kad nls -nosystray -optimize -remote -remote-gui -stats unicode&lt;br /&gt;
&lt;br /&gt;
This would install amule without deamon and remote support.&lt;br /&gt;
To activate deamons and remote options, leave out the '-' like this:&lt;br /&gt;
&lt;br /&gt;
  net-p2p/amule-cvs X amuled -debug gtk2 kad nls -nosystray -optimize remote remote-gui -stats unicode&lt;br /&gt;
&lt;br /&gt;
As aMule needs unicode support or it won't compile, you might also want to add a line to enable unicode in x11-libs/wxGTK&lt;br /&gt;
  x11-libs/wxGTK unicode&lt;br /&gt;
&lt;br /&gt;
10. Install [[aMule CVS]]:&lt;br /&gt;
  emerge amule-cvs&lt;br /&gt;
&lt;br /&gt;
'''PLEASE PLEASE PLEASE''' do ''emerge amule-cvs -pv'' before installing to determine how you want to compile [[aMule]].&lt;br /&gt;
&lt;br /&gt;
11. Finally, as this is a CVS version, it's to be run with special care, so you need to modify the init.script with the correct option.&lt;br /&gt;
Currently this is ''--i-would-marry-my-mule'' as seen in this output of a trial run (run ''amuled'' on command line):&lt;br /&gt;
  amuled: OnInit - starting timer&lt;br /&gt;
  This binary requires you to use the flag --i-would-marry-my-mule and only if you're very sure of it. Warning: not legal on most countries.''&lt;br /&gt;
&lt;br /&gt;
So, edit the init.d script:&lt;br /&gt;
  vi /etc/init.d/amuled&lt;br /&gt;
and change line 28 to&lt;br /&gt;
  -x /usr/bin/amuled -- --i-would-marry-my-mule &amp;gt;${LOG} 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
12. make sure that all lockfiles of previous runs are removed:&lt;br /&gt;
  rm /var/run/amule*.pid ~/.aMule/muleLock&lt;br /&gt;
&lt;br /&gt;
13. Finally start the deamon.&lt;br /&gt;
  /etc/init.d/amuled start&lt;br /&gt;
Use ''amulecmd'' or webinterface (start amuleweb) to control.&lt;br /&gt;
&lt;br /&gt;
Note that ''/var/log/amuled'' does '''NOT''' contain any log entries from amuled itself, as it is forked into the background right of the start and this file only may contain any errors the ''start-stop-deamon'' encounters before that.&lt;br /&gt;
&lt;br /&gt;
To view the log, use:&lt;br /&gt;
  less ~.aMule/logfile&lt;br /&gt;
&lt;br /&gt;
== aMule 2.1.1 Compilation FAQ ==&lt;br /&gt;
When compiling aMule-2.1.1 on a hardened system with gcc-3.4.5(at least), it will fail with something like:&lt;br /&gt;
 WebServer.h: In member function `T* UpdatableItemsContainer&amp;lt;T, G, I&amp;gt;::GetByID(I) [with T = SharedFile, G = CEC_SharedFile_Tag, I = CMD4Hash]':&lt;br /&gt;
 WebServer.h:270: internal compiler error: in sweep_string_variable, at protector.c:1158&lt;br /&gt;
&lt;br /&gt;
The possible problem is the -fPIE CFLAG because using `gcc-config` to select ''i386-pc-linux-gnu-3.4.5-hardenednopiessp'' fixed the problem, and you can even remove from the ebuild:&lt;br /&gt;
 if has_hardened; then&lt;br /&gt;
     filter-flags -fstack-protector -fstack-protector-all&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
You can read more on the subject following the link http://bugs.gentoo.org/show_bug.cgi?id=74457&lt;/div&gt;</summary>
		<author><name>Libre</name></author>	</entry>

	</feed>