Older 2.2.x release of libmcrypt provided for those apps for which the

newer libmcrypt (>=2.4.x) seem to cause core dumps.

Import approved by Alistair <agc@netbsd.org>.
This commit is contained in:
jlam 2002-04-12 18:59:36 +00:00
parent d9dcf3ad2d
commit a68e218eca
6 changed files with 97 additions and 0 deletions

View file

@ -0,0 +1,4 @@
libmcrypt is a library which implements block and stream encryption
algorithms and modes.
This packages contains the older 2.2.x release of libmcrypt.

View file

@ -0,0 +1,29 @@
# $NetBSD: Makefile,v 1.1.1.1 2002/04/12 18:59:36 jlam Exp $
DISTNAME= libmcrypt-2.2.7
PKGNAME= libmcrypt22-2.2.7
CATEGORIES= security devel
MASTER_SITES= ftp://mcrypt.hellug.gr/pub/mcrypt/libmcrypt/old/ \
http://mcrypt.hellug.gr/lib/
MAINTAINER= jlam@netbsd.org
HOMEPAGE= http://mcrypt.hellug.gr/
COMMENT= crypto algorithms library (version 2.2.x)
USE_BUILDLINK_ONLY= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --includedir=${PREFIX}/include/libmcrypt22
USE_LIBTOOL= yes
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
pre-configure:
cd ${WRKSRC}; \
for file in lib/Makefile.in src/Makefile.in; do \
${SED} -e "s|libmcrypt\.la|libmcrypt22.la|g" \
-e "s|libmcrypt_la|libmcrypt22_la|g" \
$${file} > $${file}.fixed; \
${MV} -f $${file}.fixed $${file}; \
done
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,8 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2002/04/12 18:59:36 jlam Exp $
include/libmcrypt22/mcrypt.h
lib/libmcrypt22.a
lib/libmcrypt22.la
lib/libmcrypt22.so
lib/libmcrypt22.so.2
lib/libmcrypt22.so.2.5
@dirrm include/libmcrypt22

View file

@ -0,0 +1,38 @@
# $NetBSD: buildlink.mk,v 1.1.1.1 2002/04/12 18:59:36 jlam Exp $
#
# This Makefile fragment is included by packages that use libmcrypt22.
#
# To use this Makefile fragment, simply:
#
# (1) Optionally define BUILDLINK_DEPENDS.libmcrypt22 to the dependency pattern
# for the version of GNU libmcrypt22 desired.
# (2) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header
# search path, and
# (3) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search
# path.
.if !defined(LIBMCRYPT22_BUILDLINK_MK)
LIBMCRYPT22_BUILDLINK_MK= # defined
.include "../../mk/bsd.buildlink.mk"
BUILDLINK_DEPENDS.libmcrypt22?= libmcrypt22>=2.2.7
DEPENDS+= ${BUILDLINK_DEPENDS.libmcrypt22}:../../security/libmcrypt22
EVAL_PREFIX+= BUILDLINK_PREFIX.libmcrypt22=libmcrypt22
BUILDLINK_PREFIX.libmcrypt22_DEFAULT= ${LOCALBASE}
BUILDLINK_FILES.libmcrypt22= include/libmcrypt22/mcrypt.h
BUILDLINK_FILES.libmcrypt22+= lib/libmcrypt22.*
BUILDLINK_TRANSFORM.libmcrypt22= -e "s|include/libmcrypt22/|include/|g"
BUILDLINK_TRANSFORM.libmcrypt22+= -e "s|libmcrypt22\.|libmcrypt.|g"
REPLACE_LIBNAMES_SED+= -e "s|-lmcrypt|-lmcrypt22|g"
BUILDLINK_TARGETS.libmcrypt22= # empty
BUILDLINK_TARGETS.libmcrypt22+= libmcrypt22-buildlink
BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.libmcrypt22}
pre-configure: ${BUILDLINK_TARGETS.libmcrypt22}
libmcrypt22-buildlink: _BUILDLINK_USE
.endif # LIBMCRYPT22_BUILDLINK_MK

View file

@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1.1.1 2002/04/12 18:59:36 jlam Exp $
SHA1 (libmcrypt-2.2.7.tar.gz) = 77b604bdacfd4ddbd2fe94d6c9b705f2d8f2b82b
Size (libmcrypt-2.2.7.tar.gz) = 210000 bytes
SHA1 (patch-aa) = 5905acf22a67ea9da591b364ddc1e96a3375f0ab

View file

@ -0,0 +1,13 @@
$NetBSD: patch-aa,v 1.1.1.1 2002/04/12 18:59:36 jlam Exp $
--- Makefile.in.orig Fri Apr 12 14:23:49 2002
+++ Makefile.in
@@ -80,7 +80,7 @@
RANLIB = @RANLIB@
VERSION = @VERSION@
-SUBDIRS = lib doc src
+SUBDIRS = lib src
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = config.h