- Alterations to respect hier(7)

- Change maintainer

PR:		ports/82839
Submitted by:	Alexandr Kovalenko <never@nevermind.kiev.ua>
Reviewed by:	maintainer
Approved by:	maintainer, tobez (implicit)
This commit is contained in:
Aaron Dalton 2006-06-16 17:54:06 +00:00
parent da0c76df9e
commit dd18641f71
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=165590
4 changed files with 27 additions and 7 deletions

View file

@ -7,12 +7,12 @@
PORTNAME= pfpro
PORTVERSION= 3.0.8
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= finance
MASTER_SITES= #https://manager.verisign.com/
DISTNAME= pfpro_freebsd
MAINTAINER= durian@shadetreesoftware.com
MAINTAINER= never@nevermind.kiev.ua
COMMENT= SDK for VeriSign's PayFlow Pro
ONLY_FOR_ARCHS= i386
@ -24,8 +24,9 @@ SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
LATEST_LINK= verisign-pfpro
CERTDIR= ${PREFIX}/certs
CERTDIR= ${PREFIX}/etc/pfpro/certs
FBSDDIR= ${WRKSRC}/verisign/payflowpro/freebsd
PATCH_WRKSRC= ${WRKSRC}/verisign/payflowpro/freebsd/bin
PFCFLAGS= -DUSE_SSLEAY -fPIC -DFREEBSD_OS -DGENERIC_SEED -D_REENTRANT -pthread -DPTHREADS -I. -L.
# XXX nees to be the same as DISTFILES
@ -45,6 +46,9 @@ some terms and conditions. After downing the SDK, place ${PFP_BUNDLE}\n\
in ${DISTDIR}.\n
.endif
post-patch:
${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" ${FBSDDIR}/bin/pfpro.c
do-build:
(cd ${FBSDDIR}/lib && ${CC} ${PFCFLAGS} ${CFLAGS} -c ../bin/${PORTNAME}.c -o ${PORTNAME}.o && ${CC} ${PFCFLAGS} ${CFLAGS} -lpfpro ${PORTNAME}.o -o ${PORTNAME})

View file

@ -0,0 +1,12 @@
--- pfpro.c.orig Fri Jun 16 00:37:48 2006
+++ pfpro.c Fri Jun 16 01:01:27 2006
@@ -65,6 +65,9 @@
int parmLen;
+ /* Set default value of PFPRO_CERT_PATH */
+ setenv("PFPRO_CERT_PATH","%%PREFIX%%/etc/pfpro/certs",0);
+
if ((argc == 2) && (!strcmp(argv[1],"-i"))) {
/* read input from stdin */
if (!fgets(ibuf,sizeof(ibuf),stdin)) {

View file

@ -1,3 +1,6 @@
======================================================================
You must set the environment variable PFPRO_CERT_PATH to point to
the directory that contains the file f73e89fd.0. The default location
is: %%PREFIX%%/certs
the directory that contains the file f73e89fd.0.
The default location is: %%PREFIX%%/etc/pfpro/certs
======================================================================

View file

@ -1,5 +1,6 @@
bin/pfpro
certs/f73e89fd.0
etc/pfpro/certs/f73e89fd.0
include/pfpro.h
lib/libpfpro.so
@dirrmtry certs
@dirrmtry etc/pfpro/certs
@dirrmtry etc/pfpro