Initial version of the script to extract plain text from MIME body or 1st attachment.
Initial version of control file for Foscam IP cameras.
Taken from http://www.zoneminder.com/wiki/index.php/Foscam
Applied the fix for "Shared data size conflict in shared_data for monitor ptz, expected 328, got 316" error message
as suggested here: http://www.zoneminder.com/forums/viewtopic.php?f=29&t=20628#p78615
Updated package version (otherwise build process stops).
No need to redefine RUNDIR and ZM_RUNDIR, as they already depend on DESTDIR.
Improved the script using advise from http://stackoverflow.com/a/16405301/267197 so that re-running the script does not break package installation.