1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Fast and robust mail transfer agent
8 HOMEPAGE= http://www.postfix.org/
12 SITES[main]= https://de.postfix.org/ftpmirror/official/
13 http://cdn.postfix.johnriley.me/mirrors/postfix-release/official/
14 http://mirror.lhsolutions.nl/postfix-release/official/
15 DISTFILE[1]= postfix-3.7.4.tar.gz:main
17 SPKGS[standard]= complete
27 OPTIONS_AVAILABLE= none
28 OPTIONS_STANDARD= none
30 BUILD_DEPENDS= openldap:dev:standard
31 openldap:client:standard
33 tinycdb:primary:standard
36 BUILDRUN_DEPENDS= icu:single:standard
40 EXRUN[cdb]= tinycdb:primary:standard
41 EXRUN[lmdb]= lmdb:primary:standard
42 EXRUN[ldap]= openldap:client:standard
45 GROUPS= postfix maildrop mail
46 USERGROUP_SPKG= primary
48 USES= cpe shebangfix mysql:client,build pgsql:client,build
49 pcre sqlite zlib:build ssl:openssl11
51 LICENSE= CUSTOM1:primary CUSTOM2:primary
52 LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
53 LICENSE_NAME= CUSTOM1:"Eclipse Public License v2.0"
54 CUSTOM2:"IBM Public License v1.0"
55 LICENSE_FILE= CUSTOM1:{{WRKDIR}}/LICENSE_EPL
56 CUSTOM2:{{WRKDIR}}/LICENSE_IBM
57 LICENSE_AWK= TERMS:"remainder of this text contains a copy"
58 LICENSE_SOURCE= TERMS:{{WRKSRC}}/LICENSE
61 FPC_EQUIVALENT= mail/postfix
62 SHEBANG_FILES= auxiliary/qshape/qshape.pl
64 RC_SUBR= postfix:primary
65 SUB_FILES= mailer.conf.postfix
67 SUB_LIST= REQUIRE="LOGIN cleanvar dovecot mysql postgresql slapd"
69 QMAKE_ARGS= -DDEF_CONFIG_DIR=\\\"{{PREFIX}}/etc/postfix\\\"
70 -DDEF_DAEMON_DIR=\\\"{{PREFIX}}/libexec/postfix\\\"
71 -DDEF_META_DIR=\\\"{{PREFIX}}/etc/postfix\\\"
72 -DDEF_COMMAND_DIR=\\\"{{PREFIX}}/sbin\\\"
73 -DDEF_SENDMAIL_PATH=\\\"{{PREFIX}}/sbin/sendmail\\\"
74 -DDEF_NEWALIAS_PATH=\\\"{{PREFIX}}/bin/newaliases\\\"
75 -DDEF_MAILQ_PATH=\\\"{{PREFIX}}/bin/mailq\\\"
76 -DDEF_MANPAGE_DIR=\\\"{{MANPREFIX}}/man\\\"
77 -DDEF_README_DIR=\\\"{{STD_DOCDIR}}\\\"
78 -DDEF_HTML_DIR=\\\"{{STD_DOCSIR}}\\\"
79 -DDEF_QUEUE_DIR=\\\"/var/spool/postfix\\\"
80 -DDEF_DATA_DIR=\\\"/var/db/postfix\\\"
81 -DDEF_MAIL_OWNER=\\\"postfix\\\"
82 -DDEF_SGID_GROUP=\\\"maildrop\\\"
83 -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"
84 -I{{LOCALBASE}}/include
85 -I{{LOCALBASE}}/include/mysql
103 ${ECHO_CMD} '$$manpage_directory/man1/posttls-finger.1:f:root:-:644' \
104 >> ${WRKSRC}/conf/postfix-files
105 ${ECHO_CMD} '$$command_directory/posttls-finger:f:root:-:755' \
106 >> ${WRKSRC}/conf/postfix-files
107 .for f in body_checks.5.html bounce.5.html postfix-power.png \
108 scache.8.html tlsmgr.8.html
109 ${ECHO_CMD} '$$html_directory/$f:f:root:-:644' \
110 >> ${WRKSRC}/conf/postfix-files
112 ${ECHO_CMD} '<HTML><BODY>See <A HREF="header_checks.5.html">header_checks.5.html</A></BODY></HTML>' \
113 > ${WRKSRC}/html/body_checks.5.html
114 ${REINPLACE_CMD} -E -e 's!^(#define DEF_SGID_GROUP[^"]+)"postdrop"$$!\1"maildrop"!' \
115 ${WRKSRC}/src/global/mail_params.h
116 ${FIND} ${WRKSRC}/README_FILES ${WRKSRC}/conf ${WRKSRC}/man \
117 -type f -a ! \( -name INSTALL -o -name aliases \) -print0| \
118 ${XARGS} -0 ${REINPLACE_CMD} -E -e '\
119 s!^PATH=.*!PATH=/bin:/sbin:/usr/bin:/usr/sbin:${PREFIX}/bin:${PREFIX}/sbin!;\
120 s!(_directory = )/usr/!\1${PREFIX}/!g;\
121 s!^(data_directory = /var/)lib/!\1db/!g;\
122 s!^\#(mynetworks_style = host)!\1!g;\
123 s!^(sendmail_path =)!\1 ${PREFIX}/sbin/sendmail!g;\
124 s!^(newaliases_path =)!\1 ${PREFIX}/bin/newaliases!g;\
125 s!^(mailq_path =)!\1 ${PREFIX}/bin/mailq!g;\
126 s!^(setgid_group =)!\1 maildrop!g;\
127 s!^(manpage_directory =)!\1 ${MANPREFIX}/man!g;\
128 s!^((html|readme)_directory =)!\1 ${STD_DOCDIR}!g;\
129 \!^\#alias_database = dbm:/etc/mail/aliases$$!d;\
130 s!(:|= )/etc/postfix!\1$$config_directory!g;\
131 s!/etc/postfix!${PREFIX}/etc/postfix!g;\
132 s!^(sample_directory =)!\1 ${PREFIX}/etc/postfix!g;\
133 s!($config_directory/(access|aliases|canonical|generic|header_checks|relocated|transport|virtual):f:root:-:644:)p1!\1o!;'
136 (cd ${WRKSRC} && ${MAKE} -f Makefile.init makefiles \
138 CCARGS="${QMAKE_ARGS}" \
140 shlib_directory="${PREFIX}/lib/postfix" \
143 AUXLIBS="${AUXLIBS}" && \
144 ${ECHO_CMD} "all: default" >> Makefile)
147 ${AWK} '/^Eclipse Public License/,/additional accurate notices/' \
148 ${WRKSRC}/LICENSE > ${WRKDIR}/LICENSE_EPL
149 ${AWK} '/^IBM PUBLIC LICENSE/,EOF' \
150 ${WRKSRC}/LICENSE > ${WRKDIR}/LICENSE_IBM
153 (cd ${WRKSRC} && ${MAKE} non-interactive-package \
154 install_root="${STAGEDIR}" \
155 tempdir="${WRKDIR}" \
156 shlib_directory="${PREFIX}/lib/postfix" \
157 config_directory="${PREFIX}/etc/postfix" \
158 command_directory="${PREFIX}/sbin" \
159 daemon_directory="${PREFIX}/libexec/postfix" \
160 meta_directory="${PREFIX}/etc/postfix" \
161 html_directory="${STD_DOCDIR}" \
162 mailq_path="${PREFIX}/bin/mailq" \
163 manpage_directory="${MANPREFIX}/man" \
164 newaliases_path="${PREFIX}/bin/newaliases" \
165 readme_directory="${STD_DOCDIR}" \
166 sendmail_path="${PREFIX}/sbin/sendmail" )
167 ${INSTALL_SCRIPT} ${WRKSRC}/auxiliary/rmail/rmail \
168 ${STAGEDIR}${PREFIX}/bin/rmail
169 ${INSTALL_SCRIPT} ${WRKSRC}/auxiliary/qshape/qshape.pl \
170 ${STAGEDIR}${PREFIX}/bin/qshape
171 ${INSTALL_MAN} ${WRKSRC}/man/man1/qshape.1 \
172 ${STAGEDIR}${MANPREFIX}/man/man1
173 ${MV} ${STAGEDIR}${ETCDIR}/main.cf \
174 ${STAGEDIR}${ETCDIR}/main.cf.sample
175 ${MV} ${STAGEDIR}${ETCDIR}/master.cf \
176 ${STAGEDIR}${ETCDIR}/master.cf.sample
177 ${MKDIR} ${STAGEDIR}${PREFIX}/share/postfix
178 ${INSTALL_DATA} ${WRKDIR}/mailer.conf.postfix \
179 ${STAGEDIR}${PREFIX}/share/postfix
180 # == chop dynamicmaps.cf entries into dedicated .cf files
181 .for f in pcre mysql pgsql sqlite ldap cdb lmdb
182 # adjust dynamicmaps.cf
183 ${GREP} -e "^#" -e "^${f}" ${STAGEDIR}${PREFIX}/etc/postfix/dynamicmaps.cf \
184 > ${STAGEDIR}${PREFIX}/etc/postfix/dynamicmaps.cf.d/${f}.cf && \
185 ${SED} -i'' -e '/${f}/d' ${STAGEDIR}${PREFIX}/etc/postfix/dynamicmaps.cf
186 # adjust / generate postfix-files for dynamic modules
187 ${SED} -i'' -e '/postfix-${f}.so/d' \
188 ${STAGEDIR}${PREFIX}/etc/postfix/postfix-files
189 ${ECHO} "# Do not edit this file." \
190 > ${STAGEDIR}${PREFIX}/etc/postfix/postfix-files.d/${f}-files
191 ${ECHO} "$$shlib_directory/postfix-${f}.so:f:root:-:755"\
192 >> ${STAGEDIR}${PREFIX}/etc/postfix/postfix-files.d/${f}-files
193 ${ECHO} "$$meta_directory/postfix-files.d/${f}-files:f:root:-:644"\
194 >> ${STAGEDIR}${PREFIX}/etc/postfix/postfix-files.d/${f}-files
195 ${ECHO} "$$meta_directory/dynamicmaps.cf.d/${f}.cf:f:root:-:644"\
196 >> ${STAGEDIR}${PREFIX}/etc/postfix/postfix-files.d/${f}-files
198 # Fix compressed man pages and strip executables
199 ${SED} -i'' -E -e "s|(man[158]/.*.[158]):|\1.gz:|g" \
200 ${STAGEDIR}${PREFIX}/etc/postfix/postfix-files
201 (cd ${STAGEDIR}${PREFIX}/libexec/postfix && \
202 ${STRIP_CMD} anvil bounce cleanup discard dnsblog error \
203 flush lmtp local master nqmgr oqmgr pickup pipe postscreen \
204 proxymap qmgr qmqpd scache showq smtp smtpd spawn tlsmgr \
205 tlsproxy trivial-rewrite verify virtual postlogd)
206 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/*
207 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/postfix/*.so
209 (cd ${WRKSRC}/bin && \
210 ${INSTALL_PROGRAM} qmqp-sink qmqp-source smtp-sink smtp-source\
211 ${STAGEDIR}${PREFIX}/bin/ )
212 (cd ${WRKSRC}/man/man1 && \
213 ${INSTALL_MAN} qmqp-sink.1 qmqp-source.1 smtp-sink.1 smtp-source.1\
214 ${STAGEDIR}${MANPREFIX}/man/man1/ )
216 [FILE:766:descriptions/desc.primary]
217 Postfix attempts to be fast, easy to administer, and secure, while at the
218 same time being sendmail-compatible enough to not upset existing users.
219 Thus, the outside has a sendmail-ish flavor, but the inside is
220 completely different.
223 - Connection cache for SMTP
224 - DSN status notifications
226 - Plug-in support for multiple SASL implementations (Cyrus, Dovecot)
227 - TLS encryption and authentication
228 - Configurable status notification message text
229 - Access control per client/sender/recipient/etc
230 - Content filter (built-in, external before queue, external after queue)
231 - Berkeley DB database
234 - PostgreSQL database
235 - Maildir and mailbox format
237 - VERP envelope return addresses
240 [FILE:65:descriptions/desc.cdb]
241 This package contains the constant database module for postfix.
244 [FILE:51:descriptions/desc.ldap]
245 This package contains the ldap module for postfix.
248 [FILE:66:descriptions/desc.lmdb]
249 This package contains the lightment memory db module for postfix.
252 [FILE:52:descriptions/desc.mysql]
253 This package contains the mysql module for postfix.
256 [FILE:57:descriptions/desc.pgsql]
257 This package contains the postgresql module for postfix.
260 [FILE:63:descriptions/desc.test]
261 This package contains the SMTP/LMTP test server and generator.
265 4c137a2303448f25993836837deeae87fac5d4d03af11ade8e9bead806328645 4833834 postfix-3.7.4.tar.gz
268 [FILE:2938:manifests/plist.primary]
269 @sample etc/postfix/main.cf.sample
270 @sample etc/postfix/master.cf.sample
286 etc/postfix/dynamicmaps.cf.d/
289 etc/postfix/postfix-files.d/
339 @(,maildrop,2755) sbin/postdrop
346 @(,maildrop,2755) sbin/postqueue
426 share/postfix/mailer.conf.postfix
427 @dir(,,755) /var/spool/postfix
428 @dir(,postfix,755) /var/spool/postfix/pid
429 @dir(postfix,,700) /var/db/postfix
430 @dir(postfix,,700) /var/spool/postfix/active
431 @dir(postfix,,700) /var/spool/postfix/bounce
432 @dir(postfix,,700) /var/spool/postfix/corrupt
433 @dir(postfix,,700) /var/spool/postfix/defer
434 @dir(postfix,,700) /var/spool/postfix/deferred
435 @dir(postfix,,700) /var/spool/postfix/flush
436 @dir(postfix,,700) /var/spool/postfix/hold
437 @dir(postfix,,700) /var/spool/postfix/incoming
438 @dir(postfix,,700) /var/spool/postfix/private
439 @dir(postfix,,700) /var/spool/postfix/saved
440 @dir(postfix,,700) /var/spool/postfix/trace
441 @dir(postfix,maildrop,710) /var/spool/postfix/public
442 @dir(postfix,maildrop,730) /var/spool/postfix/maildrop
445 [FILE:101:manifests/plist.cdb]
446 etc/postfix/dynamicmaps.cf.d/cdb.cf
447 etc/postfix/postfix-files.d/cdb-files
448 lib/postfix/postfix-cdb.so
451 [FILE:104:manifests/plist.ldap]
452 etc/postfix/dynamicmaps.cf.d/ldap.cf
453 etc/postfix/postfix-files.d/ldap-files
454 lib/postfix/postfix-ldap.so
457 [FILE:104:manifests/plist.lmdb]
458 etc/postfix/dynamicmaps.cf.d/lmdb.cf
459 etc/postfix/postfix-files.d/lmdb-files
460 lib/postfix/postfix-lmdb.so
463 [FILE:107:manifests/plist.mysql]
464 etc/postfix/dynamicmaps.cf.d/mysql.cf
465 etc/postfix/postfix-files.d/mysql-files
466 lib/postfix/postfix-mysql.so
469 [FILE:107:manifests/plist.pgsql]
470 etc/postfix/dynamicmaps.cf.d/pgsql.cf
471 etc/postfix/postfix-files.d/pgsql-files
472 lib/postfix/postfix-pgsql.so
475 [FILE:137:manifests/plist.test]
488 [FILE:1370:patches/patch-makedefs]
489 --- makedefs.orig 2022-01-23 20:53:41 UTC
491 @@ -339,7 +339,41 @@ case "$SYSTEM.$RELEASE" in
492 : ${SHLIB_ENV="LD_LIBRARY_PATH=`pwd`/lib"}
493 : ${PLUGIN_LD="${CC} -shared"}
495 + FreeBSD.11*) SYSTYPE=FREEBSD11
497 + : ${SHLIB_SUFFIX=.so}
498 + : ${SHLIB_CFLAGS=-fPIC}
499 + : ${SHLIB_LD="${CC} -shared"' -Wl,-soname,${LIB}'}
500 + : ${SHLIB_RPATH='-Wl,-rpath,${SHLIB_DIR}'}
501 + : ${SHLIB_ENV="LD_LIBRARY_PATH=`pwd`/lib"}
502 + : ${PLUGIN_LD="${CC} -shared"}
504 + FreeBSD.12*) SYSTYPE=FREEBSD12
506 + : ${SHLIB_SUFFIX=.so}
507 + : ${SHLIB_CFLAGS=-fPIC}
508 + : ${SHLIB_LD="${CC} -shared"' -Wl,-soname,${LIB}'}
509 + : ${SHLIB_RPATH='-Wl,-rpath,${SHLIB_DIR}'}
510 + : ${SHLIB_ENV="LD_LIBRARY_PATH=`pwd`/lib"}
511 + : ${PLUGIN_LD="${CC} -shared"}
513 + FreeBSD.13*) SYSTYPE=FREEBSD12
515 + : ${SHLIB_SUFFIX=.so}
516 + : ${SHLIB_CFLAGS=-fPIC}
517 + : ${SHLIB_LD="${CC} -shared"' -Wl,-soname,${LIB}'}
518 + : ${SHLIB_RPATH='-Wl,-rpath,${SHLIB_DIR}'}
519 + : ${SHLIB_ENV="LD_LIBRARY_PATH=`pwd`/lib"}
520 + : ${PLUGIN_LD="${CC} -shared"}
522 DragonFly.*) SYSTYPE=DRAGONFLY
524 + : ${SHLIB_SUFFIX=.so}
525 + : ${SHLIB_CFLAGS=-fPIC}
526 + : ${SHLIB_LD="${CC} -shared"' -Wl,-soname,${LIB}'}
527 + : ${SHLIB_RPATH='-Wl,-rpath,${SHLIB_DIR}'}
528 + : ${SHLIB_ENV="LD_LIBRARY_PATH=`pwd`/lib"}
529 + : ${PLUGIN_LD="${CC} -shared"}
531 OpenBSD.2*) SYSTYPE=OPENBSD2
535 [FILE:212:files/mailer.conf.postfix.in]
537 # Execute the Postfix sendmail program, named %%PREFIX%%/sbin/sendmail
539 sendmail %%PREFIX%%/sbin/sendmail
540 send-mail %%PREFIX%%/sbin/sendmail
541 mailq %%PREFIX%%/sbin/sendmail
542 newaliases %%PREFIX%%/sbin/sendmail
545 [FILE:1153:files/pkg-message-primary.in]
546 To use postfix instead of sendmail:
547 - clear sendmail queue and stop the sendmail daemons
549 Run the following commands to enable postfix during startup:
550 - sysrc postfix_enable="YES"
551 - sysrc sendmail_enable="NONE"
553 If postfix is *not* already activated in %%PREFIX%%/etc/mail/mailer.conf
554 - mv %%PREFIX%%/etc/mail/mailer.conf %%PREFIX%%/etc/mail/mailer.conf.old
555 - install -m 0644 %%PREFIX%%/share/postfix/mailer.conf.postfix %%PREFIX%%/etc/mail/mailer.conf
557 Disable sendmail(8) specific tasks,
558 add the following lines to /etc/periodic.conf(.local):
559 daily_clean_hoststat_enable="NO"
560 daily_status_mail_rejects_enable="NO"
561 daily_status_include_submit_mailq="NO"
562 daily_submit_queuerun="NO"
564 If you are using SASL, you need to make sure that postfix has access to read
565 the sasldb file. This is accomplished by adding postfix to group mail and
566 making the %%PREFIX%%/etc/sasldb* file(s) readable by group mail (this should
567 be the default for new installs).
569 If you are upgrading from prior postfix version, please see the README
570 files for recommended changes to your configuration and additional
571 http://www.postfix.org/COMPATIBILITY_README.html
574 [FILE:1181:files/postfix.in]
577 # PROVIDE: postfix mail
578 # REQUIRE: %%REQUIRE%%
581 # Add the following lines to /etc/rc.conf to enable postfix:
582 # postfix_enable (bool): Set it to "YES" to enable postfix.
584 # postfix_pidfile (path): Set full path to master.pid.
585 # Default is "/var/spool/postfix/pid/master.pid".
586 # postfix_procname (command): Set command that start master. Used to verify if
587 # postfix is running.
588 # Default is "%%PREFIX%%/libexec/postfix/master".
589 # postfix_flags (str): Flags passed to postfix-script on startup.
600 : ${postfix_enable:="NO"}
601 : ${postfix_pidfile:="/var/spool/postfix/pid/master.pid"}
602 : ${postfix_procname:="%%PREFIX%%/libexec/postfix/master"}
604 start_cmd=${name}_start
605 stop_cmd=${name}_stop
606 extra_commands="reload"
607 reload_cmd="${name}_reload"
609 pidfile=${postfix_pidfile}
610 procname=${postfix_procname}
613 %%PREFIX%%/sbin/postfix ${postfix_flags} start
617 %%PREFIX%%/sbin/postfix ${postfix_flags} stop
621 %%PREFIX%%/sbin/postfix ${postfix_flags} reload
627 [FILE:544:files/special.mk]
628 DYN_AUXLIBS= "AUXLIBS_PCRE=${LDFLAGS} -lpcre"
629 DYN_AUXLIBS+= "AUXLIBS_MYSQL=${LDFLAGS} -L${LOCALBASE}/lib/mysql -Wl,-rpath,${LOCALBASE}/lib/mysql -lmysqlclient -lz -lm"
630 DYN_AUXLIBS+= "AUXLIBS_PGSQL=${LDFLAGS} -lpq"
631 DYN_AUXLIBS+= "AUXLIBS_SQLITE=${LDFLAGS} -lsqlite3 -lpthread"
632 DYN_AUXLIBS+= "AUXLIBS_LDAP=${LDFLAGS} -lldap -llber"
633 DYN_AUXLIBS+= "AUXLIBS_CDB=${LDFLAGS} -lcdb"
634 DYN_AUXLIBS+= "AUXLIBS_LMDB=${LDFLAGS} -llmdb"
637 AUXLIBS+= -L${OPENSSLLIB} ${LDFLAGS} -lssl -lcrypto
639 MAKEFILEFLAGS+= pie=yes CC="${CC}" OPT="${CFLAGS}"