: ${DISTRIBUTION:="$(lsb_release --short --codename)"}
: ${ARCHITECTURE:="$(dpkg --print-architecture)"}

MIRRORSITE="http://mirror.yandex.ru/ubuntu"
COMPONENTS="main restricted universe multiverse"

OTHERMIRROR+="deb http://mirror.yandex.ru/ubuntu $DISTRIBUTION-security $COMPONENTS |"
OTHERMIRROR+="deb http://mirror.yandex.ru/ubuntu $DISTRIBUTION-updates $COMPONENTS |"

OTHERMIRROR+="deb http://common.dist.yandex.ru/common stable/all/ |"
OTHERMIRROR+="deb http://common.dist.yandex.ru/common stable/$ARCHITECTURE/ |"

OTHERMIRROR+="deb http://yandex-$DISTRIBUTION.dist.yandex.ru/yandex-$DISTRIBUTION stable/all/ |"
OTHERMIRROR+="deb http://yandex-$DISTRIBUTION.dist.yandex.ru/yandex-$DISTRIBUTION stable/$ARCHITECTURE/ |"

OTHERMIRROR+="deb http://yandex-$DISTRIBUTION.dist.yandex.ru/yandex-$DISTRIBUTION unstable/all/ |"
OTHERMIRROR+="deb http://yandex-$DISTRIBUTION.dist.yandex.ru/yandex-$DISTRIBUTION unstable/$ARCHITECTURE/ |"

OTHERMIRROR+="deb http://search-$DISTRIBUTION.dist.yandex.ru/search-$DISTRIBUTION stable/all/ |"
OTHERMIRROR+="deb http://search-$DISTRIBUTION.dist.yandex.ru/search-$DISTRIBUTION stable/$ARCHITECTURE/ |"

OTHERMIRROR+="deb http://search-$DISTRIBUTION.dist.yandex.ru/search-$DISTRIBUTION unstable/all/ |"
OTHERMIRROR+="deb http://search-$DISTRIBUTION.dist.yandex.ru/search-$DISTRIBUTION unstable/$ARCHITECTURE/ |"

OTHERMIRROR+="deb http://search-kernel.dist.yandex.ru/search-kernel stable/all/ |"
OTHERMIRROR+="deb http://search-kernel.dist.yandex.ru/search-kernel stable/$ARCHITECTURE/ |"

#EXTRAPACKAGES="gnupg"

DEBOOTSTRAPOPTS+=("--include=gnupg")
APTKEYRINGS=("/usr/share/keyrings/yandex-archive-keyring.gpg")

BASETGZ="/place/pbuilder/$DISTRIBUTION-$ARCHITECTURE/base.tgz"
APTCACHE="/place/pbuilder/$DISTRIBUTION-$ARCHITECTURE/aptcache/"
BUILDPLACE="/place/pbuilder/$DISTRIBUTION-$ARCHITECTURE/build/"
BUILDRESULT="/place/pbuilder/$DISTRIBUTION-$ARCHITECTURE/result/"

CCACHEDIR=""

DEBBUILDOPTS="-I"

DEB_BUILD_OPTIONS="parallel=$(nproc) $DEB_BUILD_OPTIONS"
export DEB_BUILD_OPTIONS
