Scripted installs
Radoslaw Zielinski
radek at pld-linux.org
Thu Apr 17 10:58:48 BST 2008
Chris Devers <cdevers at pobox.com> [17-04-2008 00:59]:
> On Apr 16, 2008, at 7:05 PM, "Paul Makepeace" <paulm at paulm.com> wrote:
>> What's the state of the art in terms of repeatably installing Perl
>> software? ...
Too many CPAN authors are trying to be smart in the {Makefile,Build}.PL,
so I'm sticking to *.spec files with custom build instructions -> RPM.
Many modules can be built correctly / properly with the *.PL / make
install DESTDIR=..., but not all of them. This often works like a charm
instead of perl *.PL, if you're feeling too lazy to debug a long and
ugly build script:
perl -MExtUtils::MakeMaker -e 'WriteMakefile(NAME=>"Foo::Bar")'
[...]
> Sadly, that doesn't help much on Red Hat variants or Macs...
http://cvs.pld-linux.org/SOURCES/pldcpan.pl might be a starting point.
It's PLD-specific and I never tried it on other distribution, but that
should just be the matter of editing the Template::Toolkit bit in the
__DATA__. Usage:
$ pldcpan.pl Acme::Monkey
-- searching for 'Acme-Monkey' on search.cpan.org
.. found http://www.cpan.org/modules/by-authors/id/B/BL/BLUEFEET/Acme-Monkey-4.99.tar.gz
.. processing /home/users/radek/tmp/Acme-Monkey-4.99
.. writing to '/home/users/radek/tmp/perl-Acme-Monkey.spec'
$ mv Acme-Monkey-4.99.tar.gz ~/rpm/SOURCES/
$ rpmbuild -bb perl-Acme-Monkey.spec
[...]
Wrote: /home/users/radek/rpm/RPMS/perl-Acme-Monkey-4.99-1.noarch.rpm
[...]
$ rpm -qlp ~/rpm/RPMS/perl-Acme-Monkey-4.99-1.noarch.rpm
/usr/share/man/man3/Acme::Monkey.3pm.gz
/usr/share/perl5/vendor_perl/Acme/Monkey
/usr/share/perl5/vendor_perl/Acme/Monkey.pm
/usr/share/perl5/vendor_perl/Acme/Monkey/ClearScreen.pm
/usr/share/perl5/vendor_perl/Acme/Monkey/Frame
/usr/share/perl5/vendor_perl/Acme/Monkey/Frame.pm
/usr/share/perl5/vendor_perl/Acme/Monkey/Frame/Layer.pm
--
Radosław Zieliński <radek at pld-linux.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://london.pm.org/pipermail/london.pm/attachments/20080417/1a8856f4/attachment.pgp
More information about the london.pm
mailing list