source: devel/mrmini/Makefile.PL @ 3711

Last change on this file since 3711 was 2659, checked in by Bruno Cornec, 10 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
Line 
1use 5.006001;
2use ExtUtils::MakeMaker;
3
4# See lib/ExtUtils/MakeMaker.pm for details of how to influence
5# the contents of the Makefile that is written.
6WriteMakefile(
7    NAME         => 'PBPKG',
8    DISTNAME     => 'PBPKG',
9    VERSION      => 'PBVER',
10    INST_SCRIPT  => 'blib/sbin',
11    INSTALLDIRS  => 'vendor',
12    PREREQ_PM    => {
13            #HTTP::Headers                    => 1.59,
14            #Template                         => 0,
15    },    # e.g., Module::Name => 1.1
16    #ABSTRACT_FROM => 'sbin/mrmini',   # retrieve abstract from module
17    AUTHOR        => 'Bruno Cornec <bruno#mondorescue.org>',
18    EXE_FILES     => [ qw( sbin/mrmini sbin/mrprepare-lvm ) ],
19    MAN1PODS      => { 
20            'sbin/mrmini' => '$(INST_MAN1DIR)/mrmini.$(MAN1EXT)', 
21            'sbin/mrprepare-lvm' => '$(INST_MAN1DIR)/mrprepare-lvm.$(MAN1EXT)', 
22                    },
23    MAN3PODS      => { 
24            'lib/MondoRescue/Mini/Base.pm' => '$(INST_MAN3DIR)/MondoRescue::Mini::Base.$(MAN3EXT)',
25            },
26);
27
28
29package MY;
30
31sub 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.