Changeset 3143 in MondoRescue for branches/3.0/mindi/install.sh
- Timestamp:
- Jun 14, 2013, 6:06:09 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mindi/install.sh
r2964 r3143 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 [ _"$CACHEDIR" = _"" ]; then … … 80 81 install -m 644 $f $conf/deplist.d 81 82 done 82 for f in mindi-bkphw mindi-get-perl-modules parted2fdisk.pl; do83 install -m 755 $f $local/sbin84 done85 83 86 84 # Substitute variables for mindi 87 85 sed -e "s~^MINDI_PREFIX=XXX~MINDI_PREFIX=$sublocal~" -e "s~^MINDI_CONF=YYY~MINDI_CONF=$subconf~" -e "s~^MINDI_LIB=LLL~MINDI_LIB=$sublocallib~" mindi > $local/sbin/mindi 88 chmod 755 $local/sbin/mindi $local/sbin/mindi-bkphw 86 chmod 755 $local/sbin/mindi 87 install -m 644 mindi.8 $MANDIR 89 88 90 install -m 644 mindi.8 $MANDIR 91 #install -m 644 ChangeLog COPYING README README.busybox README.ia64 README.pxe TODO INSTALL svn.log $DOCDIR 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) 92 100 93 101 if [ "_$PREFIX" = "_" ] && [ ! -f $locallib/mindi/rootfs/bin/busybox ]; then … … 101 109 else 102 110 # FHS requires fdisk under /sbin 103 (cd $local/sbin && ln -sf /sbin/fdisk parted2fdisk)111 (cd $local/sbin && ln -sf ../../sbin/fdisk parted2fdisk) 104 112 echo "Symlinking fdisk to parted2fdisk" 105 113 ( cd $locallib/mindi/rootfs/sbin && ln -sf fdisk parted2fdisk) … … 114 122 fi 115 123 116 # Generate the list of perl modules needed at restore time for mindi117 cat > $conf/perl-scripts << EOF118 $sublocal/sbin/mindi-get-perl-modules119 $sublocal/sbin/mindi-bkphw120 $sublocal/sbin/parted2fdisk.pl121 EOF122 123 124 exit 0
Note:
See TracChangeset
for help on using the changeset viewer.