mount -uw /
cd /mnt/dataset
Method one (get valid token from 'Download')1:
wget "http://boar.googlecode.com/issues/attachment?aid=920000000&name=install_boar.sh&token=XXXXXXXX" -O install_boar.sh
Method two:
cat >> install_boar.sh
#!/usr/local/bin/bash
#
# Install boar on FreeBSD
# Writen by: Kellen Fox
#
if [ "$(whoami)" != "root" ]; then
echo "You need to be root for this."
exit 1
fi
### These variables can be changed for other systems ###
#Where to install the files. Since this is a python package site-packages works nicely
INSTALL_DIR=/usr/local/lib/python2.7/site-packages/
# Where to put the boar script
BIN_DIR=/usr/local/bin/
# Package url
BOAR_URL=http://boar.googlecode.com/files/boar.29-Jul-2012.tar.gz
cd $INSTALL_DIR
curl $BOAR_URL | gunzip | tar -xpf -
cd boar
echo "Editing setup.py"
# comment out the second line "import py2exe"
sed -i .tmp '2 s/[^ ]*/#&/' setup.py && rm setup.py.tmp
/usr/local/bin/python setup.py build
/usr/local/bin/python setup.py install
ln -s ${INSTALL_DIR}boar/boar ${BIN_DIR}boar
^D
vi install_boar.sh
- Change BOAR_URL to current 2
chmod +x install_boar.sh
./install_boar.sh
mount -ur /
References:
1 - Issue 92: setup.py fails on FreeBSD
2 - Boar: Simple version control and backup for photos, videos and other binary files
No comments:
Post a Comment