/[smeserver]/rpms/perl-Crypt-Cracklib/sme8/Crypt-Cracklib-0.01-makefile.patch
ViewVC logotype

Contents of /rpms/perl-Crypt-Cracklib/sme8/Crypt-Cracklib-0.01-makefile.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Sun Mar 30 20:55:54 2008 UTC (16 years, 1 month ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Packages maintained upstream

1 diff -ruN Crypt-Cracklib-0.01.old/Makefile.PL Crypt-Cracklib-0.01/Makefile.PL
2 --- Crypt-Cracklib-0.01.old/Makefile.PL 1998-11-27 17:50:29.000000000 -0700
3 +++ Crypt-Cracklib-0.01/Makefile.PL 2004-08-10 16:10:49.246624310 -0600
4 @@ -15,41 +15,9 @@
5 return $path;
6 }
7
8 -print "\nEnter the directory where crack.h/packer.h is located\n";
9 -my $include = '/usr/local/include';
10 -my $incfile = '-Dpacker=1';
11 +my $include = '/usr/include';
12 +my $lib = '/usr/lib';
13 +my $incfile = '-Dcrack=1';
14 -print "[$include] ";
15 -
16 -while(<>) {
17 - $_ = '/usr/local/include' if /^\n$/;
18 - chomp;
19 -
20 - if (/^\S*$/) {
21 - $include = $_;
22 - if (-f "$include/packer.h") {
23 - last;
24 - } elsif (-f "$include/crack.h") {
25 - $incfile = '-Dcrack=1';
26 - last;
27 - } else {
28 - die "Can't find Cracklib header file!\n";
29 - }
30 - }
31 -}
32 -
33 -print "\nEnter the directory where libcrack.(so|a) is located\n";
34 -my $lib = '/usr/local/lib';
35 -print "[$lib] ";
36 -
37 -while(<>) {
38 - $_ = '/usr/local/lib' if /^\n$/;
39 - chomp;
40 -
41 - if (/^\S*$/) {
42 - $lib = $_;
43 - last if -f "$lib/libcrack.so" or -f "$lib/libcrack.a";
44 - }
45 -}
46
47 WriteMakefile(
48 'NAME' => 'Crypt::Cracklib',

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed