customize.patch 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. diff -Naur wmwebcam-0.3.5-fixed/Makefile wmwebcam-0.3.5-customize/Makefile
  2. --- wmwebcam-0.3.5-fixed/Makefile 2015-06-01 11:40:40.000000000 -0700
  3. +++ wmwebcam-0.3.5-customize/Makefile 2015-11-24 02:23:25.695647261 -0700
  4. @@ -1,5 +1,5 @@
  5. CC = gcc
  6. -CFLAGS = -O2 -Wall -I/usr/X11R6/include -DVIDEO_DEV=\"/dev/video0\"
  7. +CFLAGS = -O2 -Wall -I/usr/X11R6/include -DVIDEO_DEV=\"/dev/video0\"
  8. LDFLAGS =
  9. LIBS = -L/usr/X11R6/lib -lX11 -lXext -lm -ljpeg -lv4l1
  10. diff -Naur wmwebcam-0.3.5-fixed/wmwebcam.c wmwebcam-0.3.5-customize/wmwebcam.c
  11. --- wmwebcam-0.3.5-fixed/wmwebcam.c 2015-06-01 11:37:49.000000000 -0700
  12. +++ wmwebcam-0.3.5-customize/wmwebcam.c 2015-11-24 02:22:29.172647747 -0700
  13. @@ -46,15 +46,15 @@
  14. //////////////////////// CHANGE THESE IF NECESSARY ///////////////////////////
  15. -#define DEF_WIDTH 352 // changing these requires adjustements
  16. -#define DEF_HEIGHT 288 // to the source, use default if possible
  17. +#define DEF_WIDTH 352 // changing these requires adjustements
  18. +#define DEF_HEIGHT 288 // to the source, use default if possible
  19. -#define SENDINGDELAY 60 // default delay between saving jpeg
  20. +#define SENDINGDELAY 60 // default delay between saving jpeg
  21. // images and scriptrunning (in seconds)
  22. -#define OUTPUTFILE "/tmp/wmwebcam.jpg" // default output file
  23. -#define CUSTOMSCRIPT "wmwebcam.pl" // default custom script
  24. -#define QUAL_DEFAULT 100 // default jpeg outputquality
  25. +#define OUTPUTFILE "/tmp/wmwebcam.jpg" // default output file
  26. +#define CUSTOMSCRIPT "wmwebcam.pl" // default custom script
  27. +#define QUAL_DEFAULT 100 // default jpeg outputquality
  28. //////////////////////////////////////////////////////////////////////////////
  29. diff -Naur wmwebcam-0.3.5-fixed/wmwebcam.pl wmwebcam-0.3.5-customize/wmwebcam.pl
  30. --- wmwebcam-0.3.5-fixed/wmwebcam.pl 2001-01-27 09:24:16.000000000 -0700
  31. +++ wmwebcam-0.3.5-customize/wmwebcam.pl 2015-11-24 02:23:01.323647470 -0700
  32. @@ -5,12 +5,12 @@
  33. # check if the ppp is on before stamping&sending, otherwise don't do
  34. # anything
  35. -$areweonline = `grep "ppp" /proc/net/route`;
  36. +$areweonline = `grep "ppp" /proc/net/route`;
  37. -if (length $areweonline != 0) { # THIS IS JUST MY CONFIGURATION,
  38. +if (length $areweonline != 0) { # THIS IS JUST MY CONFIGURATION,
  39. # CHANGE TO YOUR OWN
  40. -system "stamp"; # stamp reads /tmp/wmwebcam.jpg and outputs
  41. +system "stamp"; # stamp reads /tmp/wmwebcam.jpg and outputs
  42. # /tmp/webcam.jpg with some info (has to be
  43. # configured to do so)
  44. # get stamp from:
  45. @@ -19,7 +19,7 @@
  46. # NOTE: stamp has the ability to send the image to server via ftp, but I
  47. # prefer using scp.
  48. -system "scp -q /tmp/webcam.jpg SOME_HOST:public_html/webcam.jpg";
  49. +system "scp -q /tmp/webcam.jpg SOME_HOST:public_html/webcam.jpg";
  50. # replace the previous line to suit your needs
  51. # or disable if you use stamp's own ftpsend
  52. } else {