From 58033dc60a9c69e163eac53ced71710117025e07 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Fri, 5 Apr 2024 20:05:12 +0200 Subject: remove unused scripts, advisories are now generated and not translated any more --- russian/lts/security/copyadvisory.pl | 173 -------------------------------- russian/security/copyadvisory.pl | 186 ----------------------------------- 2 files changed, 359 deletions(-) delete mode 100755 russian/lts/security/copyadvisory.pl delete mode 100755 russian/security/copyadvisory.pl (limited to 'russian') diff --git a/russian/lts/security/copyadvisory.pl b/russian/lts/security/copyadvisory.pl deleted file mode 100755 index 344ee2b515d..00000000000 --- a/russian/lts/security/copyadvisory.pl +++ /dev/null @@ -1,173 +0,0 @@ -#!/usr/bin/perl -w - -# This script copies a LTS security advisory named on the command -# line, and adds the translation-check header to it. It also will -# create the destination directory if necessary, and copy the Makefile -# from the source. It is based on copyadvistory.pl for usual security -# advisories. - -# Written in 2000-2004 by Peter Karlsson -# © Copyright 2000-2004 Software in the public interest, Inc. -# This program is released under the GNU General Public License, v2. - -# $Id$ - -# Get command line -$number = $ARGV[0]; - -use FindBin; -use lib "$FindBin::Bin/../../../Perl"; -use Local::VCS; - -# Check usage. -unless ($number) -{ - print "Usage: $0 advisorynumber\n\n"; - print "Copies the LTS advisory from the English directory to the local one and adds\n"; - print "the translation-check header\n"; - exit; -} - -# Locate advisory -$number = "dla-" . $number if $number !~ /^dla-/; -$year = 2014; -YEAR: while (-d "../../../english/lts/security/$year") -{ - last YEAR if -e "../../../english/lts/security/$year/$number.wml"; - $year ++; -} - -# Create needed file and directory names -$srcdir = "../../../english/lts/security/$year"; -die "Unable to locate English version of LTS advisory $number.\n" - if ! -d $srcdir; -$srcfile= "$srcdir/$number.wml"; -$dstdir = "./$year"; -$dstfile= "$dstdir/$number.wml"; - -# Sanity checks -die "File $srcfile does not exist\n" unless -e $srcfile; -die "File $dstfile already exists\n" if -e $dstfile; -mkdir $dstdir, 0755 unless -d $dstdir; - -my $VCS = Local::VCS->new(); -my %file_info = $VCS->file_info($srcfile); -$revision = $file_info{'cmt_rev'}; -unless ($revision) -{ - die "Could not get revision number - bug in script?\n"; -} - -# Open the files -open SRC, $srcfile - or die "Could not read $srcfile ($!)\n"; - -open DST, ">$dstfile" - or die "Could not create $dstfile ($!)\n"; - -# Insert the revision number -print DST qq'#use wml::debian::translation-check translation="$revision" mindelta="1"\n'; - -# Copy the file -while () -{ - next if /\$Id/; - - # Header - s/LTS security update/обновление безопасности LTS/; - - # Starting - s/^(

)?A problem has been discovered in\b/$1Была обнаружена проблема в/; - s/\bdiscovered a problem in\b/обнаружил проблему в/; - s/It was discovered that/Было обнаружено, что/; - - # We recommend - s/We recommend that you upgrade your (.*) package immediately/Рекомендуется немедленно обновить пакет $1/; - s/We recommend that you upgrade your (.*) packages immediately/Рекомендуется немедленно обновить пакеты $1/; - s/We recommend that you upgrade your (.*) and (.*) packages/Рекомендуется обновить пакеты $1 и $2/; - s/We recommend that you upgrade your (.*) packages/Рекомендуется обновить пакеты $1/; - s/We recommend that you upgrade your (.*) package/Рекомендуется обновить пакет $1/; - s/We recommend that you update your (.*) package immediately/Рекомендуется немедленно обновить пакет $1/; - s/We recommend that you update your (.*) packages immediately/Рекомендуется немедленно обновить пакеты $1/; - s/We recommend that you update your (.*) packages/Рекомендуется обновить пакеты $1/; - s/We recommend that you update your (.*) package/Рекомендуется обновить пакет $1/; - - # Vulnerabilities - s/buffer overflows?/переполнение буфера/; - s/integer overflow/переполнение целых чисел/; - s/directory traversal/обход каталога/; - s/format string vulnerability/уязвимость форматной строки/; - s/format string vulnerabilities/уязвимости форматной строки/; - s/insecure temporary files/небезопасные временные файлы/; - s/>insecure temporary file creationнебезопасное создание временного файлаlocal root exploitлокальная уязвимость суперпользователяremote root exploitудалённая уязвимость суперпользователяsymlink attackатака через символьные ссылкиremote exploitудалённая уязвимостьmissing input sanitisingотсутствие очистки входных данныхthe execution of arbitrary codeвыполнение произвольного кодаexecution of arbitrary codeвыполнение произвольного кодаinformation disclosureраскрытие информацииseveralнесколькоmultipleмногочисленные\w+<\/q>),/В Debian $1/; - - # Some other phrases related to fixing - s/([Tt])he old stable distribution/Предыдущий стабильный выпуск/; - s/([Tt])he oldstable distribution/Предыдущий стабильный выпуск/; - s/does(?: not|n't) contain a(?:ny)? ([^ ]) package/пакет $1 отсутствует/; - s/\bis not affected by this problem/не подвержен данной проблеме/; - s/does not contain ([[:word:]]*) packages?/пакет $1 отсутствует/; - s/does not contain a(?:ny)? ([[:word:]]*) packages/пакеты $1 отсутствуют/; - s/does not contain a(?:ny)? ([[:word:]]*) package/пакет $1 отсутствует/; - s/this problem will be fixed soon/эта проблема будет исправлена позже/; - - # Further information - s/Further information about Debian LTS security advisories, how to apply/Дополнительную информацию о рекомендациях по безопасности Debian LTS,/; - s/these updates to your system and frequently asked questions can be/о том, как применять эти обновления к вашей системе, а также ответы на часто/; - s(found at: https://wiki.debian.org/LTS)(задаваемые вопросы можно найти по адресу: \\\nhttps://wiki.debian.org/LTS); - - print DST $_; -} - -close SRC; -close DST; - -# We're done -print "Copying done, remember to edit $dstfile\n"; diff --git a/russian/security/copyadvisory.pl b/russian/security/copyadvisory.pl deleted file mode 100755 index cae4ed4d3e5..00000000000 --- a/russian/security/copyadvisory.pl +++ /dev/null @@ -1,186 +0,0 @@ -#!/usr/bin/perl -w - -# This script copies a security advisory named on the command line, and adds -# the translation-check header to it. It also will create the -# destination directory if necessary, and copy the Makefile from the source. - -# Written in 2000-2004 by Peter Karlsson -# © Copyright 2000-2004 Software in the public interest, Inc. -# This program is released under the GNU General Public License, v2. - -# $Id$ - -# Get command line -$number = $ARGV[0]; - -use FindBin; -use lib "$FindBin::Bin/../../Perl"; -use Local::VCS; - -# Check usage. -unless ($number) -{ - print "Usage: $0 advisorynumber\n\n"; - print "Copies the advisory from the English directory to the local one and adds\n"; - print "the translation-check header\n"; - exit; -} - -# Locate advisory -$number = "dsa-" . $number if $number !~ /^dsa-/; -$year = 2004; -YEAR: while (-d "../../english/security/$year") -{ - last YEAR if -e "../../english/security/$year/$number.wml"; - $year ++; -} - -# Create needed file and directory names -$srcdir = "../../english/security/$year"; -die "Unable to locate English version of advisory $number.\n" - if ! -d $srcdir; -$srcfile= "$srcdir/$number.wml"; -$dstdir = "./$year"; -$dstfile= "$dstdir/$number.wml"; - -# Sanity checks -die "File $srcfile does not exist\n" unless -e $srcfile; -die "File $dstfile already exists\n" if -e $dstfile; -mkdir $dstdir, 0755 unless -d $dstdir; - -my $VCS = Local::VCS->new(); -my %file_info = $VCS->file_info($srcfile); -$revision = $file_info{'cmt_rev'}; -unless ($revision) -{ - die "Could not get revision number - bug in script?\n"; -} - -# Open the files -open SRC, $srcfile - or die "Could not read $srcfile ($!)\n"; - -open DST, ">$dstfile" - or die "Could not create $dstfile ($!)\n"; - -# Insert the revision number -print DST qq'#use wml::debian::translation-check translation="$revision" mindelta="1"\n'; - -# Copy the file -while () -{ - next if /\$Id/; - - # Header - s/security update/обновление безопасности/; - - # Starting - s/^(

)?A problem has been discovered in\b/$1Была обнаружена проблема в/; - s/\bdiscovered a problem in\b/обнаружил проблему в/; - s/It was discovered that/Было обнаружено, что/; - - # We recommend - s/We recommend that you upgrade your (.*) package immediately/Рекомендуется немедленно обновить пакет $1/; - s/We recommend that you upgrade your (.*) packages immediately/Рекомендуется немедленно обновить пакеты $1/; - s/We recommend that you upgrade your (.*) and (.*) packages/Рекомендуется обновить пакеты $1 и $2/; - s/We recommend that you upgrade your (.*) packages/Рекомендуется обновить пакеты $1/; - s/We recommend that you upgrade your (.*) package/Рекомендуется обновить пакет $1/; - s/We recommend that you update your (.*) package immediately/Рекомендуется немедленно обновить пакет $1/; - s/We recommend that you update your (.*) packages immediately/Рекомендуется немедленно обновить пакеты $1/; - s/We recommend that you update your (.*) packages/Рекомендуется обновить пакеты $1/; - s/We recommend that you update your (.*) package/Рекомендуется обновить пакет $1/; - - # Vulnerabilities - s/buffer overflows?/переполнение буфера/; - s/integer overflow/переполнение целых чисел/; - s/directory traversal/обход каталога/; - s/format string vulnerability/уязвимость форматной строки/; - s/format string vulnerabilities/уязвимости форматной строки/; - s/insecure temporary files/небезопасные временные файлы/; - s/>insecure temporary file creationнебезопасное создание временного файлаlocal root exploitлокальная уязвимость суперпользователяremote root exploitудалённая уязвимость суперпользователяsymlink attackатака через символьные ссылкиremote exploitудалённая уязвимостьmissing input sanitisingотсутствие очистки входных данныхthe execution of arbitrary codeвыполнение произвольного кодаexecution of arbitrary codeвыполнение произвольного кодаinformation disclosureраскрытие информацииseveralнесколькоmultipleмногочисленныеFor the detailed security status of (.*) please refer to/

С подробным статусом поддержки безопасности $1 можно ознакомиться на/; - s/its security tracker page at\:/соответствующей странице отслеживания безопасности по адресу/; - s/\For the detailed security status of (.*) please refer to its/

С подробным статусом поддержки безопасности $1 можно ознакомиться на/; - s/security tracker page at\:/соответствующей странице отслеживания безопасности по адресу/; - - print DST $_; -} - -close SRC; -close DST; - -# We're done -print "Copying done, remember to edit $dstfile\n"; -- cgit v1.2.3