Bogofilter 0.90.0

Marcin Sobecki plddevpl w starogard.net.pl
Czw, 20 Maj 2004, 16:34:19 CEST


Witam,
podsylam patcha do spec'a i uaktualnione latki do bogofiltra. Wyglada na 
to ze uaktualniona wersja dziala ok. Sa to moje pierwsze proby z 
podsylaniem poprawek takze jesli cos jest w zlym formacie to przepraszam.
Pozdrawiam

-- 
Marcin Sobecki
cinek w starogard.net.pl
-------------- następna część ---------
diff -burN bogofilter-0.90.0.orig/src/configfile.c bogofilter-0.90.0/src/configfile.c
--- bogofilter-0.90.0.orig/src/configfile.c	2004-03-18 21:55:42.000000000 +0100
+++ bogofilter-0.90.0/src/configfile.c	2004-05-20 15:18:37.000000000 +0200
@@ -123,7 +123,13 @@
     int lineno = 0;
     FILE *fp;
     char *filename;
+    char *home_etc = getenv("HOME_ETC");
 
+    if (home_etc && fname[0] == '~') {
+	char buffer[1024];
+	snprintf(buffer, 1024, "%s%s", home_etc, fname+1);
+	filename=xstrdup(buffer);
+    } else
     filename = tildeexpand(fname, tilde_expand);
 
     fp = fopen(filename, "r");
diff -burN bogofilter-0.90.0.orig/src/paths.c bogofilter-0.90.0/src/paths.c
--- bogofilter-0.90.0.orig/src/paths.c	2004-02-24 14:50:00.000000000 +0100
+++ bogofilter-0.90.0/src/paths.c	2004-05-20 15:19:45.000000000 +0200
@@ -29,7 +29,7 @@
 #ifndef __riscos__
     { PR_ENV_BOGO, "BOGOFILTER_DIR", NULL },
     { PR_ENV_BOGO, "BOGODIR",	     NULL },
-    { PR_ENV_HOME, "HOME",	     BOGODIR }
+    { PR_ENV_HOME, "HOME_ETC",	     BOGODIR }
 #else
     { PR_ENV_HOME, "Choices$Write",  BOGODIR },
     { PR_ENV_HOME, "Bogofilter$Dir", NULL },
@@ -104,6 +104,7 @@
     size_t path_size, env_size;
 
     env = getenv(var);
+    if (env == NULL && strcmp(var, "HOME_ETC") == 0) env = getenv("HOME");
     if (env == NULL || *env == '\0') return NULL;
 
     env_size = strlen(env);
-------------- następna część ---------
diff -burN bogofilter-0.90.0.orig/configure.ac bogofilter-0.90.0/configure.ac
--- bogofilter-0.90.0.orig/configure.ac	2004-05-10 02:49:14.000000000 +0200
+++ bogofilter-0.90.0/configure.ac	2004-05-20 15:16:54.974216712 +0200
@@ -518,7 +518,7 @@
 export PATH
 
 need_my_gsl=1
-AC_ARG_WITH(included-gsl, AC_HELP_STRING([--with-included-gsl],[force use of shipped GSL rather than system GSL]),
+AC_ARG_WITH(included-gsl, ([--with-included-gsl],[force use of shipped GSL rather than system GSL]),
 if test "x$WITHVAL" != "xyes" ; then need_my_gsl=2 ; fi)
 
 if test "$need_my_gsl" = 1 ; then
-------------- następna część ---------
diff -burN bogofilter.spec.orig bogofilter.spec
--- bogofilter.spec.orig	2004-05-20 16:00:00.000000000 +0200
+++ bogofilter.spec	2004-05-20 16:02:13.000000000 +0200
@@ -2,13 +2,13 @@
 Summary:	Bayesian Spam Filter
 Summary(pl):	Bayesjański Filtr Antyspamowy
 Name:		bogofilter
-Version:	0.16.4
+Version:	0.90.0
 Release:	1
 License:	GPL
 Group:		Applications/Mail
 Vendor:		Eric S. Raymond <esr w thyrsus.com>
 Source0:	http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
-# Source0-md5:	3f20cdd44b80a08d2114c5d95d485915
+# Source0-md5:	fa643169dd298a842dabd43b8ea5c4a1
 Patch0:		%{name}-home_etc.patch
 Patch1:		%{name}-dummy.patch
 URL:		http://bogofilter.sourceforge.net/


Więcej informacji o liście dyskusyjnej pld-devel-pl