<?xml version="1.0"?>
<tool_dependency>
    <package name="sed" version="4.2.2-sandbox">
        <install version="1.0">
            <actions>
                <action type="download_by_url">http://ftp.gnu.org/gnu/sed/sed-4.2.2.tar.gz</action>

                <!-- add sandbox feature from Assaf Gordon to disable critial functions. -->
                <action type="download_file">https://github.com/bgruening/download_store/raw/master/GNU/sed-e16266897f646e193a9a1287658a1847d68f1e51_sandbox.patch</action>
                <action type="shell_command">patch -p1 -i sed-e16266897f646e193a9a1287658a1847d68f1e51_sandbox.patch</action>

                <action type="shell_command">./configure --prefix=$INSTALL_DIR</action>
                <action type="shell_command">make</action>
                <action type="shell_command">make install</action>
                <action type="set_environment">
                    <environment_variable name="PATH" action="prepend_to">$INSTALL_DIR/bin</environment_variable>
                </action>
            </actions>
        </install>
        <readme>
            Compiling GNU sed requires a C compiler and the GNU patch utility to add the --sandbox feature from Assaf Gordon.
        </readme>
    </package>
</tool_dependency>

<?xml version="1.0"?>
<tool_dependency>
    <package name="gnu_sed" version="4.2.2-sandbox">
        <install version="1.0">
            <actions>
                <action type="download_by_url">http://ftp.gnu.org/gnu/sed/sed-4.2.2.tar.gz</action>

                <!-- add sandbox feature from Assaf Gordon to disable critial functions. -->
                <action type="download_file">https://github.com/bgruening/download_store/raw/master/GNU/sed-e16266897f646e193a9a1287658a1847d68f1e51_sandbox.patch</action>
                <action type="shell_command">patch -p1 -i sed-e16266897f646e193a9a1287658a1847d68f1e51_sandbox.patch</action>
                <action type="autoconf"/>
                <action type="set_environment">
                    <environment_variable name="PATH" action="prepend_to">$INSTALL_DIR/bin</environment_variable>
                </action>
            </actions>
        </install>
        <readme>
            Compiling GNU sed requires a C compiler and the GNU patch utility to add the --sandbox feature from Assaf Gordon.
        </readme>
    </package>
</tool_dependency>

Use autoconf and change the package name.
Use autoconf and change the package name.
