# Installing rdiffweb.tar.gz # Prep Enviroment export CFLAGS="-march=i486 -mtune=i686 -Os -pipe" export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig mkdir -p /tmp/package # Install build/install only dependencies tce-load -wil compiletc.tcz tce-load -wil squashfs-tools-4.x.tcz tce-load -wil python-dev.tcz tce-load -wil submitqc.tcz # Install required dependencies tce-load -wil python.tcz tce-load -wil pysqlite2.tcz tce-load -wil python-jinja2.tcz tce-load -wil cherrypy.tcz tce-load -wil MarkupSafe.tcz tce-load -wli python-setuptools.tcz tce-load -wil rdiff-backup.tcz # Install download dependencie tce-load -wi wget # !!!!!!!!!!!!! May need to reboot at this stage, if following wget command does not work # cd to src dir cd /mnt/hda1/src # Download source wget --no-check-certificate -O rdiffweb.tar.gz https://github.com/ikus060/rdiffweb/archive/develop.tar.gz # Install tar dependencie tce-load -wi tar.tcz # !!!!!!!!!!!!! May need to reboot at this stage, if following tar command does not work # Extract tar -xzf rdiffweb.tar.gz # Enter source dir cd rdiffweb-develop # Build Command python setup.py build # Install Command python setup.py install --prefix=/usr/local --root=/tmp/package # clean up extracted source files cd /mnt/hda1/src rm -rf rdiffweb-develop # strip /tmp/package cd /tmp/package find . | xargs file | grep "executable" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || find . | xargs file | grep "shared object" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip -g 2> /dev/null ### Create base tcz cd /tmp mksquashfs package rdiffweb.tcz cd /tmp/package find usr -not -type d > /tmp/rdiffweb.tcz.list cd /tmp md5sum rdiffweb.tcz > rdiffweb.tcz.md5.txt touch rdiffweb.tcz.dep echo python.tcz > rdiffweb.tcz.dep echo MarkupSafe.tcz >> rdiffweb.tcz.dep echo python-setuptools.tcz >> rdiffweb.tcz.dep echo pysqlite2.tcz >> rdiffweb.tcz.dep echo cherrypy.tcz >> rdiffweb.tcz.dep echo python-jinja2.tcz >> rdiffweb.tcz.dep echo rdiff-backup.tcz >> rdiffweb.tcz.dep # .info file based on template I had, detail's filled in manually with nano # Clean up /tmp/package folder rm -rf package # Prep for submitqc test mkdir rdiffweb mv rdiffweb.tcz* rdiffweb cd rdiffweb sudo submitqc # create tarbal cd /tmp tar -zcf rdiffweb.tar.gz rdiffweb # bcrypt, use password tinycore when prompted bcrypt rdiffweb.tar.gz # Move rdiffweb.tcz folder and bcrypt file to storeage pending submission for approval mv rdiffweb* /mnt/hda1/tcz