after you download
unarchive by running the following command
tar -zxf castitd-0.2.tar.gz
INSTALL NOTES:
################################################## ########################
#castitd unix port of castit from casterclub.com
#authors: dstjohn, oddsock
# website: casterclub.com
################################################## ########################
################################################## ########################
# compiling
you will need to edit the Makefile to suit your system settings
castitd depends on the following libraries/rpm packages
mysql-devel
curl-devel
libxml2-devel
Usualy running yum install mysql-devel curl-devel libxml2-devel
will get the job done, if you have these libraries custom compiled
into different directories then where rpm normaly installs them
in redhat/rpm based linux distros, you will need to edit the
Makefile in depth and specify where you have the libs installed.
Bugs questions or trouble compiling please post in the forums
casterclub http://casterclub.com/forums
#Step 1
#you will need to create the castitd database from the command line
#or web based application like phpMyAdmin.
#you can run the following command to create the new database
#for castit. replacing the username and password for your system
#environment.
################################################## ########################
#Step 2
#Open up castitd.sql with your fave text editor, we like vim, and look for
INSERT INTO castitd_memberinfo VALUES ('http://localhost:8000','changeme','1');
replace 'http://localhost:8000' with your actual shoutcast url,
example would be http://myprovider.com:9887
replace 'changeme' with your actual shoutcast server password
#be sure to keep the single quotes as those are part of the sql queries.
################################################## ########################
################################################## ########################
#Step 3
#while you have castitd.sql opened in vim or nano/pico
#look for
INSERT INTO castitd_runtime VALUES (30,'./castitd.log');
replace ./castitd.log to the actual path to where you want
#the log file placed, example if you want to store it under the tmp
#directory you would replace it with /tmp/castitd.log
replace 30 with the amount of time you want castitd to fetch and parse
#stats from the shoutcast servers, default is 30 and thats what we recomend,
#on slower systems running multiple instances for shoutcast servers
#and alot of background process's you may want to make this longer like
#300 for 5 minutes.
################################################## ########################
#you now need to insert the newly edited castitd.sql we did in steps 2 and 3,
#into the database we just created above,
#from the command line you can run the following, replacing the username
#and password args for your system.
mysql --user=YOURUSERNAME --password=YOURPASSWORD castitd < castitd.sql
#Or you can use phpMyAdmin to import/upload the castitd.sql file.
################################################## ########################