View | Details | Raw Unified | Return to bug 107907 | Differences between
and this patch

Collapse All | Expand All

(-)/home/emma/ports/mail/bogofilter/Makefile (-1 / +1 lines)
Lines 67-73 Link Here
67
.endif
67
.endif
68
68
69
post-build::
69
post-build::
70
	cd ${WRKSRC} && make check SHELL=${SH}
70
	cd ${WRKSRC}/src && make check SHELL=${SH}
71
71
72
post-install::
72
post-install::
73
	@${MKDIR} ${DOCSDIR}/contrib
73
	@${MKDIR} ${DOCSDIR}/contrib
(-)/home/emma/ports/mail/bogofilter/files/patch-aa-fix-deptracking (+29 lines)
Line 0 Link Here
1
--- ./src/Makefile.am.orig	Sat Dec  9 14:53:57 2006
2
+++ ./src/Makefile.am	Sun Jan 14 17:51:18 2007
3
@@ -27,4 +27,6 @@
4
 endif
5
 
6
+BUILT_SOURCES=	version.c directories.c
7
+
8
 # what to build
9
 bin_PROGRAMS = bogofilter bogoutil bogolexer bogotune
10
@@ -44,5 +46,4 @@
11
 bogoutil_LDADD = $(LDADD) $(LIBDB)
12
 configtest_LDADD = $(LDADD) $(LIBDB)
13
-bogofilter_DEPENDENCIES = $(LDADD)
14
 
15
 if NEED_GSL
16
@@ -60,5 +61,5 @@
17
 noinst_LIBRARIES += libbf_gsl.a
18
 libbf_gsl_a_CPPFLAGS= -I$(top_srcdir)
19
-bogofilter_DEPENDENCIES += libbf_gsl.a
20
+BUILT_SOURCES += libbf_gsl.a
21
 endif
22
 
23
@@ -152,6 +153,4 @@
24
 	datastore_db.h \
25
 	mysetvbuf.c mysetvbuf.h
26
-
27
-BUILT_SOURCES=	version.c directories.c
28
 
29
 libbogofilter_a_SOURCES = \
(-)/home/emma/ports/mail/bogofilter/files/patch-ab-fix-deptracking (+70 lines)
Line 0 Link Here
1
--- ./src/Makefile.in.orig	Sun Jan 14 17:51:53 2007
2
+++ ./src/Makefile.in	Sun Jan 14 17:52:38 2007
3
@@ -233,4 +233,6 @@
4
 am_bogofilter_OBJECTS = bogofilter.$(OBJEXT) main.$(OBJEXT)
5
 bogofilter_OBJECTS = $(am_bogofilter_OBJECTS)
6
+bogofilter_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2) \
7
+	$(am__DEPENDENCIES_2)
8
 am__objects_5 = bogofilter.$(OBJEXT) main.$(OBJEXT)
9
 am_bogofilter_static_OBJECTS = $(am__objects_5)
10
@@ -384,5 +386,4 @@
11
 EXEEXT = @EXEEXT@
12
 EXE_EXT = @EXE_EXT@
13
-GREP = @GREP@
14
 GSL_CFLAGS = @GSL_CFLAGS@
15
 GSL_CONFIG = @GSL_CONFIG@
16
@@ -443,5 +444,8 @@
17
 USE_UNICODE = @USE_UNICODE@
18
 VERSION = @VERSION@
19
+ac_ct_AR = @ac_ct_AR@
20
 ac_ct_CC = @ac_ct_CC@
21
+ac_ct_RANLIB = @ac_ct_RANLIB@
22
+ac_ct_STRIP = @ac_ct_STRIP@
23
 ac_cv_enable_xmlto = @ac_cv_enable_xmlto@
24
 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
25
@@ -459,7 +463,4 @@
26
 build_vendor = @build_vendor@
27
 datadir = @datadir@
28
-datarootdir = @datarootdir@
29
-docdir = @docdir@
30
-dvidir = @dvidir@
31
 exec_prefix = @exec_prefix@
32
 host = @host@
33
@@ -468,5 +469,4 @@
34
 host_os = @host_os@
35
 host_vendor = @host_vendor@
36
-htmldir = @htmldir@
37
 includedir = @includedir@
38
 infodir = @infodir@
39
@@ -474,13 +474,10 @@
40
 libdir = @libdir@
41
 libexecdir = @libexecdir@
42
-localedir = @localedir@
43
 localstatedir = @localstatedir@
44
 mandir = @mandir@
45
 mkdir_p = @mkdir_p@
46
 oldincludedir = @oldincludedir@
