Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
LibTomCrypt is a fairly comprehensive, modular and portable cryptographic
toolkit that provides developers with a vast array of well known published block
ciphers, one-way hash functions, chaining modes, pseudo-random number
generators, public key cryptography and a plethora of other routines.
LibTomCrypt has been designed from the ground up to be very simple to use. It
has a modular and standard API that allows new ciphers, hashes and PRNGs to be
added or removed without change to the overall end application. It features easy
to use functions and a complete user manual which has many source snippet
examples.
* Block Ciphers
* Blowfish
* XTEA
* RC5
* RC6
* SAFER+
* Rijndael (aka AES)
* Twofish
* SAFER (K64, SK64, K128, SK128)
* RC2
* DES, 3DES
* CAST5
* Noekeon
* Skipjack
* Anubis (with optional tweak as proposed by the developers)
* Khazad
* KASUMI
* SEED
...and more!
+28
View File
@@ -0,0 +1,28 @@
# $NetBSD: Makefile,v 1.3 2012/10/23 18:16:35 asau Exp $
DISTNAME= crypt-1.17
PKGNAME= libtom${DISTNAME}
PKGREVISION= 1
CATEGORIES= security
MASTER_SITES= http://libtom.org/files/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= agc@NetBSD.org
HOMEPAGE= http://libtom.org/
COMMENT= Tom St Denis's cryptographic library
LICENSE= public-domain
PKG_INSTALLATION_TYPES= overwrite pkgviews
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
USE_LIBTOOL= yes
USE_TOOLS+= gmake
MAKE_FILE= makefile.shared
MAKE_ENV+= CFLAGS_OPTS="-DUSE_LTM -DLTM_DESC"
BUILD_TARGET= default
AUTO_MKDIRS= yes
.include "../../math/ltm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+18
View File
@@ -0,0 +1,18 @@
@comment $NetBSD: PLIST,v 1.2 2011/03/10 10:02:34 drochner Exp $
include/tomcrypt.h
include/tomcrypt_argchk.h
include/tomcrypt_cfg.h
include/tomcrypt_cipher.h
include/tomcrypt_custom.h
include/tomcrypt_hash.h
include/tomcrypt_mac.h
include/tomcrypt_macros.h
include/tomcrypt_math.h
include/tomcrypt_misc.h
include/tomcrypt_pk.h
include/tomcrypt_pkcs.h
include/tomcrypt_prng.h
include/tomcrypt_test.h
lib/libtomcrypt.la
lib/libtomcrypt_prof.la
share/doc/libtomcrypt/crypt.pdf
+15
View File
@@ -0,0 +1,15 @@
# $NetBSD: buildlink3.mk,v 1.2 2011/03/10 10:02:34 drochner Exp $
BUILDLINK_TREE+= libtomcrypt
.if !defined(LIBTOMCRYPT_BUILDLINK3_MK)
LIBTOMCRYPT_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.libtomcrypt+= libtomcrypt>=1.17
BUILDLINK_PKGSRCDIR.libtomcrypt?= ../../security/libtomcrypt
.include "../../math/ltm/buildlink3.mk"
.endif # LIBTOMCRYPT_BUILDLINK3_MK
BUILDLINK_TREE+= -libtomcrypt
+8
View File
@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.2 2011/03/10 10:02:34 drochner Exp $
SHA1 (crypt-1.17.tar.bz2) = 9c746822c84e4276e432b64964f94d1d5ddd13ad
RMD160 (crypt-1.17.tar.bz2) = 742d72d82fea2e6a9865d8c682c10cbaba69ea2f
Size (crypt-1.17.tar.bz2) = 1599215 bytes
SHA1 (patch-aa) = a2385cf0543a19b1555d4370a10c012c5141b48a
SHA1 (patch-ab) = 364a6939c2bdec98413aab50465d5a42293af6db
SHA1 (patch-ac) = 871a713512b20199b502876d2523e8bf619c5e85
+39
View File
@@ -0,0 +1,39 @@
$NetBSD: patch-aa,v 1.1.1.1 2010/11/27 06:11:57 agc Exp $
Use pkgsrc defs to install things
Install the documentation
--- makefile.unix 2010/11/24 08:46:20 1.1
+++ makefile.unix 2010/11/24 08:53:23
@@ -29,9 +29,9 @@
#LIBPATH-The directory for libtomcrypt to be installed to.
#INCPATH-The directory to install the header files for libtomcrypt.
#DATAPATH-The directory to install the pdf docs.
-LIBPATH=/usr/local/lib
-INCPATH=/usr/local/include
-DATAPATH=/usr/local/share/doc/libtomcrypt/pdf
+LIBPATH=${PREFIX}/lib
+INCPATH=${PREFIX}/include
+DATAPATH=${PREFIX}/share/doc/libtomcrypt/
#Who do we install as?
USER=root
@@ -226,11 +226,12 @@
#as root in order to have a high enough permission to write to the correct
#directories and to set the owner and group to root.
install: library
- install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)
- install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH)
- install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(DATAPATH)
- install -g $(GROUP) -o $(USER) $(LIBNAME) $(DESTDIR)$(LIBPATH)
- install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH)
+ ${BSD_INSTALL_LIB_DIR} $(DESTDIR)$(LIBPATH)
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(INCPATH)
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(DATAPATH)
+ ${BSD_INSTALL_LIB} $(LIBNAME) $(DESTDIR)$(LIBPATH)
+ ${BSD_INSTALL_DATA} $(HEADERS) $(DESTDIR)$(INCPATH)
+ ${BSD_INSTALL_DATA} doc/crypt.pdf $(DESTDIR)$(DATAPATH)
install_test: testprof/$(LIBTEST)
install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)
+81
View File
@@ -0,0 +1,81 @@
$NetBSD: patch-ab,v 1.1 2011/03/10 10:02:34 drochner Exp $
--- makefile.shared.orig 2007-05-12 14:46:25.000000000 +0000
+++ makefile.shared
@@ -9,7 +9,7 @@
VERSION=0:117
# Compiler and Linker Names
-CC=libtool --mode=compile --tag=CC gcc
+#CC=libtool --mode=compile --tag=CC gcc
# ranlib tools
ifndef RANLIB
@@ -75,13 +75,13 @@ ifndef DESTDIR
DESTDIR=
endif
ifndef LIBPATH
- LIBPATH=/usr/lib
+ LIBPATH=${PREFIX}/lib
endif
ifndef INCPATH
- INCPATH=/usr/include
+ INCPATH=${PREFIX}/include
endif
ifndef DATAPATH
- DATAPATH=/usr/share/doc/libtomcrypt/pdf
+ DATAPATH=${PREFIX}/share/doc/libtomcrypt/
endif
#Who do we install as?
@@ -230,33 +230,38 @@ TIMINGS=demos/timing.o
default:library
#ciphers come in two flavours... enc+dec and enc
-src/ciphers/aes/aes_enc.o: src/ciphers/aes/aes.c src/ciphers/aes/aes_tab.c
- $(CC) $(CFLAGS) -DENCRYPT_ONLY -c src/ciphers/aes/aes.c -o src/ciphers/aes/aes_enc.o
+src/ciphers/aes/aes_enc.lo: src/ciphers/aes/aes.c src/ciphers/aes/aes_tab.c
+ ${LIBTOOL} --mode=compile $(CC) $(CFLAGS) -DENCRYPT_ONLY -c src/ciphers/aes/aes.c -o src/ciphers/aes/aes_enc.lo
#These are the rules to make certain object files.
-src/ciphers/aes/aes.o: src/ciphers/aes/aes.c src/ciphers/aes/aes_tab.c
-src/ciphers/twofish/twofish.o: src/ciphers/twofish/twofish.c src/ciphers/twofish/twofish_tab.c
-src/hashes/whirl/whirl.o: src/hashes/whirl/whirl.c src/hashes/whirl/whirltab.c
-src/hashes/sha2/sha512.o: src/hashes/sha2/sha512.c src/hashes/sha2/sha384.c
-src/hashes/sha2/sha256.o: src/hashes/sha2/sha256.c src/hashes/sha2/sha224.c
+src/ciphers/aes/aes.lo: src/ciphers/aes/aes.c src/ciphers/aes/aes_tab.c
+src/ciphers/twofish/twofish.lo: src/ciphers/twofish/twofish.c src/ciphers/twofish/twofish_tab.c
+src/hashes/whirl/whirl.lo: src/hashes/whirl/whirl.c src/hashes/whirl/whirltab.c
+src/hashes/sha2/sha512.lo: src/hashes/sha2/sha512.c src/hashes/sha2/sha384.c
+src/hashes/sha2/sha256.lo: src/hashes/sha2/sha256.c src/hashes/sha2/sha224.c
#This rule makes the libtomcrypt library.
library: $(LIBNAME)
+.SUFFIXES: .lo
+.c.lo:
+ ${LIBTOOL} --mode=compile ${CC} -c ${CFLAGS} $< -o $@
+
testprof/$(LIBTEST):
cd testprof ; CFLAGS="$(CFLAGS)" GROUP=$(GROUP) USER=$(USER) VERSION=$(VERSION) LIBPATH=$(LIBPATH) LIBTEST=$(LIBTEST) LIBTEST_S=$(LIBTEST_S) make -f makefile.shared
objs: $(OBJECTS)
-$(LIBNAME): $(OBJECTS) testprof/$(LIBTEST)
- libtool --silent --mode=link gcc $(CFLAGS) `find . -type f | grep "[.]lo" | grep "src/" | xargs` $(EXTRALIBS) -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION)
+$(LIBNAME): $(OBJECTS:.o=.lo) testprof/$(LIBTEST)
+ libtool --silent --mode=link ${CC} $(CFLAGS) `find . -type f | grep "[.]lo" | grep "src/" | xargs` $(EXTRALIBS) -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION)
install: $(LIBNAME)
- install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)
+ ${BSD_INSTALL_LIB_DIR} $(DESTDIR)$(LIBPATH)
cd testprof ; CFLAGS="$(CFLAGS)" GROUP=$(GROUP) USER=$(USER) VERSION=$(VERSION) LIBPATH=$(LIBPATH) LIBTEST=$(LIBTEST) LIBTEST_S=$(LIBTEST_S) DESTDIR=$(DESTDIR) make -f makefile.shared install
libtool --silent --mode=install install -c libtomcrypt.la $(DESTDIR)$(LIBPATH)/libtomcrypt.la
- install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH)
- install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH)
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(INCPATH)
+ ${BSD_INSTALL_DATA} $(HEADERS) $(DESTDIR)$(INCPATH)
+ ${BSD_INSTALL_DATA} doc/crypt.pdf $(DESTDIR)$(DATAPATH)
#This rule makes the hash program included with libtomcrypt
hashsum: library
+25
View File
@@ -0,0 +1,25 @@
$NetBSD: patch-ac,v 1.1 2011/03/10 10:02:34 drochner Exp $
--- testprof/makefile.shared.orig 2007-05-12 14:46:25.000000000 +0000
+++ testprof/makefile.shared
@@ -1,4 +1,4 @@
-CC=libtool --mode=compile gcc
+#CC=libtool --mode=compile gcc
CFLAGS += -I../src/headers -I./ -Wall -W
@@ -17,8 +17,12 @@ endif
default: $(LIBTEST)
-$(LIBTEST): $(OBJECTS)
- libtool --silent --mode=link gcc $(CFLAGS) `find . -type f | grep "[.]lo" | xargs` -o $@ -rpath $(LIBPATH) -version-info $(VERSION)
+.SUFFIXES: .lo
+.c.lo:
+ ${LIBTOOL} --mode=compile ${CC} -c ${CFLAGS} $< -o $@
+
+$(LIBTEST): $(OBJECTS:.o=.lo)
+ libtool --silent --mode=link ${CC} $(CFLAGS) `find . -type f | grep "[.]lo" | xargs` -o $@ -rpath $(LIBPATH) -version-info $(VERSION)
install: $(LIBTEST)
libtool --silent --mode=install install -c $(LIBTEST) $(DESTDIR)$(LIBPATH)/$(LIBTEST)