Example, thoughs?

Jesse Tie-Ten-Quee highos at linuxfromscratch.org
Tue Feb 26 19:49:33 PST 2002


Yo,

Here's a sample bash profile i've written, taking some of the
suggestions we have discussed.  You can ignore the first part of the
document and all the DOCTYPE mess, i'm just playing around with the
ENTITES here.

Go ahead and nitpick!  I don't think we talked about the switch from
param to option.  It was just something i picked up from nALFS.  Is
setup/build/install evil like Mark believes?  Is a global dir per
package a nice addition at this point?

-- 
Jesse Tie-Ten-Quee  ( highos at linuxfromscratch dot org )
-------------- next part --------------
<?xml version="1.0"?>

<!DOCTYPE alfs [

<!-- The package and build directories. -->

<!ENTITY pgk.dir "/home/highos/tmp/lfs-packages-3.2-rc1">
<!ENTITY bld.dir "&lfs;/usr/src">
<!ENTITY lfs "/home/highos/tmp/build">


<!--
    Package:    http://ftp.linuxfromscratch.org/lfs-packages/3.2-rc1/bash-2.05a.tar.bz2
-->

<!ENTITY bash.pgk "bash-&bash.ver;.tar.bz2">
<!ENTITY bash.dir "bash-&bash.ver;">
<!ENTITY bash.ver "2.05a">


]>


<alfs>

    <package>
        <info>
            <name>bash</name>
            <version>&bash.ver;</version>
        </info>

        <setup>
            <unpack>
                <src>&pgk.dir;/&bash.pgk;</src>
                <dest>&bld.dir;</dest>
            </unpack>

            <configure>
                <dir>&bld.dir;/&bash.dir;</dir>
                <option>--enable-static-link</option>
                <option>--prefix=&lfs;/usr</option>
                <option>--bindir=&lfs;/bin</option>
                <option>--with-curses</option>
            </configure>
        </setup>

        <build>
            <make>
                <dir>&bld.dir;/&bash.dir;</dir>
            </make>
        </build>

        <install>
            <make>
                <dir>&bld.dir;/&bash.dir;</dir>
                <option>install</option>
            </make>

            <link>
                <dir>&lfs;/bin</dir>
                <src>bash</src>
                <dest>sh</dest>
            </link>

            <remove>&bld.dir;/&bash.dir;</remove>
        </install>
    </package>

</alfs>


More information about the alfs-discuss mailing list