Date: Fri, 16 May 2008 21:51:35 +0400 (MSD) From: Alexander Zhuravlev <zaa@zaa.pp.ru> To: FreeBSD-gnats-submit@FreeBSD.org Cc: umq@ueo.co.jp Subject: ports/123738: [PATCH] Fixed mail/dkim-milter build with WITH_POSTFIX_MILTER option being enabled Message-ID: <20080516175135.D9EEC5647F@mx0.ulstu.ru> Resent-Message-ID: <200805161820.m4GIK4Su050550@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 123738 >Category: ports >Synopsis: [PATCH] Fixed mail/dkim-milter build with WITH_POSTFIX_MILTER option being enabled >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri May 16 18:20:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Alexander Zhuravlev >Release: FreeBSD 7.0-STABLE amd64 >Organization: >Environment: System: FreeBSD sirius.ulstu.ru 7.0-STABLE FreeBSD 7.0-STABLE #1: Sun May 4 16:15:13 MSD 2008 root@sirius.ulstu.ru:/usr/obj/usr/src/sys/SIRIUS-s amd64 >Description: I've just tried to build the port with WITH_POSTFIX_MILTER option being enabled and got the error mentioned below: ========================================================================================== sirius:...mail/dkim-milter> make WITH_POSTFIX_MILTER=yes WITH_VERIFY_DOMAINKEYS=yes install ... install -o root -g wheel -m 444 /usr/obj/usr/ports/mail/dkim-milter/work/dkim-milter-2.5.5/libdkim/docs/`/usr/bin/basename /libdkim/rfc2822_mailbox_split.html` /usr/local/share/doc/dkim-milter/libdkim/ cat: pkg-message.postfix: No such file or directory *** Error code 1 Stop in /usr/ports/mail/dkim-milter. ========================================================================================== >How-To-Repeat: >Fix: I've managed to successfully install the port by applying the following patch. --- dkim-milter.diff begins here --- diff -urbN -urbBN dkim-milter.orig/Makefile dkim-milter/Makefile --- dkim-milter.orig/Makefile 2008-05-15 21:37:08.000000000 +0400 +++ dkim-milter/Makefile 2008-05-16 21:26:17.000000000 +0400 @@ -24,9 +24,14 @@ USE_RC_SUBR= milter-dkim.sh USE_OPENSSL= yes +SUB_FILES= milter-dkim.sh +SUB_LIST= RC_SCRIPT=${PREFIX}/etc/rc.d/${USE_RC_SUBR:S/.sh$//}${RC_SUBR_SUFFIX} \ + DESTDIR=${DESTDIR} + .if defined(WITH_POSTFIX_MILTER) || defined(WITH_POSTFIX) || defined(WITH_POSTFIX_CURRENT) WITH_SENDMAIL_BASE= yes -PKGMESSAGE= pkg-message.postfix +SUB_FILES+= pkg-message.postfix +PKGMESSAGE= ${WRKDIR}/pkg-message.postfix .if defined(SENDMAIL_MILTER_IN_BASE) WITH_SENDMAIL_BASE=yes @@ -39,7 +44,6 @@ .endif .endif -SUB_FILES= milter-dkim.sh WCONF= ${WRKSRC}/devtools/Site MAN5= dkim-filter.conf.5 MAN8= dkim-filter.8 dkim-genkey.8 dkim-testkey.8 dkim-testssp.8 @@ -153,8 +157,6 @@ SITE_SUB+= -e 's|%%STATIC%%|dnl |g' .endif -SUB_LIST= "RC_SCRIPT=${PREFIX}/etc/rc.d/${USE_RC_SUBR:S/.sh$//}${RC_SUBR_SUFFIX}" - .if defined(WITH_LIBDKIM_SHARED) .if ${ARCH} == "amd64" BROKEN= The devtools do not support the feature diff -urbN -urbBN dkim-milter.orig/files/pkg-message.postfix.in dkim-milter/files/pkg-message.postfix.in --- dkim-milter.orig/files/pkg-message.postfix.in 1970-01-01 03:00:00.000000000 +0300 +++ dkim-milter/files/pkg-message.postfix.in 2008-05-16 21:27:06.000000000 +0400 @@ -0,0 +1,15 @@ +************************************************************************ + +In order to run this port, please add the following lines to +%%PREFIX%%/etc/mail/main.cf: + +smtpd_milters = unix:/var/run/milterdkim/filter + +And to run the milter from startup, add milterdkim_enable="YES" in +your %%DESTDIR%%/etc/rc.conf. +Extra options can be found in startup script. + +Note: milter sockets must be accessible from postfix/smtpd; + using inet sockets might be preferred. + +************************************************************************ diff -urbN -urbBN dkim-milter.orig/pkg-message.postfix dkim-milter/pkg-message.postfix --- dkim-milter.orig/pkg-message.postfix 2006-10-01 19:06:48.000000000 +0400 +++ dkim-milter/pkg-message.postfix 1970-01-01 03:00:00.000000000 +0300 @@ -1,15 +0,0 @@ -************************************************************************ - -In order to run this port, please add the following lines to -${PREFIX}/etc/mail/main.cf: - -smtpd_milters = unix:/var/run/milterdkim/filter - -And to run the milter from startup, add milterdkim_enable="YES" in -your /etc/rc.conf. -Extra options can be found in startup script. - -Note: milter sockets must be accessible from postfix/smtpd; - using inet sockets might be preferred. - -************************************************************************ --- dkim-milter.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080516175135.D9EEC5647F>