summaryrefslogtreecommitdiff
path: root/mail/dkim-milter/patches/patch-aa
blob: a333fa47119f1a060d1724cc049dd8ca09a59b81 (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
$NetBSD: patch-aa,v 1.4 2008/03/09 15:09:26 adrianp Exp $

--- devtools/Site/site.config.m4.orig	2008-03-09 11:23:02.000000000 +0000
+++ devtools/Site/site.config.m4	2008-03-09 12:49:32.000000000 +0000
@@ -11,7 +11,7 @@
 dnl If you are encountering coredumps and want to be able to analyze them
 dnl using something like "gdb", enable this next line by deleting the "dnl"
 dnl at the front of it.
-dnl define(`confOPTIMIZE', `-g')
+@DEBUG@ define(`confOPTIMIZE', `-g')
 
 dnl Shared library for libdkim
 dnl
@@ -26,7 +26,7 @@
 dnl the package, enable this next line by deleting the "dnl" at the front
 dnl of it.  This is done automatically if you've requested the shared
 dnl library.
-dnl define(`bld_LIBDKIM_INSTALL', `true')
+define(`bld_LIBDKIM_INSTALL', `true')
 
 dnl Faster strtoul()/strtoull() implementations
 dnl
@@ -40,7 +40,7 @@
 dnl
 dnl If you want to use the asynchronous resolver library, enable this
 dnl next line by deleting the "dnl" at the front of it.
-dnl define(`bld_USE_ARLIB', `true')
+@ARLIB@ define(`bld_USE_ARLIB', `true')
 dnl 
 dnl libar normally uses res_init() or res_ninit() to load the contents
 dnl of resolv.conf for its use.  If neither of these work on your system
@@ -49,7 +49,7 @@
 dnl also be required if you've got any IPv6 addresses in /etc/resolv.conf.
 dnl In that case, enable this next line by deleting the "dnl" at the front
 dnl of it.
-dnl APPENDDEF(`conf_libar_ENVDEF', `-DAR_RES_MANUAL')
+@ARLIB@ APPENDDEF(`conf_libar_ENVDEF', `-DAR_RES_MANUAL')
 
 dnl POPAUTH -- POP-before-SMTP authentication
 dnl
@@ -87,6 +87,14 @@
 dnl lines by deleting "dnl" from the front of them and edit paths as needed.
 dnl APPENDDEF(`confINCDIRS', `-I/usr/local/ssl/include ')
 dnl APPENDDEF(`confLIBDIRS', `-L/usr/local/ssl/lib ')
+APPENDDEF(`confINCDIRS', `-I@SSLBASE@/include ')
+APPENDDEF(`confLIBDIRS', `-L@SSLBASE@/lib ')
+
+dnl pthread support
+dnl
+APPENDDEF(`confLIBS', `@PTHREAD_LDFLAGS@ ')
+APPENDDEF(`confINCDIRS', `-I@PTHREAD@/include ')
+APPENDDEF(`confLIBDIRS', `-L@PTHREAD@/lib ')
 
 dnl TRE -- Approximate regular expression matching
 dnl
@@ -117,6 +125,7 @@
 dnl APPENDDEF(`confENVDEF', `-D_FFR_STATS ')
 dnl APPENDDEF(`confENVDEF', `-D_FFR_VBR ')
 dnl APPENDDEF(`confENVDEF', `-D_FFR_ZTAGS ')
+@INET6@ APPENDDEF(`confENVDEF', `-DNETINET6 ')
 
 dnl DomainKeys -- Yahoo DomainKeys verification support
 dnl 
@@ -130,8 +139,8 @@
 dnl This must be in the search rules for your compile.  If necessary,
 dnl adjust the paths below and enable the lines by deleting "dnl" from the
 dnl front of them.
-dnl APPENDDEF(`bld_dkim_filter_INCDIRS', `-I/usr/local/sendmail/include')
-dnl APPENDDEF(`bld_dkim_filter_LIBDIRS', `-L/usr/local/sendmail/lib')
+APPENDDEF(`bld_dkim_filter_INCDIRS', `-I@LMBASE@/include')
+APPENDDEF(`bld_dkim_filter_LIBDIRS', `-L@LMBASE@/lib')
 
 dnl smfi_addheader() -- older versions of libmilter
 dnl
@@ -140,3 +150,21 @@
 dnl instead.  It will still work, but it breaks the DKIM specification.
 dnl To enable this, remove the "dnl" from the front of the line.
 dnl APPENDDEF(`conf_dkim_filter_ENVDEF', `-DNO_SMFI_INSHEADER ')
+
+dnl path fixes for pkgsrc
+dnl
+define(`confINCLUDEDIR', `@PREFIX@/include')
+define(`confLIBDIR', `@PREFIX@/lib')
+define(`confSBINDIR', `@PREFIX@/sbin')
+define(`confUBINDIR', `@PREFIX@/bin')
+define(`confEBINDIR', `@PREFIX@/libexec')
+define(`confMANROOT', `@PREFIX@/@PKGMANDIR@/man')
+define(`confMANROOTMAN', `@PREFIX@/@PKGMANDIR@/man')
+define(`confMAN4EXT', `3')
+define(`confMAN5EXT', `5')
+define(`confMAN8EXT', `8')
+define(`confINSTALL_RAWMAN', 'yes')
+define(`confDONT_INSTALL_CATMAN', 'yes')
+
+dnl option fixes for pkgsrc
+dnl
+define(`confLIBSEARCH', `db @RESOLVLIB@')