Changeset 2539 in MondoRescue
- Timestamp:
- Jan 9, 2010, 4:40:49 PM (15 years ago)
- Location:
- devel
- Files:
-
- 1 added
- 3 edited
- 1 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
devel/mindi/Makefile.PL
r2538 r2539 19 19 MAN1PODS => { 20 20 'sbin/mindi' => '$(INST_MAN1DIR)/mindi.$(MAN1EXT)', 21 'sbin/mranalyze-lvm' => '$(INST_MAN1DIR)/mranalyze-lvm.$(MAN1EXT)',22 21 'sbin/mrprepare-lvm' => '$(INST_MAN1DIR)/mrprepare-lvm.$(MAN1EXT)', 23 22 }, 24 MAN3PODS => {25 'lib/MondoRescue/Mindi/LVM.pm' => '$(INST_MAN3DIR)/MondoRescue::Mindi::LVM.$(MAN3EXT)',26 23 #MAN3PODS => { 24 #'lib/MondoRescue/Mindi/LVM.pm' => '$(INST_MAN3DIR)/MondoRescue::Mindi::LVM.$(MAN3EXT)', 25 #}, 27 26 ); -
devel/mr/Makefile.PL
r2149 r2539 16 16 #ABSTRACT_FROM => 'bin/', # retrieve abstract from module 17 17 AUTHOR => 'Bruno Cornec <bruno#mondorescue.org>', 18 EXE_FILES => [ qw( ) ], 18 EXE_FILES => [ qw( sbin/mranalyze-lvm sbin/mrcheck-lvm ) ], 19 MAN1PODS => { 20 'sbin/mranalyze-lvm' => '$(INST_MAN1DIR)/mranalyze-lvm.$(MAN1EXT)', 21 'sbin/mrcheck-lvm' => '$(INST_MAN1DIR)/mranalyze-lvm.$(MAN1EXT)', 22 }, 19 23 MAN3PODS => { 20 24 'lib/MondoRescue/Base.pm' => '$(INST_MAN3DIR)/MondoRescue::Base.$(MAN3EXT)', 25 'lib/MondoRescue/LVM.pm' => '$(INST_MAN3DIR)/MondoRescue::LVM.$(MAN3EXT)', 26 'lib/MondoRescue/Inventory.pm' => '$(INST_MAN3DIR)/MondoRescue::Inventory.$(MAN3EXT)', 21 27 }, 22 28 ); -
devel/mr/lib/MondoRescue/Base.pm
r2538 r2539 59 59 } 60 60 61 pb_conf_init(); 61 # Get the various location determined at installation time 62 my ($confdir,$localdir,$pbproj) = mr_dyn_conf(); 63 64 # First use the main configuration file 65 pb_conf_add("$confdir/$pbproj/$pbproj.conf"); 62 66 } 67 63 68 =item B<mr_exit> 64 69 -
devel/mr/post-install.sh
r2538 r2539 8 8 sublocal=$PREFIX 9 9 if [ "_$CONFDIR" != "_" ]; then 10 conf=${HEAD}$CONFDIR/PBP KG11 subconf=$CONFDIR/PBP KG10 conf=${HEAD}$CONFDIR/PBPROJ 11 subconf=$CONFDIR/PBPROJ 12 12 else 13 13 echo "CONFDIR should be defined if PREFIX is defined" … … 17 17 local=/usr/local 18 18 sublocal=$local 19 conf=$local/etc/PBP KG19 conf=$local/etc/PBPROJ 20 20 subconf=$conf 21 21 fi 22 22 23 23 if [ _"$CACHEDIR" = _"" ]; then 24 CACHEDIR=$local/var/cache/PBP KG24 CACHEDIR=$local/var/cache/PBPROJ 25 25 else 26 26 CACHEDIR=${HEAD}$CACHEDIR 27 27 fi 28 sublocalshare="$local/share/PBP KG"29 sublocallib="$local/lib/PBP KG"28 sublocalshare="$local/share/PBPROJ" 29 sublocallib="$local/lib/PBPROJ" 30 30 31 M INDIVER=PBVER32 M INDIREV=PBREV31 MRVER=PBVER 32 MRREV=PBREV 33 33 ARCH=`/bin/uname -m` 34 echo " mindi ${MINDIVER}-r${MINDIREV} will be installed under $local"34 echo "PBPROJ modules ${MRVER}-r${MRREV} will be installed under $local" 35 35 36 36 echo "Creating target directories ..." 37 37 install -m 755 -d $conf $sublocallib $sublocalshare $CACHEDIR 38 38 39 #echo "Copying files ..."39 echo "Copying files ..." 40 40 #cp -af rootfs $sublocallib/mindi 41 41 #chmod 755 $sublocallib/mindi/rootfs/sbin/* … … 43 43 #install -m 644 deplist.txt udev.files proliant.files $conf 44 44 45 # Substitute variables for mindi 46 sed -i -e "s~^MINDI_PREFIX=XXX~MINDI_PREFIX=$sublocal~" -e "s~^MINDI_CONF=YYY~MINDI_CONF=$subconf~" -e "s~^MINDI_LIB=LLL~MINDI_LIB=$sublocallib~" $local/bin/mindi 47 #sed -i -e "s~= "YYY"~= "$subconf"~" $local/bin/mindi-bkphw 45 cp etc/PBPROJ.conf $conf 46 cat > $PERLDIR/MondoRescue/DynConf.pm << EOF 47 #!/usr/bin/perl -w 48 # 49 # Declare variables for the MondoRescue project 50 # This module has been generated at installation time 51 # Do not modify without good reasons. 52 # 53 package MondoRescue::DynConf; 48 54 49 if [ "$PKGBUILDMINDI" != "true" ]; then 50 chown -R root:root $sublocallib/mindi $conf 51 fi 55 use strict; 56 57 # Inherit from the "Exporter" module which handles exporting functions. 58 59 use Exporter; 60 61 # Export, by default, all the functions into the namespace of 62 # any code which uses this module. 63 our @ISA = qw(Exporter); 64 our @EXPORT = qw(mr_dynconf_init); 65 66 # Returns in order 67 # the CONFDIR 68 # the LOCALDIR 69 sub mr_dynconf_init { 70 71 return($subconf,$sublocal,"PBPROJ"); 72 } 73 1; 74 EOF 52 75 53 76 exit 0
Note:
See TracChangeset
for help on using the changeset viewer.