automated profile generation

Kevin P. Fleming kpfleming at linuxfromscratch.org
Sat Mar 20 07:08:57 PST 2004


Reinhard wrote:

> By the way - do you know, how to do command chaining in profile syntax?
> (samples from cvs-version of BLFS)
> i.e. apache:
> sed -i -e "s%User nobody%User apache%" -e "s%^Group #-1%Group apache%" /etc/
> apache/httpd.conf
> 
> i.e. exim:
> sed -e 's/^BIN_DIR.*$/BIN_DIRECTORY=\/usr\/sbin/' src/EDITME | sed -e 's/
> ^CONF.*$/CONFIGURE_FILE=\/etc\/exim.conf/' | sed -e 's/^EXIM_USER.*$/
> EXIM_USER=exim/' | sed -e 's/^EXIM_MONITOR/#EXIM_MONITOR/' > Local/Makefile

There are some examples of this in the official LFS profile. As it 
stands today you must supply all of this to an <execute> element, as a 
string of <param> elements.

In the next version of nALFS (and the next DTD version) <execute> will 
support being supplied a script so this will be much easier.



More information about the alfs-discuss mailing list