<?xml version="1.0" encoding="UTF-8"?>
<doc>
	<back to="packages"/>
	<title>undo-prelink</title>
	<section>
	
		<description>
			<para>
				This hooks undoes what prelink has changed in your executables and libraries, so that they wont be seen as changed by paludis during package handling.
			</para>
		</description>
		<author>dleverton</author>
		<dependencies>
			<item>
				<para>
					sys-devel/prelink
				</para>
			</item>
		</dependencies>
		<title>Installation</title>
		<section>
			<title>without paludis-hooks installed</title>
			<subsection>
				Just install the package.
				<code>paludis -i app-paludis/paludis-hooks-undo-prelink</code>
			</subsection>
			<title>if you have paludis-hooks installed</title>
			<subsection>
				<para>
					Enable the <strong>undo-prelink</strong> extended use flag in the <file>/etc/paludis/use.conf</file> file, by adding <strong>undo-prelink</strong> to the line.
				</para>
				
					<code>* PALUDIS_HOOKS: undo-prelink .......</code>
					
				<para>
					Then run:
				</para>

					<code>paludis -i paludis-hooks --dl-reinstall if-use-changed</code>
			</subsection>
		</section>
		<title>Enabling/Disabling the hook</title>
		<section>
			<para>
				To enable the hook you can use <strong>eselect</strong> with the command 
			</para>
			
				<code>eselect paludis-hook enable undo-prelink</code>
				
			<para>
				To disable the hook you can use <strong>eselect</strong> just like the example above shows, but by changing <strong>enable</strong> to <strong>disable</strong> like this 
			</para>
			
				<code>eselect paludis-hook disable undo-prelink</code>
			
			<para>
				See here <link href="eselect-paludis-hooks.xml" text="for help on eselect" /> with paludis support.
			</para>
		</section>
		<sources title="scripts">
			<item href="files/undo-prelink.bash">hook script</item>
		</sources>
	
	</section>
</doc>
