File: Makefile.PL

package info (click to toggle)
libapache-authznetldap-perl 0.07-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 124 kB
  • sloc: perl: 433; makefile: 2
file content (57 lines) | stat: -rw-r--r-- 2,541 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57

    # ExtUtils::AutoInstall Bootstrap Code, version 7.
    BEGIN{my$p='ExtUtils::AutoInstall';my$v=0.52;$p->VERSION||0>=$v
    or+eval"use $p $v;1"or+do{my$e=$ENV{PERL_EXTUTILS_AUTOINSTALL};
    (!defined($e)||$e!~m/--(?:default|skip|testonly)/ and-t STDIN or
    eval"use ExtUtils::MakeMaker;WriteMakefile(PREREQ_PM=>{'$p',$v}
    );1"and exit)and print"==> $p $v required. Install it from CP".
    "AN? [Y/n] "and<STDIN>!~/^n/i and print"*** Installing $p\n"and
    do{if (eval '$>' and lc(`sudo -V`) =~ /version/){system('sudo',
    $^X,"-MCPANPLUS","-e","CPANPLUS::install $p");eval"use $p $v;1"
    ||system('sudo', $^X, "-MCPAN", "-e", "CPAN::install $p")}eval{
    require CPANPLUS;CPANPLUS::install$p};eval"use $p $v;1"or eval{
    require CPAN;CPAN::install$p};eval"use $p $v;1"||die"*** Please
    manually install $p $v from cpan.org first...\n"}}}

    # notify the user about mod_perl 2
    BEGIN { print q{
        **************** NOTICE *********************
        If you are planning to use mod_perl2 and Apache2, please, do not
        answer yes when prompted to install mod_perl.  You will need to
        download mod_perl2 manually from
        http://perl.apache.org/download/index.html
        *********************************************
    } }
    

    # optional pre-install handler; takes $module_name and $version
    # sub MY::preinstall  { return 1; }	# return false to skip install

    # optional post-install handler; takes $module_name, $version, $success
    # sub MY::postinstall { return; }	# the return value doesn't matter

    # the above handlers must be declared before the 'use' statement
    use ExtUtils::AutoInstall (
	-version	=> '0.40',	# required AutoInstall version
	                                # usually 0.40 is sufficient
	-config		=> {
	    make_args	=> '--hello',	# option(s) for CPAN::Config
	    force	=> 1,		# pseudo-option to force install
	    do_once	=> 1,		# skip previously failed modules
	},
	-core           => [
                Convert::ASN1 => '',
                Net::LDAP => '',
		MIME::Base64 => '',
	    	URI => '',
                mod_perl2 => '',
        ],              # core modules; may also be 'all'
    );

    WriteMakefile(
	AUTHOR          => 'Mark Wilcox (mjwilcox@wilcox.com) and Shannon Eric Peevey (speeves@unt.edu)',
	ABSTRACT        => 'Apache::AuthzNetLDAP -- Authorizes users to access resources via LDAP.',
	NAME            => 'Apache::AuthzNetLDAP',
	VERSION_FROM    => 'AuthzNetLDAP.pm',
	DISTNAME        => 'Apache-AuthzNetLDAP',
    );