pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/crypto++ Import crypto++ from pkgsrc-wip. Pa...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f3397e01b391
branches:  trunk
changeset: 478565:f3397e01b391
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Mon Jul 26 15:18:44 2004 +0000

description:
Import crypto++ from pkgsrc-wip.  Packaged by Sergio Jimenez and
slightly modified by me.

Crypto++ Library is a free C++ class library of cryptographic schemes.
One purpose of Crypto++ is to act as a repository of public domain
(not copyrighted) source code.  Although the library is copyrighted as
a compilation, the individual files in it (except for a few exceptions
listed in the license) are in the public domain.

diffstat:

 security/crypto++/DESCR            |    5 +
 security/crypto++/Makefile         |   37 ++++++++++
 security/crypto++/PLIST            |  125 +++++++++++++++++++++++++++++++++++++
 security/crypto++/buildlink3.mk    |   19 +++++
 security/crypto++/distinfo         |    6 +
 security/crypto++/patches/patch-aa |   31 +++++++++
 security/crypto++/patches/patch-ab |   12 +++
 7 files changed, 235 insertions(+), 0 deletions(-)

diffs (263 lines):

diff -r b6bd618dea14 -r f3397e01b391 security/crypto++/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/crypto++/DESCR   Mon Jul 26 15:18:44 2004 +0000
@@ -0,0 +1,5 @@
+Crypto++ Library is a free C++ class library of cryptographic schemes.
+One purpose of Crypto++ is to act as a repository of public domain
+(not copyrighted) source code.  Although the library is copyrighted as
+a compilation, the individual files in it (except for a few exceptions
+listed in the license) are in the public domain.
diff -r b6bd618dea14 -r f3397e01b391 security/crypto++/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/crypto++/Makefile        Mon Jul 26 15:18:44 2004 +0000
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/07/26 15:18:44 minskim Exp $
+#
+
+DISTNAME=              crypto51
+PKGNAME=               crypto++-5.1
+CATEGORIES=            security
+MASTER_SITES=          http://www.eskimo.com/~weidai/ \
+                       http://prdownloads.sourceforge.net/cryptopp/ \
+                       http://gd.tuwien.ac.at/privacy/crypto/libs/cryptlib/
+EXTRACT_SUFX=           .zip
+
+MAINTAINER=            tech-pkg%NetBSD.org@localhost
+HOMEPAGE=              http://www.cryptopp.com/
+COMMENT=               Free C++ class library of Cryptographic Primitives
+
+PKG_INSTALLATION_TYPES=        overwrite pkgviews
+
+USE_GNU_TOOLS+=                make
+MAKEFILE=              GNUmakefile
+WRKSRC=                        ${WRKDIR}
+USE_LANGUAGES=         c++
+
+INSTALLATION_DIRS=     bin lib
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/cryptest ${PREFIX}/bin
+       ${INSTALL_DATA} ${WRKSRC}/libcryptopp.a ${PREFIX}/lib
+       ${INSTALL_DATA_DIR} ${PREFIX}/include/cryptopp ${PREFIX}/share/doc/cryptopp
+
+       ${INSTALL_DATA} ${WRKSRC}/Readme.txt ${PREFIX}/share/doc/cryptopp/README
+       ${INSTALL_DATA} ${WRKSRC}/License.txt ${PREFIX}/share/doc/cryptopp/License
+
+       for f in ${WRKSRC}/*.h; do      \
+               ${INSTALL_DATA} $$f ${PREFIX}/include/cryptopp; \
+       done
+
+.include "../../mk/bsd.pkg.mk"
diff -r b6bd618dea14 -r f3397e01b391 security/crypto++/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/crypto++/PLIST   Mon Jul 26 15:18:44 2004 +0000
@@ -0,0 +1,125 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/07/26 15:18:44 minskim Exp $
+bin/cryptest
+include/cryptopp/3way.h
+include/cryptopp/adler32.h
+include/cryptopp/aes.h
+include/cryptopp/algebra.h
+include/cryptopp/algparam.h
+include/cryptopp/arc4.h
+include/cryptopp/argnames.h
+include/cryptopp/asn.h
+include/cryptopp/base64.h
+include/cryptopp/basecode.h
+include/cryptopp/bench.h
+include/cryptopp/blowfish.h
+include/cryptopp/blumshub.h
+include/cryptopp/cast.h
+include/cryptopp/cbcmac.h
+include/cryptopp/channels.h
+include/cryptopp/config.h
+include/cryptopp/crc.h
+include/cryptopp/cryptlib.h
+include/cryptopp/default.h
+include/cryptopp/des.h
+include/cryptopp/dh.h
+include/cryptopp/dh2.h
+include/cryptopp/diamond.h
+include/cryptopp/dmac.h
+include/cryptopp/dsa.h
+include/cryptopp/ec2n.h
+include/cryptopp/eccrypto.h
+include/cryptopp/ecp.h
+include/cryptopp/elgamal.h
+include/cryptopp/eprecomp.h
+include/cryptopp/esign.h
+include/cryptopp/factory.h
+include/cryptopp/files.h
+include/cryptopp/filters.h
+include/cryptopp/fips140.h
+include/cryptopp/fltrimpl.h
+include/cryptopp/gf256.h
+include/cryptopp/gf2_32.h
+include/cryptopp/gf2n.h
+include/cryptopp/gfpcrypt.h
+include/cryptopp/gost.h
+include/cryptopp/gzip.h
+include/cryptopp/haval.h
+include/cryptopp/hex.h
+include/cryptopp/hmac.h
+include/cryptopp/hrtimer.h
+include/cryptopp/ida.h
+include/cryptopp/idea.h
+include/cryptopp/integer.h
+include/cryptopp/iterhash.h
+include/cryptopp/lubyrack.h
+include/cryptopp/luc.h
+include/cryptopp/mars.h
+include/cryptopp/md2.h
+include/cryptopp/md4.h
+include/cryptopp/md5.h
+include/cryptopp/md5mac.h
+include/cryptopp/mdc.h
+include/cryptopp/misc.h
+include/cryptopp/modarith.h
+include/cryptopp/modes.h
+include/cryptopp/modexppc.h
+include/cryptopp/mqueue.h
+include/cryptopp/mqv.h
+include/cryptopp/nbtheory.h
+include/cryptopp/network.h
+include/cryptopp/nr.h
+include/cryptopp/oaep.h
+include/cryptopp/oids.h
+include/cryptopp/osrng.h
+include/cryptopp/panama.h
+include/cryptopp/pch.h
+include/cryptopp/pkcspad.h
+include/cryptopp/polynomi.h
+include/cryptopp/pssr.h
+include/cryptopp/pubkey.h
+include/cryptopp/pwdbased.h
+include/cryptopp/queue.h
+include/cryptopp/rabin.h
+include/cryptopp/randpool.h
+include/cryptopp/rc2.h
+include/cryptopp/rc5.h
+include/cryptopp/rc6.h
+include/cryptopp/rijndael.h
+include/cryptopp/ripemd.h
+include/cryptopp/rng.h
+include/cryptopp/rsa.h
+include/cryptopp/rw.h
+include/cryptopp/safer.h
+include/cryptopp/seal.h
+include/cryptopp/secblock.h
+include/cryptopp/seckey.h
+include/cryptopp/serpent.h
+include/cryptopp/sha.h
+include/cryptopp/shark.h
+include/cryptopp/simple.h
+include/cryptopp/skipjack.h
+include/cryptopp/smartptr.h
+include/cryptopp/socketft.h
+include/cryptopp/square.h
+include/cryptopp/strciphr.h
+include/cryptopp/tea.h
+include/cryptopp/tiger.h
+include/cryptopp/trdlocal.h
+include/cryptopp/trunhash.h
+include/cryptopp/twofish.h
+include/cryptopp/validate.h
+include/cryptopp/wait.h
+include/cryptopp/wake.h
+include/cryptopp/winpipes.h
+include/cryptopp/words.h
+include/cryptopp/xormac.h
+include/cryptopp/xtr.h
+include/cryptopp/xtrcrypt.h
+include/cryptopp/zdeflate.h
+include/cryptopp/zinflate.h
+include/cryptopp/zlib.h
+lib/libcryptopp.a
+share/doc/cryptopp/License
+share/doc/cryptopp/README
+@dirrm share/doc/cryptopp
+@dirrm include/cryptopp
diff -r b6bd618dea14 -r f3397e01b391 security/crypto++/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/crypto++/buildlink3.mk   Mon Jul 26 15:18:44 2004 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2004/07/26 15:18:44 minskim Exp $
+
+BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH}+
+CRYPTO++_BUILDLINK3_MK:=       ${CRYPTO++_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+=    cryptopp
+.endif
+
+BUILDLINK_PACKAGES:=   ${BUILDLINK_PACKAGES:Ncryptopp}
+BUILDLINK_PACKAGES+=   cryptopp
+
+.if !empty(CRYPTO++_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.cryptopp+=   crypto++>=5.1
+BUILDLINK_DEPMETHOD.cryptopp?= build
+BUILDLINK_PKGSRCDIR.cryptopp?= ../../wip/cryptopp
+.endif # CRYPTO++_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:=     ${BUILDLINK_DEPTH:S/+$//}
diff -r b6bd618dea14 -r f3397e01b391 security/crypto++/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/crypto++/distinfo        Mon Jul 26 15:18:44 2004 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/07/26 15:18:44 minskim Exp $
+
+SHA1 (crypto51.zip) = 95905714c85f6fb563e66edb5478818df787fe2d
+Size (crypto51.zip) = 829560 bytes
+SHA1 (patch-aa) = f66abaac76ea6db3f94a8d3616114b7d893d8793
+SHA1 (patch-ab) = e9ec34d4dd5093c021cc27ea6233e87dc6262221
diff -r b6bd618dea14 -r f3397e01b391 security/crypto++/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/crypto++/patches/patch-aa        Mon Jul 26 15:18:44 2004 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/07/26 15:18:44 minskim Exp $
+
+--- GNUmakefile.orig   2003-03-19 19:24:11.000000000 -0600
++++ GNUmakefile
+@@ -1,5 +1,5 @@
+ # can't use -fno-rtti yet because it causes problems with exception handling in GCC 2.95.2
+-CXXFLAGS = -g
++CXXFLAGS = ${CFLAGS}
+ # Uncomment the next two lines to do a release build.
+ # Note that you must define NDEBUG for your own application if you define it for Crypto++.
+ # Also, make sure you run the validation tests and test your own program thoroughly
+@@ -47,16 +47,16 @@ OBJS = $(SRCS:.cpp=.o)
+ TESTOBJS = bench.o test.o validat1.o validat2.o validat3.o adhoc.o datatest.o regtest.o
+ LIBOBJS = $(filter-out $(TESTOBJS),$(OBJS))
+ 
+-all: cryptest.exe
++all: cryptest
+ 
+ clean:
+-      $(RM) cryptest.exe libcryptopp.a $(LIBOBJS) $(TESTOBJS)
++      $(RM) cryptest libcryptopp.a $(LIBOBJS) $(TESTOBJS)
+ 
+ libcryptopp.a: $(LIBOBJS)
+       $(AR) $(ARFLAGS) $@ $(LIBOBJS)
+       $(RANLIB) $@
+ 
+-cryptest.exe: libcryptopp.a $(TESTOBJS)
++cryptest: libcryptopp.a $(TESTOBJS)
+       $(CXX) -o $@ $(CXXFLAGS) $(TESTOBJS) -L. -lcryptopp $(LDFLAGS) $(LDLIBS)
+ 
+ nolib: $(OBJS)                # makes it faster to test changes
diff -r b6bd618dea14 -r f3397e01b391 security/crypto++/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/crypto++/patches/patch-ab        Mon Jul 26 15:18:44 2004 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/07/26 15:18:44 minskim Exp $
+--- config.h.orig      2004-04-14 01:13:37.000000000 +0100
++++ config.h   2004-04-14 01:13:41.000000000 +0100
+@@ -194,7 +194,7 @@
+ #define CRYPTOPP_WIN32_AVAILABLE
+ #endif
+ 
+-#if defined(__unix__) || defined(__MACH__)
++#if defined(__unix__) || defined(__MACH__) || defined(__NetBSD__)
+ #define CRYPTOPP_UNIX_AVAILABLE
+ #endif
+ 



Home | Main Index | Thread Index | Old Index