Changeset 2659 in MondoRescue for devel/mr/Makefile.PL
- Timestamp:
- Jun 23, 2010, 4:26:59 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/mr/Makefile.PL
r2650 r2659 9 9 VERSION => 'PBVER', 10 10 INST_SCRIPT => 'blib/bin', 11 INSTALLDIRS => ' perl',11 INSTALLDIRS => 'vendor', 12 12 PREREQ_PM => { 13 13 #HTTP::Headers => 1.59, … … 61 61 $target = "/usr/local"; 62 62 if (not defined $confdir) { 63 $confdir = "/usr/local/etc"; 63 $confdir = "$target/etc"; 64 } 65 if (not defined $cachedir) { 66 $cachedir = "$target/var/cache"; 64 67 } 65 68 } else { 66 $sharedir = $sharedir || "$target/share";67 $mandir = $mandir || "$sharedir/man";68 69 $cachedir = $cachedir || "$target/var/cache"; 69 70 if (not defined $confdir) { 70 71 die "CONFDIR should be defined if PREFIX is defined"; 71 72 } 73 if (not defined $cachedir) { 74 die "CACHEDIR should be defined if PREFIX is defined"; 75 } 72 76 } 77 $sharedir = $sharedir || "$target/share"; 78 $mandir = $mandir || "$sharedir/man"; 73 79 74 80 my $conff = "etc/PBPROJ.conf"; … … 83 89 mr_install_dir default = $target 84 90 # 85 #86 91 # conf dir 87 92 # … … 95 100 # 96 101 mr_share_dir default = $sharedir/PBPROJ 102 # 103 # version 104 # 105 mr_version default = PBVER-rPBREV 97 106 EOF 98 107 close(CONF); … … 102 111 103 112 $text .= "install ::\n"; 104 $text .= "\t".'@echo PBPKG PBVER- PBREV will be installed under $(DESTDIR)'."\n";113 $text .= "\t".'@echo PBPKG PBVER-rPBREV will be installed under $(DESTDIR)'."\n"; 105 114 $text .= "\t".'install -m 755 -d $(DESTDIR)'."$confdir/PBPROJ".' $(DESTDIR)'."$cachedir/PBPROJ".' $(DESTDIR)'."$sharedir/PBPROJ\n"; 106 115 $text .= "\t".'cp etc/PBPROJ.conf $(DESTDIR)'."$confdir/PBPROJ/PBPROJ.conf.dist ; install -m 755 -d ".' $(DESTDIR)'."$mandir/man5 ; pod2man etc/PBPROJ.conf > ".'$(DESTDIR)'."$mandir/man5/PBPROJ.conf.5\n"; 107 116 $text .= "\t".'md5sum $(DESTDIR)'."$confdir/PBPROJ/PBPROJ.conf.dist > ".'$(DESTDIR)'."$confdir/PBPROJ/PBPROJ.conf.dist.md5\n"; 108 $text .= "\t".'cp lib/MondoRescue/DynConf.pm $(DESTDIR)/$(INST_LIBDIR)/'."\n"; 109 $text .= "\t".'md5sum $(DESTDIR)'."$confdir/PBPROJ/PBPROJ.conf.dist > ".'$(DESTDIR)'."$confdir/PBPROJ/PBPROJ.conf.dist.md5\n"; 110 #$text .= "\t".'if [ -f etc/PBKG.conf ]; then cp etc/PBPKG.conf $(DESTDIR)'."$confdir/PBPROJ/PBKG.conf.dist ; install -m 755 -d ".' $(DESTDIR)'."$mandir/man5 ; pod2man etc/PBPKG.conf > ".'$(DESTDIR)'."$mandir/man5/PBPKG.conf.5 ; fi\n"; 111 #$text .= "\t".'md5sum $(DESTDIR)'."$confdir/PBPROJ/PBPKG.conf.dist > ".'$(DESTDIR)'."$confdir/PBPROJ/PBPKG.conf.dist.md5\n"; 117 $text .= "\t".'cp lib/MondoRescue/DynConf.pm $(DESTDIR)/$(VENDORLIBEXP)/MondoRescue/'."\n"; 112 118 113 119 # Now generate a perl module used by every other one in the project … … 152 158 153 159 This function returns all the installation PATH info needed by the project 154 It takes no parameter and returns 3values160 It takes no parameter and returns 2 values 155 161 First value is the conf dir 156 162 Second value is the project name … … 159 165 160 166 sub mr_dynconf_init { 161 return( $confdir,PBPROJ);167 return("$confdir/PBPROJ","PBPROJ"); 162 168 } 163 169 1;
Note:
See TracChangeset
for help on using the changeset viewer.