Last change
on this file since 3858 was 2659, checked in by Bruno Cornec, 14 years ago |
r3911@wsip-70-165-196-181: bruno | 2010-06-22 03:34:20 +0200
- First packaged version of a mrmin version begining to work (but doing nothing interesting yet ;-)
|
File size:
1.5 KB
|
Rev | Line | |
---|
[2149] | 1 | use 5.006001;
|
---|
| 2 | use ExtUtils::MakeMaker;
|
---|
| 3 |
|
---|
| 4 | # See lib/ExtUtils/MakeMaker.pm for details of how to influence
|
---|
| 5 | # the contents of the Makefile that is written.
|
---|
| 6 | WriteMakefile(
|
---|
| 7 | NAME => 'PBPKG',
|
---|
| 8 | DISTNAME => 'PBPKG',
|
---|
| 9 | VERSION => 'PBVER',
|
---|
[2538] | 10 | INST_SCRIPT => 'blib/sbin',
|
---|
[2659] | 11 | INSTALLDIRS => 'vendor',
|
---|
[2149] | 12 | PREREQ_PM => {
|
---|
| 13 | #HTTP::Headers => 1.59,
|
---|
| 14 | #Template => 0,
|
---|
| 15 | }, # e.g., Module::Name => 1.1
|
---|
[2648] | 16 | #ABSTRACT_FROM => 'sbin/mrmini', # retrieve abstract from module
|
---|
[2149] | 17 | AUTHOR => 'Bruno Cornec <bruno#mondorescue.org>',
|
---|
[2648] | 18 | EXE_FILES => [ qw( sbin/mrmini sbin/mrprepare-lvm ) ],
|
---|
[2149] | 19 | MAN1PODS => {
|
---|
[2648] | 20 | 'sbin/mrmini' => '$(INST_MAN1DIR)/mrmini.$(MAN1EXT)',
|
---|
[2149] | 21 | 'sbin/mrprepare-lvm' => '$(INST_MAN1DIR)/mrprepare-lvm.$(MAN1EXT)',
|
---|
| 22 | },
|
---|
[2659] | 23 | MAN3PODS => {
|
---|
| 24 | 'lib/MondoRescue/Mini/Base.pm' => '$(INST_MAN3DIR)/MondoRescue::Mini::Base.$(MAN3EXT)',
|
---|
| 25 | },
|
---|
[2149] | 26 | );
|
---|
[2659] | 27 |
|
---|
| 28 |
|
---|
| 29 | package MY;
|
---|
| 30 |
|
---|
| 31 | sub postamble {
|
---|
| 32 |
|
---|
| 33 | use MondoRescue::DynConf;
|
---|
| 34 |
|
---|
| 35 | my ($confdir,$proj) = mr_dynconf_init();
|
---|
| 36 |
|
---|
| 37 | my $text .= "install ::\n";
|
---|
| 38 | $text .= "\t".'@echo PBPKG PBVER-rPBREV will be installed under $(DESTDIR)'."\n";
|
---|
| 39 | $text .= "\tinstall -m 755 -d ".' $(DESTDIR)/$(INSTALLMAN1DIR)/../man5 $(DESTDIR)'."/$confdir/".'; cp etc/PBPKG.conf $(DESTDIR)'."/$confdir/PBPKG.conf.dist ; pod2man etc/PBPKG.conf > ".'$(DESTDIR)/$(INSTALLMAN1DIR)/../man5/PBPKG.conf.5'."\n";
|
---|
| 40 | $text .= "\t".'md5sum $(DESTDIR)'."$confdir/PBPKG.conf.dist > ".'$(DESTDIR)'."$confdir/PBPKG.conf.dist.md5\n";
|
---|
| 41 | return($text);
|
---|
| 42 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.