summaryrefslogtreecommitdiff
path: root/mail/postfix/patches
diff options
context:
space:
mode:
authormartti <martti>2004-06-21 16:13:23 +0000
committermartti <martti>2004-06-21 16:13:23 +0000
commit37eb0704eb4ea914f1864b5dc4d5efc6e8c04b65 (patch)
tree9f0dffe178e641982420bf6b1fa40434939c0302 /mail/postfix/patches
parent55ed7a1ccc5baabfb063e3055799e8df43508f95 (diff)
downloadpkgsrc-37eb0704eb4ea914f1864b5dc4d5efc6e8c04b65.tar.gz
Updated postfix to 2.1.3
This is the new 2.1.x series, please see www.postfix.org for complete list of changes since 2.0.20.
Diffstat (limited to 'mail/postfix/patches')
-rw-r--r--mail/postfix/patches/patch-aa15
-rw-r--r--mail/postfix/patches/patch-ad13
-rw-r--r--mail/postfix/patches/patch-ae27
-rw-r--r--mail/postfix/patches/patch-af17
-rw-r--r--mail/postfix/patches/patch-ag16
-rw-r--r--mail/postfix/patches/patch-ai19
-rw-r--r--mail/postfix/patches/patch-ba12
-rw-r--r--mail/postfix/patches/patch-bb12
-rw-r--r--mail/postfix/patches/patch-bc33
-rw-r--r--mail/postfix/patches/patch-bd42
10 files changed, 35 insertions, 171 deletions
diff --git a/mail/postfix/patches/patch-aa b/mail/postfix/patches/patch-aa
index 12d3025fdbd..b7b9b847da8 100644
--- a/mail/postfix/patches/patch-aa
+++ b/mail/postfix/patches/patch-aa
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.13 2003/05/01 14:07:58 jmmv Exp $
+$NetBSD: patch-aa,v 1.14 2004/06/21 16:13:23 martti Exp $
---- postfix-install.orig 2003-03-21 20:04:53.000000000 +0100
-+++ postfix-install
-@@ -338,33 +338,13 @@ README files. Specify \"no\" if you do n
+--- postfix-install.orig 2004-04-14 11:45:23.000000000 -0400
++++ postfix-install 2004-05-23 22:32:31.000000000 -0400
+@@ -354,33 +354,13 @@
: ${tempdir=`pwd`}
: ${config_directory=`bin/postconf -h -d config_directory`}
@@ -37,7 +37,7 @@ $NetBSD: patch-aa,v 1.13 2003/05/01 14:07:58 jmmv Exp $
# If a parameter is not set via the command line or environment,
# try to use settings from installed configuration files.
-@@ -652,13 +632,3 @@ bin/postconf -c $CONFIG_DIRECTORY -e \
+@@ -715,10 +695,3 @@
"sample_directory = $sample_directory" \
"readme_directory = $readme_directory" \
|| exit 1
@@ -46,8 +46,5 @@ $NetBSD: patch-aa,v 1.13 2003/05/01 14:07:58 jmmv Exp $
-# post-install processing now.
-
-test -n "$install_root" || {
-- export daemon_directory command_directory queue_directory sendmail_path \
-- newaliases_path mailq_path mail_owner setgid_group manpage_directory \
-- sample_directory readme_directory
-- ${SHELL} conf/post-install $post_install_options || exit 1
+- bin/postfix post-install $post_install_options || exit 1
-}
diff --git a/mail/postfix/patches/patch-ad b/mail/postfix/patches/patch-ad
deleted file mode 100644
index 76ebd38529f..00000000000
--- a/mail/postfix/patches/patch-ad
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ad,v 1.7 2004/01/21 06:56:48 martti Exp $
-
---- conf/sample-misc.cf.orig 2003-08-12 19:20:19.000000000 +0300
-+++ conf/sample-misc.cf 2004-01-21 08:40:15.000000000 +0200
-@@ -360,7 +360,7 @@
- # The daemon_directory parameter specifies the location of Postfix
- # support programs and daemons. This directory must be owned by root.
- #
--daemon_directory = /usr/libexec/postfix
-+daemon_directory = __PREFIX/libexec/postfix
-
- # The queue_directory specifies the location of the Postfix queue.
- # This is also the root directory of Postfix daemons that run chrooted.
diff --git a/mail/postfix/patches/patch-ae b/mail/postfix/patches/patch-ae
index 821ebcc8edd..67bee93791c 100644
--- a/mail/postfix/patches/patch-ae
+++ b/mail/postfix/patches/patch-ae
@@ -1,8 +1,8 @@
-$NetBSD: patch-ae,v 1.7 2004/03/05 22:59:32 grant Exp $
+$NetBSD: patch-ae,v 1.8 2004/06/21 16:13:23 martti Exp $
---- src/global/mail_params.h.orig 2003-03-04 09:07:03.000000000 +1100
-+++ src/global/mail_params.h
-@@ -64,7 +64,7 @@ extern uid_t var_owner_uid;
+--- src/global/mail_params.h.orig 2004-04-21 14:56:04.000000000 -0400
++++ src/global/mail_params.h 2004-05-23 22:44:13.000000000 -0400
+@@ -64,7 +64,7 @@
extern gid_t var_owner_gid;
#define VAR_SGID_GROUP "setgid_group"
@@ -11,14 +11,8 @@ $NetBSD: patch-ae,v 1.7 2004/03/05 22:59:32 grant Exp $
extern char *var_sgid_group;
extern gid_t var_sgid_gid;
-@@ -187,18 +187,18 @@ extern char *var_queue_dir;
+@@ -202,13 +202,13 @@
*/
- #define VAR_PROGRAM_DIR "program_directory"
- #ifndef DEF_PROGRAM_DIR
--#define DEF_PROGRAM_DIR "/usr/libexec/postfix"
-+#define DEF_PROGRAM_DIR "__PREFIX/libexec/postfix"
- #endif
-
#define VAR_DAEMON_DIR "daemon_directory"
#ifndef DEF_DAEMON_DIR
-#define DEF_DAEMON_DIR "/usr/libexec/postfix"
@@ -33,14 +27,3 @@ $NetBSD: patch-ae,v 1.7 2004/03/05 22:59:32 grant Exp $
#endif
extern char *var_command_dir;
-@@ -324,6 +324,10 @@ extern char *var_send_canon_maps;
- #define DEF_RCPT_CANON_MAPS ""
- extern char *var_rcpt_canon_maps;
-
-+#define VAR_CANON_ENV_RCPT "canonicalize_envelope_recipient"
-+#define DEF_CANON_ENV_RCPT 1
-+extern bool var_canon_env_rcpt;
-+
- #define VAR_TRANSPORT_MAPS "transport_maps"
- #define DEF_TRANSPORT_MAPS ""
- extern char *var_transport_maps;
diff --git a/mail/postfix/patches/patch-af b/mail/postfix/patches/patch-af
index 81118455aac..14d5ff2e173 100644
--- a/mail/postfix/patches/patch-af
+++ b/mail/postfix/patches/patch-af
@@ -1,8 +1,8 @@
-$NetBSD: patch-af,v 1.18 2004/01/21 06:56:48 martti Exp $
+$NetBSD: patch-af,v 1.19 2004/06/21 16:13:23 martti Exp $
---- conf/main.cf.orig 2003-09-06 03:30:35.000000000 +0300
-+++ conf/main.cf 2004-01-21 08:40:42.000000000 +0200
-@@ -31,13 +31,18 @@
+--- conf/main.cf.orig 2004-04-15 09:27:21.000000000 -0400
++++ conf/main.cf 2004-05-23 22:51:16.000000000 -0400
+@@ -32,13 +32,18 @@
# The command_directory parameter specifies the location of all
# postXXX commands.
#
@@ -23,7 +23,7 @@ $NetBSD: patch-af,v 1.18 2004/01/21 06:56:48 martti Exp $
# QUEUE AND PROCESS OWNERSHIP
#
-@@ -55,7 +60,7 @@
+@@ -56,7 +61,7 @@
# These rights are used in the absence of a recipient user context.
# DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER.
#
@@ -32,19 +32,24 @@ $NetBSD: patch-af,v 1.18 2004/01/21 06:56:48 martti Exp $
# INTERNET HOST AND DOMAIN NAMES
#
-@@ -621,16 +626,16 @@
+@@ -611,7 +616,7 @@
# commands. This must be a group name with a numerical group ID that
# is not shared with other accounts, not even with the Postfix account.
#
-setgid_group =
+setgid_group = maildrop
+ # html_directory: The location of the Postfix HTML documentation.
+ #
+@@ -619,13 +624,13 @@
+
# manpage_directory: The location of the Postfix on-line manual pages.
#
-manpage_directory =
+manpage_directory = __PREFIX/man
# sample_directory: The location of the Postfix sample configuration files.
+ # This parameter is obsolete as of Postfix 2.1.
#
-sample_directory =
+sample_directory = __PREFIX/share/examples/postfix
diff --git a/mail/postfix/patches/patch-ag b/mail/postfix/patches/patch-ag
index 78d14bc76e9..e2c6243ff45 100644
--- a/mail/postfix/patches/patch-ag
+++ b/mail/postfix/patches/patch-ag
@@ -1,10 +1,10 @@
-$NetBSD: patch-ag,v 1.11 2004/05/04 19:59:06 minskim Exp $
+$NetBSD: patch-ag,v 1.12 2004/06/21 16:13:24 martti Exp $
---- src/util/sys_defs.h.orig 2003-11-05 14:17:37.000000000 -0600
-+++ src/util/sys_defs.h
-@@ -48,8 +48,13 @@
- #endif
- #define GETTIMEOFDAY(t) gettimeofday(t,(struct timezone *) 0)
+--- src/util/sys_defs.h.orig 2004-06-14 21:13:40.000000000 +0300
++++ src/util/sys_defs.h 2004-06-20 11:40:54.000000000 +0300
+@@ -127,8 +127,13 @@
+ #define ALIAS_DB_MAP "hash:/etc/aliases"
+ #define GETTIMEOFDAY(t) gettimeofday(t,(struct timezone *) 0)
#define ROOT_PATH "/bin:/usr/bin:/sbin:/usr/sbin"
+#if (defined(__NetBSD__) && __NetBSD_Version__ >= 200040000) /* NetBSD 2.0D */
+#define USE_STATVFS
@@ -14,5 +14,5 @@ $NetBSD: patch-ag,v 1.11 2004/05/04 19:59:06 minskim Exp $
#define STATFS_IN_SYS_MOUNT_H
+#endif
#define HAS_POSIX_REGEXP
- #define HAS_ST_GEN /* struct stat contains inode generation number */
- #define NATIVE_SENDMAIL_PATH "/usr/sbin/sendmail"
+ #define NORETURN void
+ #define PRINTFLIKE(x,y)
diff --git a/mail/postfix/patches/patch-ai b/mail/postfix/patches/patch-ai
index 6bd03255b57..565e7ca757b 100644
--- a/mail/postfix/patches/patch-ai
+++ b/mail/postfix/patches/patch-ai
@@ -1,17 +1,8 @@
-$NetBSD: patch-ai,v 1.10 2004/04/14 12:55:20 minskim Exp $
+$NetBSD: patch-ai,v 1.11 2004/06/21 16:13:24 martti Exp $
---- makedefs.orig 2003-11-05 13:50:15.000000000 -0600
-+++ makedefs
-@@ -94,7 +94,7 @@ case "$SYSTEM.$RELEASE" in
- ;;
- OpenBSD.3*) SYSTYPE=OPENBSD3
- ;;
-- NetBSD.1*) SYSTYPE=NETBSD1
-+ NetBSD.*) SYSTYPE=NETBSD1
- ;;
- BSD/OS.2*) SYSTYPE=BSDI2
- ;;
-@@ -175,22 +175,6 @@ case "$SYSTEM.$RELEASE" in
+--- makedefs.orig 2004-04-14 14:59:43.000000000 -0400
++++ makedefs 2004-05-23 22:53:06.000000000 -0400
+@@ -182,22 +182,6 @@
SYSLIBS="-ldb"
;;
Linux.2*) SYSTYPE=LINUX2
@@ -34,7 +25,7 @@ $NetBSD: patch-ai,v 1.10 2004/04/14 12:55:20 minskim Exp $
# GDBM locks the DBM .pag file after open. This breaks postmap.
# if [ -f /usr/include/gdbm-ndbm.h ]
# then
-@@ -201,7 +185,6 @@ case "$SYSTEM.$RELEASE" in
+@@ -208,7 +192,6 @@
# CCARGS="$CCARGS -DHAS_DBM -DPATH_NDBM_H='<gdbm/ndbm.h>'"
# GDBM_LIBS=gdbm
# fi
diff --git a/mail/postfix/patches/patch-ba b/mail/postfix/patches/patch-ba
deleted file mode 100644
index 809415bf42e..00000000000
--- a/mail/postfix/patches/patch-ba
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-ba,v 1.7 2004/03/05 22:59:32 grant Exp $
-
---- src/cleanup/cleanup.c.orig 2003-08-10 10:40:30.000000000 +1000
-+++ src/cleanup/cleanup.c
-@@ -333,6 +333,7 @@ int main(int argc, char **argv)
- * Pass control to the single-threaded service skeleton.
- */
- single_server_main(argc, argv, cleanup_service,
-+ MAIL_SERVER_BOOL_TABLE, cleanup_bool_table,
- MAIL_SERVER_INT_TABLE, cleanup_int_table,
- MAIL_SERVER_STR_TABLE, cleanup_str_table,
- MAIL_SERVER_TIME_TABLE, cleanup_time_table,
diff --git a/mail/postfix/patches/patch-bb b/mail/postfix/patches/patch-bb
deleted file mode 100644
index 9540af4e645..00000000000
--- a/mail/postfix/patches/patch-bb
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-bb,v 1.4 2004/03/05 22:59:32 grant Exp $
-
---- src/cleanup/cleanup.h.orig 2002-12-04 01:58:11.000000000 +1100
-+++ src/cleanup/cleanup.h
-@@ -118,6 +118,7 @@ extern void cleanup_free(CLEANUP_STATE *
- extern void cleanup_all(void);
- extern void cleanup_pre_jail(char *, char **);
- extern void cleanup_post_jail(char *, char **);
-+extern CONFIG_BOOL_TABLE cleanup_bool_table[];
- extern CONFIG_INT_TABLE cleanup_int_table[];
- extern CONFIG_STR_TABLE cleanup_str_table[];
- extern CONFIG_TIME_TABLE cleanup_time_table[];
diff --git a/mail/postfix/patches/patch-bc b/mail/postfix/patches/patch-bc
deleted file mode 100644
index 43607190e12..00000000000
--- a/mail/postfix/patches/patch-bc
+++ /dev/null
@@ -1,33 +0,0 @@
-$NetBSD: patch-bc,v 1.4 2004/03/05 22:59:32 grant Exp $
-
---- src/cleanup/cleanup_envelope.c.orig 2003-05-23 07:03:20.000000000 +1000
-+++ src/cleanup/cleanup_envelope.c
-@@ -194,15 +194,19 @@ static void cleanup_envelope_process(CLE
- if (state->orig_rcpt == 0)
- state->orig_rcpt = mystrdup(buf);
- cleanup_rewrite_internal(clean_addr, *buf ? buf : var_empty_addr);
-- if (cleanup_rcpt_canon_maps)
-- cleanup_map11_internal(state, clean_addr, cleanup_rcpt_canon_maps,
-- cleanup_ext_prop_mask & EXT_PROP_CANONICAL);
-- if (cleanup_comm_canon_maps)
-- cleanup_map11_internal(state, clean_addr, cleanup_comm_canon_maps,
-- cleanup_ext_prop_mask & EXT_PROP_CANONICAL);
-- if (cleanup_masq_domains
-- && (cleanup_masq_flags & CLEANUP_MASQ_FLAG_ENV_RCPT))
-- cleanup_masquerade_internal(clean_addr, cleanup_masq_domains);
-+ if (var_canon_env_rcpt) {
-+ if (cleanup_rcpt_canon_maps)
-+ cleanup_map11_internal(state, clean_addr,
-+ cleanup_rcpt_canon_maps,
-+ cleanup_ext_prop_mask & EXT_PROP_CANONICAL);
-+ if (cleanup_comm_canon_maps)
-+ cleanup_map11_internal(state, clean_addr,
-+ cleanup_comm_canon_maps,
-+ cleanup_ext_prop_mask & EXT_PROP_CANONICAL);
-+ if (cleanup_masq_domains
-+ && (cleanup_masq_flags & CLEANUP_MASQ_FLAG_ENV_RCPT))
-+ cleanup_masquerade_internal(clean_addr, cleanup_masq_domains);
-+ }
- cleanup_out_recipient(state, state->orig_rcpt, STR(clean_addr));
- if (state->recip == 0)
- state->recip = mystrdup(STR(clean_addr));
diff --git a/mail/postfix/patches/patch-bd b/mail/postfix/patches/patch-bd
deleted file mode 100644
index 8df221accef..00000000000
--- a/mail/postfix/patches/patch-bd
+++ /dev/null
@@ -1,42 +0,0 @@
-$NetBSD: patch-bd,v 1.4 2004/03/05 22:59:32 grant Exp $
-
---- src/cleanup/cleanup_init.c.orig 2002-12-04 01:56:56.000000000 +1100
-+++ src/cleanup/cleanup_init.c
-@@ -6,6 +6,8 @@
- /* SYNOPSIS
- /* #include "cleanup.h"
- /*
-+/* CONFIG_BOOL_TABLE cleanup_bool_table[];
-+/*
- /* CONFIG_INT_TABLE cleanup_int_table[];
- /*
- /* CONFIG_STR_TABLE cleanup_str_table[];
-@@ -28,7 +30,7 @@
- /* for one-time initializations that must be done before any message
- /* processing can take place.
- /*
--/* cleanup_{int,str,time}_table[] specify configuration
-+/* cleanup_{bool,int,str,time}_table[] specify configuration
- /* parameters that must be initialized before calling any functions
- /* in this module. These tables satisfy the interface as specified in
- /* single_service(3).
-@@ -109,6 +111,7 @@ char *var_always_bcc; /* big brother
- int var_extra_rcpt_limit; /* recipient extract limit */
- char *var_rcpt_witheld; /* recipients not disclosed */
- char *var_masq_classes; /* what to masquerade */
-+bool var_canon_env_rcpt; /* canonicalize envelope recipient */
- int var_qattr_count_limit; /* named attribute limit */
- int var_body_check_len; /* when to stop body scan */
-
-@@ -145,6 +148,11 @@ CONFIG_STR_TABLE cleanup_str_table[] = {
- 0,
- };
-
-+CONFIG_BOOL_TABLE cleanup_bool_table[] = {
-+ VAR_CANON_ENV_RCPT, DEF_CANON_ENV_RCPT, &var_canon_env_rcpt,
-+ 0,
-+};
-+
- /*
- * Mappings.
- */