[wpkg-users] Variables
Rainer Meier
r.meier at wpkg.org
Mon Nov 10 19:55:03 CET 2008
Hi Ronnie,
Ronnie Carlos Tavares Nunes wrote:
> I trying to use wget with wpkg. I want to define a variable inside the
> file profile.xml to set the option "limit bandwith" of wget, according
> the type of profile I have. Question: is it possible? (Set bandwidth =
> 10k), for example.
Yes, this should be possible.
Try a profile definition like...
<profiles>
<profile id="myprofile">
<package package-id="firefox" />
<variable name="MAXBANDWITH" value="10k" /></profile>
</profiles>
Then use a package like
<packages>
<package name="" id="" installdate="2007-11-23T22:00:00">
<variable name="" value="" lcid="asdf" />
<download target="sdfas" url="" timeout="" />
<check>check</check>
<install cmd="wget --limit-rate=%MAXBANDWITH% ..."></install>
</package>
</packages>
This should allow you to use different bandwith limitations for each
profile.
br,
Rainer
More information about the wpkg-users
mailing list