cloning OpenPKG: bootstrap
Run this shell code snippet as OpenPKG management user to obtain a command that builds a OpenPKG binary bootstrap clone from source.
bootstrap=`openpkg rpm -q openpkg`
parameter=`openpkg rpm --eval '
--prefix="%{l_prefix}" \\
--susr="%{l_susr}" --suid="%{l_suid}" --sgrp="%{l_sgrp}" --sgid="%{l_sgid}" \\
--musr="%{l_musr}" --muid="%{l_muid}" --mgrp="%{l_mgrp}" --mgid="%{l_mgid}" \\
--rusr="%{l_rusr}" --ruid="%{l_ruid}" --rgrp="%{l_rgrp}" --rgid="%{l_rgid}" \\
--nusr="%{l_nusr}" --nuid="%{l_nuid}" --ngrp="%{l_ngrp}" --ngid="%{l_ngid}" \\
--tag="%{l_tag}"'`
echo "sh ${bootstrap}.src.sh \\${parameter}"
Example output from an instance used within the OpenPKG Build Farm to build the CORE binaries that are available for download.
sh openpkg-20070305-20070305.src.sh \ --prefix="/openpkg" \ --susr="root" --suid="0" --sgrp="root" --sgid="0" \ --musr="openpkg" --muid="42000" --mgrp="openpkg" --mgid="42000" \ --rusr="openpkg-r" --ruid="42001" --rgrp="openpkg-r" --rgid="42001" \ --nusr="openpkg-n" --nuid="42002" --ngrp="openpkg-n" --ngid="42002" \ --tag="openpkg"
Note this is cloning the bootstrap only - packages and configuration are a different story. This snippet may not work if the instance is configured for non-static tags, something I never discovered in the field. Also you must have saved the openpkg-*.src.sh file or used a version that has been engineered for reproducibility and stays available for a while. Good candidates are the Reproducible Snapshot from the OpenPKG Community series and the Professional Product from the OpenPKG Enterprise series as described in the Products & Branches Comparison Update 2007-10-27: only OpenPKG Community CURRENT is available for download these days.