ALFS profile syntax, version 2

Nicolas Nieswandt Nicolas.N at gmx.de
Fri Sep 14 04:58:35 PDT 2001


Let's start :)

Neven has already a good implementation of a syntax. 
I've got only some thoughts about the structur.

There should be one system specific profile eg. my-lfs-3.0.xml

In this are all system entities like :

  build_dir 
  package_dir
  LFS
  keymap
  localtime

we have to find a standard for this. All profiles I 
found had another nameing style. But that's no big trouble.

Next the structur of the install process :

<!-- my-lfs-3.0.xml -->
<?xml version="1.0"?>
<!DOCTYPE alfs [

<!ENTITY LFS "/mnt/lfs">
<!ENTITY packages_dir "/usr/mnt/sources">
<!ENTITY build_dir "/mnt/lfs/usr/src">

]>

<alfs>
   <package xml:link="bash" href="bash-static.xml" />
   <chroot dir="&LFS;">
      <package xml:link="bash" href="bash.xml" />
      <package xml:link="x11"  href="x11.xml"  />
   </chroot>
</alfs>
<!-- EOF -->



<!-- bash.xml -->
<?xml version="1.0"?>

<!DOCTYPE alfs [

<!ENTITY bash-version "2.04">
<!ENTITY bash-package "bash-2.04.tar.bz2">
<!ENTITY bash-directory "bash-2.04">

]>

<package name="bash" version="&bash-version;">
   <preconfigure>
       <unpack archive="&packagesDir;/&bash-package;">
           &buildDir;
       </unpack>
   </preconfigure>
   <configure>
   </configure>
   <build>
       <make   dir="&buildDir;/bash-build"
               param1="--with-ncurses" />
   </build>
   <install>
       <make_install dir="&buildDir;/bash-build" />
   </install>
   <postinstall>
       <remove>&buildDir;/&bash-directory;</remove>
   </postinstall>
</package>
<!-- EOF -->


The x11.xml may be another system like profile with only links eg.

<package xml:link="zlib" href="zlib.xml">
<package xml:link="freetype2" href="freetype2.xml">
<package xml:link="XFree86" href="xfree86.xml">

What do you think so far ?

nico
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe alfs-discuss' in the subject header of the message



More information about the alfs-discuss mailing list