Reorg docs, part 1:
Move all the reference manuals to subdirs of /usr/share/doc/reference.
We have subdirs ref1-ref9, corresponding to man page sections 1-9.
Everything that's the reference manual for a program (sections 1, 6,
8), C interface (sections 2, 3), driver or file system (section 4),
format or configuration (section 5), or kernel internal interface
(section 9) belongs in here.
Section 7 is a little less clear: some things that might go in section
7 if they were a man page aren't really reference manuals. So I'm only
putting things in reference section 7 that are (to me) clearly
reference material, rather than e.g. tutorials, guides, FAQs, etc.
This obviously leaves some room for debate, especially without first
editing the docs with this distinction in mind, but if people hate
what I've done things can always be moved again.
Note also that while roff macro man pages traditionally go in section
7, I have put all the roff documentation (macros, tools, etc.) in one
place in reference/ref1/roff. This will make it easier to find and
also easier to edit it into some kind of coherent form.
2014-07-05 23:22:41 +04:00
|
|
|
# $NetBSD: Makefile.inc,v 1.17 2014/07/05 19:22:42 dholland Exp $
|
2009-06-23 19:02:51 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
USE_FORT?= yes # network client and server
|
2011-08-25 21:05:45 +04:00
|
|
|
CWARNFLAGS.clang+= -Wno-empty-body -Wno-format-extra-args
|
2009-06-23 19:02:51 +04:00
|
|
|
|
|
|
|
WARNS?= 0
|
|
|
|
|
|
|
|
PFIX_DISTDIR= ${NETBSDSRCDIR}/external/ibm-public/postfix/dist
|
|
|
|
|
2011-02-12 22:07:08 +03:00
|
|
|
CPPFLAGS+= -DNETBSD4 -DUSE_SASL_AUTH \
|
2009-06-23 19:02:51 +04:00
|
|
|
-I${DIST} \
|
|
|
|
-I${PFIX_DISTDIR}/src/dns -I${PFIX_DISTDIR}/src/global \
|
|
|
|
-I${PFIX_DISTDIR}/src/master -I${PFIX_DISTDIR}/src/util \
|
|
|
|
-I${PFIX_DISTDIR}/src/tls -I${PFIX_DISTDIR}/src/milter \
|
2011-08-25 21:05:45 +04:00
|
|
|
-I${PFIX_DISTDIR}/src/xsasl \
|
|
|
|
${${ACTIVE_CC} == "clang":?-Wno-comment:}
|
2009-06-23 19:02:51 +04:00
|
|
|
|
2011-02-15 19:19:33 +03:00
|
|
|
CPPFLAGS+= -DUSE_SASL_AUTH
|
|
|
|
CPPFLAGS+= -DDEF_SERVER_SASL_TYPE=\"dovecot\"
|
|
|
|
|
2011-02-13 08:45:47 +03:00
|
|
|
.if (${MKCRYPTO} != "no")
|
2011-02-15 19:19:33 +03:00
|
|
|
CPPFLAGS+= -DUSE_SASLC_SASL
|
|
|
|
CPPFLAGS+= -DDEF_CLIENT_SASL_TYPE=\"saslc\"
|
2011-02-13 03:41:20 +03:00
|
|
|
DPADD+= ${LIBSASCL} ${LIBSSL}
|
|
|
|
LDADD+= -lsaslc -lssl
|
2011-02-15 19:19:33 +03:00
|
|
|
. if (${MKKERBEROS} != "no")
|
2011-02-13 03:41:20 +03:00
|
|
|
DPADD+= ${LIBGSSAPI}
|
|
|
|
LDADD+= -lgssapi
|
2011-02-15 19:19:33 +03:00
|
|
|
. endif
|
2011-02-13 03:41:20 +03:00
|
|
|
.endif
|
2011-02-15 19:19:33 +03:00
|
|
|
|
2009-06-23 19:02:51 +04:00
|
|
|
.if defined(HAVE_PCC)
|
|
|
|
# code uses gcc-specific aggregate dynamic array
|
|
|
|
CPPFLAGS+= -DCANT_USE_SEND_RECV_MSG
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# TLS support.
|
|
|
|
.if ${MKCRYPTO} != "no"
|
|
|
|
CPPFLAGS+= -DUSE_TLS
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# IPv6 support.
|
|
|
|
.if ${MKINET6} == "no"
|
|
|
|
CPPFLAGS+= -DNO_IPV6
|
|
|
|
.endif
|
|
|
|
|
2012-03-04 20:12:24 +04:00
|
|
|
# SQLite support.
|
|
|
|
CPPFLAGS+= -DHAS_SQLITE
|
|
|
|
. if defined(PROG)
|
|
|
|
DPADD+= ${LIBSQLITE3}
|
|
|
|
LDADD+= -lsqlite3
|
|
|
|
.endif
|
|
|
|
|
2009-06-23 19:02:51 +04:00
|
|
|
# LDAP support.
|
|
|
|
.if ${USE_LDAP} != "no"
|
|
|
|
CPPFLAGS+= -DHAS_LDAP
|
|
|
|
|
|
|
|
# Automatically link in libldap for a program.
|
|
|
|
. if defined(PROG)
|
2013-09-11 13:58:02 +04:00
|
|
|
LDADD+= -lldap -llber
|
|
|
|
DPADD+= ${LIBLDAP} ${LIBLBER}
|
2013-09-11 13:59:13 +04:00
|
|
|
. if (${MKPIC} == "no" || (defined(LDSTATIC) && ${LDSTATIC} != "")) && ${MKCRYPTO} != "no"
|
2009-06-23 19:02:51 +04:00
|
|
|
DPADD+= ${LIBSSL} ${LIBCRYPTO}
|
|
|
|
LDADD+= -lssl -lcrypto
|
|
|
|
. endif
|
|
|
|
. endif
|
|
|
|
.endif # USE_LDAP != no
|
|
|
|
|
|
|
|
PFIX_SRCDIR= ${NETBSDSRCDIR}/external/ibm-public/postfix
|
|
|
|
PFIX_LIBSDIRS= dns dns masterlib master global global util util \
|
|
|
|
milter milter xsasl xsasl
|
|
|
|
|
|
|
|
.if ${MKCRYPTO} != "no"
|
|
|
|
PFIX_LIBSDIRS+= tls tls
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.for _LD _LL in ${PFIX_LIBSDIRS}
|
|
|
|
.if !defined(POBJDIR.${_LL})
|
2009-06-25 22:21:50 +04:00
|
|
|
POBJDIR.${_LL}!=cd ${PFIX_SRCDIR}/lib/${_LD} && ${PRINTOBJDIR}
|
2009-06-23 19:02:51 +04:00
|
|
|
.MAKEOVERRIDES+=POBJDIR.${_LL}
|
|
|
|
.endif
|
|
|
|
LIBP${_LL:tu}= ${POBJDIR.${_LL}}/lib${_LL}.a
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
|
|
|
|
# Directories to install into.
|
|
|
|
#
|
|
|
|
PFIX_LIBEXECDIR=/usr/libexec/postfix
|
|
|
|
PFIX_ETCDIR= /etc/postfix
|
|
|
|
PFIX_EXAMPLEDIR=/usr/share/examples/postfix
|
Reorg docs, part 1:
Move all the reference manuals to subdirs of /usr/share/doc/reference.
We have subdirs ref1-ref9, corresponding to man page sections 1-9.
Everything that's the reference manual for a program (sections 1, 6,
8), C interface (sections 2, 3), driver or file system (section 4),
format or configuration (section 5), or kernel internal interface
(section 9) belongs in here.
Section 7 is a little less clear: some things that might go in section
7 if they were a man page aren't really reference manuals. So I'm only
putting things in reference section 7 that are (to me) clearly
reference material, rather than e.g. tutorials, guides, FAQs, etc.
This obviously leaves some room for debate, especially without first
editing the docs with this distinction in mind, but if people hate
what I've done things can always be moved again.
Note also that while roff macro man pages traditionally go in section
7, I have put all the roff documentation (macros, tools, etc.) in one
place in reference/ref1/roff. This will make it easier to find and
also easier to edit it into some kind of coherent form.
2014-07-05 23:22:41 +04:00
|
|
|
PFIX_HTMLDIR= /usr/share/doc/reference/ref8/postfix
|
2009-06-23 19:02:51 +04:00
|
|
|
PFIX_SBINDIR= /usr/sbin
|
|
|
|
|
|
|
|
# override defaults which are otherwise empty and/or so postconf is correct
|
|
|
|
CPPFLAGS+= -DDEF_HTML_DIR=\"${PFIX_HTMLDIR}\" \
|
|
|
|
-DDEF_README_DIR=\"${PFIX_EXAMPLEDIR}\" \
|
|
|
|
-DDEF_SAMPLE_DIR=\"${PFIX_EXAMPLEDIR}\" \
|
|
|
|
-DDEF_MANPAGE_DIR=\"${MANDIR}\"
|
|
|
|
|
|
|
|
# postfix check wants a lot of files to be owned by root
|
|
|
|
BINOWN= root
|