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