summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrevor Johnson <trevor@FreeBSD.org>2001-03-23 05:16:45 +0000
committerTrevor Johnson <trevor@FreeBSD.org>2001-03-23 05:16:45 +0000
commit201fdac8c92582e1a225370a002827da3cae3aea (patch)
tree04ee4d61c1be434a139e1396e9e816ad8eef1a26
parento New port of rp-pppoe: The popular Roaring Penguin's PPPoE software (diff)
new port of mcrypt 2.5.5, a replacement for crypt(1)
Obtained from: OpenBSD
-rw-r--r--security/Makefile1
-rw-r--r--security/mcrypt/Makefile54
-rw-r--r--security/mcrypt/distinfo1
-rw-r--r--security/mcrypt/files/patch-src_extra.c11
-rw-r--r--security/mcrypt/pkg-comment1
-rw-r--r--security/mcrypt/pkg-descr5
6 files changed, 73 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile
index 283d5791b4b5..731468f69daa 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -62,6 +62,7 @@
SUBDIR += logcheck
SUBDIR += lsh
SUBDIR += lxnb
+ SUBDIR += mcrypt
SUBDIR += mhash
SUBDIR += mindterm-binary
SUBDIR += nbaudit
diff --git a/security/mcrypt/Makefile b/security/mcrypt/Makefile
new file mode 100644
index 000000000000..3e86c27d000f
--- /dev/null
+++ b/security/mcrypt/Makefile
@@ -0,0 +1,54 @@
+# New ports collection makefile for: mcrypt
+# Date created: 2000-12-31
+# Whom: trevor
+# based on the OpenBSD port
+#
+# $OpenBSD: Makefile,v 1.1.1.1 2000/11/27 15:56:03 avsm Exp $
+# $FreeBSD$
+#
+
+PORTNAME= mcrypt
+PORTVERSION= 2.5.5
+CATEGORIES= security
+MASTER_SITES= ftp://argeas.cs-net.gr/pub/unix/mcrypt/ \
+ ftp://ftp.ntua.gr/pub/security/mcrypt/
+# http://mcrypt.hellug.gr/mcrypt/
+
+MAINTAINER= Trevor Johnson <trevor@FreeBSD.org>
+
+LIB_DEPENDS= mcrypt.4:${PORTSDIR}/security/libmcrypt/ \
+ mhash.2:${PORTSDIR}/security/mhash/ \
+ intl.1:${PORTSDIR}/devel/gettext/
+
+post-patch:
+ ${RM} -f ${WRKSRC}/configure
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
+CONFIGURE_ARGS+= --enable-static --with-catgets
+CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib -lintl -lltdl"
+MAN1= mcrypt.1
+PLIST= ${WRKDIR}/pkg-plist
+USE_AUTOCONF= yes
+USE_LIBTOOL= yes
+
+pre-install:
+ ${ECHO} bin/${PORTNAME} > ${PLIST}
+ ${ECHO} bin/mdecrypt >> ${PLIST}
+.for i in cz el pl
+ ${ECHO} share/locale/${i}/LC_MESSAGES/mcrypt.mo >> ${PLIST}
+.endfor
+.if !defined(NOPORTDOCS)
+ ${ECHO} share/examples/${PORTNAME}/sample.mcryptrc >> ${PLIST}
+ ${ECHO} @dirrm share/examples/${PORTNAME} >> ${PLIST}
+.endif
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/examples/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/doc/sample.mcryptrc \
+ ${PREFIX}/share/examples/${PORTNAME}/
+.endif
+
+.include <bsd.port.mk>
diff --git a/security/mcrypt/distinfo b/security/mcrypt/distinfo
new file mode 100644
index 000000000000..b6493d3dddb9
--- /dev/null
+++ b/security/mcrypt/distinfo
@@ -0,0 +1 @@
+MD5 (mcrypt-2.5.5.tar.gz) = 2c7ce0050d897c09ec1f650671b66a3f
diff --git a/security/mcrypt/files/patch-src_extra.c b/security/mcrypt/files/patch-src_extra.c
new file mode 100644
index 000000000000..1d3f5f91de2f
--- /dev/null
+++ b/security/mcrypt/files/patch-src_extra.c
@@ -0,0 +1,11 @@
+--- src/extra.c.orig Mon Oct 2 09:38:07 2000
++++ src/extra.c Thu Mar 22 20:14:15 2001
+@@ -289,7 +289,7 @@
+ int i;
+
+ for (i = 0; i < size; i++) {
+- str[i] = _tolower(str[i]);
++ str[i] = tolower(str[i]);
+ }
+ }
+
diff --git a/security/mcrypt/pkg-comment b/security/mcrypt/pkg-comment
new file mode 100644
index 000000000000..4dd175a169d1
--- /dev/null
+++ b/security/mcrypt/pkg-comment
@@ -0,0 +1 @@
+Replacement for crypt(1)
diff --git a/security/mcrypt/pkg-descr b/security/mcrypt/pkg-descr
new file mode 100644
index 000000000000..4644d7d2d5e1
--- /dev/null
+++ b/security/mcrypt/pkg-descr
@@ -0,0 +1,5 @@
+This program is intended to replace crypt(1), It supports all the
+algorithms and modes in libmcrypt (BLOWFISH, TWOFISH, DES, TripleDES,
+3-WAY, SAFER, LOKI97, GOST, RC2, RC6, MARS, IDEA, RIJNDAEL, SERPENT,
+CAST, ARCFOUR and WAKE), and is compatibile with UNIX crypt(1) and
+with des(1) from Solaris.