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