AddressBook

 view release on metacpan or  search on metacpan

Makefile.PL  view on Meta::CPAN

Installation may continue, however attempts to use DBI-based address 
books (e.g mysql,csv, etc...) will fail.
EDQ

check_module('PDA::Pilot') or print <<"EDQ","\n";
The PDB (PalmOS) backend requires PDA::Pilot.
Installation may continue, however attempts to use Palm0S address
books will fail.  

PDA::Pilot is available as part of the pilot-link distribution.
EDQ

print "\n",<<"EDQ","\n" if $missing;
****************************************************************************
You are missing some modules that may be needed for the modules in Abook
to work correctly. Read the above messages and download any required
modules from http://www.perl.com/CPAN
****************************************************************************
EDQ

exit unless $reqs_found;

$r = prompt("For testing the LDAP backend, I need to know some things about 
your LDAP server.  Continue? [y/n]","y");

if ($r =~ /^y$/i) {
  $hostname = prompt("What is your LDAP server hostname","localhost");
  $base = prompt("What is a valid LDAP base that I can use for searching? 
(eg. \"ou=abook,dc=<your_domain>\")");
  $objectclass = prompt("What is a valid LDAP objectclass that I can search for?",
"organizationalUnit");
  print "The LDAP test script will attempt to bind anonymously to \"$hostname\"
and search for \"objectclass=$objectclass\" 
using the base: $base\n";
  open F, ">t/t.ldap.conf";
  print F << "EDQ";
<AddressBook_config>
  <fields>
    <field name="objectclass">
      <db type="LDAP" name="objectclass" />
    </field>
  </fields>
  <databases>
    <LDAP
      hostname = "$hostname"
      base = "$base"
      anonymous = "1"
      objectclass = "$objectclass"
    />
  </databases>
</AddressBook_config>
EDQ
  close F;
}

WriteMakefile(
    'NAME'	=> 'AddressBook',
    'VERSION_FROM' => 'lib/AddressBook.pm',
);

sub MY::postamble {
'
htmldocs :: 
	find lib -name *.pm | sed s/.pm$$// |sed s/^lib.// | xargs -i# pod2html --podroot=. --podpath=lib --infile=lib/#.pm --outfile=html/#.html 
'
}



( run in 1.183 second using v1.01-cache-2.11-cpan-5735350b133 )