Changeset 3147 in MondoRescue for branches/3.1/mindi/install.sh
- Timestamp:
- Jun 19, 2013, 8:34:46 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.1/mindi/install.sh
r2513 r3147 40 40 MINDIVER=PBVER 41 41 MINDIREV=PBREV 42 VERSTR=${MINDIVER}-r${MINDIREV} 42 43 ARCH=`/bin/uname -m` 43 echo "mindi $ {MINDIVER}-r${MINDIREV}will be installed under $local"44 echo "mindi $VERSTR will be installed under $local" 44 45 45 46 if [ _"$MINDI_CACHE" = _"" ]; then … … 78 79 install -m 644 $f $conf/deplist.d 79 80 done 80 for f in mindi-bkphw mindi-get-perl-modules parted2fdisk.pl; do81 install -m 755 $f $local/sbin82 done83 81 84 82 # Substitute variables for mindi 85 83 sed -e "s~^MINDI_PREFIX=XXX~MINDI_PREFIX=$sublocal~" -e "s~^MINDI_CONF=YYY~MINDI_CONF=$subconf~" -e "s~^MINDI_DATA=LLL~MINDI_DATA=$sublocaldata~" -e "s~^MINDI_CACHE=CCC~MINDI_CACHE=$MINDI_CACHE~" mindi > $local/sbin/mindi 86 84 sed -e "s~^MINDI_CONF=YYY~MINDI_CONF=$subconf~" -e "s~^export MINDI_CACHE=CCC~export MINDI_CACHE=$MINDI_CACHE~" rootfs/sbin/init > $localdata/mindi/rootfs/sbin/init 87 chmod 755 $local/sbin/mindi $local/sbin/mindi-bkphw 88 85 chmod 755 $local/sbin/mindi 89 86 install -m 644 mindi.8 $MANDIR 90 87 #install -m 644 ChangeLog COPYING README README.ia64 README.pxe TODO INSTALL svn.log $DOCDIR 88 89 # Manage perl script man pages 90 for s in mindi-bkphw mindi-get-perl-modules parted2fdisk.pl; do 91 install -m 755 $s $local/sbin 92 pod2man -c "$s a MondoRescue tool" --section=8 --release="$VERSTR" $local/sbin/$s > $s.8 93 install -m 644 $s.8 $MANDIR 94 # Generate the list of perl modules needed at restore time for mindi 95 cat > $conf/perl-scripts << EOF 96 $sublocal/sbin/$s 97 EOF 98 done 99 (cd $MANDIR ; ln -s parted2fdisk.pl.8 parted2fdisk.9) 100 101 if [ "_$PREFIX" = "_" ] && [ ! -f $locallib/mindi/rootfs/bin/busybox ]; then 102 echo "WARNING: no busybox found, mindi will not work on this arch ($ARCH)" 103 fi 91 104 92 105 # Managing parted2fdisk … … 96 109 else 97 110 # FHS requires fdisk under /sbin 98 (cd $local/sbin && ln -sf /sbin/fdisk parted2fdisk)111 (cd $local/sbin && ln -sf ../../sbin/fdisk parted2fdisk) 99 112 echo "Symlinking fdisk to parted2fdisk" 100 113 ( cd $localdata/mindi/rootfs/sbin && ln -sf fdisk parted2fdisk) … … 109 122 fi 110 123 111 # Generate the list of perl modules needed at restore time for mindi112 cat > $conf/perl-scripts << EOF113 $sublocal/sbin/mindi-get-perl-modules114 $sublocal/sbin/mindi-bkphw115 $sublocal/sbin/parted2fdisk.pl116 EOF117 118 124 exit 0
Note:
See TracChangeset
for help on using the changeset viewer.