pkgsrc/security/CSP/patches/patch-aa
triaxx 5dfdf4c47d Update to 0.34
* Change file is inconsistent: no information about this release available
* Homepage and repository are dead: tarball reached and archived on
  ftp.NetBSD.org thands to OpenPKG repository
* Configurations files are installed in VARBASE because CSPHOME must be
  writable since CA tree is built in this directory
* Fix deprecated use of unescaped '{'
* Clean Makefile
2018-02-26 12:32:41 +00:00

26 lines
661 B
Text

$NetBSD: patch-aa,v 1.3 2018/02/26 12:32:41 triaxx Exp $
Add variables for SUBST.
--- csp.orig 2007-03-10 22:28:34.000000000 +0000
+++ csp
@@ -167,14 +167,16 @@ die $usage{_nocmd_} unless @ARGV > 0;
my $name = shift @ARGV;
+my $home = $ENV{CSPHOME} || '@CSPHOME@';
+
warn "Warning: \$CSPHOME unset. This may prevent CSP from working properly.\n"
- unless $ENV{CSPHOME};
+ unless -d $home;
+
+$ENV{OPENSSL} = '@OPENSSL@' unless defined($ENV{OPENSSL});
die "Panic: \$OPENSSL does not point to a executable.\n"
unless -x $ENV{OPENSSL};
-my $home = $ENV{CSPHOME} || 'ca';
-
mkdir "$home/csp",00755 unless -d "$home/csp";
$name eq '--list' and