Hi,
You can simply checkout the mjpg-streamer sources from subversion with the similar command to the one you already know:
# svn co https://mjpg-streamer.svn.sourceforge.n … g-streamer mjpg-streamer
then you can compress it to be a tarball:
# tar czvf mjpg_streamer_rev56.tgz --exclude .svn mjpg-streamer
Copy this tarball to the folder where OpenWrt stores downloaded files. It is the subfolder "dl" and should already include many tar.gz, tar.bz2 and tgz files:
# WRT_FOLDER="/path/to/OpenWrt"
# cp mjpg_streamer_rev56.tgz ${WRT_FOLDER}/dl/
Edit the mjpg-streamer Makefile to use revision 56 instead of 51. The md5sum is not of interest, because the file is already in the "dl" folder. You may also blank the md5sum field.
# vi ${WRT_FOLDER}/feeds/packages/multimedia/mjpg-streamer/Makefile
Alternatively you can use sed (commands were not tested to work):
# cat ${WRT_FOLDER}/feeds/packages/multimedia/mjpg-streamer/Makefile | sed -e "s/PKG_VERSION:=rev51/PKG_VERSION:=rev56/g" -e "s/PKG_MD5SUM:=a9f26a96fdebdf3046ce920d2bcfb4ef/PKG_MD5SUM:=/g" > ${WRT_FOLDER}/feeds/packages/multimedia/mjpg-streamer/Makefile.new
# if [ $? -eq 0 ]; then rm ${WRT_FOLDER}/feeds/packages/multimedia/mjpg-streamer/Makefile; mv ${WRT_FOLDER}/feeds/packages/multimedia/mjpg-streamer/Makefile.new ${WRT_FOLDER}/feeds/packages/multimedia/mjpg-streamer/Makefile; fi
Compile OpenWrt with mjpg-streamer selected:
# make V=99
Then you should get a new *.ipk package for mjpg_streamer revision 56 in the bin/packages subfolder.
You still need to copy the input_gspcav1.so plugin manually as described above, you can improve that in the Makefile too, so it will can get included. I do not want to release #56 because I want to add at least some controls for gspca like framerate, saturation, brightness etc. Consider this as the early start of gspca support (according to the principle publish early and often).
Hope that helps, please try to understand what you are doing, because the commands given were not tested!!!
Kind regards,
Tom
(Last edited by Tom on 12 Feb 2008, 10:02)