Ravenports generated: 06 Jan 2024 17:04
[ravenports.git] / bucket_FD / postfix
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               postfix
4 VERSION=                3.8.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.8.4.tar.gz:main
16 DF_INDEX=               1
17 SPKGS[standard]=        complete
18                         primary
19                         cdb
20                         ldap
21                         lmdb
22                         mysqlmod
23                         pgsqlmod
24                         test
25                         man
26                         docs
27
28 OPTIONS_AVAILABLE=      none
29 OPTIONS_STANDARD=       none
30
31 BUILD_DEPENDS=          openldap:dev:standard
32                         openldap:client:standard
33                         tinycdb:dev:standard
34                         tinycdb:primary:standard
35                         lmdb:primary:standard
36                         lmdb:dev:standard
37                         icu:dev:standard
38 BUILDRUN_DEPENDS=       icu:primary:standard
39 EXRUN[cdb]=             tinycdb:primary:standard
40 EXRUN[mysqlmod]=        mysql
41                         zlib:primary:standard
42 EXRUN[lmdb]=            lmdb:primary:standard
43 EXRUN[ldap]=            openldap:client:standard
44 EXRUN[pgsqlmod]=        pgsql
45
46 USERS=                  postfix
47 GROUPS=                 postfix maildrop mail
48 USERGROUP_SPKG=         primary
49
50 USES=                   cpe shebangfix mysql:client,build pgsql:client,build
51                         pcre sqlite zlib:build ssl:openssl11
52
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
61 LICENSE_SCHEME=         dual
62
63 FPC_EQUIVALENT=         mail/postfix
64 SHEBANG_FILES=          auxiliary/qshape/qshape.pl
65
66 RC_SUBR=                postfix:primary
67 SUB_FILES=              mailer.conf.postfix
68                         pkg-message-primary
69 SUB_LIST=               REQUIRE="LOGIN cleanvar dovecot mysql postgresql slapd"
70
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
88                         -I{{OPENSSLINC}}
89                         -DHAS_CDB
90                         -DHAS_LDAP
91                         -DHAS_LMDB
92                         -DHAS_MYSQL
93                         -DHAS_PGSQL
94                         -DHAS_SQLITE
95                         -DHAS_PCRE
96                         -DHAS_EAI
97                         -DUSE_TLS
98                         -DUSE_SASL_AUTH
99                         -DNO_DB
100                         -Wmissing-prototypes
101                         -Wformat
102                         -Wno-comment
103
104 post-patch:
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
113 .endfor
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!;'
136
137 do-configure:
138         (cd ${WRKSRC} && ${MAKE} -f Makefile.init makefiles \
139         ${MAKEFILEFLAGS} \
140         CCARGS="${QMAKE_ARGS}" \
141         shared=yes \
142         shlib_directory="${PREFIX}/lib/postfix" \
143         dynamicmaps=yes \
144         ${DYN_AUXLIBS} \
145         AUXLIBS="${AUXLIBS}" && \
146         ${ECHO_CMD} "all: default" >> Makefile)
147
148 post-extract:
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
153
154 do-install:
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
199 .endfor
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
210         # install test files
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/ )
217
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.
223
224 Some feautures:
225  - Connection cache for SMTP
226  - DSN status notifications
227  - IP version 6
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
234  - LDAP database
235  - MySQL database
236  - PostgreSQL database
237  - Maildir and mailbox format
238  - Virtual domains
239  - VERP envelope return addresses
240
241
242 [FILE:65:descriptions/desc.cdb]
243 This package contains the constant database  module for postfix.
244
245
246 [FILE:51:descriptions/desc.ldap]
247 This package contains the ldap module for postfix.
248
249
250 [FILE:66:descriptions/desc.lmdb]
251 This package contains the lightment memory db module for postfix.
252
253
254 [FILE:52:descriptions/desc.mysqlmod]
255 This package contains the mysql module for postfix.
256
257
258 [FILE:57:descriptions/desc.pgsqlmod]
259 This package contains the postgresql module for postfix.
260
261
262 [FILE:63:descriptions/desc.test]
263 This package contains the SMTP/LMTP test server and generator.
264
265
266 [FILE:99:distinfo]
267 6f5848c5d8b6a7d2c5af0a9f75b0bd3f103451e912591464ab867fde085e6236      4864184 postfix-3.8.4.tar.gz
268
269
270 [FILE:1795:manifests/plist.primary]
271 @sample etc/postfix/main.cf.sample
272 @sample etc/postfix/master.cf.sample
273 bin/
274  mailq
275  newaliases
276  qshape
277  rmail
278 etc/postfix/
279  LICENSE
280  TLS_LICENSE
281  bounce.cf.default
282  dynamicmaps.cf
283  main.cf.default
284  main.cf.proto
285  makedefs.out
286  master.cf.proto
287  postfix-files
288 etc/postfix/dynamicmaps.cf.d/
289  pcre.cf
290  sqlite.cf
291 etc/postfix/postfix-files.d/
292  pcre-files
293  sqlite-files
294 lib/postfix/
295  libpostfix-dns.so
296  libpostfix-global.so
297  libpostfix-master.so
298  libpostfix-tls.so
299  libpostfix-util.so
300  postfix-pcre.so
301  postfix-sqlite.so
302 libexec/postfix/
303  anvil
304  bounce
305  cleanup
306  discard
307  dnsblog
308  error
309  flush
310  lmtp
311  local
312  master
313  nqmgr
314  oqmgr
315  pickup
316  pipe
317  post-install
318  postfix-script
319  postfix-tls-script
320  postfix-wrapper
321  postlogd
322  postmulti-script
323  postscreen
324  proxymap
325  qmgr
326  qmqpd
327  scache
328  showq
329  smtp
330  smtpd
331  spawn
332  tlsmgr
333  tlsproxy
334  trivial-rewrite
335  verify
336  virtual
337 sbin/
338  postalias
339  postcat
340  postconf
341 @(,maildrop,2755) sbin/postdrop
342  postfix
343  postkick
344  postlock
345  postlog
346  postmap
347  postmulti
348 @(,maildrop,2755) sbin/postqueue
349  postsuper
350  posttls-finger
351  sendmail
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
369
370
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
375
376
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
381
382
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
387
388
389 [FILE:107:manifests/plist.mysqlmod]
390 etc/postfix/dynamicmaps.cf.d/mysql.cf
391 etc/postfix/postfix-files.d/mysql-files
392 lib/postfix/postfix-mysql.so
393
394
395 [FILE:107:manifests/plist.pgsqlmod]
396 etc/postfix/dynamicmaps.cf.d/pgsql.cf
397 etc/postfix/postfix-files.d/pgsql-files
398 lib/postfix/postfix-pgsql.so
399
400
401 [FILE:53:manifests/plist.test]
402 bin/
403  qmqp-sink
404  qmqp-source
405  smtp-sink
406  smtp-source
407
408
409 [FILE:1211:manifests/plist.man]
410 share/man/man1/
411  mailq.1.gz
412  newaliases.1.gz
413  postalias.1.gz
414  postcat.1.gz
415  postconf.1.gz
416  postdrop.1.gz
417  postfix-tls.1.gz
418  postfix.1.gz
419  postkick.1.gz
420  postlock.1.gz
421  postlog.1.gz
422  postmap.1.gz
423  postmulti.1.gz
424  postqueue.1.gz
425  postsuper.1.gz
426  posttls-finger.1.gz
427  qmqp-sink.1.gz
428  qmqp-source.1.gz
429  qshape.1.gz
430  sendmail.1.gz
431  smtp-sink.1.gz
432  smtp-source.1.gz
433 share/man/man5/
434  access.5.gz
435  aliases.5.gz
436  body_checks.5.gz
437  bounce.5.gz
438  canonical.5.gz
439  cidr_table.5.gz
440  generic.5.gz
441  header_checks.5.gz
442  ldap_table.5.gz
443  lmdb_table.5.gz
444  master.5.gz
445  memcache_table.5.gz
446  mysql_table.5.gz
447  nisplus_table.5.gz
448  pcre_table.5.gz
449  pgsql_table.5.gz
450  postconf.5.gz
451  postfix-wrapper.5.gz
452  regexp_table.5.gz
453  relocated.5.gz
454  socketmap_table.5.gz
455  sqlite_table.5.gz
456  tcp_table.5.gz
457  transport.5.gz
458  virtual.5.gz
459 share/man/man8/
460  anvil.8.gz
461  bounce.8.gz
462  cleanup.8.gz
463  defer.8.gz
464  discard.8.gz
465  dnsblog.8.gz
466  error.8.gz
467  flush.8.gz
468  lmtp.8.gz
469  local.8.gz
470  master.8.gz
471  oqmgr.8.gz
472  pickup.8.gz
473  pipe.8.gz
474  postlogd.8.gz
475  postscreen.8.gz
476  proxymap.8.gz
477  qmgr.8.gz
478  qmqpd.8.gz
479  scache.8.gz
480  showq.8.gz
481  smtp.8.gz
482  smtpd.8.gz
483  spawn.8.gz
484  tlsmgr.8.gz
485  tlsproxy.8.gz
486  trace.8.gz
487  trivial-rewrite.8.gz
488  verify.8.gz
489  virtual.8.gz
490
491
492 [FILE:1383:patches/patch-makedefs]
493 --- makedefs.orig       2023-04-14 13:37:45 UTC
494 +++ makedefs
495 @@ -343,7 +343,41 @@ case "$SYSTEM.$RELEASE" in
496                 : ${SHLIB_ENV="LD_LIBRARY_PATH=`pwd`/lib"}
497                 : ${PLUGIN_LD="${CC} -shared"}
498                 ;;
499 +  FreeBSD.11*) SYSTYPE=FREEBSD11
500 +               : ${CC=cc}
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"}
507 +               ;;
508 +  FreeBSD.12*|MidnightBSD*)    SYSTYPE=FREEBSD12
509 +               : ${CC=cc}
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"}
516 +               ;;
517 +  FreeBSD.13*) SYSTYPE=FREEBSD12
518 +               : ${CC=cc}
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"}
525 +               ;;
526   DragonFly.*)  SYSTYPE=DRAGONFLY
527 +               : ${CC=cc}
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"}
534                 ;;
535    OpenBSD.2*)  SYSTYPE=OPENBSD2
536                 ;;
537
538
539 [FILE:212:files/mailer.conf.postfix.in]
540 #
541 # Execute the Postfix sendmail program, named %%PREFIX%%/sbin/sendmail
542 #
543 sendmail        %%PREFIX%%/sbin/sendmail
544 send-mail       %%PREFIX%%/sbin/sendmail
545 mailq           %%PREFIX%%/sbin/sendmail
546 newaliases      %%PREFIX%%/sbin/sendmail
547
548
549 [FILE:1153:files/pkg-message-primary.in]
550 To use postfix instead of sendmail:
551   - clear sendmail queue and stop the sendmail daemons
552
553 Run the following commands to enable postfix during startup:
554   - sysrc postfix_enable="YES"
555   - sysrc sendmail_enable="NONE"
556
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
560
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"
567
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).
572
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
576
577
578 [FILE:1181:files/postfix.in]
579 #!/bin/sh
580 #
581 # PROVIDE: postfix mail
582 # REQUIRE: %%REQUIRE%%
583 # KEYWORD: shutdown
584 #
585 # Add the following lines to /etc/rc.conf to enable postfix:
586 # postfix_enable (bool):        Set it to "YES" to enable postfix.
587 #                               Default is "NO".
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.
594 #                               Default is "".
595 #
596
597 . /etc/rc.subr
598
599 name="postfix"
600 rcvar=postfix_enable
601
602 load_rc_config $name
603
604 : ${postfix_enable:="NO"}
605 : ${postfix_pidfile:="/var/spool/postfix/pid/master.pid"}
606 : ${postfix_procname:="%%PREFIX%%/libexec/postfix/master"}
607
608 start_cmd=${name}_start
609 stop_cmd=${name}_stop
610 extra_commands="reload"
611 reload_cmd="${name}_reload"
612
613 pidfile=${postfix_pidfile}
614 procname=${postfix_procname}
615
616 postfix_start() {
617         %%PREFIX%%/sbin/postfix ${postfix_flags} start
618 }
619
620 postfix_stop() {
621         %%PREFIX%%/sbin/postfix ${postfix_flags} stop
622 }
623
624 postfix_reload() {
625         %%PREFIX%%/sbin/postfix ${postfix_flags} reload
626 }
627
628 run_rc_command "$1"
629
630
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"
639
640 AUXLIBS=        -licuuc
641 AUXLIBS+=       -L${OPENSSLLIB} ${LDFLAGS} -lssl -lcrypto
642
643 MAKEFILEFLAGS+= pie=yes CC="${CC}" OPT="${CFLAGS}"
644