aboutsummaryrefslogtreecommitdiffstats
path: root/finance
diff options
context:
space:
mode:
authoraaron <aaron@FreeBSD.org>2006-06-16 12:26:57 +0800
committeraaron <aaron@FreeBSD.org>2006-06-16 12:26:57 +0800
commit600cd6d4c87525d13525454758e13dfb41422795 (patch)
tree560ba39e1f89141e963e0fb281301c09f70c0c39 /finance
parent5ffd7cef6df7b4dc7f2eb48830fafea99a7fdd1b (diff)
downloadfreebsd-ports-gnome-600cd6d4c87525d13525454758e13dfb41422795.tar.gz
freebsd-ports-gnome-600cd6d4c87525d13525454758e13dfb41422795.tar.zst
freebsd-ports-gnome-600cd6d4c87525d13525454758e13dfb41422795.zip
- Add patch to deal with FreeBSD location of PFPRO_CERT_PATH
PR: ports/98996 Submitted by: Alexandr Kovalenko <never@nevermind.kiev.ua> Approved by: tobez (implicit)
Diffstat (limited to 'finance')
-rw-r--r--finance/p5-PFProAPI/Makefile3
-rw-r--r--finance/p5-PFProAPI/files/patch-PFProAPI.pm14
2 files changed, 17 insertions, 0 deletions
diff --git a/finance/p5-PFProAPI/Makefile b/finance/p5-PFProAPI/Makefile
index 4e2a117f270d..ed616bebc898 100644
--- a/finance/p5-PFProAPI/Makefile
+++ b/finance/p5-PFProAPI/Makefile
@@ -23,4 +23,7 @@ PERL_CONFIGURE= yes
MAN3= PFProAPI.3
+post-patch:
+ ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" ${WRKSRC}/PFProAPI.pm
+
.include <bsd.port.mk>
diff --git a/finance/p5-PFProAPI/files/patch-PFProAPI.pm b/finance/p5-PFProAPI/files/patch-PFProAPI.pm
new file mode 100644
index 000000000000..1e36f11bdd6e
--- /dev/null
+++ b/finance/p5-PFProAPI/files/patch-PFProAPI.pm
@@ -0,0 +1,14 @@
+--- PFProAPI.pm.orig Fri Jun 16 01:37:04 2006
++++ PFProAPI.pm Fri Jun 16 01:37:13 2006
+@@ -76,6 +76,11 @@
+ my $parmlist;
+ my ($name, $value);
+
++ # If no PFPRO_CERT_PATH set, we will set default one
++ if ($ENV{'PFPRO_CERT_PATH'} eq '') {
++ $ENV{'PFPRO_CERT_PATH'} = '%%PREFIX%%/etc/pfpro/certs';
++ }
++
+ if (! $data) {
+ # If no data was passed, we will build a test transaction
+ $data->{ACCT} = "5105105105105100";