Ticket #589: install.patch

File install.patch, 1.1 KB (added by Manuel Carreira Silva, 8 years ago)
  • mindi-2.1.1/

    old new  
    8787sed -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
    8888chmod 755 $local/sbin/mindi $local/sbin/mindi-bkphw
    8989
     90# patching udev paths
     91UDEVADM_PATH=$(type -p udevadm)
     92UDEVD_PATH=$(type -p udevd)
     93GREP_PATH=$(type -p grep)
     94
     95UDEVADM_PATH=$(echo $UDEVADM_PATH | sed 's/\//\\\//g')
     96UDEVD_PATH=$(echo $UDEVD_PATH | sed 's/\//\\\//g')
     97GREP_PATH=$(echo $GREP_PATH | sed 's/\//\\\//g')
     98
     99sed -i.tmp -e "s/\/bin\/grep/$GREP_PATH/g" -e "s/\/sbin\/udevd/$UDEVD_PATH/g" $local/sbin/mindi
     100"rm" -f $local/sbin/mindi.tmp
     101
     102sed -i.tmp -e "s/\/sbin\/udevd/$UDEVD_PATH/g" -e "s/\/sbin\/udevadm/$UDEVADM_PATH/g" $locallib/mindi/rootfs/etc/init.d/rcS
     103"rm" -f $locallib/mindi/rootfs/etc/init.d/rcS.tmp
     104####
     105
    90106install -m 644 mindi.8 $MANDIR
    91107#install -m 644 ChangeLog COPYING README README.busybox README.ia64 README.pxe TODO INSTALL svn.log $DOCDIR
    92108