47
-pdfdir = @pdfdir@
48
 prefix = @prefix@
49
 program_transform_name = @program_transform_name@
50
-psdir = @psdir@
51
 sbindir = @sbindir@
52
 sharedstatedir = @sharedstatedir@
53
@@ -503,4 +500,5 @@
54
 
55
 AM_CFLAGS = -DBOGOFILTER $(am__append_1)
56
+BUILT_SOURCES = version.c directories.c $(am__append_4)
57
 bin_SCRIPTS = bogoupgrade
58
 dist_bin_SCRIPTS = bf_copy bf_compact bf_tar
59
@@ -514,5 +512,4 @@
60
 bogoutil_LDADD = $(LDADD) $(LIBDB)
61
 configtest_LDADD = $(LDADD) $(LIBDB)
62
-bogofilter_DEPENDENCIES = $(LDADD) $(am__append_4)
63
 @NEED_GSL_TRUE@libbf_gsl_a_CFLAGS = $(AM_CFLAGS) -DRENAMEFILES
64
 @NEED_GSL_TRUE@libbf_gsl_a_SOURCES = \
65
@@ -600,5 +597,4 @@
66
 	mysetvbuf.c mysetvbuf.h
67
 
68
-BUILT_SOURCES = version.c directories.c
69
 libbogofilter_a_SOURCES = version.c $(version_sources) \
70
 	$(datastore_SOURCE)
(-)/home/emma/ports/mail/bogofilter/files/patch-ba-fix-subnet-tokens (+66 lines)
Line 0 Link Here
1
Index: src/token.c
2
===================================================================
3
RCS file: /cvsroot/bogofilter/bogofilter/src/token.c,v
4
retrieving revision 1.153
5
retrieving revision 1.155
6
diff -u -r1.153 -r1.155
7
--- src/token.c	26 Nov 2006 16:34:30 -0000	1.153
8
+++ src/token.c	12 Jan 2007 00:20:16 -0000	1.155
9
@@ -1,4 +1,4 @@
10
-/* $Id: token.c,v 1.153 2006/11/26 16:34:30 relson Exp $ */
11
+/* $Id: token.c,v 1.155 2007/01/12 00:20:16 relson Exp $ */
12
 
13
 /*****************************************************************************
14
 
15
@@ -121,22 +121,17 @@
16
     token_set(dst, src->text, src->leng);
17
 }
18
 
19
-static void build_prefixed_token( word_t *token, word_t *prefix, 
20
+static void build_prefixed_token( word_t *prefix, word_t *token,
21
 				  word_t *temp, uint32_t temp_size )
22
 {
23
-    uint pfx_len = (prefix == NULL) ? 0 : prefix->leng;
24
-    uint len = token->leng + pfx_len;
25
+    uint len = token->leng + prefix->leng;
26
     
27
     if (len >= temp_size)
28
-	len = temp_size - pfx_len - 1;
29
+	len = temp_size - prefix->leng - 1;
30
 
31
     temp->leng = len;
32
-
33
-    /* copy prefix, if there is one */
34
-    if (prefix != NULL)
35
-	memcpy(temp->text, prefix->text, pfx_len);
36
-
37
-    memcpy(temp->text + pfx_len, token->text, len-pfx_len);
38
+    memmove(temp->text+prefix->leng, token->text, len-prefix->leng);
39
+    memcpy(temp->text, prefix->text, prefix->leng);
40
     Z(temp->text[temp->leng]);
41
 
42
     token->leng = temp->leng;
43
@@ -167,12 +162,11 @@
44
     if (token_prefix != NULL) {
45
 	/* IP addresses get special prefix */
46
 	if (save_class != IPADDR) {
47
-	    build_prefixed_token(token, token_prefix, &yylval, yylval_text_size);
48
+	    build_prefixed_token(token_prefix, token, &yylval, yylval_text_size);
49
 	}
50
 	else {
51
-
52
 	    word_t *prefix = (wordlist_version >= IP_PREFIX) ? w_ip : w_url;
53
-	    build_prefixed_token(token, prefix, ipsave, max_token_len);
54
+	    build_prefixed_token(prefix, token, &yylval, yylval_text_size);
55
 	}
56
 
57
 	/* if excessive length caused by prefix, get another token */
58
@@ -198,7 +192,7 @@
59
 	else
60
 	{
61
 	    ipsave->leng = (uint) (t - ipsave->text);
62
-	    token_set( &yylval, ipsave->text, ipsave->leng);
63
+	    token_set( token, ipsave->text, ipsave->leng);
64
 	    cls = save_class;
65
 	    done = true;
66
 	}

Return to bug 107907