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

9
security/libdes/DESCR Normal file
View File

@@ -0,0 +1,9 @@
Small DES (Data Encryption Standard) standalone program.
If you have openssl installed, you probably don't need this.
However, for reverse compatibility with your previously
encrypted data or with the SunOS des, you might want to keep
this one around. Plus, it compiles easily on PCs with djgpp.
I've renamed all the installed files to be libdes, libdes.h,
etc., to avoid conflicts with other packages.
NetBSD package by: John Refling <refling@comet.lbl.gov>

15
security/libdes/Makefile Normal file
View File

@@ -0,0 +1,15 @@
# $NetBSD: Makefile,v 1.13 2012/10/23 18:16:32 asau Exp $
DISTNAME= libdes-4.04b
CATEGORIES= security
MASTER_SITES= ftp://ftp.psy.uq.oz.au/pub/Crypto/DES/
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Small DES (Data Encryption Standard) lib & standalone program
WRKSRC= ${WRKDIR}/des
CRYPTO= YES
INSTALLATION_DIRS= bin include lib ${PKGMANDIR}/man1 ${PKGMANDIR}/man3
.include "../../mk/bsd.pkg.mk"

6
security/libdes/PLIST Normal file
View File

@@ -0,0 +1,6 @@
@comment $NetBSD: PLIST,v 1.2 2007/03/24 19:21:31 joerg Exp $
bin/libdes
include/libdes.h
lib/libdes.a
man/man1/libdes.1
man/man3/libdes_crypt.3

View File

@@ -0,0 +1,13 @@
# $NetBSD: buildlink3.mk,v 1.6 2009/03/20 19:25:18 joerg Exp $
BUILDLINK_TREE+= libdes
.if !defined(LIBDES_BUILDLINK3_MK)
LIBDES_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.libdes+= libdes>=4.04b
BUILDLINK_PKGSRCDIR.libdes?= ../../security/libdes
BUILDLINK_DEPMETHOD.libdes?= build
.endif # LIBDES_BUILDLINK3_MK
BUILDLINK_TREE+= -libdes

View File

