1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/security/tinyca/files/patch-tinyca2
Stefan Walter cca9adb7db Respect OPENSSLBASE.
PR:		116986 [1], 109041 [2]
Submitted by:	maintainer [1], supraexpress@globaleyes.net [2]
2007-10-07 12:36:46 +00:00

37 lines
1017 B
Plaintext

$FreeBSD$
--- tinyca2.orig
+++ 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, '%%SITE_PERL%%/tinyca'); # put here the location of the modules
}
use strict;
@@ -55,9 +55,9 @@
my $init = {};
# location of openssl
-$init->{'opensslbin'} = "/usr/bin/openssl";
-$init->{'zipbin'} = "/usr/bin/zip";
-$init->{'tarbin'} = "/bin/tar";
+$init->{'opensslbin'} = "%%OPENSSLBASE%%/bin/openssl";
+$init->{'zipbin'} = "%%PREFIX%%/bin/zip";
+$init->{'tarbin'} = "/usr/bin/tar";
if(not -x $init->{'opensslbin'}) {
printf(gettext("Can't execute %s.\n"), $init->{'opensslbin'});
@@ -76,7 +76,7 @@
}
# directory with the templates
-$init->{'templatedir'} = "./templates";
+$init->{'templatedir'} = "%%PREFIX%%/etc";
if(not -d $init->{'templatedir'}) {
print gettext("Can't find templatedir.\n");