diff options
author | edwin <edwin@FreeBSD.org> | 2002-11-16 12:50:15 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2002-11-16 12:50:15 +0800 |
commit | a6a47ef614c242e4557f4d255c07954e919633c3 (patch) | |
tree | df8739c9855cf0d0a98b5d32cabf6aec137e8cac /mail | |
parent | 2b7f6e7b276432ec0f367069c498036d21f60ba9 (diff) | |
download | freebsd-ports-gnome-a6a47ef614c242e4557f4d255c07954e919633c3.tar.gz freebsd-ports-gnome-a6a47ef614c242e4557f4d255c07954e919633c3.tar.zst freebsd-ports-gnome-a6a47ef614c242e4557f4d255c07954e919633c3.zip |
Maintainer update to version 0.8.0.1
PR: ports/45238
Submitted by: Matthias Andree <matthias.andree@gmx.de>
Diffstat (limited to 'mail')
-rw-r--r-- | mail/bogofilter-current/Makefile | 2 | ||||
-rw-r--r-- | mail/bogofilter-current/files/patch-Makefile.in | 84 | ||||
-rw-r--r-- | mail/bogofilter-current/files/patch-config.c | 19 | ||||
-rw-r--r-- | mail/bogofilter-current/files/patch-configure | 20 | ||||
-rw-r--r-- | mail/bogofilter-current/files/patch-find_home.c | 59 | ||||
-rw-r--r-- | mail/bogofilter-current/files/patch-find_home.h | 36 | ||||
-rw-r--r-- | mail/bogofilter-current/files/patch-main.c | 29 | ||||
-rw-r--r-- | mail/bogofilter-current/files/patch-version.h | 6 | ||||
-rw-r--r-- | mail/bogofilter/Makefile | 2 | ||||
-rw-r--r-- | mail/bogofilter/files/patch-Makefile.in | 84 | ||||
-rw-r--r-- | mail/bogofilter/files/patch-config.c | 19 | ||||
-rw-r--r-- | mail/bogofilter/files/patch-configure | 20 | ||||
-rw-r--r-- | mail/bogofilter/files/patch-find_home.c | 59 | ||||
-rw-r--r-- | mail/bogofilter/files/patch-find_home.h | 36 | ||||
-rw-r--r-- | mail/bogofilter/files/patch-main.c | 29 | ||||
-rw-r--r-- | mail/bogofilter/files/patch-version.h | 6 |
16 files changed, 510 insertions, 0 deletions
diff --git a/mail/bogofilter-current/Makefile b/mail/bogofilter-current/Makefile index da27e5a2fbab..9d01b0e3dc23 100644 --- a/mail/bogofilter-current/Makefile +++ b/mail/bogofilter-current/Makefile @@ -7,6 +7,7 @@ PORTNAME= bogofilter PORTVERSION= 0.8.0 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -18,6 +19,7 @@ LIB_DEPENDS= db4.0:${PORTSDIR}/databases/db4 # This port needs PERL5 at run time, but not for the build. USE_PERL5= yes GNU_CONFIGURE= yes +PATCH_STRIP= -p1 CONFIGURE_ENV= CPPFLAGS="-I${PREFIX}/include/db4" \ LDFLAGS="-L${PREFIX}/lib" diff --git a/mail/bogofilter-current/files/patch-Makefile.in b/mail/bogofilter-current/files/patch-Makefile.in new file mode 100644 index 000000000000..3a9beefbd10b --- /dev/null +++ b/mail/bogofilter-current/files/patch-Makefile.in @@ -0,0 +1,84 @@ +--- bogofilter-0.8.0/Makefile.in Sat Nov 9 19:21:40 2002 ++++ bogofilter-0.8.0.1/Makefile.in Mon Nov 11 02:07:42 2002 +@@ -1,4 +1,4 @@ +-# Makefile.in generated by automake 1.7 from Makefile.am. ++# Makefile.in generated by automake 1.7.1 from Makefile.am. + # @configure_input@ + + # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 +@@ -119,7 +119,9 @@ + man1_MANS = bogofilter.1 bogoutil.1 bogoupgrade.1 bogolexer.1 + + # what to build that from +-MYCOMMON = xmalloc.h xmalloc.c xstrdup.h xstrdup.c globals.h debug.h debug.c ++MYCOMMON = xmalloc.h xmalloc.c xstrdup.h xstrdup.c globals.h debug.h \ ++debug.c find_home.c find_home.h ++ + + BUILT_SOURCES = version.h + +@@ -164,7 +166,8 @@ + check_PROGRAMS = debugtest$(EXEEXT) configtest$(EXEEXT) + PROGRAMS = $(bin_PROGRAMS) + +-am__objects_1 = xmalloc.$(OBJEXT) xstrdup.$(OBJEXT) debug.$(OBJEXT) ++am__objects_1 = xmalloc.$(OBJEXT) xstrdup.$(OBJEXT) debug.$(OBJEXT) \ ++ find_home.$(OBJEXT) + am_bogofilter_OBJECTS = bogofilter.$(OBJEXT) main.$(OBJEXT) \ + lexer.$(OBJEXT) datastore_db.$(OBJEXT) config.$(OBJEXT) \ + rstats.$(OBJEXT) wordhash.$(OBJEXT) wordlists.$(OBJEXT) \ +@@ -206,10 +209,11 @@ + @AMDEP_TRUE@ ./$(DEPDIR)/bogolexer.Po ./$(DEPDIR)/bogoutil.Po \ + @AMDEP_TRUE@ ./$(DEPDIR)/config.Po ./$(DEPDIR)/configtest.Po \ + @AMDEP_TRUE@ ./$(DEPDIR)/datastore_db.Po ./$(DEPDIR)/debug.Po \ +-@AMDEP_TRUE@ ./$(DEPDIR)/debug.main.Po ./$(DEPDIR)/lexer.Po \ +-@AMDEP_TRUE@ ./$(DEPDIR)/main.Po ./$(DEPDIR)/rstats.Po \ +-@AMDEP_TRUE@ ./$(DEPDIR)/wordhash.Po ./$(DEPDIR)/wordlists.Po \ +-@AMDEP_TRUE@ ./$(DEPDIR)/xmalloc.Po ./$(DEPDIR)/xstrdup.Po ++@AMDEP_TRUE@ ./$(DEPDIR)/debug.main.Po ./$(DEPDIR)/find_home.Po \ ++@AMDEP_TRUE@ ./$(DEPDIR)/lexer.Po ./$(DEPDIR)/main.Po \ ++@AMDEP_TRUE@ ./$(DEPDIR)/rstats.Po ./$(DEPDIR)/wordhash.Po \ ++@AMDEP_TRUE@ ./$(DEPDIR)/wordlists.Po ./$(DEPDIR)/xmalloc.Po \ ++@AMDEP_TRUE@ ./$(DEPDIR)/xstrdup.Po + COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) + CCLD = $(CC) +@@ -351,6 +355,7 @@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/datastore_db.Po@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/debug.Po@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/debug.main.Po@am__quote@ ++@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/find_home.Po@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lexer.Po@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rstats.Po@am__quote@ +@@ -567,9 +572,11 @@ + mkdir $(distdir) + $(mkinstalldirs) $(distdir)/. $(distdir)/contrib $(distdir)/doc + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ ++ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ ++ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ +@@ -628,7 +635,6 @@ + chmod a-w $(distdir) + dc_install_base=`$(am__cd) $(distdir)/=inst && pwd` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ +- && $(mkinstalldirs) $$dc_destdir \ + && cd $(distdir)/=build \ + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ + $(DISTCHECK_CONFIGURE_FLAGS) \ +@@ -641,7 +647,9 @@ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ +- && ({ $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ ++ && ({ \ ++ (cd ../.. && $(mkinstalldirs) "$$dc_destdir") \ ++ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ diff --git a/mail/bogofilter-current/files/patch-config.c b/mail/bogofilter-current/files/patch-config.c new file mode 100644 index 000000000000..d74fe009523a --- /dev/null +++ b/mail/bogofilter-current/files/patch-config.c @@ -0,0 +1,19 @@ +--- bogofilter-0.8.0/config.c Thu Oct 31 06:23:32 2002 ++++ bogofilter-0.8.0.1/config.c Mon Nov 11 02:06:36 2002 +@@ -21,6 +21,7 @@ + #include "wordlists.h" + #include "xmalloc.h" + #include "xstrdup.h" ++#include "find_home.h" + + #ifndef DEBUG_CONFIG + #define DEBUG_CONFIG(level) (verbose > level) +@@ -150,7 +151,7 @@ + + if ( *filename == '~' ) + { +- char *home = getenv( "HOME" ); ++ char *home = find_home(TRUE); + if ( home == NULL ) + { + fprintf( stderr, "Can't find $HOME.\n" ); diff --git a/mail/bogofilter-current/files/patch-configure b/mail/bogofilter-current/files/patch-configure new file mode 100644 index 000000000000..81f879c10b85 --- /dev/null +++ b/mail/bogofilter-current/files/patch-configure @@ -0,0 +1,20 @@ +--- bogofilter-0.8.0/configure Sat Nov 9 19:21:44 2002 ++++ bogofilter-0.8.0.1/configure Mon Nov 11 02:07:43 2002 +@@ -1500,7 +1500,7 @@ + + # Define the identity of the package. + PACKAGE=bogofilter +- VERSION=0.8.0 ++ VERSION=0.8.0.1 + + + cat >>confdefs.h <<_ACEOF +@@ -2563,7 +2563,7 @@ + if depmode=$depmode \ + source=conftest.c object=conftest.o \ + depfile=conftest.Po tmpdepfile=conftest.TPo \ +- $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && ++ $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 && + grep conftest.h conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + am_cv_CC_dependencies_compiler_type=$depmode diff --git a/mail/bogofilter-current/files/patch-find_home.c b/mail/bogofilter-current/files/patch-find_home.c new file mode 100644 index 000000000000..48db04825264 --- /dev/null +++ b/mail/bogofilter-current/files/patch-find_home.c @@ -0,0 +1,59 @@ +--- bogofilter-0.8.0/find_home.c Thu Jan 1 01:00:00 1970 ++++ bogofilter-0.8.0.1/find_home.c Mon Nov 11 02:05:44 2002 +@@ -0,0 +1,56 @@ ++/* find_home.c -- library function to figure out the home dir of current user */ ++ ++/* (C) 2002 by Matthias Andree <matthias.andree@gmx.de> ++ * ++ * This program is free software; you can redistribute it and/or modify ++ * it under the terms of version 2 of the GNU General Public License as ++ * published by the Free Software Foundation. ++ * ++ * This program is distributed in the hope that it will be useful, but ++ * WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * General Public License for more details, it is in the file named ++ * COPYING. ++ */ ++ ++/* $Id: find_home.c,v 1.5 2002/11/11 00:03:25 m-a Exp $ */ ++ ++#include <stdio.h> ++#include <stdlib.h> ++#include <string.h> ++ ++#include <unistd.h> ++#include <pwd.h> ++#include <sys/types.h> ++ ++#include "find_home.h" ++#include "xmalloc.h" ++#include "xstrdup.h" ++ ++/* This function will try to figure out the home directory of the user. ++ * ++ * If read_env is not zero, it will try to obtain the HOME environment ++ * variable and return if it is defined and not empty. ++ * ++ * Then, it will look up the password entry of the current effective ++ * user id and return the pw_dir field. ++ * ++ * This function returns NULL in case of failure. ++ */ ++const char *find_home(int read_env) { ++ char *r; ++ uid_t u; ++ struct passwd *pw; ++ ++ if (read_env) { ++ if ((r = getenv("HOME")) != NULL && *r != '\0') ++ return r; ++ } ++ ++ u = geteuid(); ++ pw = getpwuid(u); ++ if (pw != NULL) { ++ return pw -> pw_dir; ++ } ++ return NULL; ++} diff --git a/mail/bogofilter-current/files/patch-find_home.h b/mail/bogofilter-current/files/patch-find_home.h new file mode 100644 index 000000000000..4049260c2d6e --- /dev/null +++ b/mail/bogofilter-current/files/patch-find_home.h @@ -0,0 +1,36 @@ +--- bogofilter-0.8.0/find_home.h Thu Jan 1 01:00:00 1970 ++++ bogofilter-0.8.0.1/find_home.h Mon Nov 11 02:05:44 2002 +@@ -0,0 +1,33 @@ ++/* $Id: find_home.h,v 1.7 2002/11/11 00:03:25 m-a Exp $ */ ++ ++/* find_home.h -- library function to figure out the home dir of current user */ ++ ++#ifndef FIND_HOME_H ++#define FIND_HOME_H ++ ++/* (C) 2002 by Matthias Andree <matthias.andree@gmx.de> ++ * ++ * This program is free software; you can redistribute it and/or modify ++ * it under the terms of version 2 of the GNU General Public License as ++ * published by the Free Software Foundation. ++ * ++ * This program is distributed in the hope that it will be useful, but ++ * WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * General Public License for more details, it is in the file named ++ * COPYING. ++ */ ++ ++/*@null@*/ /*@observer@*/ ++const char * ++find_home(int read_env) /*@globals errno@*/; ++ ++/*@null@*/ /*@observer@*/ ++const char * ++find_home_user(const char *username) /*@globals errno@*/; ++ ++/*@only@*/ ++char * ++tildeexpand(const char *filename) /*@globals errno@*/; ++ ++#endif diff --git a/mail/bogofilter-current/files/patch-main.c b/mail/bogofilter-current/files/patch-main.c new file mode 100644 index 000000000000..a29e9a1f5862 --- /dev/null +++ b/mail/bogofilter-current/files/patch-main.c @@ -0,0 +1,29 @@ +--- bogofilter-0.8.0/main.c Wed Nov 6 01:07:59 2002 ++++ bogofilter-0.8.0.1/main.c Mon Nov 11 02:28:08 2002 +@@ -26,6 +26,9 @@ + #include "version.h" + #include "common.h" + #include "bogofilter.h" ++#include "find_home.h" ++#include "xmalloc.h" ++#include "xstrdup.h" + + #define BOGODIR ".bogofilter" + +@@ -254,6 +257,16 @@ + { + int exitcode; + ++ if (NULL == getenv("HOME")) { ++ const char *t; ++ if ((t = find_home(FALSE)) != NULL) { ++ char *t2 = xmalloc(strlen(t) + 6); ++ strcpy(t2, "HOME="); ++ strcat(t2, t); ++ putenv(xstrdup(t2)); /* putenv may leak memory by copying again */ ++ free(t2); ++ } ++ } + set_dir_from_env(directory, "HOME", BOGODIR); + set_dir_from_env(directory, "BOGOFILTER_DIR", NULL); + diff --git a/mail/bogofilter-current/files/patch-version.h b/mail/bogofilter-current/files/patch-version.h new file mode 100644 index 000000000000..a6cdb1d4607f --- /dev/null +++ b/mail/bogofilter-current/files/patch-version.h @@ -0,0 +1,6 @@ +--- bogofilter-0.8.0/version.h Sat Nov 9 19:22:01 2002 ++++ bogofilter-0.8.0.1/version.h Mon Nov 11 02:28:09 2002 +@@ -1,2 +1,2 @@ + #undef VERSION +-#define VERSION "0.8.0" ++#define VERSION "0.8.0.1" diff --git a/mail/bogofilter/Makefile b/mail/bogofilter/Makefile index da27e5a2fbab..9d01b0e3dc23 100644 --- a/mail/bogofilter/Makefile +++ b/mail/bogofilter/Makefile @@ -7,6 +7,7 @@ PORTNAME= bogofilter PORTVERSION= 0.8.0 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -18,6 +19,7 @@ LIB_DEPENDS= db4.0:${PORTSDIR}/databases/db4 # This port needs PERL5 at run time, but not for the build. USE_PERL5= yes GNU_CONFIGURE= yes +PATCH_STRIP= -p1 CONFIGURE_ENV= CPPFLAGS="-I${PREFIX}/include/db4" \ LDFLAGS="-L${PREFIX}/lib" diff --git a/mail/bogofilter/files/patch-Makefile.in b/mail/bogofilter/files/patch-Makefile.in new file mode 100644 index 000000000000..3a9beefbd10b --- /dev/null +++ b/mail/bogofilter/files/patch-Makefile.in @@ -0,0 +1,84 @@ +--- bogofilter-0.8.0/Makefile.in Sat Nov 9 19:21:40 2002 ++++ bogofilter-0.8.0.1/Makefile.in Mon Nov 11 02:07:42 2002 +@@ -1,4 +1,4 @@ +-# Makefile.in generated by automake 1.7 from Makefile.am. ++# Makefile.in generated by automake 1.7.1 from Makefile.am. + # @configure_input@ + + # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 +@@ -119,7 +119,9 @@ + man1_MANS = bogofilter.1 bogoutil.1 bogoupgrade.1 bogolexer.1 + + # what to build that from +-MYCOMMON = xmalloc.h xmalloc.c xstrdup.h xstrdup.c globals.h debug.h debug.c ++MYCOMMON = xmalloc.h xmalloc.c xstrdup.h xstrdup.c globals.h debug.h \ ++debug.c find_home.c find_home.h ++ + + BUILT_SOURCES = version.h + +@@ -164,7 +166,8 @@ + check_PROGRAMS = debugtest$(EXEEXT) configtest$(EXEEXT) + PROGRAMS = $(bin_PROGRAMS) + +-am__objects_1 = xmalloc.$(OBJEXT) xstrdup.$(OBJEXT) debug.$(OBJEXT) ++am__objects_1 = xmalloc.$(OBJEXT) xstrdup.$(OBJEXT) debug.$(OBJEXT) \ ++ find_home.$(OBJEXT) + am_bogofilter_OBJECTS = bogofilter.$(OBJEXT) main.$(OBJEXT) \ + lexer.$(OBJEXT) datastore_db.$(OBJEXT) config.$(OBJEXT) \ + rstats.$(OBJEXT) wordhash.$(OBJEXT) wordlists.$(OBJEXT) \ +@@ -206,10 +209,11 @@ + @AMDEP_TRUE@ ./$(DEPDIR)/bogolexer.Po ./$(DEPDIR)/bogoutil.Po \ + @AMDEP_TRUE@ ./$(DEPDIR)/config.Po ./$(DEPDIR)/configtest.Po \ + @AMDEP_TRUE@ ./$(DEPDIR)/datastore_db.Po ./$(DEPDIR)/debug.Po \ +-@AMDEP_TRUE@ ./$(DEPDIR)/debug.main.Po ./$(DEPDIR)/lexer.Po \ +-@AMDEP_TRUE@ ./$(DEPDIR)/main.Po ./$(DEPDIR)/rstats.Po \ +-@AMDEP_TRUE@ ./$(DEPDIR)/wordhash.Po ./$(DEPDIR)/wordlists.Po \ +-@AMDEP_TRUE@ ./$(DEPDIR)/xmalloc.Po ./$(DEPDIR)/xstrdup.Po ++@AMDEP_TRUE@ ./$(DEPDIR)/debug.main.Po ./$(DEPDIR)/find_home.Po \ ++@AMDEP_TRUE@ ./$(DEPDIR)/lexer.Po ./$(DEPDIR)/main.Po \ ++@AMDEP_TRUE@ ./$(DEPDIR)/rstats.Po ./$(DEPDIR)/wordhash.Po \ ++@AMDEP_TRUE@ ./$(DEPDIR)/wordlists.Po ./$(DEPDIR)/xmalloc.Po \ ++@AMDEP_TRUE@ ./$(DEPDIR)/xstrdup.Po + COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) + CCLD = $(CC) +@@ -351,6 +355,7 @@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/datastore_db.Po@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/debug.Po@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/debug.main.Po@am__quote@ ++@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/find_home.Po@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lexer.Po@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rstats.Po@am__quote@ +@@ -567,9 +572,11 @@ + mkdir $(distdir) + $(mkinstalldirs) $(distdir)/. $(distdir)/contrib $(distdir)/doc + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ ++ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ ++ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ +@@ -628,7 +635,6 @@ + chmod a-w $(distdir) + dc_install_base=`$(am__cd) $(distdir)/=inst && pwd` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ +- && $(mkinstalldirs) $$dc_destdir \ + && cd $(distdir)/=build \ + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ + $(DISTCHECK_CONFIGURE_FLAGS) \ +@@ -641,7 +647,9 @@ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ +- && ({ $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ ++ && ({ \ ++ (cd ../.. && $(mkinstalldirs) "$$dc_destdir") \ ++ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ diff --git a/mail/bogofilter/files/patch-config.c b/mail/bogofilter/files/patch-config.c new file mode 100644 index 000000000000..d74fe009523a --- /dev/null +++ b/mail/bogofilter/files/patch-config.c @@ -0,0 +1,19 @@ +--- bogofilter-0.8.0/config.c Thu Oct 31 06:23:32 2002 ++++ bogofilter-0.8.0.1/config.c Mon Nov 11 02:06:36 2002 +@@ -21,6 +21,7 @@ + #include "wordlists.h" + #include "xmalloc.h" + #include "xstrdup.h" ++#include "find_home.h" + + #ifndef DEBUG_CONFIG + #define DEBUG_CONFIG(level) (verbose > level) +@@ -150,7 +151,7 @@ + + if ( *filename == '~' ) + { +- char *home = getenv( "HOME" ); ++ char *home = find_home(TRUE); + if ( home == NULL ) + { + fprintf( stderr, "Can't find $HOME.\n" ); diff --git a/mail/bogofilter/files/patch-configure b/mail/bogofilter/files/patch-configure new file mode 100644 index 000000000000..81f879c10b85 --- /dev/null +++ b/mail/bogofilter/files/patch-configure @@ -0,0 +1,20 @@ +--- bogofilter-0.8.0/configure Sat Nov 9 19:21:44 2002 ++++ bogofilter-0.8.0.1/configure Mon Nov 11 02:07:43 2002 +@@ -1500,7 +1500,7 @@ + + # Define the identity of the package. + PACKAGE=bogofilter +- VERSION=0.8.0 ++ VERSION=0.8.0.1 + + + cat >>confdefs.h <<_ACEOF +@@ -2563,7 +2563,7 @@ + if depmode=$depmode \ + source=conftest.c object=conftest.o \ + depfile=conftest.Po tmpdepfile=conftest.TPo \ +- $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && ++ $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 && + grep conftest.h conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + am_cv_CC_dependencies_compiler_type=$depmode diff --git a/mail/bogofilter/files/patch-find_home.c b/mail/bogofilter/files/patch-find_home.c new file mode 100644 index 000000000000..48db04825264 --- /dev/null +++ b/mail/bogofilter/files/patch-find_home.c @@ -0,0 +1,59 @@ +--- bogofilter-0.8.0/find_home.c Thu Jan 1 01:00:00 1970 ++++ bogofilter-0.8.0.1/find_home.c Mon Nov 11 02:05:44 2002 +@@ -0,0 +1,56 @@ ++/* find_home.c -- library function to figure out the home dir of current user */ ++ ++/* (C) 2002 by Matthias Andree <matthias.andree@gmx.de> ++ * ++ * This program is free software; you can redistribute it and/or modify ++ * it under the terms of version 2 of the GNU General Public License as ++ * published by the Free Software Foundation. ++ * ++ * This program is distributed in the hope that it will be useful, but ++ * WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * General Public License for more details, it is in the file named ++ * COPYING. ++ */ ++ ++/* $Id: find_home.c,v 1.5 2002/11/11 00:03:25 m-a Exp $ */ ++ ++#include <stdio.h> ++#include <stdlib.h> ++#include <string.h> ++ ++#include <unistd.h> ++#include <pwd.h> ++#include <sys/types.h> ++ ++#include "find_home.h" ++#include "xmalloc.h" ++#include "xstrdup.h" ++ ++/* This function will try to figure out the home directory of the user. ++ * ++ * If read_env is not zero, it will try to obtain the HOME environment ++ * variable and return if it is defined and not empty. ++ * ++ * Then, it will look up the password entry of the current effective ++ * user id and return the pw_dir field. ++ * ++ * This function returns NULL in case of failure. ++ */ ++const char *find_home(int read_env) { ++ char *r; ++ uid_t u; ++ struct passwd *pw; ++ ++ if (read_env) { ++ if ((r = getenv("HOME")) != NULL && *r != '\0') ++ return r; ++ } ++ ++ u = geteuid(); ++ pw = getpwuid(u); ++ if (pw != NULL) { ++ return pw -> pw_dir; ++ } ++ return NULL; ++} diff --git a/mail/bogofilter/files/patch-find_home.h b/mail/bogofilter/files/patch-find_home.h new file mode 100644 index 000000000000..4049260c2d6e --- /dev/null +++ b/mail/bogofilter/files/patch-find_home.h @@ -0,0 +1,36 @@ +--- bogofilter-0.8.0/find_home.h Thu Jan 1 01:00:00 1970 ++++ bogofilter-0.8.0.1/find_home.h Mon Nov 11 02:05:44 2002 +@@ -0,0 +1,33 @@ ++/* $Id: find_home.h,v 1.7 2002/11/11 00:03:25 m-a Exp $ */ ++ ++/* find_home.h -- library function to figure out the home dir of current user */ ++ ++#ifndef FIND_HOME_H ++#define FIND_HOME_H ++ ++/* (C) 2002 by Matthias Andree <matthias.andree@gmx.de> ++ * ++ * This program is free software; you can redistribute it and/or modify ++ * it under the terms of version 2 of the GNU General Public License as ++ * published by the Free Software Foundation. ++ * ++ * This program is distributed in the hope that it will be useful, but ++ * WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * General Public License for more details, it is in the file named ++ * COPYING. ++ */ ++ ++/*@null@*/ /*@observer@*/ ++const char * ++find_home(int read_env) /*@globals errno@*/; ++ ++/*@null@*/ /*@observer@*/ ++const char * ++find_home_user(const char *username) /*@globals errno@*/; ++ ++/*@only@*/ ++char * ++tildeexpand(const char *filename) /*@globals errno@*/; ++ ++#endif diff --git a/mail/bogofilter/files/patch-main.c b/mail/bogofilter/files/patch-main.c new file mode 100644 index 000000000000..a29e9a1f5862 --- /dev/null +++ b/mail/bogofilter/files/patch-main.c @@ -0,0 +1,29 @@ +--- bogofilter-0.8.0/main.c Wed Nov 6 01:07:59 2002 ++++ bogofilter-0.8.0.1/main.c Mon Nov 11 02:28:08 2002 +@@ -26,6 +26,9 @@ + #include "version.h" + #include "common.h" + #include "bogofilter.h" ++#include "find_home.h" ++#include "xmalloc.h" ++#include "xstrdup.h" + + #define BOGODIR ".bogofilter" + +@@ -254,6 +257,16 @@ + { + int exitcode; + ++ if (NULL == getenv("HOME")) { ++ const char *t; ++ if ((t = find_home(FALSE)) != NULL) { ++ char *t2 = xmalloc(strlen(t) + 6); ++ strcpy(t2, "HOME="); ++ strcat(t2, t); ++ putenv(xstrdup(t2)); /* putenv may leak memory by copying again */ ++ free(t2); ++ } ++ } + set_dir_from_env(directory, "HOME", BOGODIR); + set_dir_from_env(directory, "BOGOFILTER_DIR", NULL); + diff --git a/mail/bogofilter/files/patch-version.h b/mail/bogofilter/files/patch-version.h new file mode 100644 index 000000000000..a6cdb1d4607f --- /dev/null +++ b/mail/bogofilter/files/patch-version.h @@ -0,0 +1,6 @@ +--- bogofilter-0.8.0/version.h Sat Nov 9 19:22:01 2002 ++++ bogofilter-0.8.0.1/version.h Mon Nov 11 02:28:09 2002 +@@ -1,2 +1,2 @@ + #undef VERSION +-#define VERSION "0.8.0" ++#define VERSION "0.8.0.1" |