fix building on a clean machine (broken due to changes in postconf) -

reported by nigel@, ok Brad.
This commit is contained in:
sthen 2011-11-13 16:20:00 +00:00
parent e6f6d3ee96
commit efd0f68cac
3 changed files with 16 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile.inc,v 1.81 2011/05/09 21:56:13 sthen Exp $
# $OpenBSD: Makefile.inc,v 1.82 2011/11/13 16:20:00 sthen Exp $
COMMENT= fast, secure sendmail replacement
@ -98,7 +98,7 @@ do-configure:
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/postfix
@(cd ${WRKSRC}; sh postfix-install \
@(cd ${WRKSRC}; env SYSCONFDIR=${SYSCONFDIR} sh postfix-install \
-non-interactive \
mail_owner=_postfix \
setgid_group=_postdrop \

View File

@ -1,6 +1,7 @@
# $OpenBSD: Makefile,v 1.226 2011/11/10 17:27:09 sthen Exp $
# $OpenBSD: Makefile,v 1.227 2011/11/13 16:20:00 sthen Exp $
VERSION= 2.9-20111109
REVISION= 0
MASTER_SITES= ${MASTER_SITE_POSTFIX:=experimental/}

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-postfix-install,v 1.1 2011/11/13 16:20:00 sthen Exp $
--- postfix-install.orig Sun Nov 13 17:01:04 2011
+++ postfix-install Sun Nov 13 17:01:20 2011
@@ -363,7 +363,7 @@ HTML files. Specify \"no\" if you do not want to insta
: ${install_root=/}
: ${tempdir=`pwd`}
-: ${config_directory=`bin/postconf -h -d config_directory`}
+: ${config_directory=`bin/postconf -h -d config_directory || echo ${SYSCONFDIR}/postfix`}
# Find out the location of installed configuration files.