diff --git a/security/Makefile b/security/Makefile index ee86eb18309f..1cf198e92e09 100644 --- a/security/Makefile +++ b/security/Makefile @@ -168,6 +168,7 @@ SUBDIR += ruby-pam SUBDIR += ruby-ssl SUBDIR += ruby-tcpwrap + SUBDIR += saferpay SUBDIR += saint SUBDIR += scanssh SUBDIR += seahorse diff --git a/security/saferpay/Makefile b/security/saferpay/Makefile new file mode 100644 index 000000000000..25a20ffab30a --- /dev/null +++ b/security/saferpay/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: saferpay +# Date created: 06 September 2001 +# Whom: mb@imp.ch +# +# $FreeBSD$ +# + +PORTNAME= saferpay +PORTVERSION= 1.2.2 +CATEGORIES= security +MASTER_SITES= http://www.saferpay.com/download/ +DISTFILES= ${PORTNAME}_${PORTVERSION}_linux-g++_src.tar.gz + +MAINTAINER= mb@imp.ch + +MAKEFILE= ${WRKSRC}/saferpay/Makefile + +USE_OPENSSL= yes +INSTALLS_SHLIB= yes +WRKSRC= ${WRKDIR} + +pre-patch: + @${CHMOD} 644 ${MAKEFILE} + @${CP} ${MAKEFILE} ${MAKEFILE}.orig + @${SED} -e 's%.$$%%' < ${MAKEFILE}.orig > ${MAKEFILE} + +.if !defined(WITH_P5_API) +pre-build: + @${ECHO} "-----------------------------------------------------" + @${ECHO} You are building now the saferpay command line tool. + @${ECHO} If you like to install the perl API too, break this + @${ECHO} installation and start it again with WITH_P5_API=YES. + @${ECHO} "-----------------------------------------------------" +.else +pre-build: +PLIST= ${PKGDIR}/pkg-plist.p5 +post-build: + @(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} xs) +post-install: + @(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} installxs) +.endif + +.include diff --git a/security/saferpay/distinfo b/security/saferpay/distinfo new file mode 100644 index 000000000000..9daf0fe1dea3 --- /dev/null +++ b/security/saferpay/distinfo @@ -0,0 +1 @@ +MD5 (saferpay_1.2.2_linux-g++_src.tar.gz) = 0fe9c85bd09cabcd7a8204b141d9ec9f diff --git a/security/saferpay/files/patch-aa b/security/saferpay/files/patch-aa new file mode 100644 index 000000000000..62a214138c61 --- /dev/null +++ b/security/saferpay/files/patch-aa @@ -0,0 +1,74 @@ +--- saferpay/Makefile.orig Thu Sep 6 00:19:01 2001 ++++ saferpay/Makefile Thu Sep 6 00:21:22 2001 +@@ -1,47 +1,35 @@ +-PREFIX = /usr +-SSLEAYDIR = SSLeay-0.9.0 +-SSLEAY = $(SSLEAYDIR)-patch1 +- + all: +- make SSLeay +- cp ./ssl/$(SSLEAYDIR)/libssl.a ./ssl +- cp ./ssl/$(SSLEAYDIR)/libcrypto.a ./ssl +- make -f idpapp.mk +- cp ./out/libidpapp.s* $(PREFIX)/lib +- make -f saferpay.mk +- cp idpapi.h ./out +- cp idperrc.h ./out +- cp ./out/settings.template ./out/settings.xml +- +-SSLeay: +- cd ssl; gunzip -c $(SSLEAY).tar.gz > $(SSLEAY).tar; tar xf $(SSLEAY).tar; cd $(SSLEAYDIR); perl Configure linux-elf; make; cd ..; cd ..; ++ gmake -f idpapp.mk -C saferpay ++ gmake -f saferpay.mk -C saferpay + + clean: +- make -f idpapp.mk clean +- make -f saferpay.mk clean +- -rm -R ssl/$(SSLEAYDIR) +- -rm ssl/$(SSLEAY).tar; ++ gmake -f idpapp.mk -C saferpay clean ++ gmake -f saferpay.mk -C saferpay clean + + xs: all +- perl -e 'system("cd perl/MessageObject\nperl Makefile.PL\nmake");' +- perl -e 'system("cd perl/MessageFactory\nperl Makefile.PL\nmake");' +- perl -e 'system("cd perl/ConfigurationSetup\nperl Makefile.PL\nmake");' ++ perl -e 'system("cd saferpay/perl/MessageObject\nperl Makefile.PL\nmake");' ++ perl -e 'system("cd saferpay/perl/MessageFactory\nperl Makefile.PL\nmake");' ++ perl -e 'system("cd saferpay/perl/ConfigurationSetup\nperl Makefile.PL\nmake");' + + testxs: +- make -C perl/ConfigurationSetup test +- make -C perl/MessageFactory test ++ gmake -C saferpay/perl/ConfigurationSetup test ++ gmake -C saferpay/perl/MessageFactory test + + installxs: +- make -C perl/ConfigurationSetup install +- make -C perl/MessageFactory install +- make -C perl/MessageObject install ++ gmake -C saferpay/perl/ConfigurationSetup install ++ gmake -C saferpay/perl/MessageFactory install ++ gmake -C saferpay/perl/MessageObject install + + cleanxs: +- make -C perl/ConfigurationSetup clean +- make -C perl/MessageFactory clean +- make -C perl/MessageObject clean +- +- +- +- +- ++ gmake -C saferpay/perl/ConfigurationSetup clean ++ gmake -C saferpay/perl/MessageFactory clean ++ gmake -C saferpay/perl/MessageObject clean ++ ++install: ++ install -C saferpay/out/libidpapp.so.1.0.0 $(PREFIX)/lib/libidpapp.so.1 ++ install -C saferpay/idpapi.h $(PREFIX)/include ++ install -C saferpay/idperrc.h $(PREFIX)/include ++ install -m 0555 -C saferpay/out/saferpay $(PREFIX)/bin ++ mkdir -p $(PREFIX)/share/examples/saferpay/ ++ install -C saferpay/out/settings.template $(PREFIX)/share/examples/saferpay/ ++ ln -s -f $(PREFIX)/lib/libidpapp.so.1 $(PREFIX)/lib/libidpapp.so diff --git a/security/saferpay/files/patch-ab b/security/saferpay/files/patch-ab new file mode 100644 index 000000000000..59c97af5a3f3 --- /dev/null +++ b/security/saferpay/files/patch-ab @@ -0,0 +1,15 @@ +--- saferpay/idpapp.mk.orig Thu Dec 14 18:54:02 2000 ++++ saferpay/idpapp.mk Mon Jul 30 13:33:48 2001 +@@ -11,10 +11,10 @@ + CXX = g++ + CFLAGS = -pipe -DUNIX -DHAVE_UNISTD_H -DHAVE_STDLIB_H -O2 -fPIC + CXXFLAGS= -pipe -DUNIX -O2 -fPIC +-INCPATH = -I"./xml" -I"./jni" -I"./ssl" -I"./sxfc" ++INCPATH = -I"./xml" -I"./jni" -I"/usr/include/openssl/" -I"./sxfc" + LINK = g++ + LFLAGS = -fPIC -shared -Wl,-soname,libidpapp.so.1 +-LIBS = ./ssl/libssl.a ./ssl/libcrypto.a ++LIBS = /usr/lib/libssl.a /usr/lib/libcrypto.a + AR = ar cqs + RANLIB = + MOC = $(QTDIR)/bin/moc diff --git a/security/saferpay/files/patch-ac b/security/saferpay/files/patch-ac new file mode 100644 index 000000000000..fa9a373049a7 --- /dev/null +++ b/security/saferpay/files/patch-ac @@ -0,0 +1,11 @@ +--- saferpay/idphttp.cpp.orig Wed Jan 10 15:23:12 2001 ++++ saferpay/idphttp.cpp Mon Jul 30 13:33:13 2001 +@@ -368,7 +368,7 @@ + public: + SslConnection() + { +- SSLeay_add_ssl_algorithms(); ++ SSL_library_init(); + SSL_load_error_strings(); + + ctx = SSL_CTX_new(SSLv23_method()); diff --git a/security/saferpay/files/patch-ad b/security/saferpay/files/patch-ad new file mode 100644 index 000000000000..0d40dcc4cee9 --- /dev/null +++ b/security/saferpay/files/patch-ad @@ -0,0 +1,11 @@ +--- saferpay/saferpay.c.orig Wed Sep 5 17:05:15 2001 ++++ saferpay/saferpay.c Wed Sep 5 17:05:27 2001 +@@ -3,7 +3,7 @@ + #include + #include + #include +-#include ++#include + #include "idpapi.h" + #include "idperrc.h" + diff --git a/security/saferpay/files/patch-ae b/security/saferpay/files/patch-ae new file mode 100644 index 000000000000..668583b3132c --- /dev/null +++ b/security/saferpay/files/patch-ae @@ -0,0 +1,11 @@ +--- saferpay/saferpay.mk.orig Fri Sep 7 00:16:00 2001 ++++ saferpay/saferpay.mk Fri Sep 7 00:16:10 2001 +@@ -13,7 +13,7 @@ + CXXFLAGS= -pipe -O2 + INCPATH = + LINK = g++ +-LFLAGS = ++LFLAGS = -Lout + LIBS = -lidpapp + MOC = $(QTDIR)/bin/moc + diff --git a/security/saferpay/pkg-comment b/security/saferpay/pkg-comment new file mode 100644 index 000000000000..f8cc6228fda8 --- /dev/null +++ b/security/saferpay/pkg-comment @@ -0,0 +1,2 @@ +saferpay is a command line tool for online payment. At the moment it is +used in europe, mostly germany and switzerland. diff --git a/security/saferpay/pkg-descr b/security/saferpay/pkg-descr new file mode 100644 index 000000000000..d43f151ad19e --- /dev/null +++ b/security/saferpay/pkg-descr @@ -0,0 +1,9 @@ +Saferpay is a online payment software with P5 API and a +command line tool. At the moment it is used in europe, +mostly germany and switzerland. + +The saferpay command line tool offers web shop operators +all the equipment they need so that they can collect +payment online quickly and easily on the Internet. + +WWW: http://www.saferpay.com diff --git a/security/saferpay/pkg-plist b/security/saferpay/pkg-plist new file mode 100644 index 000000000000..843a6a228fa7 --- /dev/null +++ b/security/saferpay/pkg-plist @@ -0,0 +1,5 @@ +lib/libidpapp.so +lib/libidpapp.so.1 +bin/saferpay +share/examples/saferpay/settings.template +@dirrm share/examples/saferpay diff --git a/security/saferpay/pkg-plist.p5 b/security/saferpay/pkg-plist.p5 new file mode 100644 index 000000000000..8a6d19bb7a4e --- /dev/null +++ b/security/saferpay/pkg-plist.p5 @@ -0,0 +1,27 @@ +lib/libidpapp.so +lib/libidpapp.so.1 +bin/saferpay +share/examples/saferpay/settings.template +@dirrm share/examples/saferpay +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/soplex/saferpay/ConfigurationSetup/.packlist +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/soplex/saferpay/ConfigurationSetup/ConfigurationSetup.so +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/soplex/saferpay/ConfigurationSetup/ConfigurationSetup.bs +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/soplex/saferpay/ConfigurationSetup.pm +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/soplex/saferpay/MessageFactory/.packlist +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/soplex/saferpay/ConfigurationSetup/autosplit.ix +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/soplex/saferpay/MessageFactory/MessageFactory.so +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/soplex/saferpay/MessageFactory/MessageFactory.bs +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/soplex/saferpay/MessageFactory.pm +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/soplex/saferpay/MessageFactory/autosplit.ix +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/soplex/saferpay/MessageObject/.packlist +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/soplex/saferpay/MessageObject/MessageObject.so +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/soplex/saferpay/MessageObject/MessageObject.bs +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/soplex/saferpay/MessageObject.pm +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/soplex/saferpay/MessageObject/autosplit.ix +lib/perl5/5.00503/man/man3/soplex::saferpay::MessageFactory.3 +lib/perl5/5.00503/man/man3/soplex::saferpay::MessageObject.3 +@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/soplex/saferpay/ConfigurationSetup +@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/soplex/saferpay/MessageObject +@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/soplex/saferpay/MessageFactory +@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/soplex/saferpay +@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/soplex