text: import distro
  import platform
  
  
  # Параметры системы
  OS_RELEASE = distro.lsb_release_attr('codename')
  PLATFORM_ARCH = platform.machine()
  OS_DISTRIBUTION = distro.lsb_release_attr('distributor_id').lower()
  OS_VERSION = distro.lsb_release_attr('release')[0]
  
  # Адрес загрузки исходного кода nginx
  NGINX_URL = "http://nginx.org/download"
  NGINX_SRPM_URL_MAINLINE = "http://nginx.org/packages/mainline/centos/{}/SRPMS".format(OS_VERSION)
  NGINX_SRPM_URL_STABLE = "http://nginx.org/packages/centos/{}/SRPMS".format(OS_VERSION)
  
  # Архив со скриптами для создания пакета
  DEB_PACKAGE_SCRIPTS_URL_MAINLINE = "http://nginx.org/packages/mainline/{}/pool/nginx/n/nginx".format(OS_DISTRIBUTION)
  DEB_PACKAGE_SCRIPTS_URL_STABLE = "http://nginx.org/packages/{}/pool/nginx/n/nginx".format(OS_DISTRIBUTION)
  
  # Путь до директории сборки пакета
  SRC_PATH = "/usr/src/nginx"
  
  # Error build code
  DPKG_FAIL_EXIT_CODE = 29
  
  # Параметры компиляции nginx
  DEFAULT_CONFIGURE_PARAMS = [
      "--prefix=/etc/nginx",
      "--sbin-path=/usr/sbin/nginx",
      "--conf-path=/etc/nginx/nginx.conf",
      "--modules-path=/usr/lib/nginx/modules",
      "--error-log-path=/var/log/nginx/error.log",
      "--pid-path=/var/run/nginx.pid",
      "--lock-path=/var/lock/nginx.lock",
      "--http-log-path=/var/log/nginx/access.log",
      "--http-client-body-temp-path=/var/cache/nginx/client_temp",
      "--http-proxy-temp-path=/var/cache/nginx/proxy_temp",
      "--http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp",
      "--http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp",
      "--http-scgi-temp-path=/var/cache/nginx/scgi_temp",
      "--with-debug",
      "--user=nginx",
      "--group=nginx",
      "--with-pcre-jit",
      "--with-compat",
      "--with-file-aio",
      "--with-threads",
      "--with-stream",
      "--with-cc-opt=\"${CFLAGS}\"",
      "--with-ld-opt=\"${LDFLAGS}\""
  ]
  
  # Путь к директории с модулями для файла rules
  MODULESDIR = 'export MODULESDIR = $(CURDIR)/debian/modules'
  
  # Адрес эл. почты для указания при сборке
  EMAIL_CREATOR = "nginx-builder@tinkoff.ru"
  
  # Тип лицензии для указания при сборке
  LICENSE_TYPE = "gpl"
  