summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2004-07-26 15:18:44 +0000
committerminskim <minskim@pkgsrc.org>2004-07-26 15:18:44 +0000
commit9320d082ad75884b5a64e5ca01304ef1b82650ee (patch)
tree35828716161ce93db2b19d747f84b4a0dbbe1f38 /security
parent35cfc72bf5100fc541dc4248cb190f86481efb12 (diff)
downloadpkgsrc-9320d082ad75884b5a64e5ca01304ef1b82650ee.tar.gz
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 (limited to 'security')
-rw-r--r--security/crypto++/DESCR5
-rw-r--r--security/crypto++/Makefile37
-rw-r--r--security/crypto++/PLIST125
-rw-r--r--security/crypto++/buildlink3.mk19
-rw-r--r--security/crypto++/distinfo6
-rw-r--r--security/crypto++/patches/patch-aa31
-rw-r--r--security/crypto++/patches/patch-ab12
7 files changed, 235 insertions, 0 deletions
diff --git a/security/crypto++/DESCR b/security/crypto++/DESCR
new file mode 100644
index 00000000000..7f3931e56fb
--- /dev/null
+++ b/security/crypto++/DESCR
@@ -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 --git a/security/crypto++/Makefile b/security/crypto++/Makefile
new file mode 100644
index 00000000000..ebc2df1785f
--- /dev/null
+++ b/security/crypto++/Makefile
@@ -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
+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 --git a/security/crypto++/PLIST b/security/crypto++/PLIST
new file mode 100644
index 00000000000..6414bccd14a
--- /dev/null
+++ b/security/crypto++/PLIST
@@ -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 --git a/security/crypto++/buildlink3.mk b/security/crypto++/buildlink3.mk
new file mode 100644
index 00000000000..ebd0abd0d3c
--- /dev/null
+++ b/security/crypto++/buildlink3.mk
@@ -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 --git a/security/crypto++/distinfo b/security/crypto++/distinfo
new file mode 100644
index 00000000000..e5009af49fa
--- /dev/null
+++ b/security/crypto++/distinfo
@@ -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 --git a/security/crypto++/patches/patch-aa b/security/crypto++/patches/patch-aa
new file mode 100644
index 00000000000..7f799015a7d
--- /dev/null
+++ b/security/crypto++/patches/patch-aa
@@ -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 --git a/security/crypto++/patches/patch-ab b/security/crypto++/patches/patch-ab
new file mode 100644
index 00000000000..2d862da732e
--- /dev/null
+++ b/security/crypto++/patches/patch-ab
@@ -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
+