summaryrefslogtreecommitdiff
path: root/debian/build/site.config.m4
blob: abd1f41abc1e97bb6af89b54c22734ba64472676 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
#-----------------------------------------------------------------------------
# $Sendmail: site.config.m4,v 8.14.2 2007-11-02 22:20:56 cowboy Exp $
#
# Copyright (c) 1998-2007 Richard Nelson.  All Rights Reserved.
#
# build/site.config.m4.  Generated from site.config.m4.in by configure.
#
# Debian site.config.m4 for sendmail 8.14.2-1(527874)
#
# Note: the .in file supports 8.7.6 - 9.0.0, but the generated
#	file is customized to the version noted above.
#
#-----------------------------------------------------------------------------
#
#------------------------------------------------------------------
# Sendmail 8.14.2-1(527874) on 2007-11-02 at 22:20:56 (+0000)
#------------------------------------------------------------------
#
#------------------------------------------------------------------
# The following sendmail features are included
#------------------------------------------------------------------
#REGEX:      yes
#NDBM:       no
#NEWDB:      yes      -ldb-4.6
#NIS:        yes
#NISPLUS:    yes
#LDAP:       yes       -lldap -llber
#HESIOD:     no     
#TCPD:       yes
#BIND:       no
#IPv6:       yes
#Maillock:   yes
#MILTER:     yes
#SFIO:       no
#AUTH:       yes		2
#TLS:        yes
#SHM:        yes
#FFRs:        -D_FFR_QUEUE_SCHED_DBG -D_FFR_SKIP_DOMAINS -D_FFR_GROUPREADABLEAUTHINFOFILE -D_FFR_DAEMON_NETUNIX -D_FFR_NO_PIPE -D_FFR_SHM_STATUS -D_FFR_RHS -D_FFR_MAIL_MACRO -D_FFR_QUEUEDELAY=1 -D_FFR_RESET_MACRO_GLOBALS -D_FFR_TLS_1 -D_FFR_DEAL_WITH_ERROR_SSL
#M4_FFRs:     define(`_FFR_MAIL_MACRO')
#
#------------------------------------------------------------------
# Packages and build dependancies (Debian packages)
#------------------------------------------------------------------
#Sendmail:		sendmail
#Build-Depends:	, libdb4.6-dev, libldap2-dev, libwrap0-dev, liblockfile-dev, libsasl2-dev, libssl-dev
#Depends:		
#Recommends:	
#Suggests:		, sasl2-bin, libsasl2-modules | libsasl2-modules-plain | libsasl2-digestmd5-plain | libsasl2-digestmd5-des, openssl
#
#------------------------------------------------------------------
# Build Setup
#------------------------------------------------------------------
#Autoconf version:     2.61
#Automake version:	   1.10
#DEBIAN_DH(DebHelper): 4.1				internal use(not reliable)
#
#DEB_BUILD_ARCH:	   amd64
#DEB_BUILD_GNU_CPU:    x86_64
#DEB_BUILD_GNU_SYSTEM: linux-gnu
#DEB_BUILD_GNU_TYPE:   x86_64-linux-gnu
#DEB_HOST_ARCH:		   amd64
#DEB_HOST_GNU_CPU:	   x86_64
#DEB_HOST_GNU_SYSTEM:  linux-gnu
#DEB_HOST_GNU_TYPE:    x86_64-linux-gnu
#
#------------------------------------------------------------------
# Autoconf variable settings				 defaults
#------------------------------------------------------------------
#prefix:		 /usr					 /usr/local
#exec_prefix:	 /usr				 ${prefix}
#bindir:		 /usr/bin					 ${exec_prefix}/bin
#sbindir:		 /usr/sbin					 ${exec_prefix}/sbin
#libexecdir:	 /usr/lib/sm.bin				 ${exec_prefix}/libexec
#datadir:		 /usr/share					 ${prefix}/share
#sysconfdir:	 /etc				 ${prefix}/etc
#sharedstatedir: /usr/com			 ${prefix}/com
#localstatedir:  /var			 ${prefix}/var
#libdir:		 /usr/lib					 ${exec_prefix}/var
#includedir:	 /usr/include				 ${prefix}/include
#oldincludedir:  /usr/include			 /usr/include
#infodir:		 /usr/share/info					 ${prefix}/info
#mandir:		 /usr/share/man					 ${prefix}/man
#docdir:		 /usr/share/doc					 ${prefix}/doc
#srcdir:		 .					 configure or ..
#
#------------------------------------------------------------------
# Build options for the various pieces parts of sendmail
#------------------------------------------------------------------
#
# Make sure defaults are sound...
define(`confLIBS', `')dnl # was -ldl
#
# global
APPENDDEF(`confINCDIRS',	` ')
APPENDDEF(`confMAPDEF',		` -DSOCKETMAP -DMAP_REGEX -DNEWDB -DNIS -DNISPLUS -DLDAPMAP')
APPENDDEF(`confENVDEF',		` -DHASFCHMOD=1 -DHASSETRLIMIT=1 -DHASFLOCK=0 -DUSESETEUID=1 -DHASGETUSERSHELL=1 -DNETINET6')
APPENDDEF(`confLIBS',		`')
#
# editmap
APPENDDEF(`conf_editmap_ENVDEF',	`')
APPENDDEF(`conf_editmap_LIBS',		` -ldb-4.6 -lldap -llber')
#
# libmilter
APPENDDEF(`conf_libmilter_ENVDEF',	`-fPIC -DSM_CONF_POLL=1 -D_FFR_MULTILINE -D_FFR_SMFI_PROGRESS')
APPENDDEF(`conf_libmilter_LIBS',	`')
#
# libsm
APPENDDEF(`conf_libsm_ENVDEF',	`-fPIC -DHAVE_NANOSLEEP=1 -D_LDAP_EXAMPLE_ -DLDAP_REFERRALS -D_FFR_LDAP_URI -D_FFR_LDAP_SETVERSION -DSM_CONF_LDAP_MEMFREE')
APPENDDEF(`conf_libsm_LIBS',	` -lldap -llber')
#
# libsmdb
APPENDDEF(`conf_libsmdb_ENVDEF',	`')
APPENDDEF(`conf_libsmdb_LIBS',		`')
#
# libsmutil
APPENDDEF(`conf_libsmutil_ENVDEF',	`-fPIC')
APPENDDEF(`conf_libsmutil_LIBS',	`')
#
# mail.local
APPENDDEF(`conf_mail_local_ENVDEF',	` -DCONTENTLENGTH -DMAILLOCK')
APPENDDEF(`conf_mail_local_LIBS',	` -lldap -llber -llockfile')
#
# mailstats
APPENDDEF(`conf_mailstats_ENVDEF',	`')
APPENDDEF(`conf_mailstats_LIBS',	` -lldap -llber')
#
# makemap
APPENDDEF(`conf_makemap_ENVDEF',	`')
APPENDDEF(`conf_makemap_LIBS',		` -ldb-4.6 -lldap -llber')
#
# praliases
APPENDDEF(`conf_praliases_ENVDEF',	`')
APPENDDEF(`conf_praliases_LIBS',	` -ldb-4.6 -lldap -llber')
#
# rmail
APPENDDEF(`conf_rmail_ENVDEF',	`')
APPENDDEF(`conf_rmail_LIBS',	` -lldap -llber')
#
# sendmail
APPENDDEF(`conf_sendmail_ENVDEF',	` -D_PATH_SENDMAILPID=\"/var/run/sendmail/mta/sendmail.pid\" -DIP_SRCROUTE=1 -DLDAP_REFERRALS -D_FFR_LDAP_URI -D_FFR_LDAP_SETVERSION  -DTCPWRAPPERS -DSASL -I/usr/include/sasl -DSTARTTLS  -D_FFR_QUEUE_SCHED_DBG -D_FFR_SKIP_DOMAINS -D_FFR_GROUPREADABLEAUTHINFOFILE -D_FFR_DAEMON_NETUNIX -D_FFR_NO_PIPE -D_FFR_SHM_STATUS -D_FFR_RHS -D_FFR_MAIL_MACRO -D_FFR_QUEUEDELAY=1 -D_FFR_RESET_MACRO_GLOBALS -D_FFR_TLS_1 -D_FFR_DEAL_WITH_ERROR_SSL')
APPENDDEF(`conf_sendmail_LIBS',		` -ldb-4.6 -lnsl -lldap -llber -lresolv -lwrap -lsasl2 -lcrypto -lssl')
#
# smrsh
APPENDDEF(`conf_smrsh_ENVDEF',	` -DCMDDIR=\"/etc/mail/smrsh\" -DPATH=\"/usr/bin:/bin\"')
APPENDDEF(`conf_smrsh_LIBS',	` -lldap -llber')
#
# vacation
APPENDDEF(`conf_vacation_ENVDEF',	`')
APPENDDEF(`conf_vacation_LIBS',		` -ldb-4.6 -lldap -llber')
#
#------------------------------------------------------------------
# Build-time selection not handled by autoconf above
#------------------------------------------------------------------
# none, for the nonce...
#
#------------------------------------------------------------------
# Global Build time configuration
#------------------------------------------------------------------
# compilation/link
define(`confCC',		`cc')dnl                  #Compiler
define(`confOPTIMIZE',  `-g -Wall -O2 -fPIC -fstack-protector-all')dnl              #Optimization
define(`confCCOPTS',	`')dnl                      #CC options
define(`confCCOPTS_SO'	`-fPIC')dnl                 #Shared libraries
define(`confLD',		confCC)dnl                  #Linker
define(`confLDOPTS',	`-pie -Wl,-z,noexecstack,-z,relro,-z,now -Wl,--warn-shared-textrel')dnl             #Linker opts
define(`confLDOPTS_SO',	`-shared -fPIC -pie -Wl,-z,noexecstack,-z,relro,-z,now -Wl,--warn-shared-textrel')dnl #linker shared lib
define(`confLIBDIRS',	`')dnl                      #-L linker flags
define(`confMTCCOPTS',	`-D_REENTRANT')dnl          #Multi-thread cc opts
define(`confMTLDOPTS',	`-lpthread')dnl             #Multi-thread ld opts
define(`confSHAREDLIB_EXT', `.so')dnl               #
define(`confSHAREDLIB_SUFFIX', `')dnl               #
define(`confSHAREDLIBDIR', `/usr/lib')dnl           #
define(`confSONAME',`-soname')dnl                   #
#
# paths, owners, and modes
#	Note: can't use smmsp here, it is dynamically created
#	Note: EBINDIR deserves a better home, suggestions?
define(`confEBINDIR',	`/usr/lib/sm.bin')dnl          #mail.local,smrsh,etc.
define(`confGBINGRP',	`mail')dnl                  #sgid binary group smmsp
define(`confGBINMODE',	`02755')dnl                 #sgid binary mode
define(`confGBINOWN',	`root')dnl                  #sgid binary owner
define(`confHFDIR',		`/etc/mail')dnl     #helpfile dir
define(`confHFFILE',	`helpfile')dnl              #helpfile name
define(`confINCGRP',	`root')dnl                  #include group
define(`confINCMODE',	`0744')dnl                  #include mode
define(`confINCOWN',	`root')dnl                  #include owner
ifelse(eval(527874 >= 527363), `1',dnl
`define(`confINCLUDEDIR',`/usr/include')dnl           #include target',
`define(`confINCLUDEDIR',`/usr/include/libmilter')dnl #include target'
)dnl
define(`confINST_DEP',	`')dnl                      #submit.cf clientmqueue
define(`confLIBDIR',	`/usr/lib/libmilter')dnl    #library dir
define(`confLIBGRP',	`root')dnl                  #library group
define(`confLIBMODE',	`0744')dnl                  #library mode
define(`confLIBOWN',	`root')dnl                  #library owner
define(`confMANROOT',	`/usr/share/man/man')dnl          #man root
define(`confMANROOTMAN',`/usr/share/man/man')dnl          #man root
define(`confMANGRP',	`root')dnl                  #man group
define(`confMANMODE',	`0744')dnl                  #man mode
define(`confMANOWN',	`root')dnl                  #man owner
define(`confMBINDIR',	`/usr/lib/sm.bin')dnl          #MTA bindir /usr/sbin
define(`confMBINGRP',	`root')dnl                  #MTA bin grp
define(`confMBINMODE',	`0755')dnl                  #MTA bin mode
define(`confMBINOWN',	`root')dnl                  #MTA bin owner
define(`confMSPQOWN',	`mail')dnl                  #MSP queue owner smmsp
define(`confMSP_QUEUE_DIR', `/var/spool/mqueue-client')dnl
define(`confSBINDIR',	`/usr/lib/sm.bin')dnl          #suid bin dir /usr/sbin
define(`confSBINGRP',	`root')dnl                  #suid bin grp
define(`confSBINMODE',	`04755')dnl                 #suid bin mode
define(`confSBINOWN',	`root')dnl                  #suid bin owner
#	Note, STDIR in /var/lib/sendmail... default is /var/spool/mqueue
define(`confSTDIR',		`/var/lib/sendmail')dnl #Statistics dir
define(`confSTFILE',	`statistics')dnl            #statistics name
define(`confMSP_STFILE',`sm-client.st')dnl          #MSP statistics name
define(`confSTMODE',	`0660')dnl                  #statistics mode
define(`confUBINDIR',	`/usr/lib/sm.bin')dnl          #usr bin dir /usr/bin
define(`confUBINGRP',	`mail')dnl                  #usr bin grp smmsp
define(`confUBINMODE',	`0755')dnl                  #usr bin mode
define(`confUBINOWN',	`root')dnl                  #usr bin owner
#
# don't provide links, I'll do them myself later
# sigh... must have something in there or $(make install) croaks -- temp file
define(`confLINKS', `sendmail-bin')dnl
define(`confMTA_LINKS')dnl
#
# Force rmail installation
define(`confFORCE_RMAIL')dnl
#
# don't install formatted man pages or sendmail.st
dnl define(`confNO_MAN_INSTALL')dnl
dnl define(`confNO_MAN_BUILD')dnl
define(`confINSTALL_RAWMAN')dnl
define(`confDONT_INSTALL_CATMAN', `')dnl # for 8.12
define(`confMANDOC', `')dnl		         # for 8.9.3
define(`confNROFF',  `cat')dnl	         # for 8.9.3
define(`confNO_STATISTICS_INSTALL')dnl
#
# flags
#
# Tests (should be temporary)
#