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");