aboutsummaryrefslogtreecommitdiff
path: root/mail/postfix
diff options
context:
space:
mode:
authorMarcus Alves Grando <mnag@FreeBSD.org>2008-03-01 01:44:30 +0000
committerMarcus Alves Grando <mnag@FreeBSD.org>2008-03-01 01:44:30 +0000
commit4d3a4a18f026167d83ffc987ee57023e2b22ea75 (patch)
tree26f0979516fa5b1699ddee545562665b0fb9c847 /mail/postfix
parent2c30bfd80b5111e72dae6684a54ba7ce21b4307e (diff)
downloadports-4d3a4a18f026167d83ffc987ee57023e2b22ea75.tar.gz
ports-4d3a4a18f026167d83ffc987ee57023e2b22ea75.zip
- Fix data_directory
PR: 121236 Submitted by: Artis Caune <Artis.Caune___latnet.lv>
Notes
Notes: svn path=/head/; revision=208228
Diffstat (limited to 'mail/postfix')
-rw-r--r--mail/postfix/Makefile2
-rw-r--r--mail/postfix/files/patch-conf::main.cf17
-rw-r--r--mail/postfix/files/patch-conf__postfix-files11
-rw-r--r--mail/postfix/pkg-install1
4 files changed, 26 insertions, 5 deletions
diff --git a/mail/postfix/Makefile b/mail/postfix/Makefile
index 4404bde9baea..d90447f37a44 100644
--- a/mail/postfix/Makefile
+++ b/mail/postfix/Makefile
@@ -7,6 +7,7 @@
PORTNAME= postfix
PORTVERSION= 2.5.1
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= mail ipv6
MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \
@@ -260,6 +261,7 @@ pre-install:
do-install:
cd ${WRKSRC}; ${SH} postfix-install -non-interactive install_root=/ tempdir=/tmp \
config_directory=${PREFIX}/etc/postfix \
+ data_directory=/var/db/postfix \
daemon_directory=${PREFIX}/libexec/postfix \
command_directory=${PREFIX}/sbin \
queue_directory=/var/spool/postfix \
diff --git a/mail/postfix/files/patch-conf::main.cf b/mail/postfix/files/patch-conf::main.cf
index a9cb3c360058..14976bcaa09c 100644
--- a/mail/postfix/files/patch-conf::main.cf
+++ b/mail/postfix/files/patch-conf::main.cf
@@ -1,6 +1,6 @@
---- conf/main.cf.orig Mon Mar 27 15:58:38 2006
-+++ conf/main.cf Mon Mar 27 15:59:02 2006
-@@ -33,13 +33,13 @@
+--- conf/main.cf.orig 2007-12-18 11:50:25.000000000 -0200
++++ conf/main.cf 2008-02-29 22:35:12.000000000 -0300
+@@ -33,19 +33,19 @@
# The command_directory parameter specifies the location of all
# postXXX commands.
#
@@ -14,9 +14,16 @@
-daemon_directory = /usr/libexec/postfix
+daemon_directory = !!PREFIX!!/libexec/postfix
+ # The data_directory parameter specifies the location of Postfix-writable
+ # data files (caches, random numbers). This directory must be owned
+ # by the mail_owner account (see below).
+ #
+-data_directory = /var/lib/postfix
++data_directory = /var/db/postfix
+
# QUEUE AND PROCESS OWNERSHIP
#
-@@ -238,7 +238,7 @@
+@@ -244,7 +244,7 @@
#
#mynetworks_style = class
#mynetworks_style = subnet
@@ -25,7 +32,7 @@
# Alternatively, you can specify the mynetworks list by hand, in
# which case Postfix ignores the mynetworks_style setting.
-@@ -609,37 +609,37 @@
+@@ -615,37 +615,37 @@
# sendmail_path: The full pathname of the Postfix sendmail command.
# This is the Sendmail-compatible mail posting interface.
#
diff --git a/mail/postfix/files/patch-conf__postfix-files b/mail/postfix/files/patch-conf__postfix-files
new file mode 100644
index 000000000000..bbd19c09b38d
--- /dev/null
+++ b/mail/postfix/files/patch-conf__postfix-files
@@ -0,0 +1,11 @@
+--- conf/postfix-files.orig 2008-01-24 00:13:49.000000000 +0000
++++ conf/postfix-files 2008-02-29 20:53:24.000000000 +0000
+@@ -42,7 +42,7 @@
+ # permissions, so that running "make install" fixes any glitches.
+ #
+ $config_directory:d:root:-:755:u
+-$data_directory:d:$mail_owner:-:700:u
++$data_directory:d:$mail_owner:-:700:uc
+ $daemon_directory:d:root:-:755:u
+ $queue_directory:d:root:-:755:uc
+ $sample_directory:d:root:-:755:o
diff --git a/mail/postfix/pkg-install b/mail/postfix/pkg-install
index c9367b344499..4d847638d846 100644
--- a/mail/postfix/pkg-install
+++ b/mail/postfix/pkg-install
@@ -121,6 +121,7 @@ if [ x"$2" = xPOST-INSTALL ]; then
/bin/sh ${PKG_PREFIX}/etc/postfix/post-install tempdir=/tmp \
config_directory=${PKG_PREFIX}/etc/postfix \
+ data_directory=/var/db/postfix \
daemon_directory=${PKG_PREFIX}/libexec/postfix \
command_directory=${PKG_PREFIX}/sbin \
queue_directory=/var/spool/postfix \