Given Makefile.PL , how can I install two binary files and two scripts in four different places?
To be more precise, the directory structure is as follows:
- Library / my _package / main.pl
- bin / daemon / daemon.pl (*)
- bin / plugin / plugin.pl (*)
- scripts / conf / conf.sh (*)
- scripts / init / initd.sh (*)
- Makefile.PL
Files marked with (*) must be installed in the following ways:
- /usr/sbin/daemon.pl
- /var/qmail/smtpplugins/plugin.pl
- /usr/local/conf.sh
- /etc/init.d/initd.sh
and the contents of my Makefile.PL
use ExtUtils::MakeMaker; WriteMakefile( NAME => "my_package", VERSION_FROM => "lib/my_package/main.pl" );
What will I say perl through Makefile.PL to install these four files in the appropriate directories?
source share