52 lines
1.5 KiB
Plaintext

$OpenBSD: patch-tinyca2,v 1.4 2013/03/27 11:44:24 sthen Exp $
--- tinyca2.orig Tue Jul 25 21:12:00 2006
+++ tinyca2 Wed Mar 27 11:36:38 2013
@@ -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, '${TRUEPREFIX}/lib/tinyca2'); # put here the location of the modules
}
use strict;
@@ -27,8 +27,8 @@ use Gtk2 '-init';
use MIME::Base64;
+use Locale::gettext qw(gettext textdomain bindtextdomain);
use POSIX;
-use Locale::gettext;
use OpenSSL;
use CA;
@@ -46,7 +46,7 @@ use KEY;
use TCONFIG;
setlocale(LC_MESSAGES, "");
-bindtextdomain("tinyca2", "./locale/");
+bindtextdomain("tinyca2", "${TRUEPREFIX}/share/tinyca2/locale/");
textdomain("tinyca2");
# https://bugs.gentoo.org/show_bug.cgi?id=78576
@@ -55,8 +55,8 @@ $ENV{XLIB_SKIP_ARGB_VISUALS}= '1';
my $init = {};
# location of openssl
-$init->{'opensslbin'} = "/usr/bin/openssl";
-$init->{'zipbin'} = "/usr/bin/zip";
+$init->{'opensslbin'} = "/usr/sbin/openssl";
+$init->{'zipbin'} = "${LOCALBASE}/bin/zip";
$init->{'tarbin'} = "/bin/tar";
if(not -x $init->{'opensslbin'}) {
@@ -76,7 +76,7 @@ if(not -x $init->{'tarbin'}) {
}
# directory with the templates
-$init->{'templatedir'} = "./templates";
+$init->{'templatedir'} = "${TRUEPREFIX}/share/tinyca2/templates";
if(not -d $init->{'templatedir'}) {
print gettext("Can't find templatedir.\n");