Compiling and using luarocks

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. NEW_BUILD_NAME=luarocks NEW_BUILD_VER=2.2.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 cd /ffp/home/root/compile/luarocks-2.2.2 ~/x.sh ffpg ./configure […]

Compiling nginx 1.9.0

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. NEW_BUILD_NAME=nginx NEW_BUILD_VER=1.9.0 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=1 cd /ffp/home/root/compile/nginx-1.9.0 ~/x.sh ffpg ./configure […]

Compiling boost 1.49.0

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. NEW_BUILD_NAME=boost NEW_BUILD_VER=1.49.0 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 cd ~/compile wget http://sourceforge.net/projects/boost/files/boost/1.49.0/boost_1_49_0.tar.gz/download tar […]

Compiling anyterm-1.1.29

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. cd ~/compile wget http://anyterm.org/download/anyterm-1.1.29.tbz2 tar jxf anyterm-1.1.29.tbz2 cd anyterm-1.1.29 ~/x.sh ffpg NEW_BUILD_NAME=anyterm NEW_BUILD_VER=1.1.29 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls […]

Working with subversion (SVN)

#svn+ssh url examples: svn+ssh://ssh-user@your-remote-svn-server-ip/os-path-to-svn-repository/project-name svn+ssh://root@adrhc.go.ro/i-data/SVN-Repository/image-processor svn+ssh://root@adrhc.go.ro/i-data/SVN-Repository/image-processor/trunk #starting svn server #path-to-svn-repository: the value for -r svnserve’s option svnserve -d -r path-to-svn-repository –log-file /ffp/log/svnserve.log #ssh-user will also be used as the Author when commiting to SVN #You’ll have to use Putty pageant […]

Compiling mysql 5.6.23

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. NEW_BUILD_NAME=mysql NEW_BUILD_VER=5.6.23 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 cd $HOME/compile rm -r $HOME/compile/mysql-5.6.23 […]

Compiling PHP 5.6.x

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. NEW_BUILD_NAME=php NEW_BUILD_VER1=5.6.13 NEW_BUILD_VER=$NEW_BUILD_VER1-zts MYSQL_BUILD_NAME_AND_VER=mysql-5.6.25 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$MYSQL_BUILD_NAME_AND_VER-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME-* ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME-* NEW_BUILD_NR=0 cd ~/compile wget […]

NSA310 FFP patches

wget -O /ffp/bin/config.guess ‘http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD’ wget -O /ffp/bin/config.sub ‘http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD’ chmod +x /ffp/bin/config.guess chmod +x /ffp/bin/config.sub sed -i s/”\/usr\/bin\/env”/”\/ffp\/bin\/env”/g /ffp/bin/roff2text sed -i s/”\/usr\/bin\/env”/”\/ffp\/bin\/env”/g /ffp/bin/pprof sed -i s/”\/usr\/bin\/env”/”\/ffp\/bin\/env”/g /ffp/bin/grog sed -i s/”\/usr\/bin\/env”/”\/ffp\/bin\/env”/g /ffp/bin/roff2x sed -i s/”\/usr\/bin\/env”/”\/ffp\/bin\/env”/g /ffp/bin/roff2ps sed -i s/”\/usr\/bin\/env”/”\/ffp\/bin\/env”/g /ffp/bin/gdbus-codegen sed -i […]

Compiling serf

#necesar lui SVN client NEW_BUILD_NAME=serf NEW_BUILD_VER=1.3.6 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 cd ~/compile svn co http://serf.googlecode.com/svn/tags/1.3.6/ $NEW_BUILD_NAME_AND_VER cd $NEW_BUILD_NAME_AND_VER #~/x.sh ffpg find . -type f \( -exec sed -i s/”\/usr\/bin\/perl”/”\/ffp\/bin\/perl”/g {} \; , -exec sed -i s/”\/usr\/bin\/python”/”\/ffp\/bin\/python”/g […]

Common steps/commands when building/compiling

# 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 […]

Configure command for building various software

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before compiling do declare the environment variables specified to the link above and prepare sources with ~/x.sh ffpg (or ~/x.sh ffpg-all if compilation fails). #urbackup-server-1.4.9 NEW_BUILD_NAME=urbackup-server NEW_BUILD_VER=1.4.9 […]

Compiling Perl 5.20.1

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. #search http://search.cpan.org/ for modules #see http://www.thegeekstuff.com/2008/09/how-to-install-perl-modules-manually-and-using-cpan-command/ #Installing Perl modules from CPAN (didn’t work): http://perl.about.com/od/packagesmodules/qt/perlcpan.htm #environment […]

Compiling texinfo

NEW_BUILD_NAME=texinfo NEW_BUILD_VER=5.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 cd ~/compile wget https://ftp.gnu.org/gnu/texinfo/texinfo-5.2.tar.xz tar xpvf $NEW_BUILD_NAME_AND_VER.tar.xz cd ~/compile/$NEW_BUILD_NAME_AND_VER/ find . -type f \( -exec sed -i s/”\/usr\/bin\/perl”/”\/ffp\/bin\/perl”/ {} \; , -exec sed -i s/”\/usr\/bin\/python”/”\/ffp\/bin\/python”/ {} \; , -exec sed […]