# These settings are (make sense) for NSA310 storage box with Fonz Fun Plug (FFP). # see also https://adrhc.go.ro/wordpress/configure-command-for-building-various-software/ export CFLAGS="-march=armv5te -mfloat-abi=soft -mabi=aapcs-linux -fno-stack-protector -pthread -O2 -Wall -Wno-error" export BUILD_FLAGS="$CFLAGS -I/ffp/include" unset LIBS export LDFLAGS="-L/ffp/lib" export CPPFLAGS="$BUILD_FLAGS" export CXXFLAGS="$BUILD_FLAGS" NEW_BUILD_NAME=mpc NEW_BUILD_VER=1.0.2 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME-* ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME-* NEW_BUILD_NR=0 ~/x.sh ffpg ./configure --help > configure.help.txt nohup /ffp/bin/make -C ~/compile/$NEW_BUILD_NAME_AND_VER & #renice -11 `pidof cc1plus` -p `pidof make` -p `pidof as` -p `pidof ld` -p `pidof configure` -p `pidof cc1` -p `pidof autogen.sh` renice -11 `pidof cc1plus` -p `pidof make` -p `pidof as` -p `pidof ld` -p `pidof configure` -p `pidof cc1` -p `pidof autogen.sh` -p `pidof autorun.sh` -p `pidof find` -p `pidof x.sh` -p `pidof cp` -p `pidof bjam` -p `pidof xz` -p `pidof grep` -p `pidof sed` -p `pidof file` -p `pidof makepkg` tail -f nohup.out rm -rv $HOME/temp/$NEW_BUILD_NAME_AND_VER rm -v /tmp/$NEW_BUILD_NAME_AND_VER-arm-*.txz make install DESTDIR=$HOME/temp/$NEW_BUILD_NAME_AND_VER cd $HOME/temp/$NEW_BUILD_NAME_AND_VER makepkg $NEW_BUILD_NAME $NEW_BUILD_VER $NEW_BUILD_NR cp -v /tmp/$NEW_BUILD_NAME-$NEW_BUILD_VER-arm-$NEW_BUILD_NR.txz ~/ffp_0.7_armv5/packages/ funpkg -q $NEW_BUILD_NAME funpkg -i ~/apache-htdocs/ffp_0.7_armv5/packages/$NEW_BUILD_NAME-$NEW_BUILD_VER-arm-$NEW_BUILD_NR.txz #~/x.sh xstart #this simply starts my custom-apache-server #~/x.sh xstop #this simply stops my custom-apache-server #NSA310 it's a storage box #~/x.sh hstart #this starts my nsa310-firmware-apache then my custom-apache-server #~/x.sh hstop #this stops my custom-apache-server then my nsa310-firmware-apache #-mtune=xscale #use -v in CFLAGS for more debug messages #use -Wno-error in order to disable warnings treated as errors export CFLAGS="-march=armv5te -mfloat-abi=soft -mabi=aapcs-linux -fno-stack-protector -pthread -O2 -Wall -Wno-error" #export BUILD_FLAGS="$CFLAGS -I/ffp/include -I/ffp/opt/apache-2.2.29-worker/include" export BUILD_FLAGS="$CFLAGS -I/ffp/include" export LDFLAGS="-L/ffp/lib" #export LIBS="-lintl -lpthread -lncurses" export CPPFLAGS="$BUILD_FLAGS" export CXXFLAGS="$BUILD_FLAGS" export LC_ALL=POSIX ffpg1) echo "`date` ffpg begin (including automake files and dirs)" find . -maxdepth 1 -type f ! \( -name "FAQ*" -o -name "README*" -o -name "INSTALL*" -o -iname "ChangeLog*" -o -name "nohup.out" -o -path "*/.svn/*" -o -iname "*.gyp" -o -iname "*.gypi" -o -iname autom4te.cache -o -iname "*.xsd" -o -iname "*.xml" -o -iname "*.dtd" -o -iname "*.png" -o -iname "*.jpg" -o -iname "*.wsdl" -o -iname "*.gif" -o -iname "*.ttf" -o -iname "*.swf" -o -iname "*.sql" -o -iname "*.cpp" -o -iname "*.java" -o -iname "*.txt" -o -iname "*.log" -o -iname "*.so" -o -iname "*.hpp" -o -iname "*.bin" -o -iname .gitignore -o -wholename "*/man/*.[0-9]" \) \( \ -exec sed -i s/"-L\/\(lib\|usr\/lib\|usr\/local\/lib\)"/"-L\/ffp\/lib"/g {} \; , \ -exec sed -i s/"-I\/\(include\|usr\/include\|usr\/local\/include\)"/"-I\/ffp\/include"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/bin\/"/"\1\/ffp\/bin\/"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/etc\/ssl\/cert.pem"/"\1\/ffp\/etc\/ssl\/cert.pem"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/sbin\/\(install\|sh\|bash\|env\|uname\)"/"\1\/ffp\/bin\/\2"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/sbin\/\(ldconfig\|sysctl\|\$sysctl\)"/"\1\/ffp\/sbin\/\2"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/usr\/local\/\(bin\|include\|lib\|perl\|php\|python\|sbin\|var\)"/"\1\/ffp\/\2"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/usr\/make"/"\1\/ffp\/bin\/make"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/usr\/sbin\/\(cache\|sysctl\|thin\|useradd\|groupadd\|\$sysctl\)"/"\1\/ffp\/sbin\/\2"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/usr\/sbin\/\(convert\|install\|lsattr\|lsdev\)"/"\1\/ffp\/bin\/\2"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/usr\/share\/antiword"/"\1\/ffp\/bin\/antiword"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/local\/gnu\/bin\/bash"/"\/ffp\/bin\/bash"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/usr\/\(bin\|include\|lib\)"/"\1\/ffp\/\2"/g {} \; , \ -exec sed -i s/"^\/bin\/"/"\/ffp\/bin\/"/g {} \; , \ -exec sed -i s/"^\/etc\/ssl\/cert.pem"/"\/ffp\/etc\/ssl\/cert.pem"/g {} \; , \ -exec sed -i s/"^\/sbin\/\(install\|sh\|bash\|env\|uname\)"/"\/ffp\/bin\/\1"/g {} \; , \ -exec sed -i s/"^\/sbin\/\(ldconfig\|sysctl\|\$sysctl\)"/"\/ffp\/sbin\/\1"/g {} \; , \ -exec sed -i s/"^\/usr\/local\/\(bin\|include\|lib\|perl\|php\|python\|sbin\|var\)"/"\/ffp\/\1"/g {} \; , \ -exec sed -i s/"^\/usr\/make"/"\/ffp\/bin\/make"/g {} \; , \ -exec sed -i s/"^\/usr\/sbin\/\(cache\|sysctl\|thin\|useradd\|\$sysctl\)"/"\/ffp\/sbin\/\1"/g {} \; , \ -exec sed -i s/"^\/usr\/sbin\/\(convert\|install\|lsattr\|lsdev\)"/"\/ffp\/bin\/\1"/g {} \; , \ -exec sed -i s/"^\/usr\/share\/antiword"/"\/ffp\/bin\/antiword"/g {} \; , \ -exec sed -i s/"^\/local\/gnu\/bin\/bash"/"\/ffp\/bin\/bash"/g {} \; , \ -exec sed -i s/"^\/usr\/\(bin\|include\|lib\)"/"\/ffp\/\1"/g {} \; , \ -exec sed -i s/"\--prefix\`\/ffp"/"\--prefix\`"/g {} \; \ \) echo "`date` ffpg done" ;; ffpg-all) echo "`date` ffpg-all begin (including automake files and dirs)" find . -type f ! \( -name "FAQ*" -o -name "README*" -o -name "INSTALL*" -o -iname "ChangeLog*" -o -name "nohup.out" -o -path "*/.svn/*" -o -iname "*.gyp" -o -iname "*.gypi" -o -iname autom4te.cache -o -iname "*.xsd" -o -iname "*.xml" -o -iname "*.dtd" -o -iname "*.png" -o -iname "*.jpg" -o -iname "*.wsdl" -o -iname "*.gif" -o -iname "*.ttf" -o -iname "*.swf" -o -iname "*.sql" -o -iname "*.cpp" -o -iname "*.java" -o -iname "*.txt" -o -iname "*.log" -o -iname "*.so" -o -iname "*.hpp" -o -iname "*.bin" -o -iname .gitignore -o -wholename "*/man/*.[0-9]" \) \( \ -exec sed -i s/"-L\/\(lib\|usr\/lib\|usr\/local\/lib\)"/"-L\/ffp\/lib"/g {} \; , \ -exec sed -i s/"-I\/\(include\|usr\/include\|usr\/local\/include\)"/"-I\/ffp\/include"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/bin\/"/"\1\/ffp\/bin\/"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/etc\/ssl\/cert.pem"/"\1\/ffp\/etc\/ssl\/cert.pem"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/sbin\/\(install\|sh\|bash\|env\|uname\)"/"\1\/ffp\/bin\/\2"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/sbin\/\(ldconfig\|sysctl\|\$sysctl\)"/"\1\/ffp\/sbin\/\2"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/usr\/local\/\(bin\|include\|lib\|perl\|php\|python\|sbin\|var\)"/"\1\/ffp\/\2"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/usr\/make"/"\1\/ffp\/bin\/make"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/usr\/sbin\/\(cache\|sysctl\|thin\|useradd\|groupadd\|\$sysctl\)"/"\1\/ffp\/sbin\/\2"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/usr\/sbin\/\(convert\|install\|lsattr\|lsdev\)"/"\1\/ffp\/bin\/\2"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/usr\/share\/antiword"/"\1\/ffp\/bin\/antiword"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/local\/gnu\/bin\/bash"/"\/ffp\/bin\/bash"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/usr\/\(bin\|include\|lib\)"/"\1\/ffp\/\2"/g {} \; , \ -exec sed -i s/"^\/bin\/"/"\/ffp\/bin\/"/g {} \; , \ -exec sed -i s/"^\/etc\/ssl\/cert.pem"/"\/ffp\/etc\/ssl\/cert.pem"/g {} \; , \ -exec sed -i s/"^\/sbin\/\(install\|sh\|bash\|env\|uname\)"/"\/ffp\/bin\/\1"/g {} \; , \ -exec sed -i s/"^\/sbin\/\(ldconfig\|sysctl\|\$sysctl\)"/"\/ffp\/sbin\/\1"/g {} \; , \ -exec sed -i s/"^\/usr\/local\/\(bin\|include\|lib\|perl\|php\|python\|sbin\|var\)"/"\/ffp\/\1"/g {} \; , \ -exec sed -i s/"^\/usr\/make"/"\/ffp\/bin\/make"/g {} \; , \ -exec sed -i s/"^\/usr\/sbin\/\(cache\|sysctl\|thin\|useradd\|\$sysctl\)"/"\/ffp\/sbin\/\1"/g {} \; , \ -exec sed -i s/"^\/usr\/sbin\/\(convert\|install\|lsattr\|lsdev\)"/"\/ffp\/bin\/\1"/g {} \; , \ -exec sed -i s/"^\/usr\/share\/antiword"/"\/ffp\/bin\/antiword"/g {} \; , \ -exec sed -i s/"^\/local\/gnu\/bin\/bash"/"\/ffp\/bin\/bash"/g {} \; , \ -exec sed -i s/"^\/usr\/\(bin\|include\|lib\)"/"\/ffp\/\1"/g {} \; , \ -exec sed -i s/"\--prefix\`\/ffp"/"\--prefix\`"/g {} \; \ \) echo "`date` ffpg-all done" ;; ffpg-no-m4) echo "`date` ffpg-no-m4 begin (without autom4te.cache, Makefile.am, configure.ac, *.m4 and *.mk)" find . -type f \( -iname makerpm -o -iname "Makefile*" -o -name "*.cmake*" -o -iname "configure*" -o -iname "config.*" -o -iname "*.sh" -o -iname "*.py" -o -iname "*.py" -o -iname "*.pl" -o -iname "*.in" -o -name "*.test" -o -name "*.t" -o -name "*.php" -o -name "*.phpt" -o -perm /u=x,g=x,o=x \) ! \( -iname autom4te.cache -o -iname "*.xsd" -o -iname "*.xml" -o -iname "*.dtd" -o -iname "*.png" -o -iname "*.jpg" -o -iname "*.wsdl" -o -iname "*.gif" -o -iname "*.ttf" -o -iname "*.swf" -o -iname "*.sql" -o -iname "*.cpp" -o -iname "*.java" -o -iname "*.txt" -o -iname "*.log" -o -iname "*.so" -o -iname "*.hpp" -o -iname "*.bin" -o -iname .gitignore -o -wholename "*/man/*.[0-9]" -o -iname Makefile.am -o -iname configure.ac -o -iname "*.m4" -o -iname "*.mk" -o -iname "*.m4.in" -o -iname "*.mk.in" \) \( \ -exec sed -i s/"-L\/\(lib\|usr\/lib\|usr\/local\/lib\)"/"-L\/ffp\/lib"/g {} \; , \ -exec sed -i s/"-I\/\(include\|usr\/include\|usr\/local\/include\)"/"-I\/ffp\/include"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/bin\/"/"\1\/ffp\/bin\/"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/etc\/ssl\/cert.pem"/"\1\/ffp\/etc\/ssl\/cert.pem"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/sbin\/\(install\|sh\|bash\|env\|uname\)"/"\1\/ffp\/bin\/\2"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/sbin\/\(ldconfig\|sysctl\|\$sysctl\)"/"\1\/ffp\/sbin\/\2"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/usr\/local\/\(bin\|include\|lib\|perl\|php\|python\|sbin\|var\)"/"\1\/ffp\/\2"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/usr\/make"/"\1\/ffp\/bin\/make"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/usr\/sbin\/\(cache\|sysctl\|thin\|useradd\|groupadd\|\$sysctl\)"/"\1\/ffp\/sbin\/\2"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/usr\/sbin\/\(convert\|install\|lsattr\|lsdev\)"/"\1\/ffp\/bin\/\2"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/usr\/share\/antiword"/"\1\/ffp\/bin\/antiword"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/local\/gnu\/bin\/bash"/"\/ffp\/bin\/bash"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/usr\/\(bin\|include\|lib\)"/"\1\/ffp\/\2"/g {} \; , \ -exec sed -i s/"^\/bin\/"/"\/ffp\/bin\/"/g {} \; , \ -exec sed -i s/"^\/etc\/ssl\/cert.pem"/"\/ffp\/etc\/ssl\/cert.pem"/g {} \; , \ -exec sed -i s/"^\/sbin\/\(install\|sh\|bash\|env\|uname\)"/"\/ffp\/bin\/\1"/g {} \; , \ -exec sed -i s/"^\/sbin\/\(ldconfig\|sysctl\|\$sysctl\)"/"\/ffp\/sbin\/\1"/g {} \; , \ -exec sed -i s/"^\/usr\/local\/\(bin\|include\|lib\|perl\|php\|python\|sbin\|var\)"/"\/ffp\/\1"/g {} \; , \ -exec sed -i s/"^\/usr\/make"/"\/ffp\/bin\/make"/g {} \; , \ -exec sed -i s/"^\/usr\/sbin\/\(cache\|sysctl\|thin\|useradd\|\$sysctl\)"/"\/ffp\/sbin\/\1"/g {} \; , \ -exec sed -i s/"^\/usr\/sbin\/\(convert\|install\|lsattr\|lsdev\)"/"\/ffp\/bin\/\1"/g {} \; , \ -exec sed -i s/"^\/usr\/share\/antiword"/"\/ffp\/bin\/antiword"/g {} \; , \ -exec sed -i s/"^\/local\/gnu\/bin\/bash"/"\/ffp\/bin\/bash"/g {} \; , \ -exec sed -i s/"^\/usr\/\(bin\|include\|lib\)"/"\/ffp\/\1"/g {} \; , \ -exec sed -i s/"\--prefix\`\/ffp"/"\--prefix\`"/g {} \; \ \) echo "`date` ffpg-no-m4 done" ;; ffpg) # ffpg-make-conf, ffpgmakeconf -> are the same as ffpg) # the search ! condition is the same for show-non-text-exec # # [!=[:space:]\|'\[\"\`,;:\(-] -> don't use \. here because ../bin/ pointing to the internal # path of the compiled software will become ../ffp/bin/ and shall break it's building flow. # echo "`date` ffpg begin (see also show-non-text-exec)" echo "files included: *.mk, Makefile*, *.mkfile, *.cmake*, configure*, config.*, *.sh, *.py, *.pl, *.in, *.test, *.t, *.php, *.phpt and all executable" echo "files excluded (executable or not): autom4te.cache, *.xsd, *.xml, *.dtd, *.png, *.jpg, *.wsdl, *.gif, *.ttf, *.swf, *.sql, *.cpp, *.java, *.txt, *.log, *.so, *.hpp, *.bin" echo "ATTENTION: sometimes I found e.g. *.xml executable so I have to exclude them explicitly" find . -type f \( -iname "*.mk" -o -iname makerpm -o -iname "Makefile*" -o -name "*.mkfile" -o -name "*.cmake*" -o -iname "configure*" -o -iname "config.*" -o -iname "*.sh" -o -iname "*.py" -o -iname "*.py" -o -iname "*.pl" -o -iname "*.in" -o -name "*.test" -o -name "*.t" -o -name "*.php" -o -name "*.phpt" -o -perm /u=x,g=x,o=x \) ! \( -iname autom4te.cache -o -iname "*.xsd" -o -iname "*.xml" -o -iname "*.dtd" -o -iname "*.png" -o -iname "*.jpg" -o -iname "*.wsdl" -o -iname "*.gif" -o -iname "*.ttf" -o -iname "*.swf" -o -iname "*.sql" -o -iname "*.cpp" -o -iname "*.java" -o -iname "*.txt" -o -iname "*.log" -o -iname "*.so" -o -iname "*.hpp" -o -iname "*.bin" -o -iname .gitignore -o -wholename "*/man/*.[0-9]" \) \( \ -exec sed -i s/"-L\/\(lib\|usr\/lib\|usr\/local\/lib\)"/"-L\/ffp\/lib"/g {} \; , \ -exec sed -i s/"-I\/\(include\|usr\/include\|usr\/local\/include\)"/"-I\/ffp\/include"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/bin\/"/"\1\/ffp\/bin\/"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/etc\/ssl\/cert.pem"/"\1\/ffp\/etc\/ssl\/cert.pem"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/sbin\/\(install\|sh\|bash\|env\|uname\)"/"\1\/ffp\/bin\/\2"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/sbin\/\(ldconfig\|sysctl\|\$sysctl\)"/"\1\/ffp\/sbin\/\2"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/usr\/local\/\(bin\|include\|lib\|perl\|php\|python\|sbin\|var\)"/"\1\/ffp\/\2"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/usr\/make"/"\1\/ffp\/bin\/make"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/usr\/sbin\/\(cache\|sysctl\|thin\|useradd\|groupadd\|\$sysctl\)"/"\1\/ffp\/sbin\/\2"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/usr\/sbin\/\(convert\|install\|lsattr\|lsdev\)"/"\1\/ffp\/bin\/\2"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/usr\/share\/antiword"/"\1\/ffp\/bin\/antiword"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/local\/gnu\/bin\/bash"/"\/ffp\/bin\/bash"/g {} \; , \ -exec sed -i s/"\([!=[:space:]\|'\[\"\`,;:\(-]\)\/usr\/\(bin\|include\|lib\)"/"\1\/ffp\/\2"/g {} \; , \ -exec sed -i s/"^\/bin\/"/"\/ffp\/bin\/"/g {} \; , \ -exec sed -i s/"^\/etc\/ssl\/cert.pem"/"\/ffp\/etc\/ssl\/cert.pem"/g {} \; , \ -exec sed -i s/"^\/sbin\/\(install\|sh\|bash\|env\|uname\)"/"\/ffp\/bin\/\1"/g {} \; , \ -exec sed -i s/"^\/sbin\/\(ldconfig\|sysctl\|\$sysctl\)"/"\/ffp\/sbin\/\1"/g {} \; , \ -exec sed -i s/"^\/usr\/local\/\(bin\|include\|lib\|perl\|php\|python\|sbin\|var\)"/"\/ffp\/\1"/g {} \; , \ -exec sed -i s/"^\/usr\/make"/"\/ffp\/bin\/make"/g {} \; , \ -exec sed -i s/"^\/usr\/sbin\/\(cache\|sysctl\|thin\|useradd\|\$sysctl\)"/"\/ffp\/sbin\/\1"/g {} \; , \ -exec sed -i s/"^\/usr\/sbin\/\(convert\|install\|lsattr\|lsdev\)"/"\/ffp\/bin\/\1"/g {} \; , \ -exec sed -i s/"^\/usr\/share\/antiword"/"\/ffp\/bin\/antiword"/g {} \; , \ -exec sed -i s/"^\/local\/gnu\/bin\/bash"/"\/ffp\/bin\/bash"/g {} \; , \ -exec sed -i s/"^\/usr\/\(bin\|include\|lib\)"/"\/ffp\/\1"/g {} \; , \ -exec sed -i s/"\--prefix\`\/ffp"/"\--prefix\`"/g {} \; \ \) echo "`date` ffpg done" ;;