@@ -0,0 +1,72 @@
# $NetBSD: builtin.mk,v 1.6 2006/04/06 06:22:42 reed Exp $
BUILTIN_PKG:= libdes
BUILTIN_FIND_FILES_VAR:= H_LIBDES
BUILTIN_FIND_FILES.H_LIBDES= /usr/include/libdes.h /usr/include/des.h
.include "../../mk/buildlink3/bsd.builtin.mk"
###
### Determine if there is a built-in implementation of the package and
### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
###
.if !defined(IS_BUILTIN.libdes)
IS_BUILTIN.libdes= no
. if empty(H_LIBDES:M__nonexistent__) && empty(H_LIBDES:M${LOCALBASE}/*)
IS_BUILTIN.libdes= yes
. endif
.endif
MAKEVARS+= IS_BUILTIN.libdes
###
### Determine whether we should use the built-in implementation if it
### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
###
.if !defined(USE_BUILTIN.libdes)
. if ${PREFER.libdes} == "pkgsrc"
USE_BUILTIN.libdes= no
. else
USE_BUILTIN.libdes= ${IS_BUILTIN.libdes}
. if defined(BUILTIN_PKG.libdes) && \
!empty(IS_BUILTIN.libdes:M[yY][eE][sS])
USE_BUILTIN.libdes= yes
. for _dep_ in ${BUILDLINK_API_DEPENDS.libdes}
. if !empty(USE_BUILTIN.libdes:M[yY][eE][sS])
USE_BUILTIN.libdes!= \
if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.libdes:Q}; then \
${ECHO} yes; \
else \
${ECHO} no; \
fi
. endif
. endfor
. endif
. endif # PREFER.libdes
.endif
MAKEVARS+= USE_BUILTIN.libdes
###
### The section below only applies if we are not including this file
### solely to determine whether a built-in implementation exists.
###
CHECK_BUILTIN.libdes?= no
.if !empty(CHECK_BUILTIN.libdes:M[nN][oO])
. if !empty(USE_BUILTIN.libdes:M[yY][eE][sS])
BUILDLINK_TARGETS+= buildlink-libdes-libdes-h
. endif
. if !target(buildlink-libdes-libdes-h)
.PHONY: buildlink-libdes-libdes-h
buildlink-libdes-libdes-h:
${_PKG_SILENT}${_PKG_DEBUG} \
src="/usr/include/des.h"; \
dest=${BUILDLINK_DIR:Q}"/include/libdes.h"; \
if ${TEST} ! -f "$$dest" -a -f "$$src"; then \
${MKDIR} -p `${DIRNAME} "$$dest"`; \
${LN} -fs "$$src" "$$dest"; \
fi
. endif
.endif # CHECK_BUILTIN.libdes

12
security/libdes/distinfo Normal file
View File

@@ -0,0 +1,12 @@
$NetBSD: distinfo,v 1.5 2010/01/27 21:54:17 joerg Exp $
SHA1 (libdes-4.04b.tar.gz) = ef16e13fd3399be145ce391325c11292babc7cf1
RMD160 (libdes-4.04b.tar.gz) = 2e9a7f35b3710cc1c549ad1e6f4296467ee51a45
Size (libdes-4.04b.tar.gz) = 142195 bytes
SHA1 (patch-aa) = 5ed4f1976bf958b44d166def1596a4656ed4e20a
SHA1 (patch-ab) = e5ec4626277b60f103594261f91d7dab2c9938ff
SHA1 (patch-ac) = a1dc2b3b3726494b1b9f7c210322d2e60dccd621
SHA1 (patch-ad) = a7f7527afc374489f2449ed6742c974c47bb22b4
SHA1 (patch-ae) = aad951f81125eba388a7c45e79e46531f1a5c650
SHA1 (patch-af) = b900ed25fa5d396a500998e803d3eadaa02e3fcb
SHA1 (patch-ag) = 01e994b91989ba1f5a7cc7327c1edeee932031f2

View File

@@ -0,0 +1,76 @@
$NetBSD: patch-aa,v 1.3 2010/01/27 21:54:17 joerg Exp $
--- ./Makefile.orig Wed Jan 7 18:20:36 1998
+++ ./Makefile Fri Mar 31 04:21:15 2000
@@ -19,7 +19,9 @@
# If you are on a DEC Alpha, edit des.h and change the DES_LONG
# define to 'unsigned int'. I have seen this give a %20 speedup.
-OPTS0= -DRAND -DTERMIO #-DNOCONST
+# was this - refling
+#OPTS0= -DRAND -DTERMIO #-DNOCONST
+OPTS0= -DRAND -DTERMIOS
# Version 1.94 has changed the strings_to_key function so that it is
# now compatible with MITs when the string is longer than 8 characters.
@@ -59,10 +61,10 @@
#DES_ENC=asm/dx86-sol.o asm/yx86-sol.o # solaris format x86
#DES_ENC=asm/dx86bsdi.o asm/yx86basi.o # bsdi format x86
-LIBDIR=/usr/local/lib
-BINDIR=/usr/local/bin
-INCDIR=/usr/local/include
-MANDIR=/usr/local/man
+LIBDIR=$(PREFIX)/lib
+BINDIR=$(PREFIX)/bin
+INCDIR=$(PREFIX)/include
+MANDIR=$(PREFIX)/man
MAN1=1
MAN3=3
SHELL=/bin/sh
@@ -226,38 +228,12 @@
sed -e '/^# DO NOT DELETE THIS LINE/ q' Makefile >Makefile.new
mv -f Makefile.new Makefile
-# Eric is probably going to choke when he next looks at this --tjh
+# refling ---
install: des
- if test $(INSTALLTOP); then \
- echo SSL style install; \
- cp $(DLIB) $(INSTALLTOP)/lib; \
- if test -s /bin/ranlib; then \
- /bin/ranlib $(INSTALLTOP)/lib/$(DLIB); \
- else \
- if test -s /usr/bin/ranlib; then \
- /usr/bin/ranlib $(INSTALLTOP)/lib/$(DLIB); \
- fi; fi; \
- chmod 644 $(INSTALLTOP)/lib/$(DLIB); \
- cp des.h $(INSTALLTOP)/include; \
- chmod 644 $(INSTALLTOP)/include/des.h; \
- else \
- echo Standalone install; \
- cp $(DLIB) $(LIBDIR)/$(DLIB); \
- if test -s /bin/ranlib; then \
- /bin/ranlib $(LIBDIR)/$(DLIB); \
- else \
- if test -s /usr/bin/ranlib; then \
- /usr/bin/ranlib $(LIBDIR)/$(DLIB); \
- fi; \
- fi; \
- chmod 644 $(LIBDIR)/$(DLIB); \
- cp des $(BINDIR)/des; \
- chmod 711 $(BINDIR)/des; \
- cp des_crypt.man $(MANDIR)/man$(MAN3)/des_crypt.$(MAN3); \
- chmod 644 $(MANDIR)/man$(MAN3)/des_crypt.$(MAN3); \
- cp des.man $(MANDIR)/man$(MAN1)/des.$(MAN1); \
- chmod 644 $(MANDIR)/man$(MAN1)/des.$(MAN1); \
- cp des.h $(INCDIR)/des.h; \
- chmod 644 $(INCDIR)/des.h; \
- fi
+ $(BSD_INSTALL_PROGRAM) des ${DESTDIR}$(PREFIX)/bin/libdes
+ $(BSD_INSTALL_DATA) libdes.a ${DESTDIR}$(PREFIX)/lib/libdes.a
+ $(BSD_INSTALL_DATA) des_crypt.man ${DESTDIR}$(PREFIX)/man/man3/libdes_crypt.3
+ $(BSD_INSTALL_DATA) des.man ${DESTDIR}$(PREFIX)/man/man1/libdes.1
+ $(BSD_INSTALL_DATA) des.h ${DESTDIR}$(PREFIX)/include/libdes.h
+
# DO NOT DELETE THIS LINE -- make depend depends on it.

View File

@@ -0,0 +1,19 @@
$NetBSD: patch-ab,v 1.1.1.1 2000/11/23 13:16:10 rh Exp $
--- ./Makefile.lit.orig Thu Dec 4 05:35:37 1997
+++ ./Makefile.lit Fri Mar 31 04:21:15 2000
@@ -59,10 +59,10 @@
#DES_ENC=asm/dx86-sol.o asm/yx86-sol.o # solaris format x86
#DES_ENC=asm/dx86bsdi.o asm/yx86basi.o # bsdi format x86
-LIBDIR=/usr/local/lib
-BINDIR=/usr/local/bin
-INCDIR=/usr/local/include
-MANDIR=/usr/local/man
+LIBDIR=$(PREFIX)/lib
+BINDIR=$(PREFIX)/bin
+INCDIR=$(PREFIX)/include
+MANDIR=$(PREFIX)/man
MAN1=1
MAN3=3
SHELL=/bin/sh

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ac,v 1.1.1.1 2000/11/23 13:16:10 rh Exp $
--- ./Makefile.ssl.orig Tue Jan 6 18:49:40 1998
+++ ./Makefile.ssl Fri Mar 31 04:21:15 2000
@@ -8,7 +8,7 @@
CPP= $(CC) -E
INCLUDES=
CFLAG=-g
-INSTALLTOP=/usr/local/ssl
+INSTALLTOP=$(PREFIX)/ssl
MAKE= make -f Makefile.ssl
MAKEDEPEND= makedepend -f Makefile.ssl
MAKEFILE= Makefile.ssl

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-ad,v 1.1.1.1 2000/11/23 13:16:10 rh Exp $
--- ./des.c.orig Thu Dec 4 05:35:37 1997
+++ ./des.c Fri Mar 31 04:21:16 2000
@@ -354,10 +354,10 @@
"-u[uuname] : input file is uudecoded if -[dD] or output uuencoded data if -[eE]",
" (uuname is the filename to put in the uuencode header).",
"-b : encrypt using DES in ecb encryption mode, the defaut is cbc mode.",
-"-3 : encrypt using tripple DES encryption. This uses 2 keys",
+"-3 : encrypt using triple DES encryption. This uses 2 keys",
" generated from the input key. If the input key is less",
" than 8 characters long, this is equivelent to normal",
-" encryption. Default is tripple cbc, -b makes it tripple ecb.",
+" encryption. Default is triple cbc, -b makes it triple ecb.",
NULL
};
for (u=(char **)Usage; *u; u++)

View File

@@ -0,0 +1,19 @@
$NetBSD: patch-ae,v 1.1.1.1 2000/11/23 13:16:10 rh Exp $
--- ./Makefile.uni.orig Thu Dec 4 05:35:37 1997
+++ ./Makefile.uni Fri Mar 31 04:21:16 2000
@@ -59,10 +59,10 @@
#DES_ENC=asm/dx86-sol.o asm/yx86-sol.o # solaris format x86
#DES_ENC=asm/dx86bsdi.o asm/yx86basi.o # bsdi format x86
-LIBDIR=/usr/local/lib
-BINDIR=/usr/local/bin
-INCDIR=/usr/local/include
-MANDIR=/usr/local/man
+LIBDIR=$(PREFIX)/lib
+BINDIR=$(PREFIX)/bin
+INCDIR=$(PREFIX)/include
+MANDIR=$(PREFIX)/man
MAN1=1
MAN3=3
SHELL=/bin/sh

View File

@@ -0,0 +1,75 @@
$NetBSD: patch-af,v 1.1.1.1 2000/11/23 13:16:10 rh Exp $
--- ./des.man.orig Thu Dec 4 05:35:37 1997
+++ ./des.man Fri Mar 31 04:21:16 2000
@@ -1,8 +1,8 @@
-.TH DES 1
+.TH LIBDES 1
.SH NAME
-des - encrypt or decrypt data using Data Encryption Standard
+libdes - encrypt or decrypt data using Data Encryption Standard
.SH SYNOPSIS
-.B des
+.B libdes
(
.B \-e
|
@@ -28,7 +28,7 @@
.I output-file
] ]
.SH DESCRIPTION
-.B des
+.B libdes
encrypts and decrypts data using the
Data Encryption Standard algorithm.
One of
@@ -45,7 +45,7 @@
.I des_cbc_cksum.
.LP
Two standard encryption modes are supported by the
-.B des
+.B libdes
program, Cipher Block Chaining (the default) and Electronic Code Book
(specified with
.B \-b
@@ -57,11 +57,11 @@
.I key'
option is given.
If the key is an argument to the
-.B des
+.B libdes
command, it is potentially visible to users executing
.BR ps (1)
or a derivative. To minimise this possibility,
-.B des
+.B libdes
takes care to destroy the key argument immediately upon entry.
If your shell keeps a history file be careful to make sure it is not
world readable.
@@ -76,7 +76,7 @@
options are used, the key conversion procedure will not be compatible
with the sunOS des(1) version but will use all the user supplied
character to generate the des key.
-.B des
+.B libdes
command reads from standard input unless
.I input-file
is specified and writes to standard output unless
@@ -156,7 +156,7 @@
will be embedded in the header.
.SH SEE ALSO
.B ps (1)
-.B des_crypt(3)
+.B libdes_crypt(3)
.SH BUGS
.LP
The problem with using the
@@ -173,7 +173,7 @@
)
uses DES to help generate the key.
.LP
-Be carefully when using the -u option. Doing des -ud <filename> will
+Be carefully when using the -u option. Doing libdes -ud <filename> will
not decrypt filename (the -u option will gobble the d option).
.LP
The VMS operating system operates in a world where files are always a

View File

@@ -0,0 +1,28 @@
$NetBSD: patch-ag,v 1.1.1.1 2000/11/23 13:16:10 rh Exp $
--- ./des_crypt.man.orig Thu Dec 4 05:35:37 1997
+++ ./des_crypt.man Fri Mar 31 04:22:05 2000
@@ -1,4 +1,4 @@
-.TH DES_CRYPT 3
+.TH LIBDES_CRYPT 3
.SH NAME
des_read_password, des_read_2password,
des_string_to_key, des_string_to_2key, des_read_pw_string,
@@ -13,7 +13,7 @@
.nf
.nj
.ft B
-#include <des.h>
+#include <libdes.h>
.PP
.B int des_read_password(key,prompt,verify)
des_cblock *key;
@@ -461,7 +461,7 @@
It is much faster than the system crypt.
.PP
.SH FILES
-/usr/include/des.h
+/usr/include/libdes.h
.br
/usr/lib/libdes.a
.PP