summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2001-01-27 03:07:40 +0000
committerWill Andrews <will@FreeBSD.org>2001-01-27 03:07:40 +0000
commit672b8c0ca04104dadbb917794786fcec0db9708f (patch)
tree90dd3156360994d62febb2ef57c39a0ba0d15bf1
parentUpdate to latest IPv6 patch and bump PORTREVISION (diff)
Add p5-Crypt-Cracklib 0.01, a perl interface to Alec Muffet's cracklib
library. Requested by: Andrew J. Korty <ajk@iu.edu>
Notes
Notes: svn path=/head/; revision=37615
-rw-r--r--security/Makefile1
-rw-r--r--security/p5-Crypt-Cracklib/Makefile32
-rw-r--r--security/p5-Crypt-Cracklib/distinfo1
-rw-r--r--security/p5-Crypt-Cracklib/files/patch-Makefile.PL48
-rw-r--r--security/p5-Crypt-Cracklib/pkg-comment1
-rw-r--r--security/p5-Crypt-Cracklib/pkg-descr3
-rw-r--r--security/p5-Crypt-Cracklib/pkg-plist5
7 files changed, 91 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile
index 1f3e680e8dc1..5ca57ea234db 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -78,6 +78,7 @@
SUBDIR += p5-Crypt-Blowfish
SUBDIR += p5-Crypt-CBC
SUBDIR += p5-Crypt-CipherSaber
+ SUBDIR += p5-Crypt-Cracklib
SUBDIR += p5-Crypt-DES
SUBDIR += p5-Crypt-ECB
SUBDIR += p5-Crypt-IDEA
diff --git a/security/p5-Crypt-Cracklib/Makefile b/security/p5-Crypt-Cracklib/Makefile
new file mode 100644
index 000000000000..cce391aefc44
--- /dev/null
+++ b/security/p5-Crypt-Cracklib/Makefile
@@ -0,0 +1,32 @@
+# New ports collection makefile for: Crypt-Cracklib
+# Date created: Fri Jan 26 20:26:11 2001
+# Whom: will
+#
+# $FreeBSD$
+#
+
+PORTNAME= Crypt-Cracklib
+PORTVERSION= 0.01
+CATEGORIES= security perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= Crypt
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= ports@FreeBSD.org
+
+BUILD_DEPENDS= ${LOCALBASE}/lib/libcrack.a:${PORTSDIR}/security/cracklib
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+SITE_PERL= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
+USE_PERL5= yes
+PERL_CONFIGURE= yes
+CONFIGURE_ARGS+=INC="-I${LOCALBASE}/include"
+
+MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
+MAN3= Crypt::Cracklib.3
+
+post-patch:
+ ${PERL} -pi -e "s@INCLUDE@${LOCALBASE}/include@g;\
+ s@FBSDLIB@${LOCALBASE}/lib@g" ${WRKSRC}/Makefile.PL
+
+.include <bsd.port.mk>
diff --git a/security/p5-Crypt-Cracklib/distinfo b/security/p5-Crypt-Cracklib/distinfo
new file mode 100644
index 000000000000..008f5aeaaa7d
--- /dev/null
+++ b/security/p5-Crypt-Cracklib/distinfo
@@ -0,0 +1 @@
+MD5 (Crypt-Cracklib-0.01.tar.gz) = a24234aeb3eb9eac71c344f9ca736b7b
diff --git a/security/p5-Crypt-Cracklib/files/patch-Makefile.PL b/security/p5-Crypt-Cracklib/files/patch-Makefile.PL
new file mode 100644
index 000000000000..3deaac54ab62
--- /dev/null
+++ b/security/p5-Crypt-Cracklib/files/patch-Makefile.PL
@@ -0,0 +1,48 @@
+--- Makefile.PL Fri Nov 27 19:50:29 1998
++++ Makefile.PL.new Fri Jan 26 21:36:22 2001
+@@ -4,6 +4,7 @@
+ use ExtUtils::MakeMaker;
+ use Config qw(%Config);
+
++if (0 ne 0) {
+ sub MY::libscan {
+ my ($self,$path) = @_;
+
+@@ -16,8 +17,10 @@
+ }
+
+ print "\nEnter the directory where crack.h/packer.h is located\n";
++}
+ my $include = '/usr/local/include';
+ my $incfile = '-Dpacker=1';
++if (0 ne 0) {
+ print "[$include] ";
+
+ while(<>) {
+@@ -38,7 +41,9 @@
+ }
+
+ print "\nEnter the directory where libcrack.(so|a) is located\n";
++}
+ my $lib = '/usr/local/lib';
++if (0 ne 0) {
+ print "[$lib] ";
+
+ while(<>) {
+@@ -50,13 +55,14 @@
+ last if -f "$lib/libcrack.so" or -f "$lib/libcrack.a";
+ }
+ }
++}
+
+ WriteMakefile(
+ 'NAME' => 'Crypt::Cracklib',
+ 'VERSION_FROM' => 'Cracklib.pm',
+- 'LIBS' => ["-L$lib -lcrack"],
++ 'LIBS' => ["-LFBSDLIB -lcrack"],
+ 'DEFINE' => $incfile,
+- 'INC' => "-I$include",
++ 'INC' => "-IINCLUDE",
+ 'dist' => { COMPRESS => 'gzip -9f',
+ SUFFIX => 'gz',
+ DIST_DEFAULT => 'tardist',
diff --git a/security/p5-Crypt-Cracklib/pkg-comment b/security/p5-Crypt-Cracklib/pkg-comment
new file mode 100644
index 000000000000..1b8b5ed20582
--- /dev/null
+++ b/security/p5-Crypt-Cracklib/pkg-comment
@@ -0,0 +1 @@
+Perl interface to Alec Muffet's cracklib library
diff --git a/security/p5-Crypt-Cracklib/pkg-descr b/security/p5-Crypt-Cracklib/pkg-descr
new file mode 100644
index 000000000000..b8a6d43e42f4
--- /dev/null
+++ b/security/p5-Crypt-Cracklib/pkg-descr
@@ -0,0 +1,3 @@
+Crypt::Cracklib is a perl interface to Alec Muffet's cracklib library.
+
+--will
diff --git a/security/p5-Crypt-Cracklib/pkg-plist b/security/p5-Crypt-Cracklib/pkg-plist
new file mode 100644
index 000000000000..f7e91b2c54ba
--- /dev/null
+++ b/security/p5-Crypt-Cracklib/pkg-plist
@@ -0,0 +1,5 @@
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Crypt/Cracklib.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Crypt/Cracklib/.packlist
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Crypt/Cracklib/Cracklib.bs
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Crypt/Cracklib/Cracklib.so
+@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Crypt/Cracklib