Ravenports generated: 19 Jun 2022 06:18
[ravenports.git] / bucket_FD / postfix
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               postfix
4 VERSION=                3.7.2
5 KEYWORDS=               mail
6 VARIANTS=               standard
7 SDESC[standard]=        Fast and robust mail transfer agent
8 HOMEPAGE=               http://www.postfix.org/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
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
16 DF_INDEX=               1
17 SPKGS[standard]=        complete
18                         primary
19                         cdb
20                         ldap
21                         lmdb
22                         mysql
23                         pgsql
24                         test
25                         docs
26
27 OPTIONS_AVAILABLE=      none
28 OPTIONS_STANDARD=       none
29
30 BUILD_DEPENDS=          openldap:client:standard
31                         tinycdb:single:standard
32                         lmdb:single:standard
33 BUILDRUN_DEPENDS=       icu:single:standard
34 EXRUN[pgsql]=           pgsql
35 EXRUN[mysql]=           mysql
36                         zlib:shared:standard
37 EXRUN[cdb]=             tinycdb:single:standard
38 EXRUN[lmdb]=            lmdb:single:standard
39 EXRUN[ldap]=            openldap:client:standard
40
41 USERS=                  postfix
42 GROUPS=                 postfix maildrop mail
43 USERGROUP_SPKG=         primary
44
45 USES=                   cpe shebangfix mysql:client,build pgsql:client,build
46                         pcre sqlite zlib:build ssl:openssl11
47
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
56 LICENSE_SCHEME=         dual
57
58 FPC_EQUIVALENT=         mail/postfix
59 SHEBANG_FILES=          auxiliary/qshape/qshape.pl
60
61 RC_SUBR=                postfix:primary
62 SUB_FILES=              mailer.conf.postfix
63                         pkg-message-primary
64 SUB_LIST=               REQUIRE="LOGIN cleanvar dovecot mysql postgresql slapd"
65
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
83                         -I{{OPENSSLINC}}
84                         -DHAS_CDB
85                         -DHAS_LDAP
86                         -DHAS_LMDB
87                         -DHAS_MYSQL
88                         -DHAS_PGSQL
89                         -DHAS_SQLITE
90                         -DHAS_PCRE
91                         -DHAS_EAI
92                         -DUSE_TLS
93                         -DUSE_SASL_AUTH
94                         -DNO_DB
95                         -Wmissing-prototypes
96                         -Wformat
97                         -Wno-comment
98
99 post-patch:
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
108 .endfor
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!;'
131
132 do-configure:
133         (cd ${WRKSRC} && ${MAKE} -f Makefile.init makefiles \
134         ${MAKEFILEFLAGS} \
135         CCARGS="${QMAKE_ARGS}" \
136         shared=yes \
137         shlib_directory="${PREFIX}/lib/postfix" \
138         dynamicmaps=yes \
139         ${DYN_AUXLIBS} \
140         AUXLIBS="${AUXLIBS}" && \
141         ${ECHO_CMD} "all: default" >> Makefile)
142
143 post-extract:
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
148
149 do-install:
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
194 .endfor
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
205         # install test files
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/ )
212
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.
218
219 Some feautures:
220  - Connection cache for SMTP
221  - DSN status notifications
222  - IP version 6
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
229  - LDAP database
230  - MySQL database
231  - PostgreSQL database
232  - Maildir and mailbox format
233  - Virtual domains
234  - VERP envelope return addresses
235
236
237 [FILE:65:descriptions/desc.cdb]
238 This package contains the constant database  module for postfix.
239
240
241 [FILE:51:descriptions/desc.ldap]
242 This package contains the ldap module for postfix.
243
244
245 [FILE:66:descriptions/desc.lmdb]
246 This package contains the lightment memory db module for postfix.
247
248
249 [FILE:52:descriptions/desc.mysql]
250 This package contains the mysql module for postfix.
251
252
253 [FILE:57:descriptions/desc.pgsql]
254 This package contains the postgresql module for postfix.
255
256
257 [FILE:63:descriptions/desc.test]
258 This package contains the SMTP/LMTP test server and generator.
259
260
261 [FILE:99:distinfo]
262 3785f76c2924a02873c0be0f0cd124a9166fc1aaf77ea2a06bd4ad795a6ed416      4824424 postfix-3.7.2.tar.gz
263
264
265 [FILE:2938:manifests/plist.primary]
266 @sample etc/postfix/main.cf.sample
267 @sample etc/postfix/master.cf.sample
268 bin/
269  mailq
270  newaliases
271  qshape
272  rmail
273 etc/postfix/
274  LICENSE
275  TLS_LICENSE
276  bounce.cf.default
277  dynamicmaps.cf
278  main.cf.default
279  main.cf.proto
280  makedefs.out
281  master.cf.proto
282  postfix-files
283 etc/postfix/dynamicmaps.cf.d/
284  pcre.cf
285  sqlite.cf
286 etc/postfix/postfix-files.d/
287  pcre-files
288  sqlite-files
289 lib/postfix/
290  libpostfix-dns.so
291  libpostfix-global.so
292  libpostfix-master.so
293  libpostfix-tls.so
294  libpostfix-util.so
295  postfix-pcre.so
296  postfix-sqlite.so
297 libexec/postfix/
298  anvil
299  bounce
300  cleanup
301  discard
302  dnsblog
303  error
304  flush
305  lmtp
306  local
307  master
308  nqmgr
309  oqmgr
310  pickup
311  pipe
312  post-install
313  postfix-script
314  postfix-tls-script
315  postfix-wrapper
316  postlogd
317  postmulti-script
318  postscreen
319  proxymap
320  qmgr
321  qmqpd
322  scache
323  showq
324  smtp
325  smtpd
326  spawn
327  tlsmgr
328  tlsproxy
329  trivial-rewrite
330  verify
331  virtual
332 sbin/
333  postalias
334  postcat
335  postconf
336 @(,maildrop,2755) sbin/postdrop
337  postfix
338  postkick
339  postlock
340  postlog
341  postmap
342  postmulti
343 @(,maildrop,2755) sbin/postqueue
344  postsuper
345  posttls-finger
346  sendmail
347 share/man/man1/
348  mailq.1.gz
349  newaliases.1.gz
350  postalias.1.gz
351  postcat.1.gz
352  postconf.1.gz
353  postdrop.1.gz
354  postfix-tls.1.gz
355  postfix.1.gz
356  postkick.1.gz
357  postlock.1.gz
358  postlog.1.gz
359  postmap.1.gz
360  postmulti.1.gz
361  postqueue.1.gz
362  postsuper.1.gz
363  posttls-finger.1.gz
364  qshape.1.gz
365  sendmail.1.gz
366 share/man/man5/
367  access.5.gz
368  aliases.5.gz
369  body_checks.5.gz
370  bounce.5.gz
371  canonical.5.gz
372  cidr_table.5.gz
373  generic.5.gz
374  header_checks.5.gz
375  ldap_table.5.gz
376  lmdb_table.5.gz
377  master.5.gz
378  memcache_table.5.gz
379  mysql_table.5.gz
380  nisplus_table.5.gz
381  pcre_table.5.gz
382  pgsql_table.5.gz
383  postconf.5.gz
384  postfix-wrapper.5.gz
385  regexp_table.5.gz
386  relocated.5.gz
387  socketmap_table.5.gz
388  sqlite_table.5.gz
389  tcp_table.5.gz
390  transport.5.gz
391  virtual.5.gz
392 share/man/man8/
393  anvil.8.gz
394  bounce.8.gz
395  cleanup.8.gz
396  defer.8.gz
397  discard.8.gz
398  dnsblog.8.gz
399  error.8.gz
400  flush.8.gz
401  lmtp.8.gz
402  local.8.gz
403  master.8.gz
404  oqmgr.8.gz
405  pickup.8.gz
406  pipe.8.gz
407  postlogd.8.gz
408  postscreen.8.gz
409  proxymap.8.gz
410  qmgr.8.gz
411  qmqpd.8.gz
412  scache.8.gz
413  showq.8.gz
414  smtp.8.gz
415  smtpd.8.gz
416  spawn.8.gz
417  tlsmgr.8.gz
418  tlsproxy.8.gz
419  trace.8.gz
420  trivial-rewrite.8.gz
421  verify.8.gz
422  virtual.8.gz
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
440
441
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
446
447
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
452
453
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
458
459
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
464
465
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
470
471
472 [FILE:137:manifests/plist.test]
473 bin/
474  qmqp-sink
475  qmqp-source
476  smtp-sink
477  smtp-source
478 share/man/man1/
479  qmqp-sink.1.gz
480  qmqp-source.1.gz
481  smtp-sink.1.gz
482  smtp-source.1.gz
483
484
485 [FILE:1370:patches/patch-makedefs]
486 --- makedefs.orig       2022-01-23 20:53:41 UTC
487 +++ makedefs
488 @@ -339,7 +339,41 @@ case "$SYSTEM.$RELEASE" in
489                 : ${SHLIB_ENV="LD_LIBRARY_PATH=`pwd`/lib"}
490                 : ${PLUGIN_LD="${CC} -shared"}
491                 ;;
492 +  FreeBSD.11*) SYSTYPE=FREEBSD11
493 +               : ${CC=cc}
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"}
500 +               ;;
501 +  FreeBSD.12*) SYSTYPE=FREEBSD12
502 +               : ${CC=cc}
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"}
509 +               ;;
510 +  FreeBSD.13*) SYSTYPE=FREEBSD12
511 +               : ${CC=cc}
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"}
518 +               ;;
519   DragonFly.*)  SYSTYPE=DRAGONFLY
520 +               : ${CC=cc}
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"}
527                 ;;
528    OpenBSD.2*)  SYSTYPE=OPENBSD2
529                 ;;
530
531
532 [FILE:212:files/mailer.conf.postfix.in]
533 #
534 # Execute the Postfix sendmail program, named %%PREFIX%%/sbin/sendmail
535 #
536 sendmail        %%PREFIX%%/sbin/sendmail
537 send-mail       %%PREFIX%%/sbin/sendmail
538 mailq           %%PREFIX%%/sbin/sendmail
539 newaliases      %%PREFIX%%/sbin/sendmail
540
541
542 [FILE:1153:files/pkg-message-primary.in]
543 To use postfix instead of sendmail:
544   - clear sendmail queue and stop the sendmail daemons
545
546 Run the following commands to enable postfix during startup:
547   - sysrc postfix_enable="YES"
548   - sysrc sendmail_enable="NONE"
549
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
553
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"
560
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).
565
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
569
570
571 [FILE:1181:files/postfix.in]
572 #!/bin/sh
573 #
574 # PROVIDE: postfix mail
575 # REQUIRE: %%REQUIRE%%
576 # KEYWORD: shutdown
577 #
578 # Add the following lines to /etc/rc.conf to enable postfix:
579 # postfix_enable (bool):        Set it to "YES" to enable postfix.
580 #                               Default is "NO".
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.
587 #                               Default is "".
588 #
589
590 . /etc/rc.subr
591
592 name="postfix"
593 rcvar=postfix_enable
594
595 load_rc_config $name
596
597 : ${postfix_enable:="NO"}
598 : ${postfix_pidfile:="/var/spool/postfix/pid/master.pid"}
599 : ${postfix_procname:="%%PREFIX%%/libexec/postfix/master"}
600
601 start_cmd=${name}_start
602 stop_cmd=${name}_stop
603 extra_commands="reload"
604 reload_cmd="${name}_reload"
605
606 pidfile=${postfix_pidfile}
607 procname=${postfix_procname}
608
609 postfix_start() {
610         %%PREFIX%%/sbin/postfix ${postfix_flags} start
611 }
612
613 postfix_stop() {
614         %%PREFIX%%/sbin/postfix ${postfix_flags} stop
615 }
616
617 postfix_reload() {
618         %%PREFIX%%/sbin/postfix ${postfix_flags} reload
619 }
620
621 run_rc_command "$1"
622
623
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"
632
633 AUXLIBS=        -licuuc
634 AUXLIBS+=       -L${OPENSSLLIB} ${LDFLAGS} -lssl -lcrypto
635
636 MAKEFILEFLAGS+= pie=yes CC="${CC}" OPT="${CFLAGS}"
637