Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37866543
en ru br
Репозитории ALT
S:0.7.6-alt1.git1f402a5
5.1: 0.7.5-alt1
4.1: 0.7.4-alt1
4.0: 0.7.4-alt1
3.0:
+backports:0.7.5-alt0.M30.2
www.altlinux.org/Changes

Группа :: Безопасность/Сети
Пакет: tinyca2

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: tinyca2-0.7.5_7-alt-pathes.patch
Скачать


Set pathes for ALT installation
--- tinyca2
+++ tinyca2
@@ -18,7 +18,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
 
-BEGIN { unshift(@INC, './lib'); # put here the location of the modules
+BEGIN { unshift(@INC, '/usr/share/tinyca'); # put here the location of the modules
 }
 
 use strict;
@@ -47,7 +47,7 @@ use KEY;
 use TCONFIG;
 
 my $init = {};
-$init->{'progdir'} = dirname($0);
+$init->{'progdir'} = "/usr/share/tinyca";
 
 setlocale(LC_MESSAGES, "");
 bindtextdomain("tinyca2", $init->{'progdir'}."/locale/");
@@ -50,7 +50,7 @@ my $init = {};
 $init->{'progdir'} = dirname($0);
 
 setlocale(LC_MESSAGES, "");
-bindtextdomain("tinyca2", $init->{'progdir'}."/locale/");
+bindtextdomain("tinyca2", "/usr/share/locale/");
 textdomain("tinyca2");
 
 # https://bugs.gentoo.org/show_bug.cgi?id=78576
@@ -80,7 +80,7 @@ if(not -x $init->{'tarbin'}) {
 }
 
 # directory with the templates
-$init->{'templatedir'} = $cfg->{paths}{templatedir} // $init->{'progdir'}."/templates";
+$init->{'templatedir'} = $cfg->{paths}{templatedir} // "/etc/tinyca";
 
 if(not -d $init->{'templatedir'}) {
    print gettext("Can't find templatedir.\n");
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin