Bandwidthd

De SME Server Wiki

version compatible mysql

attention ceci est un aide mémoire pas un how to

yum install flex bison autoconf autoheader sqlite-devel postgresql postgresql-server postgresql-devel mysql-devel php-pgsql


vieille version de septembre 2005 avec patch

cd ~/bandwidthd/
cvs -d:pserver:anonymous@bandwidthd.cvs.sourceforge.net:/cvsroot/bandwidthd login
appuyer sur entré a la demande du mot de passe
cvs -z3 -d:pserver:anonymous@bandwidthd.cvs.sourceforge.net:/cvsroot/bandwidthd co -D20050923 bandwidthd

test

cp  -R bandwidthd test
cd test
autoheader
autoconf
patch -p1 <../bandwidthd-mysql.patch
./configure

si ok on fait un tar

cp  -R bandwidthd bandwidthd-2.0.1.1
tar -czf bandwidthd-2.0.1.1.tgz bandwidthd-2.0.1.1


puis modification du spec du rpm source le plus recent pour redhat /fedora

et la ligne magique

rpmbuild -bb bandwidthd.spec


dans l'optique d'ameliorer le bousin

pour trouver une mac

tcpdump -e -i ppp0
arp IP

/sbin/ifconfig

MAC=`ifconfig | grep HWaddr | awk -F ' '

'{print $5}'`

MAC=`ifconfig | grep -m 1 HWaddr | awk -F 'HWaddr ' '{ print $2 }'`