Партнерка на США и Канаду по недвижимости, выплаты в крипто
- 30% recurring commission
- Выплаты в USDT
- Вывод каждую неделю
- Комиссия до 5 лет за каждого referral
}
extract_usb() {
debug "extract_usb"
pushd $BUILDPREFIX
tar xzf ${SCRIPTDIR}/usb. tar. gz
chown - R dev50:dev50 ${SCRIPTDIR}
popd
}
create_usb() {
print_banner "Creating USB image"
# Create a link where usb_auto. sh can find the repository then create usb key
echo "Please enter root password"
sudo bash - c "cd ${BUILDPREFIX}/usb ;\
if [ \"${HOME}\" != \"/srv\" ]; then \
if [ - L /srv/repositories ]; then \
rm /srv/repositories ;\
fi; \
ln - s ${HOME}/repositories /srv/repositories ;\
fi ;\
./usb_auto. sh img../WAB-${repository#wab-}-usb. img"
}
create_archive() {
print_banner "Creating Archive"
local archive_folder=${BUILDPREFIX}/archive
rm - rf ${archive_folder}
mkdir - p ${archive_folder}
cp - r ${BUILDPREFIX}/wab/build/scripts ${archive_folder}/${DISTNAME}
sed - i 's/^OPTION=.*$/OPTION=local/' ${archive_folder}/${DISTNAME}/build
sed - r - e 's!^SVNBASEURL=".*"$!SVNBASEURL="https://localhost"!' \
- e '/^SVNLOGIN=/ d' \
- e 's!^SVNLOGINURL=".*"$!SVNLOGINURL="https://dummy@localhost"!' \
- e '/^REPOHOST=|PRESEEDHOST=|MAILSERVER=/ s/^([^=]*)=".*"$/\1="localhost"/' \
- e '/^REPOLOGIN=|REPOPASSWORD=|PRESEEDLOGIN=|PRESEEDPASSWORD=/ s/^([^=]*)=".*"$/\1="-"/' \
- e '/^SENDER=|RECIPIENTS=/ s/^([^=]*)=".*"$/\1="dummy@localhost"/' \
- e '/^ADMINKITURL=|UWSGIURL=|REDEMPTIONURL=|SASHIMIURL=/ s!^([^=]*)=".*"$!\1="https://dummy@localhost"!' \
- i ${archive_folder}/${DISTNAME}/builder. conf
mv $REVISIONFILE ${archive_folder}/${DISTNAME}/
_archive_sources
_archive_repositories
_archive_extras_upload
_archive_usb
tar czf ${BUILDPREFIX}/archive. tar. gz - C ${archive_folder} ${DISTNAME}
}
extract_sources() {
debug "extract_sources"
clean_wab_modules
clean_tools_modules
clean_extras_modules
clean_rdp
clean_sashimi
print_banner "Extracting sources"
pushd $BUILDPREFIX
tar xzf ${SCRIPTDIR}/src. tar. gz
# workaround redemption packager script checks
cd rdp/redemption-wab.9.x
sed - i '/^unit-test/ d' /tmp/build-wab-5.0.2-astra.0/rdp/redemption-wab.9.x/Jamroot
git init
git add.
git commit - m "init"
git tag ${rdp_version}
cd../..
# workaround sashimi packager script checks
cd sashimi/sshproxies
git init
git add.
git commit - m "init"
git tag ${sashimi_version}
cd../..
chown - R dev50:dev50 .
popd
}
extract_preseed() {
debug "extract_preseed"
pushd ~
tar xzf ${SCRIPTDIR}/src. tar. gz --xform="s|wab/build/preseed|repositories/preseed/${repository}|" wab/build/preseed
chown - R dev50:dev50 ${SCRIPTDIR} /tmp/build-wab*
popd
}
extract_wallix_build_repository_conf() {
debug "extract_wallix_build_repository_conf"
pushd ~
mkdir - p ~/upload/wallix_packages/pool/
tar xzf ${SCRIPTDIR}/upload. tar. gz - C ~/upload/wallix_packages/pool/
tar xzf ${SCRIPTDIR}/wallix_build. tar. gz
sed - i - e "s/^SignWith: .*$/SignWith: ${wallix_sign_key}/" ~/repositories/dists/wallix-build/conf/distributions
chown - R dev50:dev50 ~/upload/wallix_packages/pool/ ~/repositories/dists/wallix-build/conf/distributions
popd
}
extract_product_repository_conf() {
debug "extract_product_repository_conf"
pushd ~
tar xzf ${SCRIPTDIR}/${repository}-repo. tar. gz repositories/dists/${DISTNAME}
local product_repository_folder=~/repositories/dists/${DISTNAME}
sed - i - e "s/^SignWith: .*$/SignWith: ${wallix_sign_key}/" ${product_repository_folder}/conf/distributions
sed - i - e "s/^VerifyRelease: .*$/VerifyRelease: ${wallix_verify_key}/" ${product_repository_folder}/conf/updates
sed - i - e "s|^Method: file:///srv/repositories/dists/|Method: file://${HOME}/repositories/dists/|" ${product_repository_folder}/conf/updates
cd $BUILDPREFIX
tar xzf ${SCRIPTDIR}/${repository}-repo. tar. gz --xform="s|repositories/dists/${DISTNAME}/|build/repository/wab/|" repositories/dists/${DISTNAME}/logs
popd
}
#
# Main Routines
#
send_email() {
cat ${BUILDPREFIX}/*changes > ${BUILDPREFIX}/message
sendemail - s $MAILSERVER - o tls=no - f $SENDER - t $RECIPIENTS \
- u "[Build WAB] Building Notification for version $final_version" \
- m "$(cat ${BUILDPREFIX}/message)"
rm - f ${BUILDPREFIX}/*changes ${BUILDPREFIX}/message
}
_usage () {
print_banner "$@"
cat <<EOF
Wallix WAB Packages Building Script.
usage: $SCRIPT command options [options] [--help] [--syslog] [--config=/path/of/configuration/file]
where command may be one of the following,
note that you can execute more that one command at the same time:
- 'setup --build_user=[username]' to make the working directories and to retrieve
all the necessary packages and tools to build a WAB. This command must
be run as root, so it should be alone when invoking builder.
- 'clean_packages' to remove all the built packages from the build/packages directory.
- 'send_email' to send a mail when finished to the recipients declared in builder. conf
- 'checkout_wab' --wab_version=trunk|tags/...|branches/... [--clean_wab_sources=1]
to checkout wab sources (use export command). '--clean_wab_sources=1' first removes the directory
- 'checkout_tools' --tools_version=trunk|tags/...|branches/... [--clean_tools_sources=1]
to checkout tools sources (use export command). '--clean_tools_sources=1' first removes the directory
- 'checkout_adminkit' --adminkit_version=git-version [--adminkit_export=0] [--clean_adminkit_sources=0]
to checkout adminkit sources. '--adminkit_export=1' removes git meta data. '--clean_adminkit_sources=1' first removes the directory
- 'checkout_uwsgi' --uwsgi_version=git-version [--uwsgi_export=0] [--clean_uwsgi_sources=0]
to checkout uwsgi sources. '--uwsgi_export=1' removes git meta data. '--clean_uwsgi_sources=1' first removes the directory
- 'checkout_extras' --extras_version=trunk|tags/...|branches/... [--clean_extras_sources=1]
to checkout extras sources (use export command). '--clean_extras_sources=1' first removes the directory
- 'checkout_rdp' --rdp_version=git-version [--rdp_export=0] [--clean_rdp_sources=0]
to checkout ReDemPtion sources. '--rdp_export=1' removes git meta data. '--clean_rdp_sources=1' first removes the directory
- 'checkout_sashimi' --sashimi_version=git-version [--sashimi_export=0] [--clean_sashimi_sources=0]
to checkout SaSHimi sources. '--sashimi_export=1' removes git meta data. '--clean_sashimi_sources=1' first removes the directory
- 'checkout_wallix_build_conf' [--local_wallix_build_repo=0]
to checkout wallix-build repository conf. '--local_wallix_build_repo=1' will checkout in the build folder instead of the REPOHOST server, for archive purpose
- 'checkout_repository_conf' [--local_wab_repo=0]
to checkout wab repository conf. '--local_wab_repo=1' will checkout in the build folder instead of the REPOHOST server, for archive purpose
- 'checkout_preseed' --wab_version=trunk|tags/...|branches/...
to checkout preseed directory on the PRESEEDHOST server
- 'checkout_usb' --wab_version=trunk|tags/...|branches/...
to checkout usb creation directory in the build folder, for archive purpose
- 'build_wab' --build_version=4.1.0.2|... [--clean_wab=1]
to make wab packages. '--clean_wab=1' passes the - tc argument to dpkg-buildpackage.
- 'build_tools' --tools_version=trunk|tags/...|branches/... [--clean_tools=1]
to make tools packages. '--clean_tools=1' passes the - tc argument to dpkg-buildpackage.
- 'build_adminkit' [--clean_adminkit=1]
to make the adminkit package. '--clean_adminkit=1' passes the - tc argument to dpkg-buildpackage.
- 'build_uwsgi' [--clean_uwsgi=1]
to make the uwsgi package. '--clean_uwsgi=1' passes the - tc argument to dpkg-buildpackage.
- 'build_extras' [--clean_extras=1]
to make extras packages. '--clean_extras=1' passes the - tc argument to dpkg-buildpackage.
- 'build_rdp'
to make ReDemPtion packages.
- 'build_sashimi'
to make SaSHimi packages.
- 'to_preseed' --build_version=4.1.0.2|... [--repository=...]
Update preseed informations.
- 'to_repository' [--repository=...] [--prepare_wallix_build_repo=1] [--commit_product_repo_logs=1]
to push the last build to the repository. If --repository is not passed on the command line builder
will _try_ to create the correct URL and upload to it. In the mean time it's safer to give it
the correct value :)
'--commit_product_repo_logs=0' will not commit reprepro logs and resulting package list
_DO_NOT_ forget to add the target in /srv/repositories/dists/wallix-build/conf/distributions on the
repositories machine.
'--prepare_wallix_build_repo=0' will not modify the wallix-build repository. It may be necessary
to execute "reprepro --ignore=undefinedtarget - b ~/repositories/dists/wallix-build/ export wab64"
if the component has been previouly removed from wallix-build/conf/distributions. It will only
work if the files are still in the wallix-build repo (i. e. no clearvanished has been run).
'--distro=["jessie"|"wheezy"]' will change the target repo.
- 'create_debian_repository' [--debian_repository=...] [--commit_upstream_repo_logs=1]
|
Из за большого объема этот материал размещен на нескольких страницах:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |


