aboutsummaryrefslogtreecommitdiff
path: root/mail/mairix
diff options
context:
space:
mode:
authorOliver Braun <obraun@FreeBSD.org>2003-07-27 10:07:07 +0000
committerOliver Braun <obraun@FreeBSD.org>2003-07-27 10:07:07 +0000
commite19722225063821953472f6915300ee84c170e75 (patch)
tree3bb287f5d43266693080ddac373b0cb02aeec21d /mail/mairix
parent5badcd7cef837a9e487cbe1177f59161c3e1a6c4 (diff)
downloadports-e19722225063821953472f6915300ee84c170e75.tar.gz
ports-e19722225063821953472f6915300ee84c170e75.zip
Notes
Diffstat (limited to 'mail/mairix')
-rw-r--r--mail/mairix/Makefile3
-rw-r--r--mail/mairix/files/patch-datescan.c91
2 files changed, 93 insertions, 1 deletions
diff --git a/mail/mairix/Makefile b/mail/mairix/Makefile
index 9937fe7c3e0b..93e858c1a82c 100644
--- a/mail/mairix/Makefile
+++ b/mail/mairix/Makefile
@@ -17,7 +17,8 @@ USE_BISON= yes
USE_REINPLACE= yes
post-patch:
- @${REINPLACE_CMD} -e '/^CC/d ; /^CFLAGS/d' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e '/^CC/d ; /^CFLAGS/d ; /dfasyn/d' \
+ ${WRKSRC}/Makefile
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/mairix ${PREFIX}/bin
diff --git a/mail/mairix/files/patch-datescan.c b/mail/mairix/files/patch-datescan.c
new file mode 100644
index 000000000000..35daa2dce85b
--- /dev/null
+++ b/mail/mairix/files/patch-datescan.c
@@ -0,0 +1,91 @@
+--- datescan.c.orig Sun Jul 27 11:53:28 2003
++++ datescan.c Sun Jul 27 11:52:28 2003
+@@ -0,0 +1,88 @@
++#include "dates.h"
++enum DATESCAN_TYPE datescan_exitval[] = {
++DS_FAILURE, /* State 0 */
++DS_FAILURE, /* State 1 */
++DS_D, /* State 2 */
++DS_D, /* State 3 */
++DS_D, /* State 4 */
++DS_FAILURE, /* State 5 */
++DS_Y, /* State 6 */
++DS_SCALED, /* State 7 */
++DS_D, /* State 8 */
++DS_SCALED, /* State 9 */
++DS_Y, /* State 10 */
++DS_FAILURE, /* State 11 */
++DS_FAILURE, /* State 12 */
++DS_SCALED, /* State 13 */
++DS_FAILURE, /* State 14 */
++DS_FAILURE, /* State 15 */
++DS_M, /* State 16 */
++DS_FAILURE, /* State 17 */
++DS_FAILURE, /* State 18 */
++DS_Y, /* State 19 */
++DS_DM, /* State 20 */
++DS_FAILURE, /* State 21 */
++DS_MD, /* State 22 */
++DS_MD, /* State 23 */
++DS_MD, /* State 24 */
++DS_FAILURE, /* State 25 */
++DS_YM, /* State 26 */
++DS_FAILURE, /* State 27 */
++DS_FAILURE, /* State 28 */
++DS_FAILURE, /* State 29 */
++DS_FAILURE, /* State 30 */
++DS_MY, /* State 31 */
++DS_MD, /* State 32 */
++DS_MY, /* State 33 */
++DS_YYMMDD, /* State 34 */
++DS_YMD, /* State 35 */
++DS_YMD, /* State 36 */
++DS_YMD, /* State 37 */
++DS_DMY, /* State 38 */
++DS_FAILURE, /* State 39 */
++DS_DMY, /* State 40 */
++DS_FAILURE, /* State 41 */
++DS_YYMMDD, /* State 42 */
++DS_FAILURE /* State 43 */
++};
++
++static short datescan_trans[] = {
++ 1, 2, 2, 3, 4, 5, 6, 6,
++ 6, 6, 6, 7, 8, 8, 8, 8,
++ 8, 9, 8, 8, 10, 10, 10, 9,
++ 10, 10, 10, 10, 10, 9, -1, -1,
++ -1, -1, -1, 11, 12, 12, 12, 12,
++ 12, 13, -1, -1, -1, -1, -1, -1,
++ 14, 14, 14, 14, 14, 9, -1, -1,
++ -1, -1, -1, 15, 14, 14, 14, 14,
++ 14, 13, -1, -1, -1, -1, -1, 16,
++ 17, 17, 17, 17, 17, 7, -1, -1,
++ -1, -1, -1, 18, 19, 19, 19, 19,
++ 19, 7, -1, -1, -1, -1, -1, 20,
++ 21, 22, 22, 23, 24, -1, 25, 25,
++ 25, 25, 25, 7, -1, -1, -1, -1,
++ -1, 26, 25, 25, 25, 25, 25, 13,
++ 27, 28, 28, 29, 30, -1, 31, 31,
++ 31, 31, 31, -1, 32, 32, 32, 32,
++ 32, -1, 32, 32, 33, 33, 33, -1,
++ 33, 33, 33, 33, 33, -1, 34, 34,
++ 34, 34, 34, 7, -1, 35, 35, 36,
++ 37, -1, 38, 38, 38, 38, 38, -1,
++ 39, 39, 39, 39, 39, -1, 39, 39,
++ 40, 40, 40, -1, 40, 40, 40, 40,
++ 40, -1, -1, -1, -1, -1, -1, -1,
++ 21, 21, 21, 21, 21, -1, 21, 21,
++ 21, 21, 21, -1, 41, 41, 41, 41,
++ 41, 7, 37, 37, 37, 37, 37, -1,
++ 37, 37, -1, -1, -1, -1, -1, -1,
++ -1, -1, -1, -1, -1, -1, -1, -1,
++ -1, -1, 27, 27, 27, 27, 27, -1,
++ 27, 27, 27, 27, 27, -1, 42, 42,
++ 42, 42, 42, 7, 43, 43, 43, 43,
++ 43, 7, 43, 43, 43, 43, 43, 7
++};
++
++int datescan_next_state(int current_state, int next_token) {
++ if (next_token < 0 || next_token >= 6) return -1;
++ return datescan_trans[6*current_state + next_token];
++}