Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jun 2006 10:14:25 +0300 (EEST)
From:      Alexandr Kovalenko <never@nevermind.kiev.ua>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/98896: [PATCH] finance/pfpro: fix running on > 4.x (required for PR# 98882 and 98883)
Message-ID:  <200606130714.k5D7EPAm026346@kurush.osdn.org.ua>
Resent-Message-ID: <200606130720.k5D7KDsZ094213@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         98896
>Category:       ports
>Synopsis:       [PATCH] finance/pfpro: fix running on > 4.x (required for PR# 98882 and 98883)
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 13 07:20:12 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Alexandr Kovalenko
>Release:        FreeBSD 6.1-RELEASE-p1 i386
>Organization:
PortaOne, Inc., http://portaone.com/
>Environment:
System: FreeBSD mile.zukabuka.com 6.1-RELEASE FreeBSD 6.1-RELEASE #1: Wed May 10 16:54:26 EEST 2006     root@mile.zukabuka.com:/usr/obj/usr/src/sys/mile  i386

>Description:
    Fix for running on FreeBSD > 4.x
>How-To-Repeat:
    Install port on FreeBSD > 4.x and try to run (without compat4x installed).
>Fix:

diff -ruN pfpro.orig/Makefile pfpro/Makefile
--- pfpro.orig/Makefile	Mon Dec  5 00:09:23 2005
+++ pfpro/Makefile	Tue Jun 13 10:07:21 2006
@@ -7,6 +7,7 @@
 
 PORTNAME=	pfpro
 PORTVERSION=	3.0.8
+PORTREVISION=	1
 CATEGORIES=	finance
 MASTER_SITES=	#https://manager.verisign.com/
 DISTNAME=	pfpro_freebsd
@@ -16,7 +17,6 @@
 
 ONLY_FOR_ARCHS=	i386
 RESTRICTED=	"Only for VeriSign PayFlow Pro customers"
-NO_BUILD=	yes
 INSTALLS_SHLIB=	yes
 NO_WRKSUBDIR=	yes
 SUB_FILES=	pkg-message
@@ -25,8 +25,8 @@
 LATEST_LINK=	verisign-pfpro
 
 CERTDIR=	${PREFIX}/certs
-
 FBSDDIR=	${WRKSRC}/verisign/payflowpro/freebsd
+PFCFLAGS=	-DUSE_SSLEAY -fPIC -DFREEBSD_OS -DGENERIC_SEED  -D_REENTRANT -pthread -DPTHREADS -I. -L.
 
 # XXX nees to be the same as DISTFILES
 PFP_BUNDLE=	${DISTNAME}${EXTRACT_SUFX}
@@ -45,9 +45,11 @@
 in ${DISTDIR}.\n
 .endif
 
+do-build:
+	(cd ${FBSDDIR}/lib && ${CC} ${PFCFLAGS} ${CFLAGS} -c ../bin/${PORTNAME}.c -o ${PORTNAME}.o && ${CC} ${PFCFLAGS} ${CFLAGS} -lpfpro ${PORTNAME}.o -o ${PORTNAME})
+
 do-install:
-	${INSTALL_PROGRAM} ${FBSDDIR}/bin/pfpro ${PREFIX}/bin
-	${INSTALL_PROGRAM} ${FBSDDIR}/bin/pfpro-file ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${FBSDDIR}/lib/pfpro ${PREFIX}/bin
 	${INSTALL_DATA} ${FBSDDIR}/lib/pfpro.h ${PREFIX}/include
 	${INSTALL_DATA} ${FBSDDIR}/lib/libpfpro.so ${PREFIX}/lib
 	${MKDIR} ${CERTDIR}
diff -ruN pfpro.orig/pkg-plist pfpro/pkg-plist
--- pfpro.orig/pkg-plist	Wed Nov 30 23:43:04 2005
+++ pfpro/pkg-plist	Tue Jun 13 10:02:10 2006
@@ -1,5 +1,4 @@
 bin/pfpro
-bin/pfpro-file
 include/pfpro.h
 lib/libpfpro.so
 certs/f73e89fd.0
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606130714.k5D7EPAm026346>