source: trunk/dports/security/tinyca2/files/patch-tinyca2 @ 35353

Last change on this file since 35353 was 35353, checked in by landonf@…, 12 years ago

Update to 0.7.5 and fix the build on Leopard

File size: 1.3 KB
Line 
1--- tinyca2.orig        2006-07-25 13:12:00.000000000 -0700
2+++ tinyca2     2008-03-25 11:10:44.000000000 -0700
3@@ -18,7 +18,7 @@
4 # along with this program; if not, write to the Free Software
5 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
6 
7-BEGIN { unshift(@INC, './lib'); # put here the location of the modules
8+BEGIN { unshift(@INC, '@SHARE@/tinyca2/lib'); # put here the location of the modules
9 }
10 
11 use strict;
12@@ -46,7 +46,7 @@
13 use TCONFIG;
14 
15 setlocale(LC_MESSAGES, "");
16-bindtextdomain("tinyca2", "./locale/");
17+bindtextdomain("tinyca2", "@SHARE@/locale/");
18 textdomain("tinyca2");
19 
20 # https://bugs.gentoo.org/show_bug.cgi?id=78576
21@@ -55,10 +55,10 @@
22 my $init = {};
23 
24 # location of openssl
25-$init->{'opensslbin'} = "/usr/bin/openssl";
26-$init->{'zipbin'} = "/usr/bin/zip";
27-$init->{'tarbin'} = "/bin/tar";
28-
29+$init->{'opensslbin'} = "@OPENSSL@";
30+$init->{'zipbin'} = "@ZIP@";
31+$init->{'tarbin'} = "@TAR@";
32+
33 if(not -x $init->{'opensslbin'}) {
34    printf(gettext("Can't execute %s.\n"), $init->{'opensslbin'});
35    print gettext("Configure correct path to openssl in tinyca.\n");
36@@ -76,7 +76,7 @@
37 }
38 
39 # directory with the templates
40-$init->{'templatedir'} = "./templates";
41+$init->{'templatedir'} = "@SHARE@/tinyca2/templates";
42 
43 if(not -d $init->{'templatedir'}) {
44    print gettext("Can't find templatedir.\n");
Note: See TracBrowser for help on using the repository browser.