Партнерка на США и Канаду по недвижимости, выплаты в крипто
- 30% recurring commission
- Выплаты в USDT
- Вывод каждую неделю
- Комиссия до 5 лет за каждого referral
sed - i 's|<!repository!>|${repository}|g' ${preseed_path}/init-wab. sh && \
sed - i 's|<!build_version!>|${build_version}|g' ${preseed_path}/wab. preseed* && \
sed - i 's|<!repository!>|${repository}|g' ${preseed_path}/wab. preseed* && \
exit 0
END_CREATE_PRESEED
}
create_debian_repository() {
# create a repository from upstream debian. org
debug "_create_debian_repository"
local upstream_repository_folder="~/repositories/dists/${debian_repository}"
if execute_on_repo_host "! ls ${upstream_repository_folder}/conf/distributions >/dev/null 2>&1" ; then
print_banner "Create repository ${upstream_repository_folder}"
local command=" \
svn co ${SVNLOGINURL}/wab/${wab_version}/build/repository/upstream ${upstream_repository_folder} && \
cd ${upstream_repository_folder} && \
echo - n > logs/wheezy. log && \
reprepro update && \
echo - n >logs/result. list && \
(sed - n 's/^Codename: //p' conf/distributions | xargs - I{} reprepro list {} >>logs/result. list) && \
svn commit - m 'reprepro: debian repo ${debian_repository} initialized' logs/wheezy. log logs/result. list"
execute_on_repo_host ${command}
else
echo "Repository ${debian_repository} already exists!"
exit -1
fi
}
update_debian_repository() {
# update a repository from upstream debian. org
debug "update_debian_repository"
local upstream_repository_folder="~/repositories/dists/${debian_repository}"
if execute_on_repo_host "ls ${upstream_repository_folder}/conf/distributions >/dev/null 2>&1" ; then
print_banner "Update repository ${upstream_repository_folder}"
local command=" \
cd ${upstream_repository_folder} && \
rename - f 's/([^~])$/\$1~/' conf/* && \
svn update && \
reprepro --delete clearvanished && \
reprepro --noskipold update && \
echo - n >logs/result. list && \
(sed - n 's/^Codename: //p' conf/distributions | xargs - I{} reprepro list {} >>logs/result. list) && \
svn commit - m 'reprepro: debian repo ${debian_repository} updated' logs/result. list"
execute_on_repo_host ${command}
else
echo "Repository ${debian_repository} does not exist!"
exit -1
fi
}
clone_debian_repository() {
# clone a repository from an existing local debian repo
debug "_clone_debian_repository"
local upstream_repository_folder="~/repositories/dists/${debian_repository}"
if execute_on_repo_host "! ls ~/repositories/dists/${parent_debian_repository}/conf/distributions >/dev/null 2>&1" ; then
echo "Parent repository ${parent_debian_repository} does not exist!"
exit -1
fi
if execute_on_repo_host "! ls ${upstream_repository_folder}/conf/distributions >/dev/null 2>&1" ; then
print_banner "Clone repository ${upstream_repository_folder} from ${parent_debian_repository}"
execute_on_repo_host <<-END_CLONE_REPO
svn co ${SVNLOGINURL}/wab/${wab_version}/build/repository/upstream ${upstream_repository_folder} && \
cd ${upstream_repository_folder} && \
echo - n > logs/wheezy. log && \
rename - f 's|^conf/([^~])|conf/~\$1|' conf/* && \
cp conf/~distributions conf/distributions && \
sed - i '/^Update: / s/^Update: .*$/Update: - parent/' conf/distributions && \
(cat <<-END_UPDATES >conf/updates
Name: parent
Method: file:///srv/repositories/dists/${parent_debian_repository}
VerifyRelease: ${wallix_verify_key}
Architectures: i386
Components: main
UDebComponents: main
END_UPDATES
) && \
reprepro update && \
rename - f 's|^conf/[~]|conf/|' conf/* && \
echo - n >logs/result. list && \
(sed - n 's/^Codename: //p' conf/distributions | xargs - I{} reprepro list {} >>logs/result. list) && \
svn commit - m 'reprepro: debian repo ${debian_repository} initialized' logs/wheezy. log logs/result. list
END_CLONE_REPO
else
echo "Destination repository ${debian_repository} already exists!"
exit -1
fi
}
check_debian_repository_updates() {
local upstream_repository_folder="repositories/dists/${debian_repository}"
local command=" \
cd ~/${upstream_repository_folder} && \
rename - f 's/([^~])$/\$1~/' conf/* && \
revision=\"$(LC_ALL= LANG=C svn info | sed - n 's/^Last Changed Rev: //p')\" && \
svn update && \
reprepro --noskipold checkupdate > logs/update. list 2>&1 && \
svn update - r \$revision"
execute_on_repo_host ${command}
copy_from_repo_host ${upstream_repository_folder}/logs/update. list ${BUILDPREFIX}/debian_update. list
if [ "$(head - n 6 ${BUILDPREFIX}/debian_update. list)" != "Calculating packages to get...
Updates needed for 'u|wheezy|main|i386':
Updates needed for 'wheezy|main|i386':" ] ; then
sendemail - s $MAILSERVER - o tls=no - f $SENDER - t $RECIPIENTS \
- u "[Build WAB] Repo ${debian_repository} is outdated" \
- m "$(cat ${BUILDPREFIX}/debian_update. list)" ||:
else
echo "No upstream changes in repo ${debian_repository}"
fi
rm - f ${BUILDPREFIX}/debian_update. list
execute_on_repo_host rm "${upstream_repository_folder}/logs/update. list"
}
recreate_debian_repository() {
# recreate a repository from snapshot. debian. org
debug "_recreate_debian_repository"
local upstream_repository_folder="~/repositories/dists/${debian_repository}"
if execute_on_repo_host "! ls ${upstream_repository_folder}/conf/distributions >/dev/null 2>&1" ; then
print_banner "Recreate repository ${upstream_repository_folder}"
local command=" \
svn co ${SVNLOGINURL}/wab/${wab_version}/build/repository/upstream ${upstream_repository_folder} && \
sed - i - e \"s/^SignWith: .*$/SignWith: ${wallix_sign_key}/\" ${upstream_repository_folder}/conf/distributions && \
cd ${upstream_repository_folder} && \
svn export ${SVNLOGINURL}/wab/${wab_version}/build/scripts/recreateupstream. py recreateupstream. py && \
chmod +x recreateupstream. py && \
echo - n > logs/wheezy. log && \
./recreateupstream. py - o. - S - v ${wab_version} && \
rm recreateupstream. py"
execute_on_repo_host ${command}
else
echo "Repository ${debian_repository} already exists!"
exit -1
fi
}
_archive_sources() {
debug "_archive_sources"
tar czf ${archive_folder}/${DISTNAME}/src. tar. gz - C ${BUILDPREFIX} rdp sashimi tools wab
}
_archive_extras_upload() {
debug "_archive_extras_upload"
local extra_upload_folder="~/upload/wallix_packages/pool"
ls ${BUILDPREFIX}/repositories/dists/wallix-build/wallix_packages/${wallix_build_repository_component} >${BUILDPREFIX}/upload. list
sed - ri 's/(\.u? deb)\.(jessie|wheezy)$/\1/' ${BUILDPREFIX}/upload. list
copy_to_repo_host ${BUILDPREFIX}/upload. list "~/upload. list"
local command=" \
tar czf ~/upload. tar. gz - C ${extra_upload_folder} - T ~/upload. list ;\
rm ~/upload. list"
execute_on_repo_host ${command}
copy_from_repo_host "~/upload. tar. gz" ${archive_folder}/${DISTNAME}
execute_on_repo_host "rm ~/upload. tar. gz"
}
_archive_repositories() {
debug "_archive_repositories"
tar czf ${archive_folder}/${DISTNAME}/wallix_build. tar. gz - C ${BUILDPREFIX} repositories/dists/wallix-build
tar czf ${archive_folder}/${DISTNAME}/${repository}-repo. tar. gz - C ${BUILDPREFIX} repositories/dists/${repository}
}
checkout_usb() {
print_banner "Checking Out USB installer"
if [ - d ${BUILDPREFIX}/usb ]; then
rm - Rf ${BUILDPREFIX}/usb
fi
svn export --force ${SVNBASEURL}/tools/usb-auto-install/wab/${wab_version} ${BUILDPREFIX}/usb
wget - O ${BUILDPREFIX}/usb/preseed/wallix-rd. pub. gpg http://repo2.ifr. lan/wallix-rd. pub. gpg
pushd ${BUILDPREFIX}/usb
local debiso_vars="$(head - c $(grep - ob '^usage(){' usb_auto. sh|cut - d':' - f1) usb_auto. sh |grep - v '^#'|
cat - <(echo - e "echo debiso=\$debiso\necho debisourl=\$debisourl\necho debisodir=\$debisodir") | bash)"
local debiso=$(echo "$debiso_vars" | cat - <(echo "echo \$debiso")| bash)
local debisourl=$(echo "$debiso_vars" | cat - <(echo "echo \$debisourl")| bash)
local debisodir=$(echo "$debiso_vars" | cat - <(echo "echo \$debisodir")| bash)
if [ ! - d "${debisodir}" ]; then
mkdir ${debisodir}
fi
wget --progress=dot:mega - O ${debisodir}/${debiso} ${debisourl}
popd
}
_archive_usb() {
debug "_archive_usb"
tar czf ${archive_folder}/${DISTNAME}/usb. tar. gz - C ${BUILDPREFIX} usb
|
Из за большого объема этот материал размещен на нескольких страницах:
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 |


