View | Details | Raw Unified | Return to bug 98996 | Differences between
and this patch

Collapse All | Expand All

(-)pfpro/Makefile (-3 / +7 lines)
Lines 7-18 Link Here
7
7
8
PORTNAME=	pfpro
8
PORTNAME=	pfpro
9
PORTVERSION=	3.0.8
9
PORTVERSION=	3.0.8
10
PORTREVISION=	1
10
PORTREVISION=	2
11
CATEGORIES=	finance
11
CATEGORIES=	finance
12
MASTER_SITES=	#https://manager.verisign.com/
12
MASTER_SITES=	#https://manager.verisign.com/
13
DISTNAME=	pfpro_freebsd
13
DISTNAME=	pfpro_freebsd
14
14
15
MAINTAINER=	durian@shadetreesoftware.com
15
MAINTAINER=	never@nevermind.kiev.ua
16
COMMENT=	SDK for VeriSign's PayFlow Pro
16
COMMENT=	SDK for VeriSign's PayFlow Pro
17
17
18
ONLY_FOR_ARCHS=	i386
18
ONLY_FOR_ARCHS=	i386
Lines 24-31 Link Here
24
PKGMESSAGE=	${WRKDIR}/pkg-message
24
PKGMESSAGE=	${WRKDIR}/pkg-message
25
LATEST_LINK=	verisign-pfpro
25
LATEST_LINK=	verisign-pfpro
26
26
27
CERTDIR=	${PREFIX}/certs
27
CERTDIR=	${PREFIX}/etc/pfpro/certs
28
FBSDDIR=	${WRKSRC}/verisign/payflowpro/freebsd
28
FBSDDIR=	${WRKSRC}/verisign/payflowpro/freebsd
29
PATCH_WRKSRC=	${WRKSRC}/verisign/payflowpro/freebsd/bin
29
PFCFLAGS=	-DUSE_SSLEAY -fPIC -DFREEBSD_OS -DGENERIC_SEED  -D_REENTRANT -pthread -DPTHREADS -I. -L.
30
PFCFLAGS=	-DUSE_SSLEAY -fPIC -DFREEBSD_OS -DGENERIC_SEED  -D_REENTRANT -pthread -DPTHREADS -I. -L.
30
31
31
# XXX nees to be the same as DISTFILES
32
# XXX nees to be the same as DISTFILES
Lines 44-49 Link Here
44
some terms and conditions.  After downing the SDK, place ${PFP_BUNDLE}\n\
45
some terms and conditions.  After downing the SDK, place ${PFP_BUNDLE}\n\
45
in ${DISTDIR}.\n
46
in ${DISTDIR}.\n
46
.endif
47
.endif
48
49
post-patch:
50
	${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" ${FBSDDIR}/bin/pfpro.c
47
51
48
do-build:
52
do-build:
49
	(cd ${FBSDDIR}/lib && ${CC} ${PFCFLAGS} ${CFLAGS} -c ../bin/${PORTNAME}.c -o ${PORTNAME}.o && ${CC} ${PFCFLAGS} ${CFLAGS} -lpfpro ${PORTNAME}.o -o ${PORTNAME})
53
	(cd ${FBSDDIR}/lib && ${CC} ${PFCFLAGS} ${CFLAGS} -c ../bin/${PORTNAME}.c -o ${PORTNAME}.o && ${CC} ${PFCFLAGS} ${CFLAGS} -lpfpro ${PORTNAME}.o -o ${PORTNAME})
(-)pfpro/files/patch-pfpro.c (+12 lines)
Line 0 Link Here
1
--- pfpro.c.orig	Fri Jun 16 00:37:48 2006
2
+++ pfpro.c	Fri Jun 16 01:01:27 2006
3
@@ -65,6 +65,9 @@
4
 	int     parmLen;
5
 
6
 
7
+	/* Set default value of PFPRO_CERT_PATH */
8
+	setenv("PFPRO_CERT_PATH","%%PREFIX%%/etc/pfpro/certs",0);
9
+
10
     if ((argc == 2) && (!strcmp(argv[1],"-i"))) {
11
         /* read input from stdin */
12
         if (!fgets(ibuf,sizeof(ibuf),stdin)) {
(-)pfpro/files/pkg-message.in (-2 / +5 lines)
Lines 1-3 Link Here
1
======================================================================
1
You must set the environment variable PFPRO_CERT_PATH to point to
2
You must set the environment variable PFPRO_CERT_PATH to point to
2
the directory that contains the file f73e89fd.0.  The default location
3
the directory that contains the file f73e89fd.0.
3
is: %%PREFIX%%/certs
4
5
The default location is: %%PREFIX%%/etc/pfpro/certs
6
======================================================================
(-)pfpro/pkg-plist (-2 / +3 lines)
Lines 1-5 Link Here
1
bin/pfpro
1
bin/pfpro
2
certs/f73e89fd.0
2
etc/pfpro/certs/f73e89fd.0
3
include/pfpro.h
3
include/pfpro.h
4
lib/libpfpro.so
4
lib/libpfpro.so
5
@dirrmtry certs
5
@dirrmtry etc/pfpro/certs
6
@dirrmtry etc/pfpro

Return to bug 98996