Section 5. No agreement to make a will of real or personal property or to give a legacy or make a devise shall be binding unless such agreement is in writing signed by the person whose executor or administrator is sought to be charged, or by some person by him duly authorized. This section shall not apply to any agreement made prior to May seventeenth, eighteen hundred and eighty-eight or after September thirtieth, nineteen hundred and sixty-five.