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.8.1.tar.gz:main
17 SPKGS[standard]= complete
28 OPTIONS_AVAILABLE= none
29 OPTIONS_STANDARD= none
31 BUILD_DEPENDS= openldap:dev:standard
32 openldap:client:standard
34 tinycdb:primary:standard
38 BUILDRUN_DEPENDS= icu:primary:standard
42 EXRUN[cdb]= tinycdb:primary:standard
43 EXRUN[lmdb]= lmdb:primary:standard
44 EXRUN[ldap]= openldap:client:standard
47 GROUPS= postfix maildrop mail
48 USERGROUP_SPKG= primary
50 USES= cpe shebangfix mysql:client,build pgsql:client,build
51 pcre sqlite zlib:build ssl:openssl11
53 LICENSE= CUSTOM1:primary CUSTOM2:primary
54 LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
55 LICENSE_NAME= CUSTOM1:"Eclipse Public License v2.0"
56 CUSTOM2:"IBM Public License v1.0"
57 LICENSE_FILE= CUSTOM1:{{WRKDIR}}/LICENSE_EPL
58 CUSTOM2:{{WRKDIR}}/LICENSE_IBM
59 LICENSE_AWK= TERMS:"remainder of this text contains a copy"
60 LICENSE_SOURCE= TERMS:{{WRKSRC}}/LICENSE
63 FPC_EQUIVALENT= mail/postfix
64 SHEBANG_FILES= auxiliary/qshape/qshape.pl
66 RC_SUBR= postfix:primary
67 SUB_FILES= mailer.conf.postfix
69 SUB_LIST= REQUIRE="LOGIN cleanvar dovecot mysql postgresql slapd"
71 QMAKE_ARGS= -DDEF_CONFIG_DIR=\\\"{{PREFIX}}/etc/postfix\\\"
72 -DDEF_DAEMON_DIR=\\\"{{PREFIX}}/libexec/postfix\\\"
73 -DDEF_META_DIR=\\\"{{PREFIX}}/etc/postfix\\\"
74 -DDEF_COMMAND_DIR=\\\"{{PREFIX}}/sbin\\\"
75 -DDEF_SENDMAIL_PATH=\\\"{{PREFIX}}/sbin/sendmail\\\"
76 -DDEF_NEWALIAS_PATH=\\\"{{PREFIX}}/bin/newaliases\\\"
77 -DDEF_MAILQ_PATH=\\\"{{PREFIX}}/bin/mailq\\\"
78 -DDEF_MANPAGE_DIR=\\\"{{MANPREFIX}}/man\\\"
79 -DDEF_README_DIR=\\\"{{STD_DOCDIR}}\\\"
80 -DDEF_HTML_DIR=\\\"{{STD_DOCSIR}}\\\"
81 -DDEF_QUEUE_DIR=\\\"/var/spool/postfix\\\"
82 -DDEF_DATA_DIR=\\\"/var/db/postfix\\\"
83 -DDEF_MAIL_OWNER=\\\"postfix\\\"
84 -DDEF_SGID_GROUP=\\\"maildrop\\\"
85 -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"
86 -I{{LOCALBASE}}/include
87 -I{{LOCALBASE}}/include/mysql
105 ${ECHO_CMD} '$$manpage_directory/man1/posttls-finger.1:f:root:-:644' \
106 >> ${WRKSRC}/conf/postfix-files
107 ${ECHO_CMD} '$$command_directory/posttls-finger:f:root:-:755' \
108 >> ${WRKSRC}/conf/postfix-files
109 .for f in body_checks.5.html bounce.5.html postfix-power.png \
110 scache.8.html tlsmgr.8.html
111 ${ECHO_CMD} '$$html_directory/$f:f:root:-:644' \
112 >> ${WRKSRC}/conf/postfix-files
114 ${ECHO_CMD} '<HTML><BODY>See <A HREF="header_checks.5.html">header_checks.5.html</A></BODY></HTML>' \
115 > ${WRKSRC}/html/body_checks.5.html
116 ${REINPLACE_CMD} -E -e 's!^(#define DEF_SGID_GROUP[^"]+)"postdrop"$$!\1"maildrop"!' \
117 ${WRKSRC}/src/global/mail_params.h
118 ${FIND} ${WRKSRC}/README_FILES ${WRKSRC}/conf ${WRKSRC}/man \
119 -type f -a ! \( -name INSTALL -o -name aliases \) -print0| \
120 ${XARGS} -0 ${REINPLACE_CMD} -E -e '\
121 s!^PATH=.*!PATH=/bin:/sbin:/usr/bin:/usr/sbin:${PREFIX}/bin:${PREFIX}/sbin!;\
122 s!(_directory = )/usr/!\1${PREFIX}/!g;\
123 s!^(data_directory = /var/)lib/!\1db/!g;\
124 s!^\#(mynetworks_style = host)!\1!g;\
125 s!^(sendmail_path =)!\1 ${PREFIX}/sbin/sendmail!g;\
126 s!^(newaliases_path =)!\1 ${PREFIX}/bin/newaliases!g;\
127 s!^(mailq_path =)!\1 ${PREFIX}/bin/mailq!g;\
128 s!^(setgid_group =)!\1 maildrop!g;\
129 s!^(manpage_directory =)!\1 ${MANPREFIX}/man!g;\
130 s!^((html|readme)_directory =)!\1 ${STD_DOCDIR}!g;\
131 \!^\#alias_database = dbm:/etc/mail/aliases$$!d;\
132 s!(:|= )/etc/postfix!\1$$config_directory!g;\
133 s!/etc/postfix!${PREFIX}/etc/postfix!g;\
134 s!^(sample_directory =)!\1 ${PREFIX}/etc/postfix!g;\
135 s!($config_directory/(access|aliases|canonical|generic|header_checks|relocated|transport|virtual):f:root:-:644:)p1!\1o!;'
138 (cd ${WRKSRC} && ${MAKE} -f Makefile.init makefiles \
140 CCARGS="${QMAKE_ARGS}" \
142 shlib_directory="${PREFIX}/lib/postfix" \
145 AUXLIBS="${AUXLIBS}" && \
146 ${ECHO_CMD} "all: default" >> Makefile)
149 ${AWK} '/^Eclipse Public License/,/additional accurate notices/' \
150 ${WRKSRC}/LICENSE > ${WRKDIR}/LICENSE_EPL
151 ${AWK} '/^IBM PUBLIC LICENSE/,EOF' \
152 ${WRKSRC}/LICENSE > ${WRKDIR}/LICENSE_IBM
155 (cd ${WRKSRC} && ${MAKE} non-interactive-package \
156 install_root="${STAGEDIR}" \
157 tempdir="${WRKDIR}" \
158 shlib_directory="${PREFIX}/lib/postfix" \
159 config_directory="${PREFIX}/etc/postfix" \
160 command_directory="${PREFIX}/sbin" \
161 daemon_directory="${PREFIX}/libexec/postfix" \
162 meta_directory="${PREFIX}/etc/postfix" \
163 html_directory="${STD_DOCDIR}" \
164 mailq_path="${PREFIX}/bin/mailq" \
165 manpage_directory="${MANPREFIX}/man" \
166 newaliases_path="${PREFIX}/bin/newaliases" \
167 readme_directory="${STD_DOCDIR}" \
168 sendmail_path="${PREFIX}/sbin/sendmail" )
169 ${INSTALL_SCRIPT} ${WRKSRC}/auxiliary/rmail/rmail \
170 ${STAGEDIR}${PREFIX}/bin/rmail
171 ${INSTALL_SCRIPT} ${WRKSRC}/auxiliary/qshape/qshape.pl \
172 ${STAGEDIR}${PREFIX}/bin/qshape
173 ${INSTALL_MAN} ${WRKSRC}/man/man1/qshape.1 \
174 ${STAGEDIR}${MANPREFIX}/man/man1
175 ${MV} ${STAGEDIR}${ETCDIR}/main.cf \
176 ${STAGEDIR}${ETCDIR}/main.cf.sample
177 ${MV} ${STAGEDIR}${ETCDIR}/master.cf \
178 ${STAGEDIR}${ETCDIR}/master.cf.sample
179 ${MKDIR} ${STAGEDIR}${PREFIX}/share/postfix
180 ${INSTALL_DATA} ${WRKDIR}/mailer.conf.postfix \
181 ${STAGEDIR}${PREFIX}/share/postfix
182 # == chop dynamicmaps.cf entries into dedicated .cf files
183 .for f in pcre mysql pgsql sqlite ldap cdb lmdb
184 # adjust dynamicmaps.cf
185 ${GREP} -e "^#" -e "^${f}" ${STAGEDIR}${PREFIX}/etc/postfix/dynamicmaps.cf \
186 > ${STAGEDIR}${PREFIX}/etc/postfix/dynamicmaps.cf.d/${f}.cf && \
187 ${SED} -i'' -e '/${f}/d' ${STAGEDIR}${PREFIX}/etc/postfix/dynamicmaps.cf
188 # adjust / generate postfix-files for dynamic modules
189 ${SED} -i'' -e '/postfix-${f}.so/d' \
190 ${STAGEDIR}${PREFIX}/etc/postfix/postfix-files
191 ${ECHO} "# Do not edit this file." \
192 > ${STAGEDIR}${PREFIX}/etc/postfix/postfix-files.d/${f}-files
193 ${ECHO} "$$shlib_directory/postfix-${f}.so:f:root:-:755"\
194 >> ${STAGEDIR}${PREFIX}/etc/postfix/postfix-files.d/${f}-files
195 ${ECHO} "$$meta_directory/postfix-files.d/${f}-files:f:root:-:644"\
196 >> ${STAGEDIR}${PREFIX}/etc/postfix/postfix-files.d/${f}-files
197 ${ECHO} "$$meta_directory/dynamicmaps.cf.d/${f}.cf:f:root:-:644"\
198 >> ${STAGEDIR}${PREFIX}/etc/postfix/postfix-files.d/${f}-files
200 # Fix compressed man pages and strip executables
201 ${SED} -i'' -E -e "s|(man[158]/.*.[158]):|\1.gz:|g" \
202 ${STAGEDIR}${PREFIX}/etc/postfix/postfix-files
203 (cd ${STAGEDIR}${PREFIX}/libexec/postfix && \
204 ${STRIP_CMD} anvil bounce cleanup discard dnsblog error \
205 flush lmtp local master nqmgr oqmgr pickup pipe postscreen \
206 proxymap qmgr qmqpd scache showq smtp smtpd spawn tlsmgr \
207 tlsproxy trivial-rewrite verify virtual postlogd)
208 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/*
209 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/postfix/*.so
211 (cd ${WRKSRC}/bin && \
212 ${INSTALL_PROGRAM} qmqp-sink qmqp-source smtp-sink smtp-source\
213 ${STAGEDIR}${PREFIX}/bin/ )
214 (cd ${WRKSRC}/man/man1 && \
215 ${INSTALL_MAN} qmqp-sink.1 qmqp-source.1 smtp-sink.1 smtp-source.1\
216 ${STAGEDIR}${MANPREFIX}/man/man1/ )
218 [FILE:766:descriptions/desc.primary]
219 Postfix attempts to be fast, easy to administer, and secure, while at the
220 same time being sendmail-compatible enough to not upset existing users.
221 Thus, the outside has a sendmail-ish flavor, but the inside is
222 completely different.
225 - Connection cache for SMTP
226 - DSN status notifications
228 - Plug-in support for multiple SASL implementations (Cyrus, Dovecot)
229 - TLS encryption and authentication
230 - Configurable status notification message text
231 - Access control per client/sender/recipient/etc
232 - Content filter (built-in, external before queue, external after queue)
233 - Berkeley DB database
236 - PostgreSQL database
237 - Maildir and mailbox format
239 - VERP envelope return addresses
242 [FILE:65:descriptions/desc.cdb]
243 This package contains the constant database module for postfix.
246 [FILE:51:descriptions/desc.ldap]
247 This package contains the ldap module for postfix.
250 [FILE:66:descriptions/desc.lmdb]
251 This package contains the lightment memory db module for postfix.
254 [FILE:52:descriptions/desc.mysql]
255 This package contains the mysql module for postfix.
258 [FILE:57:descriptions/desc.pgsql]
259 This package contains the postgresql module for postfix.
262 [FILE:63:descriptions/desc.test]
263 This package contains the SMTP/LMTP test server and generator.
267 54e1bffded3032828a70de22c2a1a94d1c097fc4513e0fdbfcfdbf3bff6b7092 4848293 postfix-3.8.1.tar.gz
270 [FILE:1795:manifests/plist.primary]
271 @sample etc/postfix/main.cf.sample
272 @sample etc/postfix/master.cf.sample
288 etc/postfix/dynamicmaps.cf.d/
291 etc/postfix/postfix-files.d/
341 @(,maildrop,2755) sbin/postdrop
348 @(,maildrop,2755) sbin/postqueue
352 share/postfix/mailer.conf.postfix
353 @dir(,,755) /var/spool/postfix
354 @dir(,postfix,755) /var/spool/postfix/pid
355 @dir(postfix,,700) /var/db/postfix
356 @dir(postfix,,700) /var/spool/postfix/active
357 @dir(postfix,,700) /var/spool/postfix/bounce
358 @dir(postfix,,700) /var/spool/postfix/corrupt
359 @dir(postfix,,700) /var/spool/postfix/defer
360 @dir(postfix,,700) /var/spool/postfix/deferred
361 @dir(postfix,,700) /var/spool/postfix/flush
362 @dir(postfix,,700) /var/spool/postfix/hold
363 @dir(postfix,,700) /var/spool/postfix/incoming
364 @dir(postfix,,700) /var/spool/postfix/private
365 @dir(postfix,,700) /var/spool/postfix/saved
366 @dir(postfix,,700) /var/spool/postfix/trace
367 @dir(postfix,maildrop,710) /var/spool/postfix/public
368 @dir(postfix,maildrop,730) /var/spool/postfix/maildrop
371 [FILE:101:manifests/plist.cdb]
372 etc/postfix/dynamicmaps.cf.d/cdb.cf
373 etc/postfix/postfix-files.d/cdb-files
374 lib/postfix/postfix-cdb.so
377 [FILE:104:manifests/plist.ldap]
378 etc/postfix/dynamicmaps.cf.d/ldap.cf
379 etc/postfix/postfix-files.d/ldap-files
380 lib/postfix/postfix-ldap.so
383 [FILE:104:manifests/plist.lmdb]
384 etc/postfix/dynamicmaps.cf.d/lmdb.cf
385 etc/postfix/postfix-files.d/lmdb-files
386 lib/postfix/postfix-lmdb.so
389 [FILE:107:manifests/plist.mysql]
390 etc/postfix/dynamicmaps.cf.d/mysql.cf
391 etc/postfix/postfix-files.d/mysql-files
392 lib/postfix/postfix-mysql.so
395 [FILE:107:manifests/plist.pgsql]
396 etc/postfix/dynamicmaps.cf.d/pgsql.cf
397 etc/postfix/postfix-files.d/pgsql-files
398 lib/postfix/postfix-pgsql.so
401 [FILE:53:manifests/plist.test]
409 [FILE:1211:manifests/plist.man]
492 [FILE:1383:patches/patch-makedefs]
493 --- makedefs.orig 2023-04-14 13:37:45 UTC
495 @@ -343,7 +343,41 @@ case "$SYSTEM.$RELEASE" in
496 : ${SHLIB_ENV="LD_LIBRARY_PATH=`pwd`/lib"}
497 : ${PLUGIN_LD="${CC} -shared"}
499 + FreeBSD.11*) SYSTYPE=FREEBSD11
501 + : ${SHLIB_SUFFIX=.so}
502 + : ${SHLIB_CFLAGS=-fPIC}
503 + : ${SHLIB_LD="${CC} -shared"' -Wl,-soname,${LIB}'}
504 + : ${SHLIB_RPATH='-Wl,-rpath,${SHLIB_DIR}'}
505 + : ${SHLIB_ENV="LD_LIBRARY_PATH=`pwd`/lib"}
506 + : ${PLUGIN_LD="${CC} -shared"}
508 + FreeBSD.12*|MidnightBSD*) SYSTYPE=FREEBSD12
510 + : ${SHLIB_SUFFIX=.so}
511 + : ${SHLIB_CFLAGS=-fPIC}
512 + : ${SHLIB_LD="${CC} -shared"' -Wl,-soname,${LIB}'}
513 + : ${SHLIB_RPATH='-Wl,-rpath,${SHLIB_DIR}'}
514 + : ${SHLIB_ENV="LD_LIBRARY_PATH=`pwd`/lib"}
515 + : ${PLUGIN_LD="${CC} -shared"}
517 + FreeBSD.13*) SYSTYPE=FREEBSD12
519 + : ${SHLIB_SUFFIX=.so}
520 + : ${SHLIB_CFLAGS=-fPIC}
521 + : ${SHLIB_LD="${CC} -shared"' -Wl,-soname,${LIB}'}
522 + : ${SHLIB_RPATH='-Wl,-rpath,${SHLIB_DIR}'}
523 + : ${SHLIB_ENV="LD_LIBRARY_PATH=`pwd`/lib"}
524 + : ${PLUGIN_LD="${CC} -shared"}
526 DragonFly.*) SYSTYPE=DRAGONFLY
528 + : ${SHLIB_SUFFIX=.so}
529 + : ${SHLIB_CFLAGS=-fPIC}
530 + : ${SHLIB_LD="${CC} -shared"' -Wl,-soname,${LIB}'}
531 + : ${SHLIB_RPATH='-Wl,-rpath,${SHLIB_DIR}'}
532 + : ${SHLIB_ENV="LD_LIBRARY_PATH=`pwd`/lib"}
533 + : ${PLUGIN_LD="${CC} -shared"}
535 OpenBSD.2*) SYSTYPE=OPENBSD2
539 [FILE:212:files/mailer.conf.postfix.in]
541 # Execute the Postfix sendmail program, named %%PREFIX%%/sbin/sendmail
543 sendmail %%PREFIX%%/sbin/sendmail
544 send-mail %%PREFIX%%/sbin/sendmail
545 mailq %%PREFIX%%/sbin/sendmail
546 newaliases %%PREFIX%%/sbin/sendmail
549 [FILE:1153:files/pkg-message-primary.in]
550 To use postfix instead of sendmail:
551 - clear sendmail queue and stop the sendmail daemons
553 Run the following commands to enable postfix during startup:
554 - sysrc postfix_enable="YES"
555 - sysrc sendmail_enable="NONE"
557 If postfix is *not* already activated in %%PREFIX%%/etc/mail/mailer.conf
558 - mv %%PREFIX%%/etc/mail/mailer.conf %%PREFIX%%/etc/mail/mailer.conf.old
559 - install -m 0644 %%PREFIX%%/share/postfix/mailer.conf.postfix %%PREFIX%%/etc/mail/mailer.conf
561 Disable sendmail(8) specific tasks,
562 add the following lines to /etc/periodic.conf(.local):
563 daily_clean_hoststat_enable="NO"
564 daily_status_mail_rejects_enable="NO"
565 daily_status_include_submit_mailq="NO"
566 daily_submit_queuerun="NO"
568 If you are using SASL, you need to make sure that postfix has access to read
569 the sasldb file. This is accomplished by adding postfix to group mail and
570 making the %%PREFIX%%/etc/sasldb* file(s) readable by group mail (this should
571 be the default for new installs).
573 If you are upgrading from prior postfix version, please see the README
574 files for recommended changes to your configuration and additional
575 http://www.postfix.org/COMPATIBILITY_README.html
578 [FILE:1181:files/postfix.in]
581 # PROVIDE: postfix mail
582 # REQUIRE: %%REQUIRE%%
585 # Add the following lines to /etc/rc.conf to enable postfix:
586 # postfix_enable (bool): Set it to "YES" to enable postfix.
588 # postfix_pidfile (path): Set full path to master.pid.
589 # Default is "/var/spool/postfix/pid/master.pid".
590 # postfix_procname (command): Set command that start master. Used to verify if
591 # postfix is running.
592 # Default is "%%PREFIX%%/libexec/postfix/master".
593 # postfix_flags (str): Flags passed to postfix-script on startup.
604 : ${postfix_enable:="NO"}
605 : ${postfix_pidfile:="/var/spool/postfix/pid/master.pid"}
606 : ${postfix_procname:="%%PREFIX%%/libexec/postfix/master"}
608 start_cmd=${name}_start
609 stop_cmd=${name}_stop
610 extra_commands="reload"
611 reload_cmd="${name}_reload"
613 pidfile=${postfix_pidfile}
614 procname=${postfix_procname}
617 %%PREFIX%%/sbin/postfix ${postfix_flags} start
621 %%PREFIX%%/sbin/postfix ${postfix_flags} stop
625 %%PREFIX%%/sbin/postfix ${postfix_flags} reload
631 [FILE:544:files/special.mk]
632 DYN_AUXLIBS= "AUXLIBS_PCRE=${LDFLAGS} -lpcre"
633 DYN_AUXLIBS+= "AUXLIBS_MYSQL=${LDFLAGS} -L${LOCALBASE}/lib/mysql -Wl,-rpath,${LOCALBASE}/lib/mysql -lmysqlclient -lz -lm"
634 DYN_AUXLIBS+= "AUXLIBS_PGSQL=${LDFLAGS} -lpq"
635 DYN_AUXLIBS+= "AUXLIBS_SQLITE=${LDFLAGS} -lsqlite3 -lpthread"
636 DYN_AUXLIBS+= "AUXLIBS_LDAP=${LDFLAGS} -lldap -llber"
637 DYN_AUXLIBS+= "AUXLIBS_CDB=${LDFLAGS} -lcdb"
638 DYN_AUXLIBS+= "AUXLIBS_LMDB=${LDFLAGS} -llmdb"
641 AUXLIBS+= -L${OPENSSLLIB} ${LDFLAGS} -lssl -lcrypto
643 MAKEFILEFLAGS+= pie=yes CC="${CC}" OPT="${CFLAGS}"