Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 196 lines (150 sloc) 4.393 kb
90308d09 » gbarr
2004-07-01 Release 0.32
1 # -*- perl -*-
2
3 use inc::Module::Install;
4
5 name ('perl-ldap');
6 module_name ('Net::LDAP');
7 author ('Graham Barr <gbarr@cpan.org>');
8 version_from ('lib/Net/LDAP.pm');
9 license ('perl');
10 abstract ('LDAP client library');
11
12 check_nmake(); # check and download nmake.exe for Win32
13
d934d38a » gbarr
2004-07-14 Release 0.3201
14 requires(
15 perl => 5.004,
16 'Convert::ASN1' => 0.07,
17 );
18
19 include_deps ('Test::More');
c2efd84e » gbarr
2004-07-19 Release 0.3202
20 include ('ExtUtils::AutoInstall');
90308d09 » gbarr
2004-07-01 Release 0.32
21
22 features(
23 'SASL authentication' => [
24 -default => 0,
25 'Authen::SASL' => 2.00,
eeae2e81 » marschap
2005-10-03 update Makefile.PL to have correct dependencies for the features.
26 recommends('Digest::MD5'), # for DIGEST-MD5 SASL mech
27 recommends('Digest::HMAC_MD5'), # for CRAM-MD5 SASL mech
90308d09 » gbarr
2004-07-01 Release 0.32
28 ],
29 'LDAP URLs' => [
30 -default => 0,
31 'URI::ldap' => 1.10,
32 ],
33 'LDAPS' => [
34 -default => 0,
35 'IO::Socket::SSL' => 0.81,
36 ],
37 'Read/Write DSML files' => [
38 -default => 0,
eeae2e81 » marschap
2005-10-03 update Makefile.PL to have correct dependencies for the features.
39 'MIME::Base64' => 0,
40 'XML::SAX::Writer' => 0,
41 # dependencies of XML::SAX::Writer:
42 #'Text::Iconv' => 0,
43 #'XML::Filter::BufferText' => 0,
44 #'XML::SAX' => 0,
45 #'XML::NamespaceSupport' => 0,
46 #'File::Temp' => 0
90308d09 » gbarr
2004-07-01 Release 0.32
47 ],
48 'Read/Write LDIF files' => [
49 -default => 0,
50 'MIME::Base64' => 0,
51 ],
52 );
53
54 auto_install_now();
55
56 &Makefile->write;
57 &Meta->write;
58
59 ## - - - - - - - -
60
61 sub MY::postamble {
62 return <<'POSTAMBLE';
63
64 distdir : manifest run_cpansign
65
66 run_cpansign :
67 cpansign -s
68
69 POSTAMBLE
70
71 }
72
73
74 __END__
75
76
455ad0ff » gbarr
2000-05-03 Initial revision
77 # The -*- perl -*- script writes the Makefile for perl-ldap
78
79 use 5.004;
80 use ExtUtils::MakeMaker;
81 use Getopt::Std;
82 use Config;
83
84 #--- Configure ---
85
86 if (!getopts("hs") || $opt_h) {
87 die <<"EDQ";
88 Usage: perl $0 [-h] [-s] [ MAKEMAKER_ARGS ]
89 -h Display this message
90 -s Install scripts from bin directory
91 EDQ
92 }
93
94 #--- Distribution section ---
95
96 $DISTNAME = 'perl-ldap';
97 $VERSION_FROM = 'lib/Net/LDAP.pm';
98 $AUTHOR = 'Graham Barr <gbarr@pobox.com>';
99
100 ($ABSTRACT = <<"EDQ") =~ s/\n/\\n/g;
101 perl-ldap is a library of modules implementing an LDAP client. The aim
102 of the perl-ldap project is to implement a very portable LDAP client in
103 perl by relying on as little compiled code as possible.
104 EDQ
105
106 #--- Check for required modules ---
107
108 my $missing = 0;
109 $| = 1;
110
111 sub check_module {
112 my($module,$version) = @_;
113 print substr("$module ............................",0,30);
114 my $ok = eval {
115 my $file = $module;
116 $file =~ s#::#/#g;
117 require $file . ".pm";
118 $module->VERSION($version) if defined $version;
119 1;
120 };
121 $missing++ unless $ok;
bfdcd11b » gbarr
2001-04-10 Tweaks to dependcies of distdir
122 $@ =~ s/^(Can't locate \S* in \@INC).*/$1/s;
455ad0ff » gbarr
2000-05-03 Initial revision
123 print $ok ? "ok\n" : "** FAILED **\n$@\n";
124 $ok;
125 }
126
d35350c2 » gbarr
2000-07-30 *** empty log message ***
127 print "\nChecking for OPTIONAL modules\n\n";
455ad0ff » gbarr
2000-05-03 Initial revision
128
bfee17e1 » gbarr
2000-08-03 *** empty log message ***
129 check_module('URI',1.08) && check_module('URI::ldap',1.10) or print <<"EDQ","\n";
5227f6fd » gbarr
2000-06-29 *** empty log message ***
130 The URI::ldap module is needed ONLY IF you want to parse LDAP URLs
455ad0ff » gbarr
2000-05-03 Initial revision
131 EDQ
132
133 check_module('Digest::MD5') or print <<"EDQ","\n";
eeae2e81 » marschap
2005-10-03 update Makefile.PL to have correct dependencies for the features.
134 The Digest::MD5 module is needed ONLY IF you intend to use DIGEST-MD5 SASL authentication
5227f6fd » gbarr
2000-06-29 *** empty log message ***
135 EDQ
136
b4e2fcb2 » Chris Ridd
2002-05-17 Specified minimum version of IO::Socket::SSL
137 check_module('IO::Socket::SSL',0.81) or print <<"EDQ","\n";
5227f6fd » gbarr
2000-06-29 *** empty log message ***
138 The IO::Socket::SSL module is needed ONLY IF you intend to use LDAPS
139 EDQ
140
eeae2e81 » marschap
2005-10-03 update Makefile.PL to have correct dependencies for the features.
141 check_module('XML::SAX') or print <<"EDQ","\n";
142 The XML::SAX module is needed ONLY IF you intend to read DSML files
143 EDQ
144
145 check_module('XML::SAX::Writer') or print <<"EDQ","\n";
146 The XML::SAX::Writer module is needed ONLY IF you intend to write DSML files
455ad0ff » gbarr
2000-05-03 Initial revision
147 EDQ
148
727d8586 » gbarr
2001-12-03 Add check for MIME::Base64
149 check_module('MIME::Base64') or print <<"EDQ","\n";
eeae2e81 » marschap
2005-10-03 update Makefile.PL to have correct dependencies for the features.
150 The MIME::Base64 module is needed ONLY IF you intend to read/write LDIF or DSML files
727d8586 » gbarr
2001-12-03 Add check for MIME::Base64
151 EDQ
152
559989df » gbarr
2002-02-18 Change over to using Authen::SASL v2.00, which is now distributed
153 check_module('Authen::SASL', 2.00) or print <<"EDQ","\n";
154 If you intend to use SASL authentication you need at least version 2.00
155 EDQ
156
455ad0ff » gbarr
2000-05-03 Initial revision
157 print "\n",<<"EDQ","\n" if $missing;
158 ****************************************************************************
d35350c2 » gbarr
2000-07-30 *** empty log message ***
159 You are missing some modules that MAY be needed for some of the features
160 in perl-ldap to work correctly. Read the above messages and download
161 any required modules from http://www.perl.com/CPAN
455ad0ff » gbarr
2000-05-03 Initial revision
162 ****************************************************************************
163 EDQ
164
165 #--- Write the Makefile ---
166
167 my @ppd;
168
169 if ($] >= 5.00503) {
170 @ppd = (
745009b1 » gbarr
2000-05-22 *** empty log message ***
171 AUTHOR => $AUTHOR,
172 ABSTRACT => $ABSTRACT,
455ad0ff » gbarr
2000-05-03 Initial revision
173 );
174 }
175
176 WriteMakefile(
177 VERSION_FROM => $VERSION_FROM,
178 NAME => $DISTNAME,
f192bcbd » gbarr
2003-06-09 Depend in MakeMaker to fixup the #! line of installed scripts
179 EXE_FILES => $opt_s ? [ grep -f, glob('bin/*') ] : [],
455ad0ff » gbarr
2000-05-03 Initial revision
180 clean => {FILES => 'temp'},
d35350c2 » gbarr
2000-07-30 *** empty log message ***
181 PREREQ_PM => { 'Convert::ASN1' => 0.07 },
455ad0ff » gbarr
2000-05-03 Initial revision
182 @ppd,
183 );
184
185
90308d09 » gbarr
2004-07-01 Release 0.32
186 sub MY::postamble {
187 return <<'POSTAMBLE';
455ad0ff » gbarr
2000-05-03 Initial revision
188
90308d09 » gbarr
2004-07-01 Release 0.32
189 distdir : manifest run_cpansign
b6183a5f » gbarr
2003-06-09 Add a SIGNATURE to the distribution
190
191 run_cpansign :
192 cpansign -s
193
90308d09 » gbarr
2004-07-01 Release 0.32
194 POSTAMBLE
455ad0ff » gbarr
2000-05-03 Initial revision
195
196 }
Something went wrong with that request. Please try again.