Bernd Wurst commited on 2008-03-05 21:09:58
Zeige 33 geänderte Dateien mit 4130 Einfügungen und 0 Löschungen.
| ... | ... |
@@ -0,0 +1,757 @@ |
| 1 |
+# ChangeLog for mail-mta/courier |
|
| 2 |
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
|
| 3 |
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/ChangeLog,v 1.98 2008/02/03 10:51:33 hollow Exp $ |
|
| 4 |
+ |
|
| 5 |
+ 03 Feb 2008; Benedikt Böhm <hollow@gentoo.org> courier-0.53.2.ebuild, |
|
| 6 |
+ courier-0.53.2-r1.ebuild, courier-0.55.1.ebuild, courier-0.55.1-r1.ebuild: |
|
| 7 |
+ get rid of completely broken mime type handling wrt #208033 |
|
| 8 |
+ |
|
| 9 |
+ 15 Aug 2007; Tobias Scherbaum <dertobi123@gentoo.org> |
|
| 10 |
+ courier-0.53.2-r1.ebuild: |
|
| 11 |
+ ppc stable, bug #184221 |
|
| 12 |
+ |
|
| 13 |
+ 11 Aug 2007; Steve Dibb <beandog@gentoo.org> courier-0.53.2-r1.ebuild: |
|
| 14 |
+ amd64 stable, bug 184221 |
|
| 15 |
+ |
|
| 16 |
+ 29 Jul 2007; Christian Heim <phreak@gentoo.org> courier-0.53.2.ebuild, |
|
| 17 |
+ courier-0.53.2-r1.ebuild, courier-0.55.1.ebuild, courier-0.55.1-r1.ebuild: |
|
| 18 |
+ Fixing the DEPEND/RDEPEND for the move of net-www/apache to |
|
| 19 |
+ www-servers/apache (#78622). |
|
| 20 |
+ |
|
| 21 |
+ 10 Jul 2007; Jeroen Roovers <jer@gentoo.org> courier-0.53.2-r1.ebuild: |
|
| 22 |
+ Stable for HPPA (bug #184221). |
|
| 23 |
+ |
|
| 24 |
+ 05 Jul 2007; Gustavo Zacarias <gustavoz@gentoo.org> |
|
| 25 |
+ courier-0.53.2-r1.ebuild: |
|
| 26 |
+ Stable on sparc wrt #184221 |
|
| 27 |
+ |
|
| 28 |
+ 05 Jul 2007; Raúl Porcel <armin76@gentoo.org> courier-0.53.2-r1.ebuild: |
|
| 29 |
+ alpha/ia64/x86 stable wrt #184221 |
|
| 30 |
+ |
|
| 31 |
+*courier-0.55.1-r1 (04 Jul 2007) |
|
| 32 |
+*courier-0.53.2-r1 (04 Jul 2007) |
|
| 33 |
+ |
|
| 34 |
+ 04 Jul 2007; Diego Pettenò <flameeyes@gentoo.org> |
|
| 35 |
+ +files/pam-include.patch, +courier-0.53.2-r1.ebuild, |
|
| 36 |
+ +courier-0.55.1-r1.ebuild: |
|
| 37 |
+ Add patch from Ed Catmur to work with PAM 0.99 (and in general without |
|
| 38 |
+ pam_stack). Thanks Ed. See bug #177748. |
|
| 39 |
+ |
|
| 40 |
+*courier-0.55.1 (30 May 2007) |
|
| 41 |
+ |
|
| 42 |
+ 30 May 2007; Caleb Tennis <caleb@gentoo.org> +courier-0.55.1.ebuild: |
|
| 43 |
+ Version bump. It emerges, but I'm still testing everything out |
|
| 44 |
+ |
|
| 45 |
+ 28 Apr 2007; Sven Wegener <swegener@gentoo.org> courier-0.53.2.ebuild: |
|
| 46 |
+ Fix *initd, *confd and *envd calls (#17388, #174266) |
|
| 47 |
+ |
|
| 48 |
+ 02 Apr 2007; Petteri Räty <betelgeuse@gentoo.org> -courier-0.48.1.ebuild, |
|
| 49 |
+ -courier-0.48.1-r1.ebuild, -courier-0.48.2.20050224.ebuild, |
|
| 50 |
+ -courier-0.49.0.ebuild, -courier-0.49.0.20050405.ebuild, |
|
| 51 |
+ -courier-0.50.0.ebuild, -courier-0.50.1.ebuild, -courier-0.50.1-r1.ebuild, |
|
| 52 |
+ -courier-0.52.2.ebuild, courier-0.53.2.ebuild: |
|
| 53 |
+ Remove old versions. Most of these are vulnerable to security issues. |
|
| 54 |
+ |
|
| 55 |
+ 18 Mar 2007; Marius Mauch <genone@gentoo.org> courier-0.48.1.ebuild, |
|
| 56 |
+ courier-0.48.1-r1.ebuild, courier-0.48.2.20050224.ebuild, |
|
| 57 |
+ courier-0.49.0.ebuild, courier-0.49.0.20050405.ebuild, |
|
| 58 |
+ courier-0.50.0.ebuild, courier-0.50.1.ebuild, courier-0.50.1-r1.ebuild, |
|
| 59 |
+ courier-0.52.2.ebuild, courier-0.53.2.ebuild: |
|
| 60 |
+ Replacing einfo with elog |
|
| 61 |
+ |
|
| 62 |
+ 05 Jan 2007; Diego Pettenò <flameeyes@gentoo.org> |
|
| 63 |
+ courier-0.48.2.20050224.ebuild, courier-0.49.0.ebuild, |
|
| 64 |
+ courier-0.49.0.20050405.ebuild, courier-0.50.0.ebuild, |
|
| 65 |
+ courier-0.50.1.ebuild, courier-0.50.1-r1.ebuild, courier-0.52.2.ebuild: |
|
| 66 |
+ Remove gnuconfig_update usage, leave it to econf. |
|
| 67 |
+ |
|
| 68 |
+ 04 Jan 2007; Diego Pettenò <flameeyes@gentoo.org> courier-0.53.2.ebuild: |
|
| 69 |
+ Fix broken autotools handling and remove gnuconfig inheritance. |
|
| 70 |
+ |
|
| 71 |
+ 23 Nov 2006; Francesco Riosa <vivo@gentoo.org> courier-0.48.1.ebuild, |
|
| 72 |
+ courier-0.48.1-r1.ebuild, courier-0.48.2.20050224.ebuild, |
|
| 73 |
+ courier-0.49.0.ebuild, courier-0.49.0.20050405.ebuild, |
|
| 74 |
+ courier-0.50.0.ebuild, courier-0.50.1.ebuild, courier-0.50.1-r1.ebuild, |
|
| 75 |
+ courier-0.52.2.ebuild, courier-0.53.2.ebuild: |
|
| 76 |
+ dev-db/mysql => virtual/mysql |
|
| 77 |
+ |
|
| 78 |
+ 15 Oct 2006; Bryan Østergaard <kloeri@gentoo.org> courier-0.53.2.ebuild: |
|
| 79 |
+ Stable on ia64, bug 135005. |
|
| 80 |
+ |
|
| 81 |
+ 14 Oct 2006; Bryan Østergaard <kloeri@gentoo.org> metadata.xml: |
|
| 82 |
+ Remove swtaylor from metadata.xml due to retiring. |
|
| 83 |
+ |
|
| 84 |
+ 31 Jul 2006; Simon Stelling <blubb@gentoo.org> courier-0.53.2.ebuild: |
|
| 85 |
+ stable on amd64 wrt bug 135005 |
|
| 86 |
+ |
|
| 87 |
+ 22 Jul 2006; Thomas Cort <tcort@gentoo.org> courier-0.53.2.ebuild: |
|
| 88 |
+ Stable on alpha wrt security Bug #135005. |
|
| 89 |
+ |
|
| 90 |
+ 22 Jul 2006; Rene Nussbaumer <killerfox@gentoo.org> courier-0.53.2.ebuild: |
|
| 91 |
+ Stable on hppa. See bug #135005. |
|
| 92 |
+ |
|
| 93 |
+ 20 Jul 2006; Joshua Jackson <tsunam@gentoo.org> courier-0.53.2.ebuild: |
|
| 94 |
+ marking the right version stable for x86 this time |
|
| 95 |
+ |
|
| 96 |
+ 18 Jul 2006; Michael Hanselmann <hansmi@gentoo.org> courier-0.53.2.ebuild: |
|
| 97 |
+ Stable on ppc, too. |
|
| 98 |
+ |
|
| 99 |
+ 18 Jul 2006; Michael Hanselmann <hansmi@gentoo.org> courier-0.52.2.ebuild: |
|
| 100 |
+ Stable on ppc. |
|
| 101 |
+ |
|
| 102 |
+ 18 Jul 2006; Tuấn Văn <langthang@gentoo.org> courier-0.53.2.ebuild: |
|
| 103 |
+ remove conditional patch. should be always or `use_with fam` won't work. |
|
| 104 |
+ |
|
| 105 |
+ 18 Jul 2006; Tuấn Văn <langthang@gentoo.org> |
|
| 106 |
+ +files/fam-disable-check.patch, courier-0.53.2.ebuild: |
|
| 107 |
+ add fam-disable-check patch. Bug #140883. |
|
| 108 |
+ mv epatch to src_unpack and use eautoreconf instead. |
|
| 109 |
+ |
|
| 110 |
+ 16 Jul 2006; Jason Wever <weeve@gentoo.org> courier-0.53.2.ebuild: |
|
| 111 |
+ Stable on SPARC wrt security bug #135005. |
|
| 112 |
+ |
|
| 113 |
+ 14 Jul 2006; Luca Longinotti <chtekk@gentoo.org> files/mailer.conf, |
|
| 114 |
+ courier-0.53.2.ebuild: |
|
| 115 |
+ Fix bug in src_test and correct mailer.conf, thanks to Jason Wever on bug |
|
| 116 |
+ #135005. |
|
| 117 |
+ |
|
| 118 |
+ 12 Jul 2006; Joshua Jackson <tsunam@gentoo.org> courier-0.52.2.ebuild: |
|
| 119 |
+ Stable x86; security bug #135005 |
|
| 120 |
+ |
|
| 121 |
+*courier-0.53.2 (11 Jul 2006) |
|
| 122 |
+ |
|
| 123 |
+ 11 Jul 2006; Luca Longinotti <chtekk@gentoo.org> +files/courier-init-r1, |
|
| 124 |
+ +courier-0.53.2.ebuild: |
|
| 125 |
+ Version bump. Fixes security bug #135005 and bugs #130957, #133401, #107557 |
|
| 126 |
+ and #134027. Thanks to Marcin Semeniuk for his help. |
|
| 127 |
+ |
|
| 128 |
+ 27 Apr 2006; Marien Zwart <marienz@gentoo.org> |
|
| 129 |
+ files/digest-courier-0.48.1, files/digest-courier-0.48.1-r1, |
|
| 130 |
+ files/digest-courier-0.48.2.20050224, files/digest-courier-0.49.0, |
|
| 131 |
+ files/digest-courier-0.49.0.20050405, files/digest-courier-0.50.0, |
|
| 132 |
+ files/digest-courier-0.50.1, files/digest-courier-0.50.1-r1, Manifest: |
|
| 133 |
+ Fixing SHA256 digest, pass four |
|
| 134 |
+ |
|
| 135 |
+ 02 Mar 2006; Brian Jackson <iggy@gentoo.org> courier-0.52.2.ebuild: |
|
| 136 |
+ added libpcre as a dep, bug 123900, thanks to Marco Iseli ismaATsfsservices.biz |
|
| 137 |
+ |
|
| 138 |
+ 19 Feb 2006; Brian Jackson <iggy@gentoo.org> +courier-0.52.2.ebuild: |
|
| 139 |
+ version bump |
|
| 140 |
+ |
|
| 141 |
+*courier-0.52.2 (19 Feb 2006) |
|
| 142 |
+ |
|
| 143 |
+ 25 Dec 2005; Diego Pettenò <flameeyes@gentoo.org> |
|
| 144 |
+ courier-0.50.1-r1.ebuild: |
|
| 145 |
+ Use root:0, not root:root. |
|
| 146 |
+ |
|
| 147 |
+*courier-0.50.1-r1 (29 Jul 2005) |
|
| 148 |
+ |
|
| 149 |
+ 29 Jul 2005; Brian Jackson <iggy@gentoo.org> +courier-0.50.1-r1.ebuild: |
|
| 150 |
+ revbump with some changes. it's -*, and I'd like to get some testing |
|
| 151 |
+ |
|
| 152 |
+ 11 Jul 2005; Bryan Østergaard <kloeri@gentoo.org> |
|
| 153 |
+ courier-0.48.1-r1.ebuild: |
|
| 154 |
+ Stable on alpha + ia64, bug 97915. |
|
| 155 |
+ |
|
| 156 |
+ 11 Jul 2005; Tobias Scherbaum <dertobi123@gentoo.org> |
|
| 157 |
+ courier-0.48.1-r1.ebuild: |
|
| 158 |
+ ppc stable, #97915 |
|
| 159 |
+ |
|
| 160 |
+ 11 Jul 2005; Simon Stelling <blubb@gentoo.org> courier-0.48.1-r1.ebuild: |
|
| 161 |
+ stable on amd64 wrt bug 97915 |
|
| 162 |
+ |
|
| 163 |
+ 11 Jul 2005; Rene Nussbaumer <killerfox@gentoo.org> |
|
| 164 |
+ courier-0.48.1-r1.ebuild: |
|
| 165 |
+ Stable on hppa. bug #97915 |
|
| 166 |
+ |
|
| 167 |
+ 11 Jul 2005; Jason Wever <weeve@gentoo.org> courier-0.48.1-r1.ebuild: |
|
| 168 |
+ Stable on SPARC wrt security bug #97915. |
|
| 169 |
+ |
|
| 170 |
+ 10 Jul 2005; Andrej Kacian <ticho@gentoo.org> courier-0.48.1-r1.ebuild: |
|
| 171 |
+ Stable on x86. |
|
| 172 |
+ |
|
| 173 |
+*courier-0.48.1-r1 (10 Jul 2005) |
|
| 174 |
+ |
|
| 175 |
+ 10 Jul 2005; Andrej Kacian <ticho@gentoo.org> |
|
| 176 |
+ +files/courier-0.48.1-spf-error-handling.patch, +courier-0.48.1-r1.ebuild: |
|
| 177 |
+ Bumped 0.48.1 because of security bug #97915 with a patch to fix it. Also |
|
| 178 |
+ fixed sandbox access violation on subsequent merge. |
|
| 179 |
+ |
|
| 180 |
+ 10 Jul 2005; Andrej Kacian <ticho@gentoo.org> +files/mailer.conf, |
|
| 181 |
+ +courier-0.50.1.ebuild: |
|
| 182 |
+ Version bump, wrt security bug #97915. Also changed the ebuild to be more |
|
| 183 |
+ mailwrapper-compatible. |
|
| 184 |
+ |
|
| 185 |
+*courier-0.50.1 (04 Jul 2005) |
|
| 186 |
+ |
|
| 187 |
+ 04 Jul 2005; Andrej Kacian <ticho@gentoo.org> +files/mailer.conf, |
|
| 188 |
+ +courier-0.50.1.ebuild: |
|
| 189 |
+ Version bump, due to security bug #97915. Also improved mailwrapper |
|
| 190 |
+ compatibility. |
|
| 191 |
+ |
|
| 192 |
+*courier-0.50.0 (02 Jul 2005) |
|
| 193 |
+ |
|
| 194 |
+ 02 Jul 2005; Scott W Taylor <swtaylor@gentoo.org> +courier-0.50.0.ebuild: |
|
| 195 |
+ bump |
|
| 196 |
+ |
|
| 197 |
+ 29 May 2005; <solar@gentoo.org> courier-0.48.1.ebuild, |
|
| 198 |
+ courier-0.48.2.20050224.ebuild, courier-0.49.0.20050405.ebuild, |
|
| 199 |
+ courier-0.49.0.ebuild: |
|
| 200 |
+ - update courier to use libc expanded variable elibc_uclibc vs uclibc so |
|
| 201 |
+ USE=-* works |
|
| 202 |
+ |
|
| 203 |
+*courier-0.49.0.20050405 (06 Apr 2005) |
|
| 204 |
+ |
|
| 205 |
+ 06 Apr 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 206 |
+ +courier-0.49.0.20050405.ebuild: |
|
| 207 |
+ bump |
|
| 208 |
+ |
|
| 209 |
+ 21 Mar 2005; Scott W Taylor <swtaylor@gentoo.org> -courier-0.47-r1.ebuild, |
|
| 210 |
+ -courier-0.48.2.ebuild, -courier-0.48.2.20050215.ebuild, |
|
| 211 |
+ courier-0.48.2.20050224.ebuild, courier-0.49.0.ebuild: |
|
| 212 |
+ tidy up due to collision with mailbase. strip bad cflags |
|
| 213 |
+ |
|
| 214 |
+*courier-0.49.0 (04 Mar 2005) |
|
| 215 |
+ |
|
| 216 |
+ 04 Mar 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 217 |
+ courier-0.48.2.20050215.ebuild, courier-0.48.2.20050224.ebuild, |
|
| 218 |
+ courier-0.48.2.ebuild, +courier-0.49.0.ebuild: |
|
| 219 |
+ bump to 0.49.0 keepdir had been executed on too many directories, collided |
|
| 220 |
+ with baselayout. readded more sane keepdir calls, fixes bug 82286 |
|
| 221 |
+ |
|
| 222 |
+ 03 Mar 2005; Ciaran McCreesh <ciaranm@gentoo.org> courier-0.47-r1.ebuild, |
|
| 223 |
+ courier-0.48.1.ebuild, courier-0.48.2.20050130.ebuild, |
|
| 224 |
+ courier-0.48.2.20050203.ebuild, courier-0.48.2.20050215.ebuild, |
|
| 225 |
+ courier-0.48.2.20050224.ebuild, courier-0.48.2.ebuild: |
|
| 226 |
+ Move sys-apps/procps -> sys-process/procps |
|
| 227 |
+ |
|
| 228 |
+*courier-0.48.2.20050224 (25 Feb 2005) |
|
| 229 |
+ |
|
| 230 |
+ 25 Feb 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 231 |
+ +courier-0.48.2.20050224.ebuild: |
|
| 232 |
+ bump. adds sha256 |
|
| 233 |
+ |
|
| 234 |
+*courier-0.48.2.20050215 (15 Feb 2005) |
|
| 235 |
+ |
|
| 236 |
+ 15 Feb 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 237 |
+ +courier-0.48.2.20050215.ebuild: |
|
| 238 |
+ bump, looks like minor stuff from upstream, consistency updates and |
|
| 239 |
+ backscatter on uucp/fax |
|
| 240 |
+ |
|
| 241 |
+*courier-0.48.2.20050203 (05 Feb 2005) |
|
| 242 |
+ |
|
| 243 |
+ 05 Feb 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 244 |
+ +courier-0.48.2.20050203.ebuild: |
|
| 245 |
+ version bump. mostly backscatter updates |
|
| 246 |
+ |
|
| 247 |
+ 31 Jan 2005; Scott W Taylor <swtaylor@gentoo.org> files/courier-init, |
|
| 248 |
+ courier-0.48.1.ebuild, courier-0.48.2.20050130.ebuild: |
|
| 249 |
+ apply keepdir change to 0.48.1 as well |
|
| 250 |
+ |
|
| 251 |
+ 31 Jan 2005; Scott W Taylor <swtaylor@gentoo.org> files/courier-init, |
|
| 252 |
+ courier-0.48.2.20050130.ebuild: |
|
| 253 |
+ fewer keepdirs for 70503 |
|
| 254 |
+ init.d need famd for 69630 |
|
| 255 |
+ allow removal of fam for 69630.7 |
|
| 256 |
+ |
|
| 257 |
+ 30 Jan 2005; Scott W Taylor <swtaylor@gentoo.org> courier-0.48.1.ebuild: |
|
| 258 |
+ stabilize 0.48.1 - most notable change is authentication moved to new |
|
| 259 |
+ courier-authlib package |
|
| 260 |
+ |
|
| 261 |
+ 30 Jan 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 262 |
+ courier-0.48.2.20050130.ebuild: |
|
| 263 |
+ version bump, add smtp auth methods as well. |
|
| 264 |
+ |
|
| 265 |
+*courier-0.48.2.20050130 (30 Jan 2005) |
|
| 266 |
+*courier-0.48.2 (30 Jan 2005) |
|
| 267 |
+ |
|
| 268 |
+ 30 Jan 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 269 |
+ -courier-0.46.20040902.ebuild, -courier-0.47.20041129.ebuild, |
|
| 270 |
+ courier-0.48.1.ebuild, +courier-0.48.2.20050130.ebuild, |
|
| 271 |
+ +courier-0.48.2.ebuild, -courier-0.48.ebuild: |
|
| 272 |
+ $(get_libdir) added for arch compatibility. cleaning house too. |
|
| 273 |
+ |
|
| 274 |
+*courier-0.48.1 (05 Jan 2005) |
|
| 275 |
+ |
|
| 276 |
+ 05 Jan 2005; Scott W Taylor <swtaylor@gentoo.org> +courier-0.48.1.ebuild: |
|
| 277 |
+ bump |
|
| 278 |
+ |
|
| 279 |
+*courier-0.48 (01 Jan 2005) |
|
| 280 |
+ |
|
| 281 |
+ 01 Jan 2005; Scott W Taylor <swtaylor@gentoo.org> +courier-0.48.ebuild, |
|
| 282 |
+ -courier-0.48_pre.ebuild: |
|
| 283 |
+ courier 0.48 released |
|
| 284 |
+ |
|
| 285 |
+ 15 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> courier-0.47-r1.ebuild, |
|
| 286 |
+ courier-0.47.20041129.ebuild, courier-0.48_pre.ebuild: |
|
| 287 |
+ move gnupg to fix circular dependancy |
|
| 288 |
+ |
|
| 289 |
+ 10 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 290 |
+ -courier-0.46.20040825.ebuild, -courier-0.46.ebuild, -courier-0.47.ebuild: |
|
| 291 |
+ housecleaning |
|
| 292 |
+ |
|
| 293 |
+ 09 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> courier-0.48_pre.ebuild: |
|
| 294 |
+ don't mirror release candidate |
|
| 295 |
+ |
|
| 296 |
+*courier-0.48_pre (09 Dec 2004) |
|
| 297 |
+ |
|
| 298 |
+ 09 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 299 |
+ +courier-0.48_pre.ebuild: |
|
| 300 |
+ bump |
|
| 301 |
+ |
|
| 302 |
+ 07 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> courier-0.47-r1.ebuild, |
|
| 303 |
+ courier-0.47.20041129.ebuild: |
|
| 304 |
+ remove virtual/mda block |
|
| 305 |
+ |
|
| 306 |
+ 06 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> courier-0.47-r1.ebuild, |
|
| 307 |
+ courier-0.47.20041129.ebuild: |
|
| 308 |
+ add mime.types dep |
|
| 309 |
+ |
|
| 310 |
+ 05 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> courier-0.47-r1.ebuild, |
|
| 311 |
+ courier-0.47.20041129.ebuild: |
|
| 312 |
+ keep .maildir even if empty |
|
| 313 |
+ |
|
| 314 |
+*courier-0.47-r1 (05 Dec 2004) |
|
| 315 |
+ |
|
| 316 |
+ 05 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> +courier-0.47-r1.ebuild, |
|
| 317 |
+ courier-0.47.20041129.ebuild: |
|
| 318 |
+ build courier before mailwrapper, bug 73486 |
|
| 319 |
+ |
|
| 320 |
+ 05 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 321 |
+ courier-0.47.20041129.ebuild: |
|
| 322 |
+ sed magic to fix #73468 |
|
| 323 |
+ |
|
| 324 |
+ 01 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> -courier-0.45.6.ebuild, |
|
| 325 |
+ -courier-0.46.20040816.ebuild, -courier-0.47.20041113.ebuild, |
|
| 326 |
+ -courier-0.47.20041120.ebuild, courier-0.47.20041129.ebuild, |
|
| 327 |
+ courier-0.47.ebuild: |
|
| 328 |
+ bump and cleanup |
|
| 329 |
+ |
|
| 330 |
+*courier-0.47.20041129 (01 Dec 2004) |
|
| 331 |
+ |
|
| 332 |
+ 01 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 333 |
+ +courier-0.47.20041129.ebuild: |
|
| 334 |
+ bump |
|
| 335 |
+ |
|
| 336 |
+ 29 Nov 2004; Andrej Kacian <ticho@gentoo.org> courier-0.45.6.ebuild, |
|
| 337 |
+ courier-0.46.20040816.ebuild, courier-0.46.20040825.ebuild, |
|
| 338 |
+ courier-0.46.20040902.ebuild, courier-0.46.ebuild, |
|
| 339 |
+ courier-0.47.20041113.ebuild, courier-0.47.20041120.ebuild, |
|
| 340 |
+ courier-0.47.ebuild: |
|
| 341 |
+ Changed app-admin/fam -> virtual/fam, as per bug #67170. |
|
| 342 |
+ |
|
| 343 |
+ 26 Nov 2004; Scott W Taylor <swtaylor@gentoo.org> files/courier-init: |
|
| 344 |
+ will need courier-authlib in near future. init script updated to reflect this. |
|
| 345 |
+ |
|
| 346 |
+*courier-0.47.20041120 (21 Nov 2004) |
|
| 347 |
+ |
|
| 348 |
+ 21 Nov 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 349 |
+ +courier-0.47.20041120.ebuild: |
|
| 350 |
+ version bump. work in progress |
|
| 351 |
+ |
|
| 352 |
+ 19 Nov 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 353 |
+ courier-0.47.20041113.ebuild: |
|
| 354 |
+ net-libs/courier-authlib |
|
| 355 |
+ |
|
| 356 |
+ 17 Nov 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 357 |
+ courier-0.47.20041113.ebuild: |
|
| 358 |
+ getting closer |
|
| 359 |
+ |
|
| 360 |
+ 17 Nov 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 361 |
+ courier-0.47.20041113.ebuild: |
|
| 362 |
+ work in progress. don't use. |
|
| 363 |
+ |
|
| 364 |
+ 16 Nov 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 365 |
+ courier-0.47.20041113.ebuild: |
|
| 366 |
+ add maildropldap |
|
| 367 |
+ |
|
| 368 |
+*courier-0.47.20041113 (16 Nov 2004) |
|
| 369 |
+ |
|
| 370 |
+ 16 Nov 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 371 |
+ +courier-0.47.20041113.ebuild: |
|
| 372 |
+ now requires courier-authlib. work in progress. |
|
| 373 |
+ |
|
| 374 |
+ 02 Nov 2004; Bret Curtis,,, <psi29a@gentoo.org> courier-0.47.ebuild: |
|
| 375 |
+ workes well on mips, but marked ~mips for now. |
|
| 376 |
+ |
|
| 377 |
+ 02 Oct 2004; <iggy@gentoo.org> files/courier-init: |
|
| 378 |
+ fix bug #57310, thanks to Ben Kennedy |
|
| 379 |
+ |
|
| 380 |
+ 20 Sep 2004; <iggy@gentoo.org> courier-0.47.ebuild: |
|
| 381 |
+ added a small fix for building with uclibc, and removed expect as a dep |
|
| 382 |
+ |
|
| 383 |
+*courier-0.47 (19 Sep 2004) |
|
| 384 |
+ |
|
| 385 |
+ 19 Sep 2004; Scott W Taylor <swtaylor@gentoo.org> +courier-0.47.ebuild: |
|
| 386 |
+ new version. src_uri is now a conditional instead of swapping commented lines |
|
| 387 |
+ for maintainer ease |
|
| 388 |
+ |
|
| 389 |
+ 19 Sep 2004; Scott W Taylor <swtaylor@gentoo.org> -courier-0.45.4.ebuild, |
|
| 390 |
+ -courier-0.45.5.20040606.ebuild, -courier-0.45.5.ebuild, |
|
| 391 |
+ -courier-0.45.6.20040618.ebuild, courier-0.46.20040902.ebuild, |
|
| 392 |
+ courier-0.46.ebuild: |
|
| 393 |
+ cleanup, promote stable |
|
| 394 |
+ |
|
| 395 |
+ 06 Sep 2004; Ciaran McCreesh <ciaranm@gentoo.org> courier-0.45.4.ebuild, |
|
| 396 |
+ courier-0.45.5.20040606.ebuild, courier-0.45.5.ebuild, |
|
| 397 |
+ courier-0.45.6.20040618.ebuild, courier-0.45.6.ebuild, |
|
| 398 |
+ courier-0.46.20040816.ebuild, courier-0.46.20040825.ebuild, |
|
| 399 |
+ courier-0.46.20040902.ebuild, courier-0.46.ebuild: |
|
| 400 |
+ Switch to use epause and ebeep, bug #62950. Fix header lines. |
|
| 401 |
+ |
|
| 402 |
+ 06 Sep 2004; Danny van Dyk <kugelfang@gentoo.org> |
|
| 403 |
+ courier-0.46.20040902.ebuild: |
|
| 404 |
+ Marked ~amd64. |
|
| 405 |
+ |
|
| 406 |
+*courier-0.46.20040902 (03 Sep 2004) |
|
| 407 |
+ |
|
| 408 |
+ 03 Sep 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 409 |
+ +courier-0.46.20040902.ebuild: |
|
| 410 |
+ hot off the press with spf update |
|
| 411 |
+ |
|
| 412 |
+*courier-0.46.20040825 (26 Aug 2004) |
|
| 413 |
+ |
|
| 414 |
+ 26 Aug 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 415 |
+ +courier-0.46.20040825.ebuild: |
|
| 416 |
+ bump. more SPF support |
|
| 417 |
+ |
|
| 418 |
+*courier-0.46.20040816 (16 Aug 2004) |
|
| 419 |
+ |
|
| 420 |
+ 16 Aug 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 421 |
+ +courier-0.46.20040816.ebuild: |
|
| 422 |
+ version bump. spf beginning to be handled internally. "man 8 courier" for |
|
| 423 |
+ details.54557 really fixed. |
|
| 424 |
+ |
|
| 425 |
+*courier-0.46 (01 Aug 2004) |
|
| 426 |
+ |
|
| 427 |
+ 01 Aug 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 428 |
+ courier-0.45.6.20040618.ebuild, courier-0.45.6.ebuild, +courier-0.46.ebuild: |
|
| 429 |
+ mark 0.45.6.* stable |
|
| 430 |
+ |
|
| 431 |
+*courier-0.46 (01 Aug 2004) |
|
| 432 |
+ |
|
| 433 |
+ 01 Aug 2004; Scott W Taylor <swtaylor@gentoo.org> +courier-0.46.ebuild: |
|
| 434 |
+ courier 0.46 released today |
|
| 435 |
+ |
|
| 436 |
+ 29 Jul 2004; Gustavo Zacarias <gustavoz@gentoo.org> |
|
| 437 |
+ courier-0.45.6.20040618.ebuild: |
|
| 438 |
+ Stable on sparc wrt #58020 |
|
| 439 |
+ |
|
| 440 |
+ 01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> |
|
| 441 |
+ courier-0.45.4.ebuild, courier-0.45.5.20040606.ebuild, |
|
| 442 |
+ courier-0.45.5.ebuild, courier-0.45.6.20040618.ebuild, |
|
| 443 |
+ courier-0.45.6.ebuild: |
|
| 444 |
+ virtual/glibc -> virtual/libc |
|
| 445 |
+ |
|
| 446 |
+ 22 Jun 2004; Scott W Taylor <swtaylor@gentoo.org> -courier-0.45.3.ebuild, |
|
| 447 |
+ courier-0.45.5.ebuild: |
|
| 448 |
+ mark 0.45.5 stable |
|
| 449 |
+ |
|
| 450 |
+ 20 Jun 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 451 |
+ courier-0.45.6.20040618.ebuild, courier-0.45.6.ebuild: |
|
| 452 |
+ cosmetic changes |
|
| 453 |
+ |
|
| 454 |
+ 20 Jun 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 455 |
+ courier-0.45.6.20040618.ebuild: |
|
| 456 |
+ upstream added more config statements referencing Maildir. this fixes 54557 |
|
| 457 |
+ |
|
| 458 |
+*courier-0.45.6.20040618 (18 Jun 2004) |
|
| 459 |
+ |
|
| 460 |
+ 18 Jun 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 461 |
+ +courier-0.45.6.20040618.ebuild: |
|
| 462 |
+ bump |
|
| 463 |
+ |
|
| 464 |
+*courier-0.45.6 (12 Jun 2004) |
|
| 465 |
+ |
|
| 466 |
+ 12 Jun 2004; Scott W Taylor <swtaylor@gentoo.org> -courier-0.45.1.ebuild, |
|
| 467 |
+ -courier-0.45.2.ebuild, courier-0.45.4.ebuild, +courier-0.45.6.ebuild: |
|
| 468 |
+ new 45.6, stable 45.4, drop 45.1 and 45.2 |
|
| 469 |
+ |
|
| 470 |
+*courier-0.45.5.20040606 (08 Jun 2004) |
|
| 471 |
+ |
|
| 472 |
+ 08 Jun 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 473 |
+ +courier-0.45.5.20040606.ebuild: |
|
| 474 |
+ Spiffy new courier. Tidy up ebuild as well. |
|
| 475 |
+ |
|
| 476 |
+*courier-0.45.4 (29 May 2004) |
|
| 477 |
+ |
|
| 478 |
+ 29 May 2004; Robin H. Johnson <robbat2@gentoo.org> courier-0.45.1.ebuild, |
|
| 479 |
+ courier-0.45.2.ebuild, courier-0.45.3.ebuild, courier-0.45.4.ebuild, |
|
| 480 |
+ courier-0.45.5.ebuild, metadata.xml, files/apache-sqwebmail.inc, files/bofh, |
|
| 481 |
+ files/courier-init, files/dot_courier, files/locallowercase, |
|
| 482 |
+ files/norewrite.patch, files/password.dist, files/set-mime: |
|
| 483 |
+ Moved from net-mail/courier to mail-mta/courier. |
|
| 484 |
+ |
|
| 485 |
+*courier-0.45.5 (22 May 2004) |
|
| 486 |
+ |
|
| 487 |
+ 22 May 2004; Scott W Taylor <swtaylor@gentoo.org> +courier-0.45.5.ebuild: |
|
| 488 |
+ bump 0.45.5 |
|
| 489 |
+ |
|
| 490 |
+ 22 May 2004; Scott W Taylor <swtaylor@gentoo.org> files/courier-init: |
|
| 491 |
+ spelling fix and init script update for sqwebmail which gets renamed in 0.45.5 |
|
| 492 |
+ |
|
| 493 |
+ 28 Apr 2004; Scott W Taylor <swtaylor@gentoo.org> courier-0.45.2.ebuild, |
|
| 494 |
+ courier-0.45.3.ebuild: |
|
| 495 |
+ get ppc mask caught up |
|
| 496 |
+ |
|
| 497 |
+ 28 Apr 2004; Scott W Taylor <swtaylor@gentoo.org> courier-0.45.2.ebuild, |
|
| 498 |
+ courier-0.45.3.ebuild, courier-0.45.4.ebuild: |
|
| 499 |
+ Bug 49198 - moved ${D} adjustments out of pkg_preinst
|
|
| 500 |
+ |
|
| 501 |
+ 27 Apr 2004; Aron Griffis <agriffis@gentoo.org> courier-0.45.3.ebuild, |
|
| 502 |
+ courier-0.45.4.ebuild: |
|
| 503 |
+ Add inherit eutils |
|
| 504 |
+ |
|
| 505 |
+ 21 Apr 2004; Scott W Taylor <swtaylor@gentoo.org> courier-0.45.2.ebuild, |
|
| 506 |
+ courier-0.45.3.ebuild, courier-0.45.4.ebuild: |
|
| 507 |
+ mark 0.45.2 stable and fix bug 41819 |
|
| 508 |
+ |
|
| 509 |
+ 09 Apr 2004; Scott W Taylor <swtaylor@gentoo.org> courier-0.45.4.ebuild: |
|
| 510 |
+ Added ~sparc on 0.45.4 too |
|
| 511 |
+ |
|
| 512 |
+ 06 Apr 2004; Jason Wever <weeve@gentoo.org> courier-0.45.3.ebuild: |
|
| 513 |
+ Added ~sparc keyword wrt bug #46319. |
|
| 514 |
+ |
|
| 515 |
+*courier-0.45.4 (06 Apr 2004) |
|
| 516 |
+ |
|
| 517 |
+ 06 Apr 2004; Scott W Taylor <swtaylor@gentoo.org> courier-0.45.4.ebuild: |
|
| 518 |
+ version bump |
|
| 519 |
+ |
|
| 520 |
+*courier-0.45.3 (01 Apr 2004) |
|
| 521 |
+ |
|
| 522 |
+ 01 Apr 2004; Scott W Taylor <swtaylor@gentoo.org> courier-0.45.3.ebuild, |
|
| 523 |
+ files/courier-init, files/norewrite.patch: |
|
| 524 |
+ Version bump and fixes for bugs 44241 and 44245. |
|
| 525 |
+ |
|
| 526 |
+ 30 Mar 2004; Lars Weiler <pylon@gentoo.org> courier-0.45.2.ebuild: |
|
| 527 |
+ Masked ~ppc on user report |
|
| 528 |
+ |
|
| 529 |
+*courier-0.45.2 (16 Mar 2004) |
|
| 530 |
+ |
|
| 531 |
+ 16 Mar 2004; Brian Jackson <iggy@gentoo.org> courier-0.45.2.ebuild, |
|
| 532 |
+ files/courier-init: |
|
| 533 |
+ version bump |
|
| 534 |
+ |
|
| 535 |
+*courier-0.45.1 (09 Mar 2004) |
|
| 536 |
+ |
|
| 537 |
+ 09 Mar 2004; Brian Jackson <iggy@gentoo.org> courier-0.44.0.ebuild, |
|
| 538 |
+ courier-0.44.2.20040201.ebuild, courier-0.44.2.ebuild, |
|
| 539 |
+ courier-0.45.0.ebuild, courier-0.45.1.ebuild, files/courier, |
|
| 540 |
+ files/courier-authdaemond, files/courier-esmtpd, files/courier-esmtpd-msa, |
|
| 541 |
+ files/courier-esmtpd-ssl, files/courier-filterd, files/courier-imapd, |
|
| 542 |
+ files/courier-imapd-ssl, files/courier-ldapaliasd, files/courier-mta, |
|
| 543 |
+ files/courier-pop3d, files/courier-pop3d-ssl, files/gentoo.diff.bz2: |
|
| 544 |
+ version bump, fixes 2 minor bugs only |
|
| 545 |
+ |
|
| 546 |
+*courier-0.45.0 (07 Mar 2004) |
|
| 547 |
+ |
|
| 548 |
+ 07 Mar 2004; Brian Jackson <iggy@gentoo.org> courier-0.45.0.ebuild, |
|
| 549 |
+ files/courier-init: |
|
| 550 |
+ version bump, fix for bug 42164, and an issue reported by |
|
| 551 |
+ hachre@dynaloop.net |
|
| 552 |
+ |
|
| 553 |
+ 15 Feb 2004; Brian Jackson <iggy@gentoo.org> courier-0.44.2.20040201.ebuild: |
|
| 554 |
+ a few cleanups, and fix bug 32878 |
|
| 555 |
+ |
|
| 556 |
+*courier-0.44.2.20040201 (08 Feb 2004) |
|
| 557 |
+ |
|
| 558 |
+ 08 Feb 2004; Brian Jackson <iggy@gentoo.org> courier-0.44.0.ebuild, |
|
| 559 |
+ courier-0.44.2.20040201.ebuild, courier-0.44.2.ebuild: |
|
| 560 |
+ version bump to fix a problem with 2.6 kernels, changed a few keywords |
|
| 561 |
+ |
|
| 562 |
+ 14 Jan 2004; Aron Griffis <agriffis@gentoo.org> courier-0.44.2.ebuild: |
|
| 563 |
+ add ~alpha (bug 21240) |
|
| 564 |
+ |
|
| 565 |
+ 09 Dec 2003; Heinrich Wendel <lanius@gentoo.org> courier-0.44.0.ebuild, |
|
| 566 |
+ courier-0.44.2.ebuild: |
|
| 567 |
+ changed app-text/ghostscript to virtual/ghostscript |
|
| 568 |
+ |
|
| 569 |
+ 08 Dec 2003; Brian Jackson <iggy@gentoo.org> courier-0.42.2.ebuild, |
|
| 570 |
+ courier-0.43.2.ebuild, courier-0.44.0.ebuild, courier-0.44.2.ebuild, |
|
| 571 |
+ files/courier-0.42.2-gentoo.diff.bz2: |
|
| 572 |
+ cleaning out old ebuilds/etc, and cleaning up touch .keep's |
|
| 573 |
+ |
|
| 574 |
+ 08 Dec 2003; Brian Jackson <iggy@gentoo.org> courier-0.42.2.ebuild: |
|
| 575 |
+ fixed the other chown in courier-0.42.2 |
|
| 576 |
+ |
|
| 577 |
+ 07 Dec 2003; foser <foser@gentoo.org> courier-0.*.ebuild : |
|
| 578 |
+ Fix fam-oss > fam, due to move |
|
| 579 |
+ |
|
| 580 |
+ 07 Dec 2003; Brian Jackson <iggy@gentoo.org> courier-0.44.2.ebuild: |
|
| 581 |
+ add note about recent sed magic |
|
| 582 |
+ |
|
| 583 |
+ 30 Nov 2003; Brian Jackson <iggy@gentoo.org> courier-0.44.0.ebuild: |
|
| 584 |
+ bump 0.44.0 to x86 |
|
| 585 |
+ |
|
| 586 |
+*courier-0.44.2 (30 Nov 2003) |
|
| 587 |
+ |
|
| 588 |
+ 30 Nov 2003; Brian Jackson <iggy@gentoo.org> courier-0.44.2.ebuild, |
|
| 589 |
+ files/courier-init: |
|
| 590 |
+ version bump |
|
| 591 |
+ |
|
| 592 |
+*courier-0.44.0 (07 Nov 2003) |
|
| 593 |
+ |
|
| 594 |
+ 07 Nov 2003; Brian Jackson <iggy@gentoo.org> courier-0.42.2-r3.ebuild, |
|
| 595 |
+ courier-0.42.2.ebuild, courier-0.43.1.ebuild, courier-0.43.2.ebuild, |
|
| 596 |
+ courier-0.44.0.ebuild, files/gentoo.diff.bz2: |
|
| 597 |
+ version bump |
|
| 598 |
+ cleaned up the ebuild a little |
|
| 599 |
+ some docs weren't getting installed |
|
| 600 |
+ fix bug 32269 |
|
| 601 |
+ applying the sqwebmail patch again |
|
| 602 |
+ |
|
| 603 |
+ 29 Oct 2003; Brian Jackson <iggy@gentoo.org> courier-0.43.2.ebuild, |
|
| 604 |
+ files/courier-init: |
|
| 605 |
+ added esmtpd-ssl to init script, closes bug 32267 |
|
| 606 |
+ |
|
| 607 |
+*courier-0.43.2 (28 Sep 2003) |
|
| 608 |
+ |
|
| 609 |
+ 28 Sep 2003; <iggy@gentoo.org> courier-0.43.1.ebuild, courier-0.43.2.ebuild: |
|
| 610 |
+ version bump |
|
| 611 |
+ |
|
| 612 |
+*courier-0.43.1 (19 Aug 2003) |
|
| 613 |
+ |
|
| 614 |
+ 19 Aug 2003; <iggy@gentoo.org> courier-0.43.1.ebuild: |
|
| 615 |
+ courier-0.43.1 is out, just copied the 42.2-r3 ebuild, and updated the |
|
| 616 |
+ postinst msgs a bit |
|
| 617 |
+ |
|
| 618 |
+ 02 Aug 2003; <iggy@gentoo.org> courier-0.42.2-r1.ebuild, |
|
| 619 |
+ courier-0.42.2-r2.ebuild, courier-0.42.2-r3.ebuild: |
|
| 620 |
+ -r3 -> x86, removed older broken ebuilds (-r1, -r2) |
|
| 621 |
+ |
|
| 622 |
+*courier-0.42.2-r3 (01 Aug 2003) |
|
| 623 |
+ |
|
| 624 |
+ 01 Aug 2003; Paul de Vrieze <pauldv@gentoo.org> courier-0.42.2-r3.ebuild: |
|
| 625 |
+ Removed the optional dependency on berkeley db, as it will not work with db4 |
|
| 626 |
+ and a patch to make it work with db3 is nontrivial |
|
| 627 |
+ |
|
| 628 |
+ 28 Jul 2003; <iggy@gentoo.org> courier-0.42.2-r2.ebuild: |
|
| 629 |
+ temporarily removed expect dep pending clarification of tcltk situation |
|
| 630 |
+ |
|
| 631 |
+ 24 Jul 2003; <iggy@gentoo.org> files/courier-init: |
|
| 632 |
+ fixed courier init script |
|
| 633 |
+ |
|
| 634 |
+ 24 Jul 2003; <iggy@gentoo.org> courier-0.42.2-r2.ebuild: |
|
| 635 |
+ added !virtual/imapd to RDEPEND closes bug 25027 |
|
| 636 |
+ |
|
| 637 |
+ 22 Jul 2003; <iggy@gentoo.org> courier-0.42.2-r2.ebuild: |
|
| 638 |
+ a few more cleanups to 0.42.2-r2 |
|
| 639 |
+ |
|
| 640 |
+*courier-0.42.2-r2 (22 Jul 2003) |
|
| 641 |
+ |
|
| 642 |
+ 22 Jul 2003; <iggy@gentoo.org> courier-0.42.2-r2.ebuild, files/courier-init: |
|
| 643 |
+ fixed bug 25028, and switched to single init script |
|
| 644 |
+ |
|
| 645 |
+ 03 Jul 2003; ,,, <iggy@gentoo.org> metadata.xml: |
|
| 646 |
+ added metadata.xml |
|
| 647 |
+ |
|
| 648 |
+ 01 Jul 2003; ,,, <iggy@gentoo.org> courier-0.42.2-r1.ebuild, |
|
| 649 |
+ courier-0.42.2.ebuild: |
|
| 650 |
+ added --disable-autorenamesent to configure options |
|
| 651 |
+ |
|
| 652 |
+*courier-0.42.2-r1 (14 Jun 2003) |
|
| 653 |
+ |
|
| 654 |
+ 01 Jul 2003; Brian Jackson <iggy@gentoo.org> courier-0.42.2-r1.ebuild: |
|
| 655 |
+ Whatever the patch that we were using was for seems to be fixed upstream. |
|
| 656 |
+ I masked this while I have some other people try to test it out. |
|
| 657 |
+ |
|
| 658 |
+*courier-0.42.2 (14 Jun 2003) |
|
| 659 |
+ |
|
| 660 |
+ 23 Jun 2003; Nick Hadaway <raker@gentoo.org> courier-0.42.2.ebuild: |
|
| 661 |
+ Added crypt use variable. Added fax local use variable. |
|
| 662 |
+ |
|
| 663 |
+ 14 Jun 2003; Nick Hadaway <raker@gentoo.org> courier-0.42.2.ebuild, |
|
| 664 |
+ files/digest-courier-0.42.2, files/courier-0.42.2-gentoo.diff.bz2: |
|
| 665 |
+ New version. Updated dependancies. Added a fix for permissions |
|
| 666 |
+ of /var/run/courier. Changed unicode option code snippet. |
|
| 667 |
+ |
|
| 668 |
+ 15 May 2003; Martin Holzer <mholzer@gentoo.org> courier-0.40.2.ebuild, |
|
| 669 |
+ courier-0.41.0.ebuild: |
|
| 670 |
+ Adding !virtual/mta to RDEPEND. CLoses #21072. |
|
| 671 |
+ |
|
| 672 |
+*courier-0.41.0 (30 Jan 2003) |
|
| 673 |
+ |
|
| 674 |
+ 22 Apr 2003; Graham Forest <vladimir@gentoo.org> courier-0.40.2.ebuild, |
|
| 675 |
+ courier-0.41.0.ebuild: |
|
| 676 |
+ app-text/aspell -> virtual/aspell-dict |
|
| 677 |
+ |
|
| 678 |
+ 30 Jan 2003; Alexandru Hartmann <alex@as-computer.de>, Andreas Erhart <andi@as-computer.de> |
|
| 679 |
+ courier-0.41.0.ebuild, files/courier: |
|
| 680 |
+ new release. supports make install-configure in post_install(). init scripts changes. |
|
| 681 |
+ typo fixes. |
|
| 682 |
+ |
|
| 683 |
+ 31 Dec 2002; Nick Hadaway <raker@gentoo.org> courier-0.40.2.ebuild, |
|
| 684 |
+ files/digest-courier-0.40.2, files/courier-0.40.2-gentoo.diff.bz2 : |
|
| 685 |
+ Version bump. New unicode functionality. Added support for the spell |
|
| 686 |
+ use variable. |
|
| 687 |
+ |
|
| 688 |
+ 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords |
|
| 689 |
+ |
|
| 690 |
+*courier-0.40.2 (31 Dec 2002) |
|
| 691 |
+ |
|
| 692 |
+ 15 Jan 2003; Nick Hadaway <raker@gentoo.org> courier-0.40.2.ebuild : |
|
| 693 |
+ Marked stable to coincide with courier-imap-1.6.2 being stable. |
|
| 694 |
+ |
|
| 695 |
+ 31 Dec 2002; Nick Hadaway <raker@gentoo.org> courier-0.40.2.ebuild, |
|
| 696 |
+ files/digest-courier-0.40.2, files/courier-0.40.2-gentoo.diff.bz2 : |
|
| 697 |
+ Version bump. New unicode functionality. Added support for the spell |
|
| 698 |
+ use variable. |
|
| 699 |
+ |
|
| 700 |
+ 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords |
|
| 701 |
+ |
|
| 702 |
+*courier-0.40.1 (19 Nov 2002) |
|
| 703 |
+ |
|
| 704 |
+ 21 Dec 2002; Nick Hadaway <raker@gentoo.org> courier-0.40.1.ebuild : |
|
| 705 |
+ Filter -fomit-frame-pointer and -funroll-loops as these flags seem |
|
| 706 |
+ to cause problems with maildrop and maildirmake. |
|
| 707 |
+ |
|
| 708 |
+ 21 Nov 2002; Nick Hadaway <raker@gentoo.org> courier-0.40.1.ebuild, |
|
| 709 |
+ files/password.dist : |
|
| 710 |
+ Added a password.dist file so people get instructions on how to |
|
| 711 |
+ setup a password for the webadmin. |
|
| 712 |
+ |
|
| 713 |
+ 19 Nov 2002; Daniel Ahlberg <aliz@gentoo.org> : |
|
| 714 |
+ Security update. |
|
| 715 |
+ |
|
| 716 |
+*courier-0.40.0.20021026 (29 Oct 2002) |
|
| 717 |
+ |
|
| 718 |
+ 06 Nov 2002; Nick Hadaway <raker@gentoo.org> : |
|
| 719 |
+ Added ebuild to portage. Marked unstable. |
|
| 720 |
+ |
|
| 721 |
+ 29 Oct 2002; Andreas Erhart <andi@zollhaus.net> / Alexandru Hartmann <alex@nimic.net> |
|
| 722 |
+ courier-0.40.0.20021026.ebuild, files/digest-courier-0.40.0.20021026 |
|
| 723 |
+ sqwebmail finally works ! |
|
| 724 |
+ new version |
|
| 725 |
+ |
|
| 726 |
+*courier-0.40.0 (28 Oct 2002) |
|
| 727 |
+ 28 Oct 2002; Alexandru Hartmann <alex@nimic.net> |
|
| 728 |
+ courier-0.40.0.ebuild, files/digest-courier-0.40.0 |
|
| 729 |
+ sometimes /var/lib/courier/msgs and msgq just disappear after an upgrade. |
|
| 730 |
+ this is now fixed. |
|
| 731 |
+ |
|
| 732 |
+*courier-0.40.0 (26 Oct 2002) |
|
| 733 |
+ 26 Oct 2002; Andreas Erhart <andi@zollhaus.net> |
|
| 734 |
+ courier-0.40.0.ebuild, files/digest-courier-0.40.0 |
|
| 735 |
+ new version |
|
| 736 |
+ |
|
| 737 |
+*courier-0.39.3 (12 Aug 2002) |
|
| 738 |
+ 12 Aug 2002; Andreas Erhart <andi@zollhaus.net> |
|
| 739 |
+ courier-0.39.3.ebuild, files/digest-courier-0.39.3 |
|
| 740 |
+ new version |
|
| 741 |
+ |
|
| 742 |
+*courier-0.39.2 (03 Aug 2002) |
|
| 743 |
+ |
|
| 744 |
+ 06 Aug 2002; Nick Hadaway <raker@gentoo.org> |
|
| 745 |
+ courier-0.39.2.ebuild, files/digest-courier-0.39.2 : |
|
| 746 |
+ Added --without-authvchkpw to the configure options as some |
|
| 747 |
+ systems will fail to finish configure if vpopmail is not installed. |
|
| 748 |
+ Version bump. |
|
| 749 |
+ |
|
| 750 |
+ 03 Aug 2002; Andreas Erhart <andi@zollhaus.net> : |
|
| 751 |
+ new version, thanks to Sam Varshavchik |
|
| 752 |
+ removed 10MB message sizelimit |
|
| 753 |
+ |
|
| 754 |
+*courier-0.39.1 (04 Jul 2002) |
|
| 755 |
+ |
|
| 756 |
+ 04 Jul 2002; Grant Goodyear <g2boojum@gentoo.org> ChangeLog : |
|
| 757 |
+ New version, thanks to Alex Hartmann |
| ... | ... |
@@ -0,0 +1,23 @@ |
| 1 |
+AUX apache-sqwebmail.inc 347 RMD160 9d046149af6138320448fe7bb762b142e0eb9b94 SHA1 4996c33b74a3c9b70886f27948334e3880df8073 SHA256 3a6616dacfd49ab0c89c62d9df5662fc3c2d9e598786d781240bf5e8900afc65 |
|
| 2 |
+AUX bofh 23 RMD160 995b6b103c29f390c2f0230af95d4c0823423dcb SHA1 f6399bc612af33ca79921961b223cbdf394d9549 SHA256 7e42d61373770a2b14a6fdd8b5f71c598ce4767726f8f7106de00b7c34a59e8c |
|
| 3 |
+AUX courier-0.48.1-spf-error-handling.patch 318 RMD160 3051e323b9564e9e31d9593ef2a1afb76ed45a3f SHA1 75c93cbf98806bc94da91b96daab39aec071851d SHA256 f6f706470cab4bffb45f6ef196799a1c596e8abf5cbef1b5e3d22287c990298b |
|
| 4 |
+AUX courier-init 5182 RMD160 7c5d80d7fdd4e09418461a746f6642f2a276b88b SHA1 beef0a5742fe31388947e945b4646c1dbe5627f1 SHA256 4b1a030bbba852c9c2c8d50e58c43c8e97b5a1ac29a04974a1f097362929e126 |
|
| 5 |
+AUX courier-init-r1 5252 RMD160 2c770526b4fd2e342c904289573c4f8cb19ca6df SHA1 ac67cd4a9664b1010322b5260f84d017ee06736b SHA256 e74fc291b49dace3ffb3af1844b976255c0c7a34aa0e2d87b5c05f672db9058a |
|
| 6 |
+AUX dot_courier 26 RMD160 cf20012379abbb63f78e1eb0f9cbaefff6d1048d SHA1 8e5e09e167035d100859b42311b6dda2842f4d67 SHA256 8c585031b4356ca1f887e0823fd9b365fff57a5f9cc32541eccfc1542d5d3763 |
|
| 7 |
+AUX fam-disable-check.patch 654 RMD160 c43ae28da398b0106efd73924a0b2c9f4490b799 SHA1 5c00b1d4180c65b1c6feed3979b60b018f874996 SHA256 775dab159b4e05141e4d8fdfa5df75967dda8a8f60e4e962208f724a497d3f54 |
|
| 8 |
+AUX locallowercase 0 RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 SHA1 da39a3ee5e6b4b0d3255bfef95601890afd80709 SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 |
|
| 9 |
+AUX mailer.conf 197 RMD160 4229dfa9cf33b275571538211dad33da5ae84048 SHA1 caf095797e8c526dc5fec59d9d89d51f318cd28a SHA256 5a946a7c4ed42bbddf2c471e2e00898150e4bff33f4af70620cf814ab2f12b47 |
|
| 10 |
+AUX norewrite.patch 489 RMD160 1d0bacf702126cc4f8b9d7b07bbc6a9357b7b6e9 SHA1 007059af9ab5d89b36004e590b6a21911515f69b SHA256 526f3742fb43af93811e6e4b3210fda1c611b50ce5abdf3a57a25dfe4f5c38e4 |
|
| 11 |
+AUX pam-include.patch 1534 RMD160 20456564341339c661ee20efe6b830f9df484b7e SHA1 318d1ae44e946c3809f56476ab02d0f851bc981c SHA256 2f0ea30cffdfec5d0f2ce3aece3e5ea2717ae6d04918210a0b9247a30fc15782 |
|
| 12 |
+AUX password.dist 247 RMD160 eab211be0b1e3dbd6206f79e993b1d314a24efa3 SHA1 2cdd5bcf561f7267be6f18b731813962030af166 SHA256 46f20a84922d108d39a7c26ad3ba8915326549f46cea811e2384f55a589d38e2 |
|
| 13 |
+AUX set-mime 741 RMD160 8ed45fb4a0aee168a70cdcab6d17cf1606f85cad SHA1 b8834602c7304d42f3179a8dde43dcc57d0f4972 SHA256 bf15af7c181d517a924cb82854cbce46278e6e28ffb338e2159ba89c386dc74f |
|
| 14 |
+DIST courier-0.53.2.tar.bz2 6942557 RMD160 a6efce3a8d6572923190ea49ed6085906317ebd8 SHA1 89c6a9a57467adf8c1ac815a5ffacf47e5e694a3 SHA256 0b44e02652084ca4023646ca0cdd3d173dcbadf919e81aa012b42666b3acf726 |
|
| 15 |
+DIST courier-0.55.1.tar.bz2 7019376 RMD160 43b4e5868a3e450cbc238cae0ba411011c1fa49f SHA1 a4b83a1fa018abd9d32b946b6407764ad2d98993 SHA256 caec49a2fed5c2048ea69fc290dc01402bf0dfc7852d2e1865e35ae15ce1eea6 |
|
| 16 |
+DIST courier-0.58.0.tar.bz2 7123136 RMD160 940fb7967d154aeeb462691beb508155b3df4e29 SHA1 964d81e6de5390678c9f10dddbc176273b925f6d SHA256 d61db181df19a2deb0ff31356665042d79b718efbab6b1615b6b1ce5c8de5742 |
|
| 17 |
+EBUILD courier-0.53.2-r1.ebuild 11567 RMD160 6d0aa51f770a25bc3ed037d92ccad8ed2be56254 SHA1 6aa1721a7b4732c97814479067cb22463172a9ad SHA256 ab406803613dc3cea093ebacf8d3fa7437e4297ddf7ee4f18d01d38e37cccd09 |
|
| 18 |
+EBUILD courier-0.53.2.ebuild 11532 RMD160 576ce689a2bc8fb1f6e4518bbddc5bd1a1fcd453 SHA1 40690f3fe06591582b52e0ee29c28c0a0b1e2da7 SHA256 fb00cdf3c88032f267ed838186b0d6e6b7699ad2354906ec8090ca6fd90cb115 |
|
| 19 |
+EBUILD courier-0.55.1-r1.ebuild 11574 RMD160 10f8494989c6e3cbf191aee90a1f85c7b9ea9b3d SHA1 4c736ffd0914fb8b25d15e5348ee90a90f26f362 SHA256 80d642b6e32ce96f1fcc51ce2e75dcc376f6fac9f2e545dee0e1af7fa5b84a07 |
|
| 20 |
+EBUILD courier-0.55.1.ebuild 11538 RMD160 15e23e2c8736ead5b71d502020a266f1712f257e SHA1 5f01c3926aa1fc9d080dd4190c6899c6ed104879 SHA256 253f511eb570d6915fe68c77e55d3ca194e1b4e6ead018dd9c622934ef1f59da |
|
| 21 |
+EBUILD courier-0.58.0.ebuild 11574 RMD160 10f8494989c6e3cbf191aee90a1f85c7b9ea9b3d SHA1 4c736ffd0914fb8b25d15e5348ee90a90f26f362 SHA256 80d642b6e32ce96f1fcc51ce2e75dcc376f6fac9f2e545dee0e1af7fa5b84a07 |
|
| 22 |
+MISC ChangeLog 27279 RMD160 f86b90f21295d8937e876699d76c595d7ec26b67 SHA1 08ccaeec369c118b4da83d9c683ba46342d0f375 SHA256 4ad3fb711db55f0f3df6561042936f7c9972b586927fa6698ce4e4918009df8d |
|
| 23 |
+MISC metadata.xml 322 RMD160 44060011d03244f97a8cc9605f0eb0de3631a2e5 SHA1 ca88991053a2eef8c9f1603ce850eff1d145deaa SHA256 1ef3b7121e17952973a7b717155b7e892b40ef64ff22d370bf7d425521df88a0 |
| ... | ... |
@@ -0,0 +1,341 @@ |
| 1 |
+# Copyright 1999-2008 Gentoo Foundation |
|
| 2 |
+# Distributed under the terms of the GNU General Public License v2 |
|
| 3 |
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/courier-0.53.2-r1.ebuild,v 1.9 2008/02/03 10:51:33 hollow Exp $ |
|
| 4 |
+ |
|
| 5 |
+WANT_AUTOCONF="latest" |
|
| 6 |
+WANT_AUTOMAKE="latest" |
|
| 7 |
+ |
|
| 8 |
+inherit eutils flag-o-matic autotools |
|
| 9 |
+ |
|
| 10 |
+DESCRIPTION="An MTA designed specifically for maildirs" |
|
| 11 |
+[ -z "${PV/?.??/}" ] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
|
|
| 12 |
+[ -z "${PV/?.??.?/}" ] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
|
|
| 13 |
+[ -z "${SRC_URI}" ] && SRC_URI="http://www.courier-mta.org/beta/courier/${P%%_pre}.tar.bz2"
|
|
| 14 |
+HOMEPAGE="http://www.courier-mta.org/" |
|
| 15 |
+S="${WORKDIR}/${P%%_pre}"
|
|
| 16 |
+ |
|
| 17 |
+SLOT="0" |
|
| 18 |
+LICENSE="GPL-2" |
|
| 19 |
+# not in keywords due to missing dependencies: ~arm ~s390 ~ppc64 |
|
| 20 |
+KEYWORDS="alpha amd64 hppa ia64 ~mips ppc sparc x86" |
|
| 21 |
+IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite mailwrapper fam" |
|
| 22 |
+ |
|
| 23 |
+PROVIDE="virtual/mta |
|
| 24 |
+ virtual/mda |
|
| 25 |
+ virtual/imapd" |
|
| 26 |
+ |
|
| 27 |
+DEPEND=" |
|
| 28 |
+ >=net-libs/courier-authlib-0.55 |
|
| 29 |
+ >=dev-libs/openssl-0.9.6 |
|
| 30 |
+ >=sys-libs/gdbm-1.8.0 |
|
| 31 |
+ dev-libs/libpcre |
|
| 32 |
+ app-misc/mime-types |
|
| 33 |
+ fax? ( >=media-libs/netpbm-9.12 virtual/ghostscript >=net-dialup/mgetty-1.1.28 ) |
|
| 34 |
+ pam? ( virtual/pam ) |
|
| 35 |
+ mysql? ( virtual/mysql ) |
|
| 36 |
+ ldap? ( >=net-nds/openldap-1.2.11 ) |
|
| 37 |
+ postgres? ( >=dev-db/postgresql-7.1.3 ) |
|
| 38 |
+ spell? ( virtual/aspell-dict ) |
|
| 39 |
+ fam? ( virtual/fam ) |
|
| 40 |
+ !mailwrapper? ( !virtual/mta ) |
|
| 41 |
+ !virtual/imapd |
|
| 42 |
+ !mail-filter/maildrop" |
|
| 43 |
+ |
|
| 44 |
+RDEPEND="${DEPEND}
|
|
| 45 |
+ dev-lang/perl |
|
| 46 |
+ sys-process/procps" |
|
| 47 |
+ |
|
| 48 |
+PDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 ) |
|
| 49 |
+ pam? ( net-mail/mailbase ) |
|
| 50 |
+ crypt? ( >=app-crypt/gnupg-1.0.4 )" |
|
| 51 |
+ |
|
| 52 |
+filter-flags '-fomit-frame-pointer' |
|
| 53 |
+ |
|
| 54 |
+src_unpack() {
|
|
| 55 |
+ use fam || ( |
|
| 56 |
+ ewarn "File Alteration Monitor (FAM) is disabled" |
|
| 57 |
+ ewarn "courier-imap will fall back to 60 second polls." |
|
| 58 |
+ ewarn 'add "fam" to your USE flags to build as usual' |
|
| 59 |
+ ebeep 4 |
|
| 60 |
+ epause 4 ) |
|
| 61 |
+ unpack ${A}
|
|
| 62 |
+ cd ${S}
|
|
| 63 |
+ use norewrite && epatch ${FILESDIR}/norewrite.patch
|
|
| 64 |
+ use elibc_uclibc && sed -i -e 's:linux-gnu\*:linux-gnu\*\ \|\ linux-uclibc:' config.sub |
|
| 65 |
+ |
|
| 66 |
+ epatch "${FILESDIR}/pam-include.patch"
|
|
| 67 |
+ |
|
| 68 |
+ # disable link to fam. |
|
| 69 |
+ epatch ${FILESDIR}/fam-disable-check.patch
|
|
| 70 |
+ cd ${S}/maildir
|
|
| 71 |
+ eautoreconf |
|
| 72 |
+} |
|
| 73 |
+ |
|
| 74 |
+src_compile() {
|
|
| 75 |
+ local myconf |
|
| 76 |
+ myconf="`use_with ipv6` \ |
|
| 77 |
+ `use_with ldap ldapaliasd` `use_enable ldap maildropldap`" |
|
| 78 |
+ |
|
| 79 |
+ use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf"
|
|
| 80 |
+ use spell || myconf="${myconf} --without-ispell"
|
|
| 81 |
+ |
|
| 82 |
+ myconf="${myconf} --enable-mimetypes=/etc/mime.types"
|
|
| 83 |
+ |
|
| 84 |
+ myconf="${myconf} $(use_with fam)"
|
|
| 85 |
+ |
|
| 86 |
+ einfo "Configuring courier: `echo ${myconf} | xargs echo`"
|
|
| 87 |
+ |
|
| 88 |
+ econf \ |
|
| 89 |
+ --prefix=/usr \ |
|
| 90 |
+ --disable-root-check \ |
|
| 91 |
+ --mandir=/usr/share/man \ |
|
| 92 |
+ --sysconfdir=/etc/courier \ |
|
| 93 |
+ --libexecdir=/usr/$(get_libdir)/courier \ |
|
| 94 |
+ --datadir=/usr/share/courier \ |
|
| 95 |
+ --sharedstatedir=/var/lib/courier/com \ |
|
| 96 |
+ --localstatedir=/var/lib/courier \ |
|
| 97 |
+ --with-piddir=/var/run/courier \ |
|
| 98 |
+ --with-authdaemonvar=/var/lib/courier/authdaemon \ |
|
| 99 |
+ --with-mailuser=mail \ |
|
| 100 |
+ --with-mailgroup=mail \ |
|
| 101 |
+ --with-paranoid-smtpext \ |
|
| 102 |
+ --with-db=gdbm \ |
|
| 103 |
+ --disable-autorenamesent \ |
|
| 104 |
+ --cache-file=${S}/configuring.cache \
|
|
| 105 |
+ --host=${CHOST} ${myconf} debug=true || die "./configure"
|
|
| 106 |
+ sed -e'/^install-perms-local:/a\ sed -e\"s|^|'${D}'|g\" -i permissions.dat' -i Makefile
|
|
| 107 |
+ emake || die "Compile problem" |
|
| 108 |
+} |
|
| 109 |
+ |
|
| 110 |
+etc_courier() {
|
|
| 111 |
+ # Import existing /etc/courier/file if it exists. |
|
| 112 |
+ # Add option only if it was not already set or even commented out |
|
| 113 |
+ file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`"
|
|
| 114 |
+ [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \
|
|
| 115 |
+ cp "/etc/courier/${file}" "${D}/etc/courier/${file}"
|
|
| 116 |
+ grep -q "${word}" "${D}/etc/courier/${file}" || \
|
|
| 117 |
+ echo "${2}" >> "${D}/etc/courier/${file}"
|
|
| 118 |
+} |
|
| 119 |
+ |
|
| 120 |
+etc_courier_chg() {
|
|
| 121 |
+ file="${1}" ; key="${2}" ; value="${3}" ; section="${4}"
|
|
| 122 |
+ [ -z "${section}" ] && section="${2}"
|
|
| 123 |
+ grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}"
|
|
| 124 |
+ sed -i -e"/\#\#NAME: ${section}/,+20 s|${key}=.*|${key}=\"${value}\"|g" ${file}
|
|
| 125 |
+} |
|
| 126 |
+ |
|
| 127 |
+set_maildir() {
|
|
| 128 |
+ local f ; local files=$* |
|
| 129 |
+ origmaildir='Maildir' |
|
| 130 |
+ newmaildir='.maildir' |
|
| 131 |
+ for f in ${files} ; do
|
|
| 132 |
+ grep -q "${origmaildir}" "${f}" && \
|
|
| 133 |
+ elog "Changing ${origmaildir} in ${f} to ${newmaildir}"
|
|
| 134 |
+ sed -i -e"/^[^\#]/ s/${origmaildir}/${newmaildir}/g" ${f}
|
|
| 135 |
+ done |
|
| 136 |
+} |
|
| 137 |
+ |
|
| 138 |
+src_install() {
|
|
| 139 |
+ local f |
|
| 140 |
+ einfo "Setting up maildirs in the account skeleton ..." |
|
| 141 |
+ diropts -m 755 -o root -g root |
|
| 142 |
+ dodir /etc/skel |
|
| 143 |
+ ${S}/maildir/maildirmake ${D}/etc/skel/.maildir
|
|
| 144 |
+ keepdir /etc/skel/.maildir |
|
| 145 |
+ |
|
| 146 |
+ diropts -o mail -g mail |
|
| 147 |
+ keepdir /var/run/courier |
|
| 148 |
+ keepdir /var/lib/courier/tmp |
|
| 149 |
+ keepdir /var/lib/courier/msgs |
|
| 150 |
+ make install DESTDIR=${D} || die "install"
|
|
| 151 |
+ make install-configure || die "install-configure" |
|
| 152 |
+ |
|
| 153 |
+ for dir2keep in `(cd ${D} && find ./var/lib/courier -type d)` ; do
|
|
| 154 |
+ keepdir $dir2keep || die "failed running keepdir: $dir2keep" |
|
| 155 |
+ done |
|
| 156 |
+ |
|
| 157 |
+ newinitd ${FILESDIR}/courier-init-r1 courier
|
|
| 158 |
+ use fam || sed -i -e's|^.*use famd$||g' ${D}/etc/init.d/courier
|
|
| 159 |
+ |
|
| 160 |
+ cd ${D}/etc/courier
|
|
| 161 |
+ insinto /etc/courier |
|
| 162 |
+ newins ${FILESDIR}/apache-sqwebmail.inc apache-sqwebmail.inc
|
|
| 163 |
+ |
|
| 164 |
+ if use pam ; then |
|
| 165 |
+ dodir /etc/pam.d |
|
| 166 |
+ rm imapd.authpam pop3d.authpam |
|
| 167 |
+ for f in *.authpam ; do mv "${f}" "${D}/etc/pam.d/${f%%.authpam}" ; done
|
|
| 168 |
+ fi |
|
| 169 |
+ |
|
| 170 |
+ for f in *.dist ; do cp ${f} ${f%%.dist} ; done
|
|
| 171 |
+ [ -e ldapaliasrc ] && ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc ) |
|
| 172 |
+ set_maildir courierd imapd imapd-ssl pop3d pop3d-ssl sqwebmaild *.dist |
|
| 173 |
+ |
|
| 174 |
+ ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ |
|
| 175 |
+ > ${D}/etc/courier/sizelimit
|
|
| 176 |
+ etc_courier maildroprc "" |
|
| 177 |
+ etc_courier esmtproutes "" |
|
| 178 |
+ etc_courier backuprelay "" |
|
| 179 |
+ etc_courier locallowercase "" |
|
| 180 |
+ etc_courier bofh "opt BOFHBADMIME=accept" |
|
| 181 |
+ etc_courier bofh "opt BOFHSPFTRUSTME=1" |
|
| 182 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail" |
|
| 183 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none" |
|
| 184 |
+ etc_courier bofh "opt BOFHSPFFROM=all" |
|
| 185 |
+ etc_courier bofh "opt BOFHSPFMAILFROM=all" |
|
| 186 |
+ etc_courier bofh "#opt BOFHSPFHARDERROR=fail" |
|
| 187 |
+ etc_courier esmtpd "BOFHBADMIME=accept" |
|
| 188 |
+ etc_courier esmtpd-ssl "BOFHBADMIME=accept" |
|
| 189 |
+ etc_courier esmtpd-msa "BOFHBADMIME=accept" |
|
| 190 |
+ etc_courier_chg esmtpd ESMTPDSTART YES |
|
| 191 |
+ etc_courier_chg esmtpd ESMTPAUTH "LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" |
|
| 192 |
+ etc_courier_chg esmtpd ESMTPAUTH_WEBADMIN "LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" |
|
| 193 |
+ etc_courier_chg esmtpd ESMTPAUTH_TLS "PLAIN LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" ESMTPAUTHINFOTLS |
|
| 194 |
+ etc_courier_chg esmtpd ESMTPAUTH_TLS_WEBADMIN "PLAIN LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" ESMTPAUTHINFOTLS |
|
| 195 |
+ etc_courier_chg esmtpd-msa ESMTPDSTART YES |
|
| 196 |
+ etc_courier_chg esmtpd-msa AUTH_REQUIRED 1 |
|
| 197 |
+ etc_courier_chg esmtpd-ssl ESMTPDSSLSTART YES |
|
| 198 |
+ etc_courier_chg esmtpd-ssl AUTH_REQUIRED 1 |
|
| 199 |
+ etc_courier_chg imapd IMAPDSTART YES |
|
| 200 |
+ use fam && etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE" |
|
| 201 |
+ use fam || etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256" |
|
| 202 |
+ etc_courier_chg imapd-ssl IMAPDSSLSTART YES |
|
| 203 |
+ etc_courier_chg pop3d POP3DSTART YES |
|
| 204 |
+ etc_courier_chg pop3d POP3AUTH "LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" |
|
| 205 |
+ etc_courier_chg pop3d POP3AUTH_TLS "LOGIN PLAIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" |
|
| 206 |
+ etc_courier_chg pop3d-ssl POP3DSSLSTART YES |
|
| 207 |
+ |
|
| 208 |
+ # Fix for a sandbox violation on subsequential merges |
|
| 209 |
+ # - ticho@gentoo.org, 2005-07-10 |
|
| 210 |
+ rm ${D}/usr/sbin/{pop3d,imapd}{,-ssl}
|
|
| 211 |
+ dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d |
|
| 212 |
+ dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl |
|
| 213 |
+ dosym /usr/share/courier/imapd /usr/sbin/courier-imapd |
|
| 214 |
+ dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl |
|
| 215 |
+ |
|
| 216 |
+ cd ${S}
|
|
| 217 |
+ cp imap/README README.imap |
|
| 218 |
+ use nls && cp unicode/README README.unicode |
|
| 219 |
+ dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt |
|
| 220 |
+ dodoc tcpd/README.couriertls |
|
| 221 |
+ echo "See /usr/share/courier/htmldoc/index.html for docs in html format" \ |
|
| 222 |
+ >> ${D}/usr/share/doc/${P}/README.htmldocs
|
|
| 223 |
+ |
|
| 224 |
+ insinto /usr/$(get_libdir)/courier/courier |
|
| 225 |
+ insopts -m 755 -o mail -g mail |
|
| 226 |
+ doins ${S}/courier/webmaild
|
|
| 227 |
+ insinto /etc/courier/webadmin |
|
| 228 |
+ insopts -m 400 -o mail -g mail |
|
| 229 |
+ doins ${FILESDIR}/password.dist
|
|
| 230 |
+ |
|
| 231 |
+ # avoid name collisions in /usr/sbin, make webadmin match |
|
| 232 |
+ cd ${D}/usr/sbin
|
|
| 233 |
+ for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv ${f} courier-${f} ; done
|
|
| 234 |
+ sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \ |
|
| 235 |
+ -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \ |
|
| 236 |
+ ${D}/usr/share/courier/courierwebadmin/admin-40imap.pl \
|
|
| 237 |
+ || ewarn "failed to fix webadmin" |
|
| 238 |
+ sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \ |
|
| 239 |
+ -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \ |
|
| 240 |
+ ${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl \
|
|
| 241 |
+ || ewarn "failed to fix webadmin" |
|
| 242 |
+ |
|
| 243 |
+ if use mailwrapper ; then |
|
| 244 |
+ mv ${D}/usr/bin/sendmail ${D}/usr/bin/sendmail.courier
|
|
| 245 |
+ mv ${D}/usr/bin/rmail ${D}/usr/bin/rmail.courier
|
|
| 246 |
+ mv ${D}/usr/bin/mailq ${D}/usr/bin/mailq.courier
|
|
| 247 |
+ |
|
| 248 |
+ mv ${D}/usr/share/man/man1/sendmail.1 \
|
|
| 249 |
+ ${D}/usr/share/man/man1/sendmail-courier.1
|
|
| 250 |
+ mv ${D}/usr/share/man/man1/mailq.1 \
|
|
| 251 |
+ ${D}/usr/share/man/man1/mailq-courier.1
|
|
| 252 |
+ mv ${D}/usr/share/man/man1/rmail.1 \
|
|
| 253 |
+ ${D}/usr/share/man/man1/rmail-courier.1
|
|
| 254 |
+ |
|
| 255 |
+ insinto /etc/mail |
|
| 256 |
+ doins ${FILESDIR}/mailer.conf
|
|
| 257 |
+ else |
|
| 258 |
+ dosym /usr/bin/sendmail /usr/sbin/sendmail |
|
| 259 |
+ fi |
|
| 260 |
+} |
|
| 261 |
+ |
|
| 262 |
+src_test() {
|
|
| 263 |
+ addpredict / |
|
| 264 |
+ vecho ">>> Test phase [check]: ${CATEGORY}/${PF}"
|
|
| 265 |
+ if hasq userpriv ${FEATURES} ; then
|
|
| 266 |
+ if ! emake -j1 check; then |
|
| 267 |
+ hasq test ${FEATURES} && die "Make check failed. See above for details."
|
|
| 268 |
+ hasq test ${FEATURES} || eerror "Make check failed. See above for details."
|
|
| 269 |
+ fi |
|
| 270 |
+ else |
|
| 271 |
+ hasq test ${FEATURES} && eerror "Make check needs FEATURES="userpriv" to work."
|
|
| 272 |
+ fi |
|
| 273 |
+ SANDBOX_PREDICT="${SANDBOX_PREDICT%:/}"
|
|
| 274 |
+} |
|
| 275 |
+ |
|
| 276 |
+pkg_postinst() {
|
|
| 277 |
+ use fam && elog "fam daemon is needed for courier-imapd" \ |
|
| 278 |
+ || ewarn "courier was built without fam support" |
|
| 279 |
+ |
|
| 280 |
+ # fix for bug #99334 |
|
| 281 |
+ elog "Courier's sendmail is not suid by default, therefore non-root users can't send" |
|
| 282 |
+ elog "mail using sendmail. If you need this to work, you should set sendmail suid." |
|
| 283 |
+ elog "See also: http://www.courier-mta.org/install.html#suid" |
|
| 284 |
+} |
|
| 285 |
+ |
|
| 286 |
+pkg_config() {
|
|
| 287 |
+ mailhost=`hostname` |
|
| 288 |
+ export mailhost |
|
| 289 |
+ |
|
| 290 |
+ domainname=`domainname` |
|
| 291 |
+ if [ "x$domainname" = "x(none)" ] ; then |
|
| 292 |
+ domainname=`echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/"`
|
|
| 293 |
+ fi |
|
| 294 |
+ export domainname |
|
| 295 |
+ |
|
| 296 |
+ if [ ${ROOT} = "/" ] ; then
|
|
| 297 |
+ file=${ROOT}/etc/courier/locals
|
|
| 298 |
+ if [ ! -f ${file} ] ; then
|
|
| 299 |
+ echo "localhost" > ${file};
|
|
| 300 |
+ echo ${domainname} >> ${file};
|
|
| 301 |
+ fi |
|
| 302 |
+ file=${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}
|
|
| 303 |
+ if [ ! -f ${file} ] ; then
|
|
| 304 |
+ echo ${domainname} > ${file}
|
|
| 305 |
+ /usr/sbin/makeacceptmailfor |
|
| 306 |
+ fi |
|
| 307 |
+ |
|
| 308 |
+ file=${ROOT}/etc/courier/smtpaccess/${domainname}
|
|
| 309 |
+ if [ ! -f ${file} ]
|
|
| 310 |
+ then |
|
| 311 |
+ netstat -nr | grep "^[1-9]" | while read network gateway netmask rest |
|
| 312 |
+ do |
|
| 313 |
+ i=1 |
|
| 314 |
+ net="" |
|
| 315 |
+ TIFS=${IFS}
|
|
| 316 |
+ IFS="." |
|
| 317 |
+ for o in ${netmask}
|
|
| 318 |
+ do |
|
| 319 |
+ if [ ${o} == "255" ]
|
|
| 320 |
+ then |
|
| 321 |
+ [ "_${net}" == "_" ] || net="${net}."
|
|
| 322 |
+ t=`echo ${network} | cut -d " " -f ${i}`
|
|
| 323 |
+ net="${net}${t}"
|
|
| 324 |
+ fi |
|
| 325 |
+ i=$((${i} + 1))
|
|
| 326 |
+ done |
|
| 327 |
+ IFS=${TIFS}
|
|
| 328 |
+ echo "doing configuration - relay control for the network ${net} !"
|
|
| 329 |
+ echo "${net} allow,RELAYCLIENT" >> ${file}
|
|
| 330 |
+ done |
|
| 331 |
+ /usr/sbin/makesmtpaccess |
|
| 332 |
+ fi |
|
| 333 |
+ fi |
|
| 334 |
+ |
|
| 335 |
+ echo "creating cert for esmtpd-ssl:" |
|
| 336 |
+ /usr/sbin/mkesmtpdcert |
|
| 337 |
+ echo "creating cert for imapd-ssl:" |
|
| 338 |
+ /usr/sbin/mkpop3dcert |
|
| 339 |
+ echo "creating cert for pop3d-ssl:" |
|
| 340 |
+ /usr/sbin/mkimapdcert |
|
| 341 |
+} |
| ... | ... |
@@ -0,0 +1,339 @@ |
| 1 |
+# Copyright 1999-2008 Gentoo Foundation |
|
| 2 |
+# Distributed under the terms of the GNU General Public License v2 |
|
| 3 |
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/courier-0.53.2.ebuild,v 1.19 2008/02/03 10:51:33 hollow Exp $ |
|
| 4 |
+ |
|
| 5 |
+WANT_AUTOCONF="latest" |
|
| 6 |
+WANT_AUTOMAKE="latest" |
|
| 7 |
+ |
|
| 8 |
+inherit eutils flag-o-matic autotools |
|
| 9 |
+ |
|
| 10 |
+DESCRIPTION="An MTA designed specifically for maildirs" |
|
| 11 |
+[ -z "${PV/?.??/}" ] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
|
|
| 12 |
+[ -z "${PV/?.??.?/}" ] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
|
|
| 13 |
+[ -z "${SRC_URI}" ] && SRC_URI="http://www.courier-mta.org/beta/courier/${P%%_pre}.tar.bz2"
|
|
| 14 |
+HOMEPAGE="http://www.courier-mta.org/" |
|
| 15 |
+S="${WORKDIR}/${P%%_pre}"
|
|
| 16 |
+ |
|
| 17 |
+SLOT="0" |
|
| 18 |
+LICENSE="GPL-2" |
|
| 19 |
+# not in keywords due to missing dependencies: ~arm ~s390 ~ppc64 |
|
| 20 |
+KEYWORDS="alpha amd64 hppa ia64 ~mips ppc sparc x86" |
|
| 21 |
+IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite mailwrapper fam" |
|
| 22 |
+ |
|
| 23 |
+PROVIDE="virtual/mta |
|
| 24 |
+ virtual/mda |
|
| 25 |
+ virtual/imapd" |
|
| 26 |
+ |
|
| 27 |
+DEPEND=" |
|
| 28 |
+ >=net-libs/courier-authlib-0.55 |
|
| 29 |
+ >=dev-libs/openssl-0.9.6 |
|
| 30 |
+ >=sys-libs/gdbm-1.8.0 |
|
| 31 |
+ dev-libs/libpcre |
|
| 32 |
+ app-misc/mime-types |
|
| 33 |
+ fax? ( >=media-libs/netpbm-9.12 virtual/ghostscript >=net-dialup/mgetty-1.1.28 ) |
|
| 34 |
+ pam? ( >=sys-libs/pam-0.75 ) |
|
| 35 |
+ mysql? ( virtual/mysql ) |
|
| 36 |
+ ldap? ( >=net-nds/openldap-1.2.11 ) |
|
| 37 |
+ postgres? ( >=dev-db/postgresql-7.1.3 ) |
|
| 38 |
+ spell? ( virtual/aspell-dict ) |
|
| 39 |
+ fam? ( virtual/fam ) |
|
| 40 |
+ !mailwrapper? ( !virtual/mta ) |
|
| 41 |
+ !virtual/imapd |
|
| 42 |
+ !mail-filter/maildrop" |
|
| 43 |
+ |
|
| 44 |
+RDEPEND="${DEPEND}
|
|
| 45 |
+ dev-lang/perl |
|
| 46 |
+ sys-process/procps" |
|
| 47 |
+ |
|
| 48 |
+PDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 ) |
|
| 49 |
+ pam? ( net-mail/mailbase ) |
|
| 50 |
+ crypt? ( >=app-crypt/gnupg-1.0.4 )" |
|
| 51 |
+ |
|
| 52 |
+filter-flags '-fomit-frame-pointer' |
|
| 53 |
+ |
|
| 54 |
+src_unpack() {
|
|
| 55 |
+ use fam || ( |
|
| 56 |
+ ewarn "File Alteration Monitor (FAM) is disabled" |
|
| 57 |
+ ewarn "courier-imap will fall back to 60 second polls." |
|
| 58 |
+ ewarn 'add "fam" to your USE flags to build as usual' |
|
| 59 |
+ ebeep 4 |
|
| 60 |
+ epause 4 ) |
|
| 61 |
+ unpack ${A}
|
|
| 62 |
+ cd ${S}
|
|
| 63 |
+ use norewrite && epatch ${FILESDIR}/norewrite.patch
|
|
| 64 |
+ use elibc_uclibc && sed -i -e 's:linux-gnu\*:linux-gnu\*\ \|\ linux-uclibc:' config.sub |
|
| 65 |
+ |
|
| 66 |
+ # disable link to fam. |
|
| 67 |
+ epatch ${FILESDIR}/fam-disable-check.patch
|
|
| 68 |
+ cd ${S}/maildir
|
|
| 69 |
+ eautoreconf |
|
| 70 |
+} |
|
| 71 |
+ |
|
| 72 |
+src_compile() {
|
|
| 73 |
+ local myconf |
|
| 74 |
+ myconf="`use_with ipv6` \ |
|
| 75 |
+ `use_with ldap ldapaliasd` `use_enable ldap maildropldap`" |
|
| 76 |
+ |
|
| 77 |
+ use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf"
|
|
| 78 |
+ use spell || myconf="${myconf} --without-ispell"
|
|
| 79 |
+ |
|
| 80 |
+ myconf="${myconf} --enable-mimetypes=/etc/mime.types"
|
|
| 81 |
+ |
|
| 82 |
+ myconf="${myconf} $(use_with fam)"
|
|
| 83 |
+ |
|
| 84 |
+ einfo "Configuring courier: `echo ${myconf} | xargs echo`"
|
|
| 85 |
+ |
|
| 86 |
+ econf \ |
|
| 87 |
+ --prefix=/usr \ |
|
| 88 |
+ --disable-root-check \ |
|
| 89 |
+ --mandir=/usr/share/man \ |
|
| 90 |
+ --sysconfdir=/etc/courier \ |
|
| 91 |
+ --libexecdir=/usr/$(get_libdir)/courier \ |
|
| 92 |
+ --datadir=/usr/share/courier \ |
|
| 93 |
+ --sharedstatedir=/var/lib/courier/com \ |
|
| 94 |
+ --localstatedir=/var/lib/courier \ |
|
| 95 |
+ --with-piddir=/var/run/courier \ |
|
| 96 |
+ --with-authdaemonvar=/var/lib/courier/authdaemon \ |
|
| 97 |
+ --with-mailuser=mail \ |
|
| 98 |
+ --with-mailgroup=mail \ |
|
| 99 |
+ --with-paranoid-smtpext \ |
|
| 100 |
+ --with-db=gdbm \ |
|
| 101 |
+ --disable-autorenamesent \ |
|
| 102 |
+ --cache-file=${S}/configuring.cache \
|
|
| 103 |
+ --host=${CHOST} ${myconf} debug=true || die "./configure"
|
|
| 104 |
+ sed -e'/^install-perms-local:/a\ sed -e\"s|^|'${D}'|g\" -i permissions.dat' -i Makefile
|
|
| 105 |
+ emake || die "Compile problem" |
|
| 106 |
+} |
|
| 107 |
+ |
|
| 108 |
+etc_courier() {
|
|
| 109 |
+ # Import existing /etc/courier/file if it exists. |
|
| 110 |
+ # Add option only if it was not already set or even commented out |
|
| 111 |
+ file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`"
|
|
| 112 |
+ [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \
|
|
| 113 |
+ cp "/etc/courier/${file}" "${D}/etc/courier/${file}"
|
|
| 114 |
+ grep -q "${word}" "${D}/etc/courier/${file}" || \
|
|
| 115 |
+ echo "${2}" >> "${D}/etc/courier/${file}"
|
|
| 116 |
+} |
|
| 117 |
+ |
|
| 118 |
+etc_courier_chg() {
|
|
| 119 |
+ file="${1}" ; key="${2}" ; value="${3}" ; section="${4}"
|
|
| 120 |
+ [ -z "${section}" ] && section="${2}"
|
|
| 121 |
+ grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}"
|
|
| 122 |
+ sed -i -e"/\#\#NAME: ${section}/,+20 s|${key}=.*|${key}=\"${value}\"|g" ${file}
|
|
| 123 |
+} |
|
| 124 |
+ |
|
| 125 |
+set_maildir() {
|
|
| 126 |
+ local f ; local files=$* |
|
| 127 |
+ origmaildir='Maildir' |
|
| 128 |
+ newmaildir='.maildir' |
|
| 129 |
+ for f in ${files} ; do
|
|
| 130 |
+ grep -q "${origmaildir}" "${f}" && \
|
|
| 131 |
+ elog "Changing ${origmaildir} in ${f} to ${newmaildir}"
|
|
| 132 |
+ sed -i -e"/^[^\#]/ s/${origmaildir}/${newmaildir}/g" ${f}
|
|
| 133 |
+ done |
|
| 134 |
+} |
|
| 135 |
+ |
|
| 136 |
+src_install() {
|
|
| 137 |
+ local f |
|
| 138 |
+ einfo "Setting up maildirs in the account skeleton ..." |
|
| 139 |
+ diropts -m 755 -o root -g root |
|
| 140 |
+ dodir /etc/skel |
|
| 141 |
+ ${S}/maildir/maildirmake ${D}/etc/skel/.maildir
|
|
| 142 |
+ keepdir /etc/skel/.maildir |
|
| 143 |
+ |
|
| 144 |
+ diropts -o mail -g mail |
|
| 145 |
+ keepdir /var/run/courier |
|
| 146 |
+ keepdir /var/lib/courier/tmp |
|
| 147 |
+ keepdir /var/lib/courier/msgs |
|
| 148 |
+ make install DESTDIR=${D} || die "install"
|
|
| 149 |
+ make install-configure || die "install-configure" |
|
| 150 |
+ |
|
| 151 |
+ for dir2keep in `(cd ${D} && find ./var/lib/courier -type d)` ; do
|
|
| 152 |
+ keepdir $dir2keep || die "failed running keepdir: $dir2keep" |
|
| 153 |
+ done |
|
| 154 |
+ |
|
| 155 |
+ newinitd ${FILESDIR}/courier-init-r1 courier
|
|
| 156 |
+ use fam || sed -i -e's|^.*use famd$||g' ${D}/etc/init.d/courier
|
|
| 157 |
+ |
|
| 158 |
+ cd ${D}/etc/courier
|
|
| 159 |
+ insinto /etc/courier |
|
| 160 |
+ newins ${FILESDIR}/apache-sqwebmail.inc apache-sqwebmail.inc
|
|
| 161 |
+ |
|
| 162 |
+ if use pam ; then |
|
| 163 |
+ dodir /etc/pam.d |
|
| 164 |
+ rm imapd.authpam pop3d.authpam |
|
| 165 |
+ for f in *.authpam ; do mv "${f}" "${D}/etc/pam.d/${f%%.authpam}" ; done
|
|
| 166 |
+ fi |
|
| 167 |
+ |
|
| 168 |
+ for f in *.dist ; do cp ${f} ${f%%.dist} ; done
|
|
| 169 |
+ [ -e ldapaliasrc ] && ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc ) |
|
| 170 |
+ set_maildir courierd imapd imapd-ssl pop3d pop3d-ssl sqwebmaild *.dist |
|
| 171 |
+ |
|
| 172 |
+ ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ |
|
| 173 |
+ > ${D}/etc/courier/sizelimit
|
|
| 174 |
+ etc_courier maildroprc "" |
|
| 175 |
+ etc_courier esmtproutes "" |
|
| 176 |
+ etc_courier backuprelay "" |
|
| 177 |
+ etc_courier locallowercase "" |
|
| 178 |
+ etc_courier bofh "opt BOFHBADMIME=accept" |
|
| 179 |
+ etc_courier bofh "opt BOFHSPFTRUSTME=1" |
|
| 180 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail" |
|
| 181 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none" |
|
| 182 |
+ etc_courier bofh "opt BOFHSPFFROM=all" |
|
| 183 |
+ etc_courier bofh "opt BOFHSPFMAILFROM=all" |
|
| 184 |
+ etc_courier bofh "#opt BOFHSPFHARDERROR=fail" |
|
| 185 |
+ etc_courier esmtpd "BOFHBADMIME=accept" |
|
| 186 |
+ etc_courier esmtpd-ssl "BOFHBADMIME=accept" |
|
| 187 |
+ etc_courier esmtpd-msa "BOFHBADMIME=accept" |
|
| 188 |
+ etc_courier_chg esmtpd ESMTPDSTART YES |
|
| 189 |
+ etc_courier_chg esmtpd ESMTPAUTH "LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" |
|
| 190 |
+ etc_courier_chg esmtpd ESMTPAUTH_WEBADMIN "LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" |
|
| 191 |
+ etc_courier_chg esmtpd ESMTPAUTH_TLS "PLAIN LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" ESMTPAUTHINFOTLS |
|
| 192 |
+ etc_courier_chg esmtpd ESMTPAUTH_TLS_WEBADMIN "PLAIN LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" ESMTPAUTHINFOTLS |
|
| 193 |
+ etc_courier_chg esmtpd-msa ESMTPDSTART YES |
|
| 194 |
+ etc_courier_chg esmtpd-msa AUTH_REQUIRED 1 |
|
| 195 |
+ etc_courier_chg esmtpd-ssl ESMTPDSSLSTART YES |
|
| 196 |
+ etc_courier_chg esmtpd-ssl AUTH_REQUIRED 1 |
|
| 197 |
+ etc_courier_chg imapd IMAPDSTART YES |
|
| 198 |
+ use fam && etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE" |
|
| 199 |
+ use fam || etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256" |
|
| 200 |
+ etc_courier_chg imapd-ssl IMAPDSSLSTART YES |
|
| 201 |
+ etc_courier_chg pop3d POP3DSTART YES |
|
| 202 |
+ etc_courier_chg pop3d POP3AUTH "LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" |
|
| 203 |
+ etc_courier_chg pop3d POP3AUTH_TLS "LOGIN PLAIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" |
|
| 204 |
+ etc_courier_chg pop3d-ssl POP3DSSLSTART YES |
|
| 205 |
+ |
|
| 206 |
+ # Fix for a sandbox violation on subsequential merges |
|
| 207 |
+ # - ticho@gentoo.org, 2005-07-10 |
|
| 208 |
+ rm ${D}/usr/sbin/{pop3d,imapd}{,-ssl}
|
|
| 209 |
+ dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d |
|
| 210 |
+ dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl |
|
| 211 |
+ dosym /usr/share/courier/imapd /usr/sbin/courier-imapd |
|
| 212 |
+ dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl |
|
| 213 |
+ |
|
| 214 |
+ cd ${S}
|
|
| 215 |
+ cp imap/README README.imap |
|
| 216 |
+ use nls && cp unicode/README README.unicode |
|
| 217 |
+ dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt |
|
| 218 |
+ dodoc tcpd/README.couriertls |
|
| 219 |
+ echo "See /usr/share/courier/htmldoc/index.html for docs in html format" \ |
|
| 220 |
+ >> ${D}/usr/share/doc/${P}/README.htmldocs
|
|
| 221 |
+ |
|
| 222 |
+ insinto /usr/$(get_libdir)/courier/courier |
|
| 223 |
+ insopts -m 755 -o mail -g mail |
|
| 224 |
+ doins ${S}/courier/webmaild
|
|
| 225 |
+ insinto /etc/courier/webadmin |
|
| 226 |
+ insopts -m 400 -o mail -g mail |
|
| 227 |
+ doins ${FILESDIR}/password.dist
|
|
| 228 |
+ |
|
| 229 |
+ # avoid name collisions in /usr/sbin, make webadmin match |
|
| 230 |
+ cd ${D}/usr/sbin
|
|
| 231 |
+ for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv ${f} courier-${f} ; done
|
|
| 232 |
+ sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \ |
|
| 233 |
+ -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \ |
|
| 234 |
+ ${D}/usr/share/courier/courierwebadmin/admin-40imap.pl \
|
|
| 235 |
+ || ewarn "failed to fix webadmin" |
|
| 236 |
+ sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \ |
|
| 237 |
+ -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \ |
|
| 238 |
+ ${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl \
|
|
| 239 |
+ || ewarn "failed to fix webadmin" |
|
| 240 |
+ |
|
| 241 |
+ if use mailwrapper ; then |
|
| 242 |
+ mv ${D}/usr/bin/sendmail ${D}/usr/bin/sendmail.courier
|
|
| 243 |
+ mv ${D}/usr/bin/rmail ${D}/usr/bin/rmail.courier
|
|
| 244 |
+ mv ${D}/usr/bin/mailq ${D}/usr/bin/mailq.courier
|
|
| 245 |
+ |
|
| 246 |
+ mv ${D}/usr/share/man/man1/sendmail.1 \
|
|
| 247 |
+ ${D}/usr/share/man/man1/sendmail-courier.1
|
|
| 248 |
+ mv ${D}/usr/share/man/man1/mailq.1 \
|
|
| 249 |
+ ${D}/usr/share/man/man1/mailq-courier.1
|
|
| 250 |
+ mv ${D}/usr/share/man/man1/rmail.1 \
|
|
| 251 |
+ ${D}/usr/share/man/man1/rmail-courier.1
|
|
| 252 |
+ |
|
| 253 |
+ insinto /etc/mail |
|
| 254 |
+ doins ${FILESDIR}/mailer.conf
|
|
| 255 |
+ else |
|
| 256 |
+ dosym /usr/bin/sendmail /usr/sbin/sendmail |
|
| 257 |
+ fi |
|
| 258 |
+} |
|
| 259 |
+ |
|
| 260 |
+src_test() {
|
|
| 261 |
+ addpredict / |
|
| 262 |
+ vecho ">>> Test phase [check]: ${CATEGORY}/${PF}"
|
|
| 263 |
+ if hasq userpriv ${FEATURES} ; then
|
|
| 264 |
+ if ! emake -j1 check; then |
|
| 265 |
+ hasq test ${FEATURES} && die "Make check failed. See above for details."
|
|
| 266 |
+ hasq test ${FEATURES} || eerror "Make check failed. See above for details."
|
|
| 267 |
+ fi |
|
| 268 |
+ else |
|
| 269 |
+ hasq test ${FEATURES} && eerror "Make check needs FEATURES="userpriv" to work."
|
|
| 270 |
+ fi |
|
| 271 |
+ SANDBOX_PREDICT="${SANDBOX_PREDICT%:/}"
|
|
| 272 |
+} |
|
| 273 |
+ |
|
| 274 |
+pkg_postinst() {
|
|
| 275 |
+ use fam && elog "fam daemon is needed for courier-imapd" \ |
|
| 276 |
+ || ewarn "courier was built without fam support" |
|
| 277 |
+ |
|
| 278 |
+ # fix for bug #99334 |
|
| 279 |
+ elog "Courier's sendmail is not suid by default, therefore non-root users can't send" |
|
| 280 |
+ elog "mail using sendmail. If you need this to work, you should set sendmail suid." |
|
| 281 |
+ elog "See also: http://www.courier-mta.org/install.html#suid" |
|
| 282 |
+} |
|
| 283 |
+ |
|
| 284 |
+pkg_config() {
|
|
| 285 |
+ mailhost=`hostname` |
|
| 286 |
+ export mailhost |
|
| 287 |
+ |
|
| 288 |
+ domainname=`domainname` |
|
| 289 |
+ if [ "x$domainname" = "x(none)" ] ; then |
|
| 290 |
+ domainname=`echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/"`
|
|
| 291 |
+ fi |
|
| 292 |
+ export domainname |
|
| 293 |
+ |
|
| 294 |
+ if [ ${ROOT} = "/" ] ; then
|
|
| 295 |
+ file=${ROOT}/etc/courier/locals
|
|
| 296 |
+ if [ ! -f ${file} ] ; then
|
|
| 297 |
+ echo "localhost" > ${file};
|
|
| 298 |
+ echo ${domainname} >> ${file};
|
|
| 299 |
+ fi |
|
| 300 |
+ file=${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}
|
|
| 301 |
+ if [ ! -f ${file} ] ; then
|
|
| 302 |
+ echo ${domainname} > ${file}
|
|
| 303 |
+ /usr/sbin/makeacceptmailfor |
|
| 304 |
+ fi |
|
| 305 |
+ |
|
| 306 |
+ file=${ROOT}/etc/courier/smtpaccess/${domainname}
|
|
| 307 |
+ if [ ! -f ${file} ]
|
|
| 308 |
+ then |
|
| 309 |
+ netstat -nr | grep "^[1-9]" | while read network gateway netmask rest |
|
| 310 |
+ do |
|
| 311 |
+ i=1 |
|
| 312 |
+ net="" |
|
| 313 |
+ TIFS=${IFS}
|
|
| 314 |
+ IFS="." |
|
| 315 |
+ for o in ${netmask}
|
|
| 316 |
+ do |
|
| 317 |
+ if [ ${o} == "255" ]
|
|
| 318 |
+ then |
|
| 319 |
+ [ "_${net}" == "_" ] || net="${net}."
|
|
| 320 |
+ t=`echo ${network} | cut -d " " -f ${i}`
|
|
| 321 |
+ net="${net}${t}"
|
|
| 322 |
+ fi |
|
| 323 |
+ i=$((${i} + 1))
|
|
| 324 |
+ done |
|
| 325 |
+ IFS=${TIFS}
|
|
| 326 |
+ echo "doing configuration - relay control for the network ${net} !"
|
|
| 327 |
+ echo "${net} allow,RELAYCLIENT" >> ${file}
|
|
| 328 |
+ done |
|
| 329 |
+ /usr/sbin/makesmtpaccess |
|
| 330 |
+ fi |
|
| 331 |
+ fi |
|
| 332 |
+ |
|
| 333 |
+ echo "creating cert for esmtpd-ssl:" |
|
| 334 |
+ /usr/sbin/mkesmtpdcert |
|
| 335 |
+ echo "creating cert for imapd-ssl:" |
|
| 336 |
+ /usr/sbin/mkpop3dcert |
|
| 337 |
+ echo "creating cert for pop3d-ssl:" |
|
| 338 |
+ /usr/sbin/mkimapdcert |
|
| 339 |
+} |
| ... | ... |
@@ -0,0 +1,341 @@ |
| 1 |
+# Copyright 1999-2008 Gentoo Foundation |
|
| 2 |
+# Distributed under the terms of the GNU General Public License v2 |
|
| 3 |
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/courier-0.55.1-r1.ebuild,v 1.4 2008/02/03 10:51:33 hollow Exp $ |
|
| 4 |
+ |
|
| 5 |
+WANT_AUTOCONF="latest" |
|
| 6 |
+WANT_AUTOMAKE="latest" |
|
| 7 |
+ |
|
| 8 |
+inherit eutils flag-o-matic autotools |
|
| 9 |
+ |
|
| 10 |
+DESCRIPTION="An MTA designed specifically for maildirs" |
|
| 11 |
+[ -z "${PV/?.??/}" ] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
|
|
| 12 |
+[ -z "${PV/?.??.?/}" ] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
|
|
| 13 |
+[ -z "${SRC_URI}" ] && SRC_URI="http://www.courier-mta.org/beta/courier/${P%%_pre}.tar.bz2"
|
|
| 14 |
+HOMEPAGE="http://www.courier-mta.org/" |
|
| 15 |
+S="${WORKDIR}/${P%%_pre}"
|
|
| 16 |
+ |
|
| 17 |
+SLOT="0" |
|
| 18 |
+LICENSE="GPL-2" |
|
| 19 |
+# not in keywords due to missing dependencies: ~arm ~s390 ~ppc64 |
|
| 20 |
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86" |
|
| 21 |
+IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite mailwrapper fam" |
|
| 22 |
+ |
|
| 23 |
+PROVIDE="virtual/mta |
|
| 24 |
+ virtual/mda |
|
| 25 |
+ virtual/imapd" |
|
| 26 |
+ |
|
| 27 |
+DEPEND=" |
|
| 28 |
+ >=net-libs/courier-authlib-0.59 |
|
| 29 |
+ >=dev-libs/openssl-0.9.6 |
|
| 30 |
+ >=sys-libs/gdbm-1.8.0 |
|
| 31 |
+ dev-libs/libpcre |
|
| 32 |
+ app-misc/mime-types |
|
| 33 |
+ fax? ( >=media-libs/netpbm-9.12 virtual/ghostscript >=net-dialup/mgetty-1.1.28 ) |
|
| 34 |
+ pam? ( virtual/pam ) |
|
| 35 |
+ mysql? ( virtual/mysql ) |
|
| 36 |
+ ldap? ( >=net-nds/openldap-1.2.11 ) |
|
| 37 |
+ postgres? ( >=dev-db/postgresql-7.1.3 ) |
|
| 38 |
+ spell? ( virtual/aspell-dict ) |
|
| 39 |
+ fam? ( virtual/fam ) |
|
| 40 |
+ !mailwrapper? ( !virtual/mta ) |
|
| 41 |
+ !virtual/imapd |
|
| 42 |
+ !mail-filter/maildrop" |
|
| 43 |
+ |
|
| 44 |
+RDEPEND="${DEPEND}
|
|
| 45 |
+ dev-lang/perl |
|
| 46 |
+ sys-process/procps" |
|
| 47 |
+ |
|
| 48 |
+PDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 ) |
|
| 49 |
+ pam? ( net-mail/mailbase ) |
|
| 50 |
+ crypt? ( >=app-crypt/gnupg-1.0.4 )" |
|
| 51 |
+ |
|
| 52 |
+filter-flags '-fomit-frame-pointer' |
|
| 53 |
+ |
|
| 54 |
+src_unpack() {
|
|
| 55 |
+ use fam || ( |
|
| 56 |
+ ewarn "File Alteration Monitor (FAM) is disabled" |
|
| 57 |
+ ewarn "courier-imap will fall back to 60 second polls." |
|
| 58 |
+ ewarn 'add "fam" to your USE flags to build as usual' |
|
| 59 |
+ ebeep 4 |
|
| 60 |
+ epause 4 ) |
|
| 61 |
+ unpack ${A}
|
|
| 62 |
+ cd ${S}
|
|
| 63 |
+ use norewrite && epatch ${FILESDIR}/norewrite.patch
|
|
| 64 |
+ use elibc_uclibc && sed -i -e 's:linux-gnu\*:linux-gnu\*\ \|\ linux-uclibc:' config.sub |
|
| 65 |
+ |
|
| 66 |
+ epatch "${FILESDIR}/pam-include.patch"
|
|
| 67 |
+ |
|
| 68 |
+ # disable link to fam. |
|
| 69 |
+ epatch ${FILESDIR}/fam-disable-check.patch
|
|
| 70 |
+ cd ${S}/maildir
|
|
| 71 |
+ eautoreconf |
|
| 72 |
+} |
|
| 73 |
+ |
|
| 74 |
+src_compile() {
|
|
| 75 |
+ local myconf |
|
| 76 |
+ myconf="`use_with ipv6` \ |
|
| 77 |
+ `use_with ldap ldapaliasd` `use_enable ldap maildropldap`" |
|
| 78 |
+ |
|
| 79 |
+ use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf"
|
|
| 80 |
+ use spell || myconf="${myconf} --without-ispell"
|
|
| 81 |
+ |
|
| 82 |
+ myconf="${myconf} --enable-mimetypes=/etc/mime.types"
|
|
| 83 |
+ |
|
| 84 |
+ myconf="${myconf} $(use_with fam)"
|
|
| 85 |
+ |
|
| 86 |
+ einfo "Configuring courier: `echo ${myconf} | xargs echo`"
|
|
| 87 |
+ |
|
| 88 |
+ econf \ |
|
| 89 |
+ --prefix=/usr \ |
|
| 90 |
+ --disable-root-check \ |
|
| 91 |
+ --mandir=/usr/share/man \ |
|
| 92 |
+ --sysconfdir=/etc/courier \ |
|
| 93 |
+ --libexecdir=/usr/$(get_libdir)/courier \ |
|
| 94 |
+ --datadir=/usr/share/courier \ |
|
| 95 |
+ --sharedstatedir=/var/lib/courier/com \ |
|
| 96 |
+ --localstatedir=/var/lib/courier \ |
|
| 97 |
+ --with-piddir=/var/run/courier \ |
|
| 98 |
+ --with-authdaemonvar=/var/lib/courier/authdaemon \ |
|
| 99 |
+ --with-mailuser=mail \ |
|
| 100 |
+ --with-mailgroup=mail \ |
|
| 101 |
+ --with-paranoid-smtpext \ |
|
| 102 |
+ --with-db=gdbm \ |
|
| 103 |
+ --disable-autorenamesent \ |
|
| 104 |
+ --cache-file=${S}/configuring.cache \
|
|
| 105 |
+ --host=${CHOST} ${myconf} debug=true || die "./configure"
|
|
| 106 |
+ sed -e'/^install-perms-local:/a\ sed -e\"s|^|'${D}'|g\" -i permissions.dat' -i Makefile
|
|
| 107 |
+ emake || die "Compile problem" |
|
| 108 |
+} |
|
| 109 |
+ |
|
| 110 |
+etc_courier() {
|
|
| 111 |
+ # Import existing /etc/courier/file if it exists. |
|
| 112 |
+ # Add option only if it was not already set or even commented out |
|
| 113 |
+ file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`"
|
|
| 114 |
+ [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \
|
|
| 115 |
+ cp "/etc/courier/${file}" "${D}/etc/courier/${file}"
|
|
| 116 |
+ grep -q "${word}" "${D}/etc/courier/${file}" || \
|
|
| 117 |
+ echo "${2}" >> "${D}/etc/courier/${file}"
|
|
| 118 |
+} |
|
| 119 |
+ |
|
| 120 |
+etc_courier_chg() {
|
|
| 121 |
+ file="${1}" ; key="${2}" ; value="${3}" ; section="${4}"
|
|
| 122 |
+ [ -z "${section}" ] && section="${2}"
|
|
| 123 |
+ grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}"
|
|
| 124 |
+ sed -i -e"/\#\#NAME: ${section}/,+20 s|${key}=.*|${key}=\"${value}\"|g" ${file}
|
|
| 125 |
+} |
|
| 126 |
+ |
|
| 127 |
+set_maildir() {
|
|
| 128 |
+ local f ; local files=$* |
|
| 129 |
+ origmaildir='Maildir' |
|
| 130 |
+ newmaildir='.maildir' |
|
| 131 |
+ for f in ${files} ; do
|
|
| 132 |
+ grep -q "${origmaildir}" "${f}" && \
|
|
| 133 |
+ elog "Changing ${origmaildir} in ${f} to ${newmaildir}"
|
|
| 134 |
+ sed -i -e"/^[^\#]/ s/${origmaildir}/${newmaildir}/g" ${f}
|
|
| 135 |
+ done |
|
| 136 |
+} |
|
| 137 |
+ |
|
| 138 |
+src_install() {
|
|
| 139 |
+ local f |
|
| 140 |
+ einfo "Setting up maildirs in the account skeleton ..." |
|
| 141 |
+ diropts -m 755 -o root -g root |
|
| 142 |
+ dodir /etc/skel |
|
| 143 |
+ ${S}/maildir/maildirmake ${D}/etc/skel/.maildir
|
|
| 144 |
+ keepdir /etc/skel/.maildir |
|
| 145 |
+ |
|
| 146 |
+ diropts -o mail -g mail |
|
| 147 |
+ keepdir /var/run/courier |
|
| 148 |
+ keepdir /var/lib/courier/tmp |
|
| 149 |
+ keepdir /var/lib/courier/msgs |
|
| 150 |
+ make install DESTDIR=${D} || die "install"
|
|
| 151 |
+ make install-configure || die "install-configure" |
|
| 152 |
+ |
|
| 153 |
+ for dir2keep in `(cd ${D} && find ./var/lib/courier -type d)` ; do
|
|
| 154 |
+ keepdir $dir2keep || die "failed running keepdir: $dir2keep" |
|
| 155 |
+ done |
|
| 156 |
+ |
|
| 157 |
+ newinitd ${FILESDIR}/courier-init-r1 courier
|
|
| 158 |
+ use fam || sed -i -e's|^.*use famd$||g' ${D}/etc/init.d/courier
|
|
| 159 |
+ |
|
| 160 |
+ cd ${D}/etc/courier
|
|
| 161 |
+ insinto /etc/courier |
|
| 162 |
+ newins ${FILESDIR}/apache-sqwebmail.inc apache-sqwebmail.inc
|
|
| 163 |
+ |
|
| 164 |
+ if use pam ; then |
|
| 165 |
+ dodir /etc/pam.d |
|
| 166 |
+ rm imapd.authpam pop3d.authpam |
|
| 167 |
+ for f in *.authpam ; do mv "${f}" "${D}/etc/pam.d/${f%%.authpam}" ; done
|
|
| 168 |
+ fi |
|
| 169 |
+ |
|
| 170 |
+ for f in *.dist ; do cp ${f} ${f%%.dist} ; done
|
|
| 171 |
+ [ -e ldapaliasrc ] && ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc ) |
|
| 172 |
+ set_maildir courierd imapd imapd-ssl pop3d pop3d-ssl sqwebmaild *.dist |
|
| 173 |
+ |
|
| 174 |
+ ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ |
|
| 175 |
+ > ${D}/etc/courier/sizelimit
|
|
| 176 |
+ etc_courier maildroprc "" |
|
| 177 |
+ etc_courier esmtproutes "" |
|
| 178 |
+ etc_courier backuprelay "" |
|
| 179 |
+ etc_courier locallowercase "" |
|
| 180 |
+ etc_courier bofh "opt BOFHBADMIME=accept" |
|
| 181 |
+ etc_courier bofh "opt BOFHSPFTRUSTME=1" |
|
| 182 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail" |
|
| 183 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none" |
|
| 184 |
+ etc_courier bofh "opt BOFHSPFFROM=all" |
|
| 185 |
+ etc_courier bofh "opt BOFHSPFMAILFROM=all" |
|
| 186 |
+ etc_courier bofh "#opt BOFHSPFHARDERROR=fail" |
|
| 187 |
+ etc_courier esmtpd "BOFHBADMIME=accept" |
|
| 188 |
+ etc_courier esmtpd-ssl "BOFHBADMIME=accept" |
|
| 189 |
+ etc_courier esmtpd-msa "BOFHBADMIME=accept" |
|
| 190 |
+ etc_courier_chg esmtpd ESMTPDSTART YES |
|
| 191 |
+ etc_courier_chg esmtpd ESMTPAUTH "LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" |
|
| 192 |
+ etc_courier_chg esmtpd ESMTPAUTH_WEBADMIN "LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" |
|
| 193 |
+ etc_courier_chg esmtpd ESMTPAUTH_TLS "PLAIN LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" ESMTPAUTHINFOTLS |
|
| 194 |
+ etc_courier_chg esmtpd ESMTPAUTH_TLS_WEBADMIN "PLAIN LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" ESMTPAUTHINFOTLS |
|
| 195 |
+ etc_courier_chg esmtpd-msa ESMTPDSTART YES |
|
| 196 |
+ etc_courier_chg esmtpd-msa AUTH_REQUIRED 1 |
|
| 197 |
+ etc_courier_chg esmtpd-ssl ESMTPDSSLSTART YES |
|
| 198 |
+ etc_courier_chg esmtpd-ssl AUTH_REQUIRED 1 |
|
| 199 |
+ etc_courier_chg imapd IMAPDSTART YES |
|
| 200 |
+ use fam && etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE" |
|
| 201 |
+ use fam || etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256" |
|
| 202 |
+ etc_courier_chg imapd-ssl IMAPDSSLSTART YES |
|
| 203 |
+ etc_courier_chg pop3d POP3DSTART YES |
|
| 204 |
+ etc_courier_chg pop3d POP3AUTH "LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" |
|
| 205 |
+ etc_courier_chg pop3d POP3AUTH_TLS "LOGIN PLAIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" |
|
| 206 |
+ etc_courier_chg pop3d-ssl POP3DSSLSTART YES |
|
| 207 |
+ |
|
| 208 |
+ # Fix for a sandbox violation on subsequential merges |
|
| 209 |
+ # - ticho@gentoo.org, 2005-07-10 |
|
| 210 |
+ rm ${D}/usr/sbin/{pop3d,imapd}{,-ssl}
|
|
| 211 |
+ dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d |
|
| 212 |
+ dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl |
|
| 213 |
+ dosym /usr/share/courier/imapd /usr/sbin/courier-imapd |
|
| 214 |
+ dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl |
|
| 215 |
+ |
|
| 216 |
+ cd ${S}
|
|
| 217 |
+ cp imap/README README.imap |
|
| 218 |
+ use nls && cp unicode/README README.unicode |
|
| 219 |
+ dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt |
|
| 220 |
+ dodoc tcpd/README.couriertls |
|
| 221 |
+ echo "See /usr/share/courier/htmldoc/index.html for docs in html format" \ |
|
| 222 |
+ >> ${D}/usr/share/doc/${P}/README.htmldocs
|
|
| 223 |
+ |
|
| 224 |
+ insinto /usr/$(get_libdir)/courier/courier |
|
| 225 |
+ insopts -m 755 -o mail -g mail |
|
| 226 |
+ doins ${S}/courier/webmaild
|
|
| 227 |
+ insinto /etc/courier/webadmin |
|
| 228 |
+ insopts -m 400 -o mail -g mail |
|
| 229 |
+ doins ${FILESDIR}/password.dist
|
|
| 230 |
+ |
|
| 231 |
+ # avoid name collisions in /usr/sbin, make webadmin match |
|
| 232 |
+ cd ${D}/usr/sbin
|
|
| 233 |
+ for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv ${f} courier-${f} ; done
|
|
| 234 |
+ sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \ |
|
| 235 |
+ -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \ |
|
| 236 |
+ ${D}/usr/share/courier/courierwebadmin/admin-40imap.pl \
|
|
| 237 |
+ || ewarn "failed to fix webadmin" |
|
| 238 |
+ sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \ |
|
| 239 |
+ -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \ |
|
| 240 |
+ ${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl \
|
|
| 241 |
+ || ewarn "failed to fix webadmin" |
|
| 242 |
+ |
|
| 243 |
+ if use mailwrapper ; then |
|
| 244 |
+ mv ${D}/usr/bin/sendmail ${D}/usr/bin/sendmail.courier
|
|
| 245 |
+ mv ${D}/usr/bin/rmail ${D}/usr/bin/rmail.courier
|
|
| 246 |
+ mv ${D}/usr/bin/mailq ${D}/usr/bin/mailq.courier
|
|
| 247 |
+ |
|
| 248 |
+ mv ${D}/usr/share/man/man1/sendmail.1 \
|
|
| 249 |
+ ${D}/usr/share/man/man1/sendmail-courier.1
|
|
| 250 |
+ mv ${D}/usr/share/man/man1/mailq.1 \
|
|
| 251 |
+ ${D}/usr/share/man/man1/mailq-courier.1
|
|
| 252 |
+ mv ${D}/usr/share/man/man1/rmail.1 \
|
|
| 253 |
+ ${D}/usr/share/man/man1/rmail-courier.1
|
|
| 254 |
+ |
|
| 255 |
+ insinto /etc/mail |
|
| 256 |
+ doins ${FILESDIR}/mailer.conf
|
|
| 257 |
+ else |
|
| 258 |
+ dosym /usr/bin/sendmail /usr/sbin/sendmail |
|
| 259 |
+ fi |
|
| 260 |
+} |
|
| 261 |
+ |
|
| 262 |
+src_test() {
|
|
| 263 |
+ addpredict / |
|
| 264 |
+ vecho ">>> Test phase [check]: ${CATEGORY}/${PF}"
|
|
| 265 |
+ if hasq userpriv ${FEATURES} ; then
|
|
| 266 |
+ if ! emake -j1 check; then |
|
| 267 |
+ hasq test ${FEATURES} && die "Make check failed. See above for details."
|
|
| 268 |
+ hasq test ${FEATURES} || eerror "Make check failed. See above for details."
|
|
| 269 |
+ fi |
|
| 270 |
+ else |
|
| 271 |
+ hasq test ${FEATURES} && eerror "Make check needs FEATURES="userpriv" to work."
|
|
| 272 |
+ fi |
|
| 273 |
+ SANDBOX_PREDICT="${SANDBOX_PREDICT%:/}"
|
|
| 274 |
+} |
|
| 275 |
+ |
|
| 276 |
+pkg_postinst() {
|
|
| 277 |
+ use fam && elog "fam daemon is needed for courier-imapd" \ |
|
| 278 |
+ || ewarn "courier was built without fam support" |
|
| 279 |
+ |
|
| 280 |
+ # fix for bug #99334 |
|
| 281 |
+ elog "Courier's sendmail is not suid by default, therefore non-root users can't send" |
|
| 282 |
+ elog "mail using sendmail. If you need this to work, you should set sendmail suid." |
|
| 283 |
+ elog "See also: http://www.courier-mta.org/install.html#suid" |
|
| 284 |
+} |
|
| 285 |
+ |
|
| 286 |
+pkg_config() {
|
|
| 287 |
+ mailhost=`hostname` |
|
| 288 |
+ export mailhost |
|
| 289 |
+ |
|
| 290 |
+ domainname=`domainname` |
|
| 291 |
+ if [ "x$domainname" = "x(none)" ] ; then |
|
| 292 |
+ domainname=`echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/"`
|
|
| 293 |
+ fi |
|
| 294 |
+ export domainname |
|
| 295 |
+ |
|
| 296 |
+ if [ ${ROOT} = "/" ] ; then
|
|
| 297 |
+ file=${ROOT}/etc/courier/locals
|
|
| 298 |
+ if [ ! -f ${file} ] ; then
|
|
| 299 |
+ echo "localhost" > ${file};
|
|
| 300 |
+ echo ${domainname} >> ${file};
|
|
| 301 |
+ fi |
|
| 302 |
+ file=${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}
|
|
| 303 |
+ if [ ! -f ${file} ] ; then
|
|
| 304 |
+ echo ${domainname} > ${file}
|
|
| 305 |
+ /usr/sbin/makeacceptmailfor |
|
| 306 |
+ fi |
|
| 307 |
+ |
|
| 308 |
+ file=${ROOT}/etc/courier/smtpaccess/${domainname}
|
|
| 309 |
+ if [ ! -f ${file} ]
|
|
| 310 |
+ then |
|
| 311 |
+ netstat -nr | grep "^[1-9]" | while read network gateway netmask rest |
|
| 312 |
+ do |
|
| 313 |
+ i=1 |
|
| 314 |
+ net="" |
|
| 315 |
+ TIFS=${IFS}
|
|
| 316 |
+ IFS="." |
|
| 317 |
+ for o in ${netmask}
|
|
| 318 |
+ do |
|
| 319 |
+ if [ ${o} == "255" ]
|
|
| 320 |
+ then |
|
| 321 |
+ [ "_${net}" == "_" ] || net="${net}."
|
|
| 322 |
+ t=`echo ${network} | cut -d " " -f ${i}`
|
|
| 323 |
+ net="${net}${t}"
|
|
| 324 |
+ fi |
|
| 325 |
+ i=$((${i} + 1))
|
|
| 326 |
+ done |
|
| 327 |
+ IFS=${TIFS}
|
|
| 328 |
+ echo "doing configuration - relay control for the network ${net} !"
|
|
| 329 |
+ echo "${net} allow,RELAYCLIENT" >> ${file}
|
|
| 330 |
+ done |
|
| 331 |
+ /usr/sbin/makesmtpaccess |
|
| 332 |
+ fi |
|
| 333 |
+ fi |
|
| 334 |
+ |
|
| 335 |
+ echo "creating cert for esmtpd-ssl:" |
|
| 336 |
+ /usr/sbin/mkesmtpdcert |
|
| 337 |
+ echo "creating cert for imapd-ssl:" |
|
| 338 |
+ /usr/sbin/mkpop3dcert |
|
| 339 |
+ echo "creating cert for pop3d-ssl:" |
|
| 340 |
+ /usr/sbin/mkimapdcert |
|
| 341 |
+} |
| ... | ... |
@@ -0,0 +1,339 @@ |
| 1 |
+# Copyright 1999-2008 Gentoo Foundation |
|
| 2 |
+# Distributed under the terms of the GNU General Public License v2 |
|
| 3 |
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/courier-0.55.1.ebuild,v 1.4 2008/02/03 10:51:33 hollow Exp $ |
|
| 4 |
+ |
|
| 5 |
+WANT_AUTOCONF="latest" |
|
| 6 |
+WANT_AUTOMAKE="latest" |
|
| 7 |
+ |
|
| 8 |
+inherit eutils flag-o-matic autotools |
|
| 9 |
+ |
|
| 10 |
+DESCRIPTION="An MTA designed specifically for maildirs" |
|
| 11 |
+[ -z "${PV/?.??/}" ] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
|
|
| 12 |
+[ -z "${PV/?.??.?/}" ] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
|
|
| 13 |
+[ -z "${SRC_URI}" ] && SRC_URI="http://www.courier-mta.org/beta/courier/${P%%_pre}.tar.bz2"
|
|
| 14 |
+HOMEPAGE="http://www.courier-mta.org/" |
|
| 15 |
+S="${WORKDIR}/${P%%_pre}"
|
|
| 16 |
+ |
|
| 17 |
+SLOT="0" |
|
| 18 |
+LICENSE="GPL-2" |
|
| 19 |
+# not in keywords due to missing dependencies: ~arm ~s390 ~ppc64 |
|
| 20 |
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86" |
|
| 21 |
+IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite mailwrapper fam" |
|
| 22 |
+ |
|
| 23 |
+PROVIDE="virtual/mta |
|
| 24 |
+ virtual/mda |
|
| 25 |
+ virtual/imapd" |
|
| 26 |
+ |
|
| 27 |
+DEPEND=" |
|
| 28 |
+ >=net-libs/courier-authlib-0.59 |
|
| 29 |
+ >=dev-libs/openssl-0.9.6 |
|
| 30 |
+ >=sys-libs/gdbm-1.8.0 |
|
| 31 |
+ dev-libs/libpcre |
|
| 32 |
+ app-misc/mime-types |
|
| 33 |
+ fax? ( >=media-libs/netpbm-9.12 virtual/ghostscript >=net-dialup/mgetty-1.1.28 ) |
|
| 34 |
+ pam? ( >=sys-libs/pam-0.75 ) |
|
| 35 |
+ mysql? ( virtual/mysql ) |
|
| 36 |
+ ldap? ( >=net-nds/openldap-1.2.11 ) |
|
| 37 |
+ postgres? ( >=dev-db/postgresql-7.1.3 ) |
|
| 38 |
+ spell? ( virtual/aspell-dict ) |
|
| 39 |
+ fam? ( virtual/fam ) |
|
| 40 |
+ !mailwrapper? ( !virtual/mta ) |
|
| 41 |
+ !virtual/imapd |
|
| 42 |
+ !mail-filter/maildrop" |
|
| 43 |
+ |
|
| 44 |
+RDEPEND="${DEPEND}
|
|
| 45 |
+ dev-lang/perl |
|
| 46 |
+ sys-process/procps" |
|
| 47 |
+ |
|
| 48 |
+PDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 ) |
|
| 49 |
+ pam? ( net-mail/mailbase ) |
|
| 50 |
+ crypt? ( >=app-crypt/gnupg-1.0.4 )" |
|
| 51 |
+ |
|
| 52 |
+filter-flags '-fomit-frame-pointer' |
|
| 53 |
+ |
|
| 54 |
+src_unpack() {
|
|
| 55 |
+ use fam || ( |
|
| 56 |
+ ewarn "File Alteration Monitor (FAM) is disabled" |
|
| 57 |
+ ewarn "courier-imap will fall back to 60 second polls." |
|
| 58 |
+ ewarn 'add "fam" to your USE flags to build as usual' |
|
| 59 |
+ ebeep 4 |
|
| 60 |
+ epause 4 ) |
|
| 61 |
+ unpack ${A}
|
|
| 62 |
+ cd ${S}
|
|
| 63 |
+ use norewrite && epatch ${FILESDIR}/norewrite.patch
|
|
| 64 |
+ use elibc_uclibc && sed -i -e 's:linux-gnu\*:linux-gnu\*\ \|\ linux-uclibc:' config.sub |
|
| 65 |
+ |
|
| 66 |
+ # disable link to fam. |
|
| 67 |
+ epatch ${FILESDIR}/fam-disable-check.patch
|
|
| 68 |
+ cd ${S}/maildir
|
|
| 69 |
+ eautoreconf |
|
| 70 |
+} |
|
| 71 |
+ |
|
| 72 |
+src_compile() {
|
|
| 73 |
+ local myconf |
|
| 74 |
+ myconf="`use_with ipv6` \ |
|
| 75 |
+ `use_with ldap ldapaliasd` `use_enable ldap maildropldap`" |
|
| 76 |
+ |
|
| 77 |
+ use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf"
|
|
| 78 |
+ use spell || myconf="${myconf} --without-ispell"
|
|
| 79 |
+ |
|
| 80 |
+ myconf="${myconf} --enable-mimetypes=/etc/mime.types"
|
|
| 81 |
+ |
|
| 82 |
+ myconf="${myconf} $(use_with fam)"
|
|
| 83 |
+ |
|
| 84 |
+ einfo "Configuring courier: `echo ${myconf} | xargs echo`"
|
|
| 85 |
+ |
|
| 86 |
+ econf \ |
|
| 87 |
+ --prefix=/usr \ |
|
| 88 |
+ --disable-root-check \ |
|
| 89 |
+ --mandir=/usr/share/man \ |
|
| 90 |
+ --sysconfdir=/etc/courier \ |
|
| 91 |
+ --libexecdir=/usr/$(get_libdir)/courier \ |
|
| 92 |
+ --datadir=/usr/share/courier \ |
|
| 93 |
+ --sharedstatedir=/var/lib/courier/com \ |
|
| 94 |
+ --localstatedir=/var/lib/courier \ |
|
| 95 |
+ --with-piddir=/var/run/courier \ |
|
| 96 |
+ --with-authdaemonvar=/var/lib/courier/authdaemon \ |
|
| 97 |
+ --with-mailuser=mail \ |
|
| 98 |
+ --with-mailgroup=mail \ |
|
| 99 |
+ --with-paranoid-smtpext \ |
|
| 100 |
+ --with-db=gdbm \ |
|
| 101 |
+ --disable-autorenamesent \ |
|
| 102 |
+ --cache-file=${S}/configuring.cache \
|
|
| 103 |
+ --host=${CHOST} ${myconf} debug=true || die "./configure"
|
|
| 104 |
+ sed -e'/^install-perms-local:/a\ sed -e\"s|^|'${D}'|g\" -i permissions.dat' -i Makefile
|
|
| 105 |
+ emake || die "Compile problem" |
|
| 106 |
+} |
|
| 107 |
+ |
|
| 108 |
+etc_courier() {
|
|
| 109 |
+ # Import existing /etc/courier/file if it exists. |
|
| 110 |
+ # Add option only if it was not already set or even commented out |
|
| 111 |
+ file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`"
|
|
| 112 |
+ [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \
|
|
| 113 |
+ cp "/etc/courier/${file}" "${D}/etc/courier/${file}"
|
|
| 114 |
+ grep -q "${word}" "${D}/etc/courier/${file}" || \
|
|
| 115 |
+ echo "${2}" >> "${D}/etc/courier/${file}"
|
|
| 116 |
+} |
|
| 117 |
+ |
|
| 118 |
+etc_courier_chg() {
|
|
| 119 |
+ file="${1}" ; key="${2}" ; value="${3}" ; section="${4}"
|
|
| 120 |
+ [ -z "${section}" ] && section="${2}"
|
|
| 121 |
+ grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}"
|
|
| 122 |
+ sed -i -e"/\#\#NAME: ${section}/,+20 s|${key}=.*|${key}=\"${value}\"|g" ${file}
|
|
| 123 |
+} |
|
| 124 |
+ |
|
| 125 |
+set_maildir() {
|
|
| 126 |
+ local f ; local files=$* |
|
| 127 |
+ origmaildir='Maildir' |
|
| 128 |
+ newmaildir='.maildir' |
|
| 129 |
+ for f in ${files} ; do
|
|
| 130 |
+ grep -q "${origmaildir}" "${f}" && \
|
|
| 131 |
+ elog "Changing ${origmaildir} in ${f} to ${newmaildir}"
|
|
| 132 |
+ sed -i -e"/^[^\#]/ s/${origmaildir}/${newmaildir}/g" ${f}
|
|
| 133 |
+ done |
|
| 134 |
+} |
|
| 135 |
+ |
|
| 136 |
+src_install() {
|
|
| 137 |
+ local f |
|
| 138 |
+ einfo "Setting up maildirs in the account skeleton ..." |
|
| 139 |
+ diropts -m 755 -o root -g root |
|
| 140 |
+ dodir /etc/skel |
|
| 141 |
+ ${S}/maildir/maildirmake ${D}/etc/skel/.maildir
|
|
| 142 |
+ keepdir /etc/skel/.maildir |
|
| 143 |
+ |
|
| 144 |
+ diropts -o mail -g mail |
|
| 145 |
+ keepdir /var/run/courier |
|
| 146 |
+ keepdir /var/lib/courier/tmp |
|
| 147 |
+ keepdir /var/lib/courier/msgs |
|
| 148 |
+ make install DESTDIR=${D} || die "install"
|
|
| 149 |
+ make install-configure || die "install-configure" |
|
| 150 |
+ |
|
| 151 |
+ for dir2keep in `(cd ${D} && find ./var/lib/courier -type d)` ; do
|
|
| 152 |
+ keepdir $dir2keep || die "failed running keepdir: $dir2keep" |
|
| 153 |
+ done |
|
| 154 |
+ |
|
| 155 |
+ newinitd ${FILESDIR}/courier-init-r1 courier
|
|
| 156 |
+ use fam || sed -i -e's|^.*use famd$||g' ${D}/etc/init.d/courier
|
|
| 157 |
+ |
|
| 158 |
+ cd ${D}/etc/courier
|
|
| 159 |
+ insinto /etc/courier |
|
| 160 |
+ newins ${FILESDIR}/apache-sqwebmail.inc apache-sqwebmail.inc
|
|
| 161 |
+ |
|
| 162 |
+ if use pam ; then |
|
| 163 |
+ dodir /etc/pam.d |
|
| 164 |
+ rm imapd.authpam pop3d.authpam |
|
| 165 |
+ for f in *.authpam ; do mv "${f}" "${D}/etc/pam.d/${f%%.authpam}" ; done
|
|
| 166 |
+ fi |
|
| 167 |
+ |
|
| 168 |
+ for f in *.dist ; do cp ${f} ${f%%.dist} ; done
|
|
| 169 |
+ [ -e ldapaliasrc ] && ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc ) |
|
| 170 |
+ set_maildir courierd imapd imapd-ssl pop3d pop3d-ssl sqwebmaild *.dist |
|
| 171 |
+ |
|
| 172 |
+ ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ |
|
| 173 |
+ > ${D}/etc/courier/sizelimit
|
|
| 174 |
+ etc_courier maildroprc "" |
|
| 175 |
+ etc_courier esmtproutes "" |
|
| 176 |
+ etc_courier backuprelay "" |
|
| 177 |
+ etc_courier locallowercase "" |
|
| 178 |
+ etc_courier bofh "opt BOFHBADMIME=accept" |
|
| 179 |
+ etc_courier bofh "opt BOFHSPFTRUSTME=1" |
|
| 180 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail" |
|
| 181 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none" |
|
| 182 |
+ etc_courier bofh "opt BOFHSPFFROM=all" |
|
| 183 |
+ etc_courier bofh "opt BOFHSPFMAILFROM=all" |
|
| 184 |
+ etc_courier bofh "#opt BOFHSPFHARDERROR=fail" |
|
| 185 |
+ etc_courier esmtpd "BOFHBADMIME=accept" |
|
| 186 |
+ etc_courier esmtpd-ssl "BOFHBADMIME=accept" |
|
| 187 |
+ etc_courier esmtpd-msa "BOFHBADMIME=accept" |
|
| 188 |
+ etc_courier_chg esmtpd ESMTPDSTART YES |
|
| 189 |
+ etc_courier_chg esmtpd ESMTPAUTH "LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" |
|
| 190 |
+ etc_courier_chg esmtpd ESMTPAUTH_WEBADMIN "LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" |
|
| 191 |
+ etc_courier_chg esmtpd ESMTPAUTH_TLS "PLAIN LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" ESMTPAUTHINFOTLS |
|
| 192 |
+ etc_courier_chg esmtpd ESMTPAUTH_TLS_WEBADMIN "PLAIN LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" ESMTPAUTHINFOTLS |
|
| 193 |
+ etc_courier_chg esmtpd-msa ESMTPDSTART YES |
|
| 194 |
+ etc_courier_chg esmtpd-msa AUTH_REQUIRED 1 |
|
| 195 |
+ etc_courier_chg esmtpd-ssl ESMTPDSSLSTART YES |
|
| 196 |
+ etc_courier_chg esmtpd-ssl AUTH_REQUIRED 1 |
|
| 197 |
+ etc_courier_chg imapd IMAPDSTART YES |
|
| 198 |
+ use fam && etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE" |
|
| 199 |
+ use fam || etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256" |
|
| 200 |
+ etc_courier_chg imapd-ssl IMAPDSSLSTART YES |
|
| 201 |
+ etc_courier_chg pop3d POP3DSTART YES |
|
| 202 |
+ etc_courier_chg pop3d POP3AUTH "LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" |
|
| 203 |
+ etc_courier_chg pop3d POP3AUTH_TLS "LOGIN PLAIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" |
|
| 204 |
+ etc_courier_chg pop3d-ssl POP3DSSLSTART YES |
|
| 205 |
+ |
|
| 206 |
+ # Fix for a sandbox violation on subsequential merges |
|
| 207 |
+ # - ticho@gentoo.org, 2005-07-10 |
|
| 208 |
+ rm ${D}/usr/sbin/{pop3d,imapd}{,-ssl}
|
|
| 209 |
+ dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d |
|
| 210 |
+ dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl |
|
| 211 |
+ dosym /usr/share/courier/imapd /usr/sbin/courier-imapd |
|
| 212 |
+ dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl |
|
| 213 |
+ |
|
| 214 |
+ cd ${S}
|
|
| 215 |
+ cp imap/README README.imap |
|
| 216 |
+ use nls && cp unicode/README README.unicode |
|
| 217 |
+ dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt |
|
| 218 |
+ dodoc tcpd/README.couriertls |
|
| 219 |
+ echo "See /usr/share/courier/htmldoc/index.html for docs in html format" \ |
|
| 220 |
+ >> ${D}/usr/share/doc/${P}/README.htmldocs
|
|
| 221 |
+ |
|
| 222 |
+ insinto /usr/$(get_libdir)/courier/courier |
|
| 223 |
+ insopts -m 755 -o mail -g mail |
|
| 224 |
+ doins ${S}/courier/webmaild
|
|
| 225 |
+ insinto /etc/courier/webadmin |
|
| 226 |
+ insopts -m 400 -o mail -g mail |
|
| 227 |
+ doins ${FILESDIR}/password.dist
|
|
| 228 |
+ |
|
| 229 |
+ # avoid name collisions in /usr/sbin, make webadmin match |
|
| 230 |
+ cd ${D}/usr/sbin
|
|
| 231 |
+ for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv ${f} courier-${f} ; done
|
|
| 232 |
+ sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \ |
|
| 233 |
+ -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \ |
|
| 234 |
+ ${D}/usr/share/courier/courierwebadmin/admin-40imap.pl \
|
|
| 235 |
+ || ewarn "failed to fix webadmin" |
|
| 236 |
+ sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \ |
|
| 237 |
+ -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \ |
|
| 238 |
+ ${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl \
|
|
| 239 |
+ || ewarn "failed to fix webadmin" |
|
| 240 |
+ |
|
| 241 |
+ if use mailwrapper ; then |
|
| 242 |
+ mv ${D}/usr/bin/sendmail ${D}/usr/bin/sendmail.courier
|
|
| 243 |
+ mv ${D}/usr/bin/rmail ${D}/usr/bin/rmail.courier
|
|
| 244 |
+ mv ${D}/usr/bin/mailq ${D}/usr/bin/mailq.courier
|
|
| 245 |
+ |
|
| 246 |
+ mv ${D}/usr/share/man/man1/sendmail.1 \
|
|
| 247 |
+ ${D}/usr/share/man/man1/sendmail-courier.1
|
|
| 248 |
+ mv ${D}/usr/share/man/man1/mailq.1 \
|
|
| 249 |
+ ${D}/usr/share/man/man1/mailq-courier.1
|
|
| 250 |
+ mv ${D}/usr/share/man/man1/rmail.1 \
|
|
| 251 |
+ ${D}/usr/share/man/man1/rmail-courier.1
|
|
| 252 |
+ |
|
| 253 |
+ insinto /etc/mail |
|
| 254 |
+ doins ${FILESDIR}/mailer.conf
|
|
| 255 |
+ else |
|
| 256 |
+ dosym /usr/bin/sendmail /usr/sbin/sendmail |
|
| 257 |
+ fi |
|
| 258 |
+} |
|
| 259 |
+ |
|
| 260 |
+src_test() {
|
|
| 261 |
+ addpredict / |
|
| 262 |
+ vecho ">>> Test phase [check]: ${CATEGORY}/${PF}"
|
|
| 263 |
+ if hasq userpriv ${FEATURES} ; then
|
|
| 264 |
+ if ! emake -j1 check; then |
|
| 265 |
+ hasq test ${FEATURES} && die "Make check failed. See above for details."
|
|
| 266 |
+ hasq test ${FEATURES} || eerror "Make check failed. See above for details."
|
|
| 267 |
+ fi |
|
| 268 |
+ else |
|
| 269 |
+ hasq test ${FEATURES} && eerror "Make check needs FEATURES="userpriv" to work."
|
|
| 270 |
+ fi |
|
| 271 |
+ SANDBOX_PREDICT="${SANDBOX_PREDICT%:/}"
|
|
| 272 |
+} |
|
| 273 |
+ |
|
| 274 |
+pkg_postinst() {
|
|
| 275 |
+ use fam && elog "fam daemon is needed for courier-imapd" \ |
|
| 276 |
+ || ewarn "courier was built without fam support" |
|
| 277 |
+ |
|
| 278 |
+ # fix for bug #99334 |
|
| 279 |
+ elog "Courier's sendmail is not suid by default, therefore non-root users can't send" |
|
| 280 |
+ elog "mail using sendmail. If you need this to work, you should set sendmail suid." |
|
| 281 |
+ elog "See also: http://www.courier-mta.org/install.html#suid" |
|
| 282 |
+} |
|
| 283 |
+ |
|
| 284 |
+pkg_config() {
|
|
| 285 |
+ mailhost=`hostname` |
|
| 286 |
+ export mailhost |
|
| 287 |
+ |
|
| 288 |
+ domainname=`domainname` |
|
| 289 |
+ if [ "x$domainname" = "x(none)" ] ; then |
|
| 290 |
+ domainname=`echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/"`
|
|
| 291 |
+ fi |
|
| 292 |
+ export domainname |
|
| 293 |
+ |
|
| 294 |
+ if [ ${ROOT} = "/" ] ; then
|
|
| 295 |
+ file=${ROOT}/etc/courier/locals
|
|
| 296 |
+ if [ ! -f ${file} ] ; then
|
|
| 297 |
+ echo "localhost" > ${file};
|
|
| 298 |
+ echo ${domainname} >> ${file};
|
|
| 299 |
+ fi |
|
| 300 |
+ file=${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}
|
|
| 301 |
+ if [ ! -f ${file} ] ; then
|
|
| 302 |
+ echo ${domainname} > ${file}
|
|
| 303 |
+ /usr/sbin/makeacceptmailfor |
|
| 304 |
+ fi |
|
| 305 |
+ |
|
| 306 |
+ file=${ROOT}/etc/courier/smtpaccess/${domainname}
|
|
| 307 |
+ if [ ! -f ${file} ]
|
|
| 308 |
+ then |
|
| 309 |
+ netstat -nr | grep "^[1-9]" | while read network gateway netmask rest |
|
| 310 |
+ do |
|
| 311 |
+ i=1 |
|
| 312 |
+ net="" |
|
| 313 |
+ TIFS=${IFS}
|
|
| 314 |
+ IFS="." |
|
| 315 |
+ for o in ${netmask}
|
|
| 316 |
+ do |
|
| 317 |
+ if [ ${o} == "255" ]
|
|
| 318 |
+ then |
|
| 319 |
+ [ "_${net}" == "_" ] || net="${net}."
|
|
| 320 |
+ t=`echo ${network} | cut -d " " -f ${i}`
|
|
| 321 |
+ net="${net}${t}"
|
|
| 322 |
+ fi |
|
| 323 |
+ i=$((${i} + 1))
|
|
| 324 |
+ done |
|
| 325 |
+ IFS=${TIFS}
|
|
| 326 |
+ echo "doing configuration - relay control for the network ${net} !"
|
|
| 327 |
+ echo "${net} allow,RELAYCLIENT" >> ${file}
|
|
| 328 |
+ done |
|
| 329 |
+ /usr/sbin/makesmtpaccess |
|
| 330 |
+ fi |
|
| 331 |
+ fi |
|
| 332 |
+ |
|
| 333 |
+ echo "creating cert for esmtpd-ssl:" |
|
| 334 |
+ /usr/sbin/mkesmtpdcert |
|
| 335 |
+ echo "creating cert for imapd-ssl:" |
|
| 336 |
+ /usr/sbin/mkpop3dcert |
|
| 337 |
+ echo "creating cert for pop3d-ssl:" |
|
| 338 |
+ /usr/sbin/mkimapdcert |
|
| 339 |
+} |
| ... | ... |
@@ -0,0 +1,341 @@ |
| 1 |
+# Copyright 1999-2008 Gentoo Foundation |
|
| 2 |
+# Distributed under the terms of the GNU General Public License v2 |
|
| 3 |
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/courier-0.55.1-r1.ebuild,v 1.4 2008/02/03 10:51:33 hollow Exp $ |
|
| 4 |
+ |
|
| 5 |
+WANT_AUTOCONF="latest" |
|
| 6 |
+WANT_AUTOMAKE="latest" |
|
| 7 |
+ |
|
| 8 |
+inherit eutils flag-o-matic autotools |
|
| 9 |
+ |
|
| 10 |
+DESCRIPTION="An MTA designed specifically for maildirs" |
|
| 11 |
+[ -z "${PV/?.??/}" ] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
|
|
| 12 |
+[ -z "${PV/?.??.?/}" ] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
|
|
| 13 |
+[ -z "${SRC_URI}" ] && SRC_URI="http://www.courier-mta.org/beta/courier/${P%%_pre}.tar.bz2"
|
|
| 14 |
+HOMEPAGE="http://www.courier-mta.org/" |
|
| 15 |
+S="${WORKDIR}/${P%%_pre}"
|
|
| 16 |
+ |
|
| 17 |
+SLOT="0" |
|
| 18 |
+LICENSE="GPL-2" |
|
| 19 |
+# not in keywords due to missing dependencies: ~arm ~s390 ~ppc64 |
|
| 20 |
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86" |
|
| 21 |
+IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite mailwrapper fam" |
|
| 22 |
+ |
|
| 23 |
+PROVIDE="virtual/mta |
|
| 24 |
+ virtual/mda |
|
| 25 |
+ virtual/imapd" |
|
| 26 |
+ |
|
| 27 |
+DEPEND=" |
|
| 28 |
+ >=net-libs/courier-authlib-0.59 |
|
| 29 |
+ >=dev-libs/openssl-0.9.6 |
|
| 30 |
+ >=sys-libs/gdbm-1.8.0 |
|
| 31 |
+ dev-libs/libpcre |
|
| 32 |
+ app-misc/mime-types |
|
| 33 |
+ fax? ( >=media-libs/netpbm-9.12 virtual/ghostscript >=net-dialup/mgetty-1.1.28 ) |
|
| 34 |
+ pam? ( virtual/pam ) |
|
| 35 |
+ mysql? ( virtual/mysql ) |
|
| 36 |
+ ldap? ( >=net-nds/openldap-1.2.11 ) |
|
| 37 |
+ postgres? ( >=dev-db/postgresql-7.1.3 ) |
|
| 38 |
+ spell? ( virtual/aspell-dict ) |
|
| 39 |
+ fam? ( virtual/fam ) |
|
| 40 |
+ !mailwrapper? ( !virtual/mta ) |
|
| 41 |
+ !virtual/imapd |
|
| 42 |
+ !mail-filter/maildrop" |
|
| 43 |
+ |
|
| 44 |
+RDEPEND="${DEPEND}
|
|
| 45 |
+ dev-lang/perl |
|
| 46 |
+ sys-process/procps" |
|
| 47 |
+ |
|
| 48 |
+PDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 ) |
|
| 49 |
+ pam? ( net-mail/mailbase ) |
|
| 50 |
+ crypt? ( >=app-crypt/gnupg-1.0.4 )" |
|
| 51 |
+ |
|
| 52 |
+filter-flags '-fomit-frame-pointer' |
|
| 53 |
+ |
|
| 54 |
+src_unpack() {
|
|
| 55 |
+ use fam || ( |
|
| 56 |
+ ewarn "File Alteration Monitor (FAM) is disabled" |
|
| 57 |
+ ewarn "courier-imap will fall back to 60 second polls." |
|
| 58 |
+ ewarn 'add "fam" to your USE flags to build as usual' |
|
| 59 |
+ ebeep 4 |
|
| 60 |
+ epause 4 ) |
|
| 61 |
+ unpack ${A}
|
|
| 62 |
+ cd ${S}
|
|
| 63 |
+ use norewrite && epatch ${FILESDIR}/norewrite.patch
|
|
| 64 |
+ use elibc_uclibc && sed -i -e 's:linux-gnu\*:linux-gnu\*\ \|\ linux-uclibc:' config.sub |
|
| 65 |
+ |
|
| 66 |
+ epatch "${FILESDIR}/pam-include.patch"
|
|
| 67 |
+ |
|
| 68 |
+ # disable link to fam. |
|
| 69 |
+ epatch ${FILESDIR}/fam-disable-check.patch
|
|
| 70 |
+ cd ${S}/maildir
|
|
| 71 |
+ eautoreconf |
|
| 72 |
+} |
|
| 73 |
+ |
|
| 74 |
+src_compile() {
|
|
| 75 |
+ local myconf |
|
| 76 |
+ myconf="`use_with ipv6` \ |
|
| 77 |
+ `use_with ldap ldapaliasd` `use_enable ldap maildropldap`" |
|
| 78 |
+ |
|
| 79 |
+ use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf"
|
|
| 80 |
+ use spell || myconf="${myconf} --without-ispell"
|
|
| 81 |
+ |
|
| 82 |
+ myconf="${myconf} --enable-mimetypes=/etc/mime.types"
|
|
| 83 |
+ |
|
| 84 |
+ myconf="${myconf} $(use_with fam)"
|
|
| 85 |
+ |
|
| 86 |
+ einfo "Configuring courier: `echo ${myconf} | xargs echo`"
|
|
| 87 |
+ |
|
| 88 |
+ econf \ |
|
| 89 |
+ --prefix=/usr \ |
|
| 90 |
+ --disable-root-check \ |
|
| 91 |
+ --mandir=/usr/share/man \ |
|
| 92 |
+ --sysconfdir=/etc/courier \ |
|
| 93 |
+ --libexecdir=/usr/$(get_libdir)/courier \ |
|
| 94 |
+ --datadir=/usr/share/courier \ |
|
| 95 |
+ --sharedstatedir=/var/lib/courier/com \ |
|
| 96 |
+ --localstatedir=/var/lib/courier \ |
|
| 97 |
+ --with-piddir=/var/run/courier \ |
|
| 98 |
+ --with-authdaemonvar=/var/lib/courier/authdaemon \ |
|
| 99 |
+ --with-mailuser=mail \ |
|
| 100 |
+ --with-mailgroup=mail \ |
|
| 101 |
+ --with-paranoid-smtpext \ |
|
| 102 |
+ --with-db=gdbm \ |
|
| 103 |
+ --disable-autorenamesent \ |
|
| 104 |
+ --cache-file=${S}/configuring.cache \
|
|
| 105 |
+ --host=${CHOST} ${myconf} debug=true || die "./configure"
|
|
| 106 |
+ sed -e'/^install-perms-local:/a\ sed -e\"s|^|'${D}'|g\" -i permissions.dat' -i Makefile
|
|
| 107 |
+ emake || die "Compile problem" |
|
| 108 |
+} |
|
| 109 |
+ |
|
| 110 |
+etc_courier() {
|
|
| 111 |
+ # Import existing /etc/courier/file if it exists. |
|
| 112 |
+ # Add option only if it was not already set or even commented out |
|
| 113 |
+ file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`"
|
|
| 114 |
+ [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \
|
|
| 115 |
+ cp "/etc/courier/${file}" "${D}/etc/courier/${file}"
|
|
| 116 |
+ grep -q "${word}" "${D}/etc/courier/${file}" || \
|
|
| 117 |
+ echo "${2}" >> "${D}/etc/courier/${file}"
|
|
| 118 |
+} |
|
| 119 |
+ |
|
| 120 |
+etc_courier_chg() {
|
|
| 121 |
+ file="${1}" ; key="${2}" ; value="${3}" ; section="${4}"
|
|
| 122 |
+ [ -z "${section}" ] && section="${2}"
|
|
| 123 |
+ grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}"
|
|
| 124 |
+ sed -i -e"/\#\#NAME: ${section}/,+20 s|${key}=.*|${key}=\"${value}\"|g" ${file}
|
|
| 125 |
+} |
|
| 126 |
+ |
|
| 127 |
+set_maildir() {
|
|
| 128 |
+ local f ; local files=$* |
|
| 129 |
+ origmaildir='Maildir' |
|
| 130 |
+ newmaildir='.maildir' |
|
| 131 |
+ for f in ${files} ; do
|
|
| 132 |
+ grep -q "${origmaildir}" "${f}" && \
|
|
| 133 |
+ elog "Changing ${origmaildir} in ${f} to ${newmaildir}"
|
|
| 134 |
+ sed -i -e"/^[^\#]/ s/${origmaildir}/${newmaildir}/g" ${f}
|
|
| 135 |
+ done |
|
| 136 |
+} |
|
| 137 |
+ |
|
| 138 |
+src_install() {
|
|
| 139 |
+ local f |
|
| 140 |
+ einfo "Setting up maildirs in the account skeleton ..." |
|
| 141 |
+ diropts -m 755 -o root -g root |
|
| 142 |
+ dodir /etc/skel |
|
| 143 |
+ ${S}/maildir/maildirmake ${D}/etc/skel/.maildir
|
|
| 144 |
+ keepdir /etc/skel/.maildir |
|
| 145 |
+ |
|
| 146 |
+ diropts -o mail -g mail |
|
| 147 |
+ keepdir /var/run/courier |
|
| 148 |
+ keepdir /var/lib/courier/tmp |
|
| 149 |
+ keepdir /var/lib/courier/msgs |
|
| 150 |
+ make install DESTDIR=${D} || die "install"
|
|
| 151 |
+ make install-configure || die "install-configure" |
|
| 152 |
+ |
|
| 153 |
+ for dir2keep in `(cd ${D} && find ./var/lib/courier -type d)` ; do
|
|
| 154 |
+ keepdir $dir2keep || die "failed running keepdir: $dir2keep" |
|
| 155 |
+ done |
|
| 156 |
+ |
|
| 157 |
+ newinitd ${FILESDIR}/courier-init-r1 courier
|
|
| 158 |
+ use fam || sed -i -e's|^.*use famd$||g' ${D}/etc/init.d/courier
|
|
| 159 |
+ |
|
| 160 |
+ cd ${D}/etc/courier
|
|
| 161 |
+ insinto /etc/courier |
|
| 162 |
+ newins ${FILESDIR}/apache-sqwebmail.inc apache-sqwebmail.inc
|
|
| 163 |
+ |
|
| 164 |
+ if use pam ; then |
|
| 165 |
+ dodir /etc/pam.d |
|
| 166 |
+ rm imapd.authpam pop3d.authpam |
|
| 167 |
+ for f in *.authpam ; do mv "${f}" "${D}/etc/pam.d/${f%%.authpam}" ; done
|
|
| 168 |
+ fi |
|
| 169 |
+ |
|
| 170 |
+ for f in *.dist ; do cp ${f} ${f%%.dist} ; done
|
|
| 171 |
+ [ -e ldapaliasrc ] && ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc ) |
|
| 172 |
+ set_maildir courierd imapd imapd-ssl pop3d pop3d-ssl sqwebmaild *.dist |
|
| 173 |
+ |
|
| 174 |
+ ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ |
|
| 175 |
+ > ${D}/etc/courier/sizelimit
|
|
| 176 |
+ etc_courier maildroprc "" |
|
| 177 |
+ etc_courier esmtproutes "" |
|
| 178 |
+ etc_courier backuprelay "" |
|
| 179 |
+ etc_courier locallowercase "" |
|
| 180 |
+ etc_courier bofh "opt BOFHBADMIME=accept" |
|
| 181 |
+ etc_courier bofh "opt BOFHSPFTRUSTME=1" |
|
| 182 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail" |
|
| 183 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none" |
|
| 184 |
+ etc_courier bofh "opt BOFHSPFFROM=all" |
|
| 185 |
+ etc_courier bofh "opt BOFHSPFMAILFROM=all" |
|
| 186 |
+ etc_courier bofh "#opt BOFHSPFHARDERROR=fail" |
|
| 187 |
+ etc_courier esmtpd "BOFHBADMIME=accept" |
|
| 188 |
+ etc_courier esmtpd-ssl "BOFHBADMIME=accept" |
|
| 189 |
+ etc_courier esmtpd-msa "BOFHBADMIME=accept" |
|
| 190 |
+ etc_courier_chg esmtpd ESMTPDSTART YES |
|
| 191 |
+ etc_courier_chg esmtpd ESMTPAUTH "LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" |
|
| 192 |
+ etc_courier_chg esmtpd ESMTPAUTH_WEBADMIN "LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" |
|
| 193 |
+ etc_courier_chg esmtpd ESMTPAUTH_TLS "PLAIN LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" ESMTPAUTHINFOTLS |
|
| 194 |
+ etc_courier_chg esmtpd ESMTPAUTH_TLS_WEBADMIN "PLAIN LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" ESMTPAUTHINFOTLS |
|
| 195 |
+ etc_courier_chg esmtpd-msa ESMTPDSTART YES |
|
| 196 |
+ etc_courier_chg esmtpd-msa AUTH_REQUIRED 1 |
|
| 197 |
+ etc_courier_chg esmtpd-ssl ESMTPDSSLSTART YES |
|
| 198 |
+ etc_courier_chg esmtpd-ssl AUTH_REQUIRED 1 |
|
| 199 |
+ etc_courier_chg imapd IMAPDSTART YES |
|
| 200 |
+ use fam && etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE" |
|
| 201 |
+ use fam || etc_courier_chg imapd IMAP_CAPABILITY "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256" |
|
| 202 |
+ etc_courier_chg imapd-ssl IMAPDSSLSTART YES |
|
| 203 |
+ etc_courier_chg pop3d POP3DSTART YES |
|
| 204 |
+ etc_courier_chg pop3d POP3AUTH "LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" |
|
| 205 |
+ etc_courier_chg pop3d POP3AUTH_TLS "LOGIN PLAIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256" |
|
| 206 |
+ etc_courier_chg pop3d-ssl POP3DSSLSTART YES |
|
| 207 |
+ |
|
| 208 |
+ # Fix for a sandbox violation on subsequential merges |
|
| 209 |
+ # - ticho@gentoo.org, 2005-07-10 |
|
| 210 |
+ rm ${D}/usr/sbin/{pop3d,imapd}{,-ssl}
|
|
| 211 |
+ dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d |
|
| 212 |
+ dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl |
|
| 213 |
+ dosym /usr/share/courier/imapd /usr/sbin/courier-imapd |
|
| 214 |
+ dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl |
|
| 215 |
+ |
|
| 216 |
+ cd ${S}
|
|
| 217 |
+ cp imap/README README.imap |
|
| 218 |
+ use nls && cp unicode/README README.unicode |
|
| 219 |
+ dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt |
|
| 220 |
+ dodoc tcpd/README.couriertls |
|
| 221 |
+ echo "See /usr/share/courier/htmldoc/index.html for docs in html format" \ |
|
| 222 |
+ >> ${D}/usr/share/doc/${P}/README.htmldocs
|
|
| 223 |
+ |
|
| 224 |
+ insinto /usr/$(get_libdir)/courier/courier |
|
| 225 |
+ insopts -m 755 -o mail -g mail |
|
| 226 |
+ doins ${S}/courier/webmaild
|
|
| 227 |
+ insinto /etc/courier/webadmin |
|
| 228 |
+ insopts -m 400 -o mail -g mail |
|
| 229 |
+ doins ${FILESDIR}/password.dist
|
|
| 230 |
+ |
|
| 231 |
+ # avoid name collisions in /usr/sbin, make webadmin match |
|
| 232 |
+ cd ${D}/usr/sbin
|
|
| 233 |
+ for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv ${f} courier-${f} ; done
|
|
| 234 |
+ sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \ |
|
| 235 |
+ -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \ |
|
| 236 |
+ ${D}/usr/share/courier/courierwebadmin/admin-40imap.pl \
|
|
| 237 |
+ || ewarn "failed to fix webadmin" |
|
| 238 |
+ sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \ |
|
| 239 |
+ -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \ |
|
| 240 |
+ ${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl \
|
|
| 241 |
+ || ewarn "failed to fix webadmin" |
|
| 242 |
+ |
|
| 243 |
+ if use mailwrapper ; then |
|
| 244 |
+ mv ${D}/usr/bin/sendmail ${D}/usr/bin/sendmail.courier
|
|
| 245 |
+ mv ${D}/usr/bin/rmail ${D}/usr/bin/rmail.courier
|
|
| 246 |
+ mv ${D}/usr/bin/mailq ${D}/usr/bin/mailq.courier
|
|
| 247 |
+ |
|
| 248 |
+ mv ${D}/usr/share/man/man1/sendmail.1 \
|
|
| 249 |
+ ${D}/usr/share/man/man1/sendmail-courier.1
|
|
| 250 |
+ mv ${D}/usr/share/man/man1/mailq.1 \
|
|
| 251 |
+ ${D}/usr/share/man/man1/mailq-courier.1
|
|
| 252 |
+ mv ${D}/usr/share/man/man1/rmail.1 \
|
|
| 253 |
+ ${D}/usr/share/man/man1/rmail-courier.1
|
|
| 254 |
+ |
|
| 255 |
+ insinto /etc/mail |
|
| 256 |
+ doins ${FILESDIR}/mailer.conf
|
|
| 257 |
+ else |
|
| 258 |
+ dosym /usr/bin/sendmail /usr/sbin/sendmail |
|
| 259 |
+ fi |
|
| 260 |
+} |
|
| 261 |
+ |
|
| 262 |
+src_test() {
|
|
| 263 |
+ addpredict / |
|
| 264 |
+ vecho ">>> Test phase [check]: ${CATEGORY}/${PF}"
|
|
| 265 |
+ if hasq userpriv ${FEATURES} ; then
|
|
| 266 |
+ if ! emake -j1 check; then |
|
| 267 |
+ hasq test ${FEATURES} && die "Make check failed. See above for details."
|
|
| 268 |
+ hasq test ${FEATURES} || eerror "Make check failed. See above for details."
|
|
| 269 |
+ fi |
|
| 270 |
+ else |
|
| 271 |
+ hasq test ${FEATURES} && eerror "Make check needs FEATURES="userpriv" to work."
|
|
| 272 |
+ fi |
|
| 273 |
+ SANDBOX_PREDICT="${SANDBOX_PREDICT%:/}"
|
|
| 274 |
+} |
|
| 275 |
+ |
|
| 276 |
+pkg_postinst() {
|
|
| 277 |
+ use fam && elog "fam daemon is needed for courier-imapd" \ |
|
| 278 |
+ || ewarn "courier was built without fam support" |
|
| 279 |
+ |
|
| 280 |
+ # fix for bug #99334 |
|
| 281 |
+ elog "Courier's sendmail is not suid by default, therefore non-root users can't send" |
|
| 282 |
+ elog "mail using sendmail. If you need this to work, you should set sendmail suid." |
|
| 283 |
+ elog "See also: http://www.courier-mta.org/install.html#suid" |
|
| 284 |
+} |
|
| 285 |
+ |
|
| 286 |
+pkg_config() {
|
|
| 287 |
+ mailhost=`hostname` |
|
| 288 |
+ export mailhost |
|
| 289 |
+ |
|
| 290 |
+ domainname=`domainname` |
|
| 291 |
+ if [ "x$domainname" = "x(none)" ] ; then |
|
| 292 |
+ domainname=`echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/"`
|
|
| 293 |
+ fi |
|
| 294 |
+ export domainname |
|
| 295 |
+ |
|
| 296 |
+ if [ ${ROOT} = "/" ] ; then
|
|
| 297 |
+ file=${ROOT}/etc/courier/locals
|
|
| 298 |
+ if [ ! -f ${file} ] ; then
|
|
| 299 |
+ echo "localhost" > ${file};
|
|
| 300 |
+ echo ${domainname} >> ${file};
|
|
| 301 |
+ fi |
|
| 302 |
+ file=${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}
|
|
| 303 |
+ if [ ! -f ${file} ] ; then
|
|
| 304 |
+ echo ${domainname} > ${file}
|
|
| 305 |
+ /usr/sbin/makeacceptmailfor |
|
| 306 |
+ fi |
|
| 307 |
+ |
|
| 308 |
+ file=${ROOT}/etc/courier/smtpaccess/${domainname}
|
|
| 309 |
+ if [ ! -f ${file} ]
|
|
| 310 |
+ then |
|
| 311 |
+ netstat -nr | grep "^[1-9]" | while read network gateway netmask rest |
|
| 312 |
+ do |
|
| 313 |
+ i=1 |
|
| 314 |
+ net="" |
|
| 315 |
+ TIFS=${IFS}
|
|
| 316 |
+ IFS="." |
|
| 317 |
+ for o in ${netmask}
|
|
| 318 |
+ do |
|
| 319 |
+ if [ ${o} == "255" ]
|
|
| 320 |
+ then |
|
| 321 |
+ [ "_${net}" == "_" ] || net="${net}."
|
|
| 322 |
+ t=`echo ${network} | cut -d " " -f ${i}`
|
|
| 323 |
+ net="${net}${t}"
|
|
| 324 |
+ fi |
|
| 325 |
+ i=$((${i} + 1))
|
|
| 326 |
+ done |
|
| 327 |
+ IFS=${TIFS}
|
|
| 328 |
+ echo "doing configuration - relay control for the network ${net} !"
|
|
| 329 |
+ echo "${net} allow,RELAYCLIENT" >> ${file}
|
|
| 330 |
+ done |
|
| 331 |
+ /usr/sbin/makesmtpaccess |
|
| 332 |
+ fi |
|
| 333 |
+ fi |
|
| 334 |
+ |
|
| 335 |
+ echo "creating cert for esmtpd-ssl:" |
|
| 336 |
+ /usr/sbin/mkesmtpdcert |
|
| 337 |
+ echo "creating cert for imapd-ssl:" |
|
| 338 |
+ /usr/sbin/mkpop3dcert |
|
| 339 |
+ echo "creating cert for pop3d-ssl:" |
|
| 340 |
+ /usr/sbin/mkimapdcert |
|
| 341 |
+} |
| ... | ... |
@@ -0,0 +1,14 @@ |
| 1 |
+Alias /webmail/ /usr/share/courier/sqwebmail/images/ |
|
| 2 |
+<Directory /usr/share/courier/sqwebmail/> |
|
| 3 |
+ Order Allow,Deny |
|
| 4 |
+ AllowOverride All |
|
| 5 |
+ Allow from all |
|
| 6 |
+</Directory> |
|
| 7 |
+ |
|
| 8 |
+ScriptAlias /courier/ /usr/lib/courier/courier/webmail/ |
|
| 9 |
+<Directory /usr/lib/courier/courier/webmail/> |
|
| 10 |
+ AllowOverride All |
|
| 11 |
+ Options ExecCGI |
|
| 12 |
+ Order allow,deny |
|
| 13 |
+ Allow from all |
|
| 14 |
+</Directory> |
| ... | ... |
@@ -0,0 +1 @@ |
| 1 |
+opt BOFHBADMIME=accept |
| ... | ... |
@@ -0,0 +1,11 @@ |
| 1 |
+--- courier-0.50.0/rfc1035/spf.c 2004-08-24 02:43:30.000000000 +0200 |
|
| 2 |
++++ courier-0.50.1/rfc1035/spf.c 2005-07-03 06:19:39.000000000 +0200 |
|
| 3 |
+@@ -771,7 +771,7 @@ |
|
| 4 |
+ |
|
| 5 |
+ free(domain_spec); |
|
| 6 |
+ |
|
| 7 |
+- if (rc < 0) |
|
| 8 |
++ if (rc != 0) |
|
| 9 |
+ {
|
|
| 10 |
+ set_err_msg(info->errmsg_buf, info->errmsg_buf_size, |
|
| 11 |
+ "IP address lookup failed.\n"); |
| ... | ... |
@@ -0,0 +1,184 @@ |
| 1 |
+#!/sbin/runscript |
|
| 2 |
+# Portions Copyright 2003 Gentoo Linux |
|
| 3 |
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/files/courier-init,v 1.6 2005/05/10 10:54:03 swegener Exp $ |
|
| 4 |
+# |
|
| 5 |
+# script originally from Courier distfile original name = courier.sysvinit |
|
| 6 |
+# adapted for Gentoo by Brian Jackson |
|
| 7 |
+# |
|
| 8 |
+# TODO |
|
| 9 |
+# should we update all the .dat/.pem files when the source/config files are |
|
| 10 |
+# newer than the .dat/.pem files? |
|
| 11 |
+ |
|
| 12 |
+prefix="/usr" |
|
| 13 |
+exec_prefix="/usr/bin" |
|
| 14 |
+sysconfdir="/etc/courier" |
|
| 15 |
+sbindir="/usr/sbin" |
|
| 16 |
+libexecdir="/usr/lib/courier" |
|
| 17 |
+datadir="/usr/share/courier" |
|
| 18 |
+ |
|
| 19 |
+depend() {
|
|
| 20 |
+ need net |
|
| 21 |
+ [ -d /etc/courier/authlib ] && need courier-authlib |
|
| 22 |
+ grep -q "^IMAPDSTART=.*[Yy].*" /etc/courier/imapd && need famd |
|
| 23 |
+} |
|
| 24 |
+ |
|
| 25 |
+checkconfig() {
|
|
| 26 |
+ |
|
| 27 |
+ [ -f ${sysconfdir}/pop3d-ssl ] && . ${sysconfdir}/pop3d-ssl
|
|
| 28 |
+ |
|
| 29 |
+ # If we do not have a certificate, make one up. |
|
| 30 |
+ [ ! -f "${datadir}/pop3d.pem" ] && \
|
|
| 31 |
+ ebegin " generating-POP3-SSL-certificate..." && "${sbindir}/mkpop3dcert"
|
|
| 32 |
+ |
|
| 33 |
+ [ -f ${sysconfdir}/imapd-ssl ] && . ${sysconfdir}/imapd-ssl
|
|
| 34 |
+ |
|
| 35 |
+ # If we do not have a certificate, make one up. |
|
| 36 |
+ [ ! -f ${datadir}/imapd.pem ] && \
|
|
| 37 |
+ ebegin " generating-IMAP-SSL-certificate..." && "${sbindir}/mkimapdcert"
|
|
| 38 |
+ |
|
| 39 |
+ [ -f ${sysconfdir}/esmtpd-ssl ] && . ${sysconfdir}/esmtpd-ssl
|
|
| 40 |
+ |
|
| 41 |
+ # If we do not have a certificate, make one up. |
|
| 42 |
+ [ ! -f ${datadir}/esmtpd.pem ] && \
|
|
| 43 |
+ ebegin " generating-ESMTP-SSL-certificate..." && "${sbindir}/mkesmtpdcert"
|
|
| 44 |
+ |
|
| 45 |
+ # First time after install create aliases.dat and smtpaccess.dat |
|
| 46 |
+ |
|
| 47 |
+ [ -f ${sysconfdir}/aliases.dat ] || ${sbindir}/makealiases
|
|
| 48 |
+ |
|
| 49 |
+ [ -f ${sysconfdir}/${ACCESSFILE}.dat ] || ${sbindir}/makesmtpaccess
|
|
| 50 |
+ |
|
| 51 |
+ [ -f ${sysconfdir}/${ACCESSFILE}.dat ] || ${sbindir}/makesmtpaccess-msa
|
|
| 52 |
+} |
|
| 53 |
+ |
|
| 54 |
+start() {
|
|
| 55 |
+ # Start daemons. |
|
| 56 |
+ ebegin "Starting Courier mail server:" |
|
| 57 |
+ |
|
| 58 |
+ checkconfig || return 1 |
|
| 59 |
+ |
|
| 60 |
+ ebegin " Starting courierfilterd" |
|
| 61 |
+ ${sbindir}/courierfilter start
|
|
| 62 |
+ |
|
| 63 |
+ [ ! -d /etc/courier/authlib ] && [ -x ${libexecdir}/authlib/authdaemond ] && \
|
|
| 64 |
+ ${libexecdir}/authlib/authdaemond start && ebegin " Starting authdaemond"
|
|
| 65 |
+ |
|
| 66 |
+ [ -x ${libexecdir}/courier/webmaild ] && \
|
|
| 67 |
+ ${libexecdir}/courier/webmaild start && ebegin " Starting webmaild"
|
|
| 68 |
+ [ ! -x ${libexecdir}/courier/webmaild ] && [ -x ${libexecdir}/courier/sqwebmaild ] && \
|
|
| 69 |
+ ${libexecdir}/courier/sqwebmaild start && ebegin " Starting sqwebmaild"
|
|
| 70 |
+ |
|
| 71 |
+ [ -x ${sbindir}/courierldapaliasd ] && \
|
|
| 72 |
+ ${sbindir}/courierldapaliasd start && ebegin " Starting courierldapaliasd"
|
|
| 73 |
+ |
|
| 74 |
+ ebegin " Starting courierd" |
|
| 75 |
+ ${sbindir}/courier start
|
|
| 76 |
+ |
|
| 77 |
+ # start esmtpd if so written |
|
| 78 |
+ [ -f ${sysconfdir}/esmtpd ] && source ${sysconfdir}/esmtpd
|
|
| 79 |
+ case x$ESMTPDSTART in |
|
| 80 |
+ x[yY]*) |
|
| 81 |
+ ebegin " Starting esmtpd" |
|
| 82 |
+ ${sbindir}/esmtpd start
|
|
| 83 |
+ ;; |
|
| 84 |
+ esac |
|
| 85 |
+ |
|
| 86 |
+ # start esmtpd-msa if so written |
|
| 87 |
+ [ -f ${sysconfdir}/esmtpd-msa ] && source ${sysconfdir}/esmtpd-msa
|
|
| 88 |
+ case x$ESMTPDSTART in |
|
| 89 |
+ x[yY]*) |
|
| 90 |
+ ebegin " Starting esmtpd-msa" |
|
| 91 |
+ ${sbindir}/esmtpd-msa start
|
|
| 92 |
+ ;; |
|
| 93 |
+ esac |
|
| 94 |
+ |
|
| 95 |
+ # start esmtpd-ssl if so written |
|
| 96 |
+ [ -f ${sysconfdir}/esmtpd-ssl ] && source ${sysconfdir}/esmtpd-ssl
|
|
| 97 |
+ case x$ESMTPDSSLSTART in |
|
| 98 |
+ x[yY]*) |
|
| 99 |
+ ebegin " Starting esmtpd-ssl" |
|
| 100 |
+ ${sbindir}/esmtpd-ssl start
|
|
| 101 |
+ ;; |
|
| 102 |
+ esac |
|
| 103 |
+ |
|
| 104 |
+ # start pop3d if so written |
|
| 105 |
+ [ -f ${sysconfdir}/pop3d ] && source ${sysconfdir}/pop3d
|
|
| 106 |
+ case x$POP3DSTART in |
|
| 107 |
+ x[yY]*) |
|
| 108 |
+ ebegin " courier-pop3d" |
|
| 109 |
+ ${sbindir}/courier-pop3d start
|
|
| 110 |
+ ;; |
|
| 111 |
+ esac |
|
| 112 |
+ |
|
| 113 |
+ # start pop3d-ssl if so written |
|
| 114 |
+ [ -f ${sysconfdir}/pop3d-ssl ] && source ${sysconfdir}/pop3d-ssl
|
|
| 115 |
+ case x$POP3DSSLSTART in |
|
| 116 |
+ x[yY]*) |
|
| 117 |
+ ebegin " courier-pop3d-ssl" |
|
| 118 |
+ ${sbindir}/courier-pop3d-ssl start
|
|
| 119 |
+ ;; |
|
| 120 |
+ esac |
|
| 121 |
+ |
|
| 122 |
+ [ -f ${sysconfdir}/imapd ] && source ${sysconfdir}/imapd
|
|
| 123 |
+ case x$IMAPDSTART in |
|
| 124 |
+ x[yY]*) |
|
| 125 |
+ ebegin " courier-imapd" |
|
| 126 |
+ ${sbindir}/courier-imapd start
|
|
| 127 |
+ ;; |
|
| 128 |
+ esac |
|
| 129 |
+ |
|
| 130 |
+ [ -f ${sysconfdir}/imapd-ssl ] && source ${sysconfdir}/imapd-ssl
|
|
| 131 |
+ case x$IMAPDSSLSTART in |
|
| 132 |
+ x[yY]*) |
|
| 133 |
+ ebegin " courier-imapd-ssl" |
|
| 134 |
+ ${sbindir}/courier-imapd-ssl start
|
|
| 135 |
+ ;; |
|
| 136 |
+ esac |
|
| 137 |
+ |
|
| 138 |
+ eend $? |
|
| 139 |
+} |
|
| 140 |
+ |
|
| 141 |
+stop() {
|
|
| 142 |
+ ebegin "Stopping Courier mail server:" |
|
| 143 |
+ |
|
| 144 |
+ ebegin " Stopping courier-esmtpd" |
|
| 145 |
+ ${sbindir}/esmtpd stop
|
|
| 146 |
+ |
|
| 147 |
+ ebegin " Stopping courier-esmtpd-msa" |
|
| 148 |
+ ${sbindir}/esmtpd-msa stop
|
|
| 149 |
+ |
|
| 150 |
+ ebegin " Stopping courier-esmtpd-ssl" |
|
| 151 |
+ ${sbindir}/esmtpd-ssl stop
|
|
| 152 |
+ |
|
| 153 |
+ [ -x ${sbindir}/courier-pop3d ] && \
|
|
| 154 |
+ ebegin " Stopping courier-pop3d" && ${sbindir}/courier-pop3d stop
|
|
| 155 |
+ |
|
| 156 |
+ [ -x ${sbindir}/courier-pop3d-ssl ] && \
|
|
| 157 |
+ ebegin " Stopping courier-pop3d-ssl" && ${sbindir}/courier-pop3d-ssl stop
|
|
| 158 |
+ |
|
| 159 |
+ [ -x ${sbindir}/courier-imapd ] && \
|
|
| 160 |
+ ebegin " Stopping courier-imapd" && ${sbindir}/courier-imapd stop
|
|
| 161 |
+ |
|
| 162 |
+ |
|
| 163 |
+ [ -x ${sbindir}/courier-imapd-ssl ] && \
|
|
| 164 |
+ ebegin " Stopping courier-imapd-ssl" && ${sbindir}/courier-imapd-ssl stop
|
|
| 165 |
+ |
|
| 166 |
+ ebegin " Stopping courierd" |
|
| 167 |
+ ${sbindir}/courier stop
|
|
| 168 |
+ |
|
| 169 |
+ [ -x ${sbindir}/courierldapaliasd ] && \
|
|
| 170 |
+ ( ${sbindir}/courierldapaliasd stop ; ebegin " Stopping courierldapaliasd" )
|
|
| 171 |
+ |
|
| 172 |
+ [ -x ${libexecdir}/courier/webmaild ] && \
|
|
| 173 |
+ ( ${libexecdir}/courier/webmaild stop ; ebegin " Stopping webmaild" )
|
|
| 174 |
+ [ ! -x ${libexecdir}/courier/webmaild ] && [ -x ${libexecdir}/courier/sqwebmaild ] && \
|
|
| 175 |
+ ( ${libexecdir}/courier/sqwebmaild stop ; ebegin " Stopping sqwebmaild" )
|
|
| 176 |
+ |
|
| 177 |
+ [ ! -d /etc/courier/authlib ] && [ -x ${libexecdir}/authlib/authdaemond ] && \
|
|
| 178 |
+ ( ${libexecdir}/authlib/authdaemond stop ; ebegin " Stopping authdaemond" )
|
|
| 179 |
+ |
|
| 180 |
+ ${sbindir}/courierfilter stop
|
|
| 181 |
+ ebegin " Stopping courierfilterd" |
|
| 182 |
+ |
|
| 183 |
+ eend $? |
|
| 184 |
+} |
| ... | ... |
@@ -0,0 +1,185 @@ |
| 1 |
+#!/sbin/runscript |
|
| 2 |
+# Portions Copyright 2003 Gentoo Linux |
|
| 3 |
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/files/courier-init-r1,v 1.1 2006/07/11 00:21:53 chtekk Exp $ |
|
| 4 |
+# |
|
| 5 |
+# script originally from Courier distfile original name = courier.sysvinit |
|
| 6 |
+# adapted for Gentoo by Brian Jackson |
|
| 7 |
+# |
|
| 8 |
+# TODO |
|
| 9 |
+# should we update all the .dat/.pem files when the source/config files are |
|
| 10 |
+# newer than the .dat/.pem files? |
|
| 11 |
+ |
|
| 12 |
+prefix="/usr" |
|
| 13 |
+exec_prefix="/usr/bin" |
|
| 14 |
+sysconfdir="/etc/courier" |
|
| 15 |
+sbindir="/usr/sbin" |
|
| 16 |
+libexecdir="/usr/lib/courier" |
|
| 17 |
+datadir="/usr/share/courier" |
|
| 18 |
+ |
|
| 19 |
+depend() {
|
|
| 20 |
+ need net |
|
| 21 |
+ [ -d /etc/courier/authlib ] && need courier-authlib |
|
| 22 |
+ grep -q "^IMAPDSTART=.*[Yy].*" /etc/courier/imapd && use famd |
|
| 23 |
+ grep -q "^IMAPDSSLSTART=.*[Yy].*" /etc/courier/imapd-ssl && use famd |
|
| 24 |
+} |
|
| 25 |
+ |
|
| 26 |
+checkconfig() {
|
|
| 27 |
+ |
|
| 28 |
+ [ -f ${sysconfdir}/pop3d-ssl ] && . ${sysconfdir}/pop3d-ssl
|
|
| 29 |
+ |
|
| 30 |
+ # If we do not have a certificate, make one up. |
|
| 31 |
+ [ ! -f "${datadir}/pop3d.pem" ] && \
|
|
| 32 |
+ ebegin " generating-POP3-SSL-certificate..." && "${sbindir}/mkpop3dcert"
|
|
| 33 |
+ |
|
| 34 |
+ [ -f ${sysconfdir}/imapd-ssl ] && . ${sysconfdir}/imapd-ssl
|
|
| 35 |
+ |
|
| 36 |
+ # If we do not have a certificate, make one up. |
|
| 37 |
+ [ ! -f ${datadir}/imapd.pem ] && \
|
|
| 38 |
+ ebegin " generating-IMAP-SSL-certificate..." && "${sbindir}/mkimapdcert"
|
|
| 39 |
+ |
|
| 40 |
+ [ -f ${sysconfdir}/esmtpd-ssl ] && . ${sysconfdir}/esmtpd-ssl
|
|
| 41 |
+ |
|
| 42 |
+ # If we do not have a certificate, make one up. |
|
| 43 |
+ [ ! -f ${datadir}/esmtpd.pem ] && \
|
|
| 44 |
+ ebegin " generating-ESMTP-SSL-certificate..." && "${sbindir}/mkesmtpdcert"
|
|
| 45 |
+ |
|
| 46 |
+ # First time after install create aliases.dat and smtpaccess.dat |
|
| 47 |
+ |
|
| 48 |
+ [ -f ${sysconfdir}/aliases.dat ] || ${sbindir}/makealiases
|
|
| 49 |
+ |
|
| 50 |
+ [ -f ${sysconfdir}/${ACCESSFILE}.dat ] || ${sbindir}/makesmtpaccess
|
|
| 51 |
+ |
|
| 52 |
+ [ -f ${sysconfdir}/${ACCESSFILE}.dat ] || ${sbindir}/makesmtpaccess-msa
|
|
| 53 |
+} |
|
| 54 |
+ |
|
| 55 |
+start() {
|
|
| 56 |
+ # Start daemons. |
|
| 57 |
+ ebegin "Starting Courier mail server:" |
|
| 58 |
+ |
|
| 59 |
+ checkconfig || return 1 |
|
| 60 |
+ |
|
| 61 |
+ ebegin " Starting courierfilterd" |
|
| 62 |
+ ${sbindir}/courierfilter start
|
|
| 63 |
+ |
|
| 64 |
+ [ ! -d /etc/courier/authlib ] && [ -x ${libexecdir}/authlib/authdaemond ] && \
|
|
| 65 |
+ ${libexecdir}/authlib/authdaemond start && ebegin " Starting authdaemond"
|
|
| 66 |
+ |
|
| 67 |
+ [ -x ${libexecdir}/courier/webmaild ] && \
|
|
| 68 |
+ ${libexecdir}/courier/webmaild start && ebegin " Starting webmaild"
|
|
| 69 |
+ [ ! -x ${libexecdir}/courier/webmaild ] && [ -x ${libexecdir}/courier/sqwebmaild ] && \
|
|
| 70 |
+ ${libexecdir}/courier/sqwebmaild start && ebegin " Starting sqwebmaild"
|
|
| 71 |
+ |
|
| 72 |
+ [ -x ${sbindir}/courierldapaliasd ] && \
|
|
| 73 |
+ ${sbindir}/courierldapaliasd start && ebegin " Starting courierldapaliasd"
|
|
| 74 |
+ |
|
| 75 |
+ ebegin " Starting courierd" |
|
| 76 |
+ ${sbindir}/courier start
|
|
| 77 |
+ |
|
| 78 |
+ # start esmtpd if so written |
|
| 79 |
+ [ -f ${sysconfdir}/esmtpd ] && source ${sysconfdir}/esmtpd
|
|
| 80 |
+ case x$ESMTPDSTART in |
|
| 81 |
+ x[yY]*) |
|
| 82 |
+ ebegin " Starting esmtpd" |
|
| 83 |
+ ${sbindir}/esmtpd start
|
|
| 84 |
+ ;; |
|
| 85 |
+ esac |
|
| 86 |
+ |
|
| 87 |
+ # start esmtpd-msa if so written |
|
| 88 |
+ [ -f ${sysconfdir}/esmtpd-msa ] && source ${sysconfdir}/esmtpd-msa
|
|
| 89 |
+ case x$ESMTPDSTART in |
|
| 90 |
+ x[yY]*) |
|
| 91 |
+ ebegin " Starting esmtpd-msa" |
|
| 92 |
+ ${sbindir}/esmtpd-msa start
|
|
| 93 |
+ ;; |
|
| 94 |
+ esac |
|
| 95 |
+ |
|
| 96 |
+ # start esmtpd-ssl if so written |
|
| 97 |
+ [ -f ${sysconfdir}/esmtpd-ssl ] && source ${sysconfdir}/esmtpd-ssl
|
|
| 98 |
+ case x$ESMTPDSSLSTART in |
|
| 99 |
+ x[yY]*) |
|
| 100 |
+ ebegin " Starting esmtpd-ssl" |
|
| 101 |
+ ${sbindir}/esmtpd-ssl start
|
|
| 102 |
+ ;; |
|
| 103 |
+ esac |
|
| 104 |
+ |
|
| 105 |
+ # start pop3d if so written |
|
| 106 |
+ [ -f ${sysconfdir}/pop3d ] && source ${sysconfdir}/pop3d
|
|
| 107 |
+ case x$POP3DSTART in |
|
| 108 |
+ x[yY]*) |
|
| 109 |
+ ebegin " courier-pop3d" |
|
| 110 |
+ ${sbindir}/courier-pop3d start
|
|
| 111 |
+ ;; |
|
| 112 |
+ esac |
|
| 113 |
+ |
|
| 114 |
+ # start pop3d-ssl if so written |
|
| 115 |
+ [ -f ${sysconfdir}/pop3d-ssl ] && source ${sysconfdir}/pop3d-ssl
|
|
| 116 |
+ case x$POP3DSSLSTART in |
|
| 117 |
+ x[yY]*) |
|
| 118 |
+ ebegin " courier-pop3d-ssl" |
|
| 119 |
+ ${sbindir}/courier-pop3d-ssl start
|
|
| 120 |
+ ;; |
|
| 121 |
+ esac |
|
| 122 |
+ |
|
| 123 |
+ [ -f ${sysconfdir}/imapd ] && source ${sysconfdir}/imapd
|
|
| 124 |
+ case x$IMAPDSTART in |
|
| 125 |
+ x[yY]*) |
|
| 126 |
+ ebegin " courier-imapd" |
|
| 127 |
+ ${sbindir}/courier-imapd start
|
|
| 128 |
+ ;; |
|
| 129 |
+ esac |
|
| 130 |
+ |
|
| 131 |
+ [ -f ${sysconfdir}/imapd-ssl ] && source ${sysconfdir}/imapd-ssl
|
|
| 132 |
+ case x$IMAPDSSLSTART in |
|
| 133 |
+ x[yY]*) |
|
| 134 |
+ ebegin " courier-imapd-ssl" |
|
| 135 |
+ ${sbindir}/courier-imapd-ssl start
|
|
| 136 |
+ ;; |
|
| 137 |
+ esac |
|
| 138 |
+ |
|
| 139 |
+ eend $? |
|
| 140 |
+} |
|
| 141 |
+ |
|
| 142 |
+stop() {
|
|
| 143 |
+ ebegin "Stopping Courier mail server:" |
|
| 144 |
+ |
|
| 145 |
+ ebegin " Stopping courier-esmtpd" |
|
| 146 |
+ ${sbindir}/esmtpd stop
|
|
| 147 |
+ |
|
| 148 |
+ ebegin " Stopping courier-esmtpd-msa" |
|
| 149 |
+ ${sbindir}/esmtpd-msa stop
|
|
| 150 |
+ |
|
| 151 |
+ ebegin " Stopping courier-esmtpd-ssl" |
|
| 152 |
+ ${sbindir}/esmtpd-ssl stop
|
|
| 153 |
+ |
|
| 154 |
+ [ -x ${sbindir}/courier-pop3d ] && \
|
|
| 155 |
+ ebegin " Stopping courier-pop3d" && ${sbindir}/courier-pop3d stop
|
|
| 156 |
+ |
|
| 157 |
+ [ -x ${sbindir}/courier-pop3d-ssl ] && \
|
|
| 158 |
+ ebegin " Stopping courier-pop3d-ssl" && ${sbindir}/courier-pop3d-ssl stop
|
|
| 159 |
+ |
|
| 160 |
+ [ -x ${sbindir}/courier-imapd ] && \
|
|
| 161 |
+ ebegin " Stopping courier-imapd" && ${sbindir}/courier-imapd stop
|
|
| 162 |
+ |
|
| 163 |
+ |
|
| 164 |
+ [ -x ${sbindir}/courier-imapd-ssl ] && \
|
|
| 165 |
+ ebegin " Stopping courier-imapd-ssl" && ${sbindir}/courier-imapd-ssl stop
|
|
| 166 |
+ |
|
| 167 |
+ ebegin " Stopping courierd" |
|
| 168 |
+ ${sbindir}/courier stop
|
|
| 169 |
+ |
|
| 170 |
+ [ -x ${sbindir}/courierldapaliasd ] && \
|
|
| 171 |
+ ( ${sbindir}/courierldapaliasd stop ; ebegin " Stopping courierldapaliasd" )
|
|
| 172 |
+ |
|
| 173 |
+ [ -x ${libexecdir}/courier/webmaild ] && \
|
|
| 174 |
+ ( ${libexecdir}/courier/webmaild stop ; ebegin " Stopping webmaild" )
|
|
| 175 |
+ [ ! -x ${libexecdir}/courier/webmaild ] && [ -x ${libexecdir}/courier/sqwebmaild ] && \
|
|
| 176 |
+ ( ${libexecdir}/courier/sqwebmaild stop ; ebegin " Stopping sqwebmaild" )
|
|
| 177 |
+ |
|
| 178 |
+ [ ! -d /etc/courier/authlib ] && [ -x ${libexecdir}/authlib/authdaemond ] && \
|
|
| 179 |
+ ( ${libexecdir}/authlib/authdaemond stop ; ebegin " Stopping authdaemond" )
|
|
| 180 |
+ |
|
| 181 |
+ ${sbindir}/courierfilter stop
|
|
| 182 |
+ ebegin " Stopping courierfilterd" |
|
| 183 |
+ |
|
| 184 |
+ eend $? |
|
| 185 |
+} |
| ... | ... |
@@ -0,0 +1,23 @@ |
| 1 |
+--- courier-imap-3.0.7-orig/maildir/configure.in 2004-06-08 15:44:23.000000000 -0700 |
|
| 2 |
++++ courier-imap-3.0.7/maildir/configure.in 2004-08-14 15:28:20.525714876 -0700 |
|
| 3 |
+@@ -60,6 +60,12 @@ |
|
| 4 |
+ dnl Checks for library functions. |
|
| 5 |
+ AC_CHECK_HEADER(fam.h, :, :) |
|
| 6 |
+ AC_CHECK_FUNCS(symlink readlink strcasecmp utime utimes) |
|
| 7 |
++AC_ARG_WITH(fam, [ --with-fam Compile with FAM support], |
|
| 8 |
++ fam="$withval", |
|
| 9 |
++ fam="no") |
|
| 10 |
++ |
|
| 11 |
++if test "$fam" != "no" |
|
| 12 |
++then |
|
| 13 |
+ AC_CHECK_LIB(fam, FAMOpen, [ |
|
| 14 |
+ LIBFAM=-lfam |
|
| 15 |
+ AC_DEFINE_UNQUOTED(HAVE_FAM,1, |
|
| 16 |
+@@ -74,6 +80,7 @@ |
|
| 17 |
+ AC_MSG_ERROR([[FAM development libraries not found.]]) ] |
|
| 18 |
+ ) |
|
| 19 |
+ ]) |
|
| 20 |
++fi |
|
| 21 |
+ |
|
| 22 |
+ AC_SUBST(LIBFAM) |
|
| 23 |
+ |
| ... | ... |
@@ -0,0 +1,21 @@ |
| 1 |
+--- courier/module.esmtp/esmtp.c.orig 2004-02-03 01:08:15.679486558 -0700 |
|
| 2 |
++++ courier/module.esmtp/esmtp.c 2004-02-03 01:07:41.262697092 -0700 |
|
| 3 |
+@@ -255,6 +255,10 @@ const char *me; |
|
| 4 |
+ struct rfc822t *tp; |
|
| 5 |
+ struct rfc822token at; |
|
| 6 |
+ |
|
| 7 |
++#if 1 |
|
| 8 |
++ (*func)(info); |
|
| 9 |
++ return; |
|
| 10 |
++#else |
|
| 11 |
+ if (info->ptr == 0) |
|
| 12 |
+ {
|
|
| 13 |
+ (*func)(info); |
|
| 14 |
+@@ -289,6 +293,7 @@ struct rfc822token at; |
|
| 15 |
+ (*func)(info); |
|
| 16 |
+ *r=0; |
|
| 17 |
+ rfc822t_free(tp); |
|
| 18 |
++#endif |
|
| 19 |
+ } |
|
| 20 |
+ |
|
| 21 |
+ static void rw_esmtp(struct rw_info *info, void (*func)(struct rw_info *)) |
| ... | ... |
@@ -0,0 +1,36 @@ |
| 1 |
+--- courier-0.53.2/webmail/sqwebmail-system-auth.pamconf 2007/05/10 05:49:26 1.1 |
|
| 2 |
++++ courier-0.53.2/webmail/sqwebmail-system-auth.pamconf 2007/05/13 18:19:03 |
|
| 3 |
+@@ -5,10 +5,10 @@ |
|
| 4 |
+ # Copyright 1998-2001 Double Precision, Inc. See COPYING for |
|
| 5 |
+ # distribution information. |
|
| 6 |
+ # |
|
| 7 |
+-# This is a sample authpam configuration file that uses pam_stack |
|
| 8 |
+-# (circa linux-pam 0.72). |
|
| 9 |
++# This is a sample authpam configuration file that uses include statements |
|
| 10 |
++# (circa linux-pam 0.78). |
|
| 11 |
+ |
|
| 12 |
+ auth required pam_nologin.so |
|
| 13 |
+-auth required pam_stack.so service=system-auth |
|
| 14 |
+-account required pam_stack.so service=system-auth |
|
| 15 |
+-session required pam_stack.so service=system-auth |
|
| 16 |
++auth include system-auth |
|
| 17 |
++account include system-auth |
|
| 18 |
++session include system-auth |
|
| 19 |
+--- courier-0.53.2/imap/system-auth.authpam 2007/05/13 19:03:10 1.1 |
|
| 20 |
++++ courier-0.53.2/imap/system-auth.authpam 2007/05/13 19:04:03 |
|
| 21 |
+@@ -5,10 +5,10 @@ |
|
| 22 |
+ # Copyright 1998-2001 Double Precision, Inc. See COPYING for |
|
| 23 |
+ # distribution information. |
|
| 24 |
+ # |
|
| 25 |
+-# This is a sample authpam configuration file that uses pam_stack |
|
| 26 |
+-# (circa linux-pam 0.72). |
|
| 27 |
++# This is a sample authpam configuration file that uses include statements |
|
| 28 |
++# (circa linux-pam 0.78). |
|
| 29 |
+ |
|
| 30 |
+ auth required pam_nologin.so |
|
| 31 |
+-auth required pam_stack.so service=system-auth |
|
| 32 |
+-account required pam_stack.so service=system-auth |
|
| 33 |
+-session required pam_stack.so service=system-auth |
|
| 34 |
++auth include system-auth |
|
| 35 |
++account include system-auth |
|
| 36 |
++session include system-auth |
| ... | ... |
@@ -0,0 +1,28 @@ |
| 1 |
+#!/bin/sh |
|
| 2 |
+# this has to be called with a list of configuration files to apply the |
|
| 3 |
+# changes |
|
| 4 |
+# example: ./set-mime /etc/courier/esmtpd /etc/courier/esmtpd-ssl |
|
| 5 |
+ |
|
| 6 |
+files=$* |
|
| 7 |
+ |
|
| 8 |
+chk_badmime='##NAME: BOFHBADMIME:0' |
|
| 9 |
+pos_badmime='##NAME: NOADDMSGID:0' |
|
| 10 |
+ins_badmime='\ |
|
| 11 |
+##NAME: BOFHBADMIME:0\ |
|
| 12 |
+#\ |
|
| 13 |
+# set BOFHBADMIME\ |
|
| 14 |
+# to \"reject\" to return mail with invalid MIME header\ |
|
| 15 |
+# to \"wrap\" to wrap mail with invalid MIME header in an attachmant\ |
|
| 16 |
+# to \"accept\" to pass mail with invalid MIME header untouched\ |
|
| 17 |
+\ |
|
| 18 |
+BOFHBADMIME=accept\ |
|
| 19 |
+' |
|
| 20 |
+ |
|
| 21 |
+for f in ${files}
|
|
| 22 |
+do |
|
| 23 |
+ if ! grep -q "${chk_badmime}" "${f}"
|
|
| 24 |
+ then |
|
| 25 |
+ echo "adding parameter ${chk_badmime} to ${f}"
|
|
| 26 |
+ cat ${f} | sed -e"/${pos_badmime}/ i ${ins_badmime}" > "${f}.tmp" && mv -f "${f}.tmp" "${f}"
|
|
| 27 |
+ fi |
|
| 28 |
+done |
| ... | ... |
@@ -0,0 +1,10 @@ |
| 1 |
+<?xml version="1.0" encoding="UTF-8"?> |
|
| 2 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
|
| 3 |
+ |
|
| 4 |
+<pkgmetadata> |
|
| 5 |
+ <herd>no-herd</herd> |
|
| 6 |
+ <longdescription> |
|
| 7 |
+ Complete email package consisting of pop, imap, smtp, and fax |
|
| 8 |
+ server and secure version of the above also |
|
| 9 |
+ </longdescription> |
|
| 10 |
+</pkgmetadata> |
| ... | ... |
@@ -0,0 +1,345 @@ |
| 1 |
+# ChangeLog for net-libs/courier-authlib |
|
| 2 |
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
|
| 3 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/ChangeLog,v 1.67 2007/07/02 14:51:44 peper Exp $ |
|
| 4 |
+ |
|
| 5 |
+ 02 Jul 2007; Piotr Jaroszyński <peper@gentoo.org> |
|
| 6 |
+ courier-authlib-0.58.ebuild: |
|
| 7 |
+ (QA) RESTRICT clean up. |
|
| 8 |
+ |
|
| 9 |
+ 08 May 2007; Marius Mauch <genone@gentoo.org> courier-authlib-0.58.ebuild, |
|
| 10 |
+ courier-authlib-0.59.2.ebuild: |
|
| 11 |
+ Replacing einfo with elog |
|
| 12 |
+ |
|
| 13 |
+ 08 Apr 2007; Luca Longinotti <chtekk@gentoo.org> metadata.xml: |
|
| 14 |
+ Update metadata. |
|
| 15 |
+ |
|
| 16 |
+*courier-authlib-0.59.2 (08 Apr 2007) |
|
| 17 |
+ |
|
| 18 |
+ 08 Apr 2007; Luca Longinotti <chtekk@gentoo.org> |
|
| 19 |
+ -files/0.59.1-configure-db4.patch, |
|
| 20 |
+ -files/0.59.1-remove-obsolete-macro.patch, |
|
| 21 |
+ +files/0.59.2-configure-db4.patch, |
|
| 22 |
+ +files/0.59.2-remove-obsolete-macro.patch, files/courier-authlib, |
|
| 23 |
+ -files/initd/courier-authlib, metadata.xml, courier-authlib-0.58.ebuild, |
|
| 24 |
+ -courier-authlib-0.58-r1.ebuild, -courier-authlib-0.59.1.ebuild, |
|
| 25 |
+ +courier-authlib-0.59.2.ebuild: |
|
| 26 |
+ Ebuild cleanup, version bump to 0.59.2. |
|
| 27 |
+ |
|
| 28 |
+ 30 Mar 2007; Timothy Redaelli <drizzt@gentoo.org> |
|
| 29 |
+ courier-authlib-0.59.1.ebuild: |
|
| 30 |
+ Add ~x86-fbsd keyword |
|
| 31 |
+ |
|
| 32 |
+*courier-authlib-0.59.1 (03 Feb 2007) |
|
| 33 |
+ |
|
| 34 |
+ 03 Feb 2007; Charlie Shepherd <masterdriverz@gentoo.org> |
|
| 35 |
+ +files/0.59.1-configure-db4.patch, |
|
| 36 |
+ +files/0.59.1-remove-obsolete-macro.patch, +courier-authlib-0.59.1.ebuild: |
|
| 37 |
+ Bump to version, bug 162531, thanks to Conrad Kostecki. Add a vpopmail use |
|
| 38 |
+ flag, bug 161754, thanks to Georgi Georgiev. |
|
| 39 |
+ |
|
| 40 |
+*courier-authlib-0.58-r1 (16 Jan 2007) |
|
| 41 |
+ |
|
| 42 |
+ 16 Jan 2007; Charlie Shepherd <masterdriverz@gentoo.org> |
|
| 43 |
+ +files/0.58-configure-db4.patch, +files/0.58-remove-obsolete-macro.patch, |
|
| 44 |
+ -files/configure-db4.patch, -files/CVE-2005-3532.patch, |
|
| 45 |
+ +files/courier-authlib, -files/courier-authlib-initd, |
|
| 46 |
+ +files/initd/courier-authlib, -courier-authlib-0.53.ebuild, |
|
| 47 |
+ -courier-authlib-0.54.20050224.ebuild, -courier-authlib-0.55.ebuild, |
|
| 48 |
+ -courier-authlib-0.55.20050320.ebuild, -courier-authlib-0.56.ebuild, |
|
| 49 |
+ -courier-authlib-0.57.ebuild, -courier-authlib-0.57-r1.ebuild, |
|
| 50 |
+ -courier-authlib-0.57-r2.ebuild, -courier-authlib-0.57.20051116.ebuild, |
|
| 51 |
+ courier-authlib-0.58.ebuild, +courier-authlib-0.58-r1.ebuild: |
|
| 52 |
+ Clean out old versions. Sanitize remaining ebuild. Bump to -r1 for bug 117290. |
|
| 53 |
+ Fix configure for bug 117290 for >db-4.3, thanks to Hanno Meyer-Thurow. Fix |
|
| 54 |
+ configure for bug 160286, thanks to Sheldon Hearn. |
|
| 55 |
+ |
|
| 56 |
+ 05 Jan 2007; Diego Pettenò <flameeyes@gentoo.org> |
|
| 57 |
+ courier-authlib-0.53.ebuild, courier-authlib-0.54.20050224.ebuild, |
|
| 58 |
+ courier-authlib-0.55.ebuild, courier-authlib-0.55.20050320.ebuild, |
|
| 59 |
+ courier-authlib-0.56.ebuild, courier-authlib-0.57.ebuild, |
|
| 60 |
+ courier-authlib-0.57-r1.ebuild, courier-authlib-0.57-r2.ebuild, |
|
| 61 |
+ courier-authlib-0.57.20051116.ebuild: |
|
| 62 |
+ Remove gnuconfig_update usage, leave it to econf. |
|
| 63 |
+ |
|
| 64 |
+ 04 Jan 2007; Diego Pettenò <flameeyes@gentoo.org> |
|
| 65 |
+ courier-authlib-0.58.ebuild: |
|
| 66 |
+ Fix broken autotools handling. |
|
| 67 |
+ |
|
| 68 |
+ 23 Nov 2006; Francesco Riosa <vivo@gentoo.org> |
|
| 69 |
+ courier-authlib-0.53.ebuild, courier-authlib-0.54.20050224.ebuild, |
|
| 70 |
+ courier-authlib-0.55.ebuild, courier-authlib-0.55.20050320.ebuild, |
|
| 71 |
+ courier-authlib-0.56.ebuild, courier-authlib-0.57.ebuild, |
|
| 72 |
+ courier-authlib-0.57-r1.ebuild, courier-authlib-0.57-r2.ebuild, |
|
| 73 |
+ courier-authlib-0.57.20051116.ebuild, courier-authlib-0.58.ebuild: |
|
| 74 |
+ dev-db/mysql => virtual/mysql |
|
| 75 |
+ |
|
| 76 |
+ 14 Oct 2006; Bryan Østergaard <kloeri@gentoo.org> metadata.xml: |
|
| 77 |
+ Remove swtaylor from metadata.xml due to retiring. |
|
| 78 |
+ |
|
| 79 |
+ 24 Apr 2006; Joshua Kinard <kumba@gentoo.org> courier-authlib-0.58.ebuild: |
|
| 80 |
+ Marked stable on mips. |
|
| 81 |
+ |
|
| 82 |
+ 02 Apr 2006; Jason Wever <weeve@gentoo.org> courier-authlib-0.58.ebuild: |
|
| 83 |
+ Stable on SPARC. |
|
| 84 |
+ |
|
| 85 |
+ 07 Feb 2006; Simon Stelling <blubb@gentoo.org> |
|
| 86 |
+ courier-authlib-0.58.ebuild: |
|
| 87 |
+ stable on amd64 |
|
| 88 |
+ |
|
| 89 |
+ 07 Feb 2006; Aron Griffis <agriffis@gentoo.org> |
|
| 90 |
+ courier-authlib-0.58.ebuild: |
|
| 91 |
+ Mark 0.58 stable on alpha |
|
| 92 |
+ |
|
| 93 |
+ 21 Jan 2006; Markus Rothe <corsair@gentoo.org> |
|
| 94 |
+ courier-authlib-0.58.ebuild: |
|
| 95 |
+ Stable on ppc64 |
|
| 96 |
+ |
|
| 97 |
+ 21 Jan 2006; Michael Hanselmann <hansmi@gentoo.org> |
|
| 98 |
+ courier-authlib-0.58.ebuild: |
|
| 99 |
+ Stable on ppc. |
|
| 100 |
+ |
|
| 101 |
+ 17 Jan 2006; Paul Varner <fuzzyray@gentoo.org> |
|
| 102 |
+ courier-authlib-0.58.ebuild: |
|
| 103 |
+ Stable on x86. Bug #119055 |
|
| 104 |
+ |
|
| 105 |
+*courier-authlib-0.58 (10 Dec 2005) |
|
| 106 |
+ |
|
| 107 |
+ 10 Dec 2005; Scott Taylor <staylor@gentoo.org> |
|
| 108 |
+ files/courier-authlib-initd, +courier-authlib-0.58.ebuild: |
|
| 109 |
+ add 0.58 ebuild, update init script to export params, for bug 111672 |
|
| 110 |
+ |
|
| 111 |
+*courier-authlib-0.57.20051116 (06 Dec 2005) |
|
| 112 |
+*courier-authlib-0.57-r2 (06 Dec 2005) |
|
| 113 |
+ |
|
| 114 |
+ 06 Dec 2005; Scott Taylor <staylor@gentoo.org> +files/CVE-2005-3532.patch, |
|
| 115 |
+ +courier-authlib-0.57-r2.ebuild, +courier-authlib-0.57.20051116.ebuild: |
|
| 116 |
+ patch for Bug 113074 |
|
| 117 |
+ |
|
| 118 |
+ 27 Nov 2005; Rene Nussbaumer <killerfox@gentoo.org> |
|
| 119 |
+ courier-authlib-0.57-r1.ebuild: |
|
| 120 |
+ Stable on hppa. |
|
| 121 |
+ |
|
| 122 |
+ 12 Nov 2005; Jason Wever <weeve@gentoo.org> |
|
| 123 |
+ courier-authlib-0.57-r1.ebuild: |
|
| 124 |
+ Stable on SPARC. |
|
| 125 |
+ |
|
| 126 |
+ 18 Oct 2005; Aron Griffis <agriffis@gentoo.org> |
|
| 127 |
+ courier-authlib-0.57-r1.ebuild: |
|
| 128 |
+ Mark 0.57-r1 stable on alpha |
|
| 129 |
+ |
|
| 130 |
+ 02 Oct 2005; Michael Hanselmann <hansmi@gentoo.org> |
|
| 131 |
+ courier-authlib-0.57-r1.ebuild: |
|
| 132 |
+ Stable on ppc. |
|
| 133 |
+ |
|
| 134 |
+ 02 Oct 2005; Aron Griffis <agriffis@gentoo.org> |
|
| 135 |
+ courier-authlib-0.57-r1.ebuild: |
|
| 136 |
+ Mark 0.57-r1 stable on ia64 |
|
| 137 |
+ |
|
| 138 |
+ 02 Oct 2005; MATSUU Takuto <matsuu@gentoo.org> |
|
| 139 |
+ courier-authlib-0.57-r1.ebuild: |
|
| 140 |
+ Stable on sh. |
|
| 141 |
+ |
|
| 142 |
+ 24 Sep 2005; Markus Rothe <corsair@gentoo.org> |
|
| 143 |
+ courier-authlib-0.57-r1.ebuild: |
|
| 144 |
+ Stable on ppc64 |
|
| 145 |
+ |
|
| 146 |
+ 21 Sep 2005; Francesco Riosa <vivo@gentoo.org> |
|
| 147 |
+ courier-authlib-0.57-r1.ebuild: |
|
| 148 |
+ Stable on "x86" and "amd64" |
|
| 149 |
+ |
|
| 150 |
+*courier-authlib-0.57-r1 (24 Aug 2005) |
|
| 151 |
+ |
|
| 152 |
+ 24 Aug 2005; Roy Marples <uberlord@gentoo.org> |
|
| 153 |
+ files/courier-authlib-initd, +courier-authlib-0.57-r1.ebuild: |
|
| 154 |
+ Rev bump for new init script. Fixes #103104 |
|
| 155 |
+ |
|
| 156 |
+*courier-authlib-0.57 (26 Jul 2005) |
|
| 157 |
+ |
|
| 158 |
+ 26 Jul 2005; Francesco Riosa <vivo@gentoo.org> |
|
| 159 |
+ +courier-authlib-0.57.ebuild: |
|
| 160 |
+ version bump |
|
| 161 |
+ fix Bug #88415 : courier-authlib-0.5* doesn't compile using mysql when |
|
| 162 |
+ LDFLAGS are set in system |
|
| 163 |
+ |
|
| 164 |
+*courier-authlib-0.56 (02 Jul 2005) |
|
| 165 |
+ |
|
| 166 |
+ 02 Jul 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 167 |
+ +courier-authlib-0.56.ebuild: |
|
| 168 |
+ bump |
|
| 169 |
+ |
|
| 170 |
+ 29 May 2005; <solar@gentoo.org> courier-authlib-0.53.ebuild, |
|
| 171 |
+ courier-authlib-0.54.20050224.ebuild, courier-authlib-0.55.20050320.ebuild, |
|
| 172 |
+ courier-authlib-0.55.ebuild: |
|
| 173 |
+ - update courier-authlib to use libc expanded variable elibc_uclibc vs uclibc |
|
| 174 |
+ so USE=-* works |
|
| 175 |
+ |
|
| 176 |
+*courier-authlib-0.55.20050320 (21 Mar 2005) |
|
| 177 |
+ |
|
| 178 |
+ 21 Mar 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 179 |
+ -courier-authlib-0.54.ebuild, +courier-authlib-0.55.20050320.ebuild: |
|
| 180 |
+ bump |
|
| 181 |
+ |
|
| 182 |
+ 20 Mar 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 183 |
+ courier-authlib-0.53.ebuild, courier-authlib-0.55.ebuild: |
|
| 184 |
+ promote 0.55, strip -fomit-frame-pointer |
|
| 185 |
+ |
|
| 186 |
+ 19 Mar 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 187 |
+ courier-authlib-0.53.ebuild, courier-authlib-0.54.ebuild, |
|
| 188 |
+ courier-authlib-0.54.20050224.ebuild, courier-authlib-0.55.ebuild: |
|
| 189 |
+ bash cleanup |
|
| 190 |
+ |
|
| 191 |
+ 17 Mar 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 192 |
+ courier-authlib-0.53.ebuild, courier-authlib-0.54.ebuild, |
|
| 193 |
+ courier-authlib-0.54.20050224.ebuild, courier-authlib-0.55.ebuild: |
|
| 194 |
+ install mysql readme file for pgsql users |
|
| 195 |
+ |
|
| 196 |
+ 15 Mar 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 197 |
+ -courier-authlib-0.52-r1.ebuild, courier-authlib-0.53.ebuild, |
|
| 198 |
+ courier-authlib-0.54.ebuild, courier-authlib-0.54.20050224.ebuild, |
|
| 199 |
+ courier-authlib-0.55.ebuild: |
|
| 200 |
+ change vpopmail detection for #85391 |
|
| 201 |
+ |
|
| 202 |
+*courier-authlib-0.55 (04 Mar 2005) |
|
| 203 |
+ |
|
| 204 |
+ 04 Mar 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 205 |
+ +courier-authlib-0.55.ebuild: |
|
| 206 |
+ bump |
|
| 207 |
+ |
|
| 208 |
+*courier-authlib-0.54.20050224 (25 Feb 2005) |
|
| 209 |
+ |
|
| 210 |
+ 25 Feb 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 211 |
+ +courier-authlib-0.54.20050224.ebuild: |
|
| 212 |
+ bump. adds cram-sha256 |
|
| 213 |
+ |
|
| 214 |
+*courier-authlib-0.54 (13 Feb 2005) |
|
| 215 |
+ |
|
| 216 |
+ 13 Feb 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 217 |
+ +courier-authlib-0.54.ebuild: |
|
| 218 |
+ errata bump |
|
| 219 |
+ |
|
| 220 |
+ 04 Feb 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 221 |
+ files/courier-authlib-initd: |
|
| 222 |
+ add "provide authdaemond" to init script |
|
| 223 |
+ |
|
| 224 |
+ 31 Jan 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 225 |
+ courier-authlib-0.52-r1.ebuild, courier-authlib-0.53.ebuild: |
|
| 226 |
+ changed sed calls for more consistent edits. |
|
| 227 |
+ make sure userdb is found and migrated |
|
| 228 |
+ call makeuserdb after the install, if userdb exists |
|
| 229 |
+ |
|
| 230 |
+ 30 Jan 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 231 |
+ courier-authlib-0.52-r1.ebuild, courier-authlib-0.53.ebuild: |
|
| 232 |
+ mostly cosmetic changes. also puts authldap.schema in /etc/openldap/schema/ |
|
| 233 |
+ |
|
| 234 |
+ 30 Jan 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 235 |
+ courier-authlib-0.52-r1.ebuild: |
|
| 236 |
+ initial stable keywording |
|
| 237 |
+ |
|
| 238 |
+*courier-authlib-0.53 (30 Jan 2005) |
|
| 239 |
+ |
|
| 240 |
+ 30 Jan 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 241 |
+ +courier-authlib-0.53.ebuild: |
|
| 242 |
+ bump to 0.53 |
|
| 243 |
+ |
|
| 244 |
+*courier-authlib-0.52-r1 (07 Jan 2005) |
|
| 245 |
+ |
|
| 246 |
+ 07 Jan 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 247 |
+ +courier-authlib-0.52-r1.ebuild: |
|
| 248 |
+ build authshadow (bug 71909) and use /usr/$(get_libdir) for better arch support |
|
| 249 |
+ |
|
| 250 |
+ 06 Jan 2005; Jeremy Huddleston <eradicator@gentoo.org> |
|
| 251 |
+ courier-authlib-0.52.ebuild: |
|
| 252 |
+ multilib and cross-compilation fixes. |
|
| 253 |
+ |
|
| 254 |
+ 01 Jan 2005; Tuan Van <langthang@gentoo.org> courier-authlib-0.52.ebuild: |
|
| 255 |
+ add "libtoolize --copy --force" |
|
| 256 |
+ |
|
| 257 |
+ 01 Jan 2005; Tuan Van <langthang@gentoo.org> files/configure-db4.patch: |
|
| 258 |
+ adjust patch for the newer version. |
|
| 259 |
+ |
|
| 260 |
+*courier-authlib-0.52 (01 Jan 2005) |
|
| 261 |
+ |
|
| 262 |
+ 01 Jan 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 263 |
+ -courier-authlib-0.51_pre.ebuild, +courier-authlib-0.52.ebuild: |
|
| 264 |
+ courier-authlib 0.52 released |
|
| 265 |
+ |
|
| 266 |
+ 24 Dec 2004; Markus Rothe <corsair@gentoo.org> |
|
| 267 |
+ courier-authlib-0.51_pre.ebuild: |
|
| 268 |
+ Added ~ppc64 to KEYWORDS; bug #75450 |
|
| 269 |
+ |
|
| 270 |
+ 22 Dec 2004; Tuan Van <langthang@gentoo.org> |
|
| 271 |
+ courier-authlib-0.51_pre.ebuild: |
|
| 272 |
+ arm/hppa/ia64/s390 keywords on behalf of vapier. |
|
| 273 |
+ |
|
| 274 |
+ 15 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 275 |
+ courier-authlib-0.50.20041203.ebuild: |
|
| 276 |
+ change keepdir in the other one too |
|
| 277 |
+ |
|
| 278 |
+ 15 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 279 |
+ courier-authlib-0.51_pre.ebuild: |
|
| 280 |
+ keep more specific dir, and one that doesn't collide with courier |
|
| 281 |
+ |
|
| 282 |
+ 10 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 283 |
+ -courier-authlib-0.50.20041120.ebuild, |
|
| 284 |
+ -courier-authlib-0.50.20041129.ebuild: |
|
| 285 |
+ housecleaning |
|
| 286 |
+ |
|
| 287 |
+ 09 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 288 |
+ courier-authlib-0.51_pre.ebuild: |
|
| 289 |
+ don't mirror release candidate |
|
| 290 |
+ |
|
| 291 |
+*courier-authlib-0.51_pre (09 Dec 2004) |
|
| 292 |
+ |
|
| 293 |
+ 09 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 294 |
+ +courier-authlib-0.51_pre.ebuild: |
|
| 295 |
+ bump |
|
| 296 |
+ |
|
| 297 |
+*courier-authlib-0.50.20041203 (04 Dec 2004) |
|
| 298 |
+ |
|
| 299 |
+ 04 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 300 |
+ +courier-authlib-0.50.20041203.ebuild: |
|
| 301 |
+ bump |
|
| 302 |
+ |
|
| 303 |
+ 01 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 304 |
+ courier-authlib-0.50.20041129.ebuild: |
|
| 305 |
+ ~mips |
|
| 306 |
+ |
|
| 307 |
+ 01 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 308 |
+ -courier-authlib-0.50.20041116.ebuild, |
|
| 309 |
+ courier-authlib-0.50.20041129.ebuild: |
|
| 310 |
+ also check /etc/courier-imap folder for auth*rc configs to migrate |
|
| 311 |
+ |
|
| 312 |
+*courier-authlib-0.50.20041129 (01 Dec 2004) |
|
| 313 |
+ |
|
| 314 |
+ 01 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 315 |
+ +courier-authlib-0.50.20041129.ebuild: |
|
| 316 |
+ bump. fix migration from self |
|
| 317 |
+ |
|
| 318 |
+ 27 Nov 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 319 |
+ files/courier-authlib-initd, courier-authlib-0.50.20041120.ebuild: |
|
| 320 |
+ almost there |
|
| 321 |
+ |
|
| 322 |
+ 26 Nov 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 323 |
+ courier-authlib-0.50.20041120.ebuild: |
|
| 324 |
+ fix postgres |
|
| 325 |
+ |
|
| 326 |
+ 26 Nov 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 327 |
+ files/courier-authlib-initd: |
|
| 328 |
+ fix initd |
|
| 329 |
+ |
|
| 330 |
+*courier-authlib-0.50.20041120 (21 Nov 2004) |
|
| 331 |
+ |
|
| 332 |
+ 21 Nov 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 333 |
+ +courier-authlib-0.50.20041120.ebuild: |
|
| 334 |
+ version bump. work in progress. |
|
| 335 |
+ |
|
| 336 |
+ 20 Nov 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 337 |
+ +files/configure-db4.patch, courier-authlib-0.50.20041116.ebuild: |
|
| 338 |
+ work in progress. merging stuff from imap |
|
| 339 |
+ |
|
| 340 |
+*courier-authlib-0.50.20041116 (19 Nov 2004) |
|
| 341 |
+ |
|
| 342 |
+ 19 Nov 2004; Scott W Taylor <swtaylor@gentoo.org> +metadata.xml, |
|
| 343 |
+ +courier-authlib-0.50.20041116.ebuild: |
|
| 344 |
+ work in progress |
|
| 345 |
+ |
| ... | ... |
@@ -0,0 +1,14 @@ |
| 1 |
+AUX 0.58-configure-db4.patch 2616 RMD160 a65654c28537fc797eb0d7633d1b0b38f97af6f7 SHA1 9e66d0f69dc5ae157868c63d48009ef2a27a3d46 SHA256 629888b8363b0debcc592b4bed7390dfb01d9fc0ee15712d7c5a56575e25efe0 |
|
| 2 |
+AUX 0.58-remove-obsolete-macro.patch 252 RMD160 f7bffc4956e078c5700394cfa6641df0c04ba050 SHA1 b199c22cbb6e449db76fdc924f6481a86361314f SHA256 ea6753f82c2b267ff373286f0c0a9e379e30f5d68bfe1df1c375d0a547d12a62 |
|
| 3 |
+AUX 0.59.2-configure-db4.patch 2618 RMD160 33691117802c3a9fe75c75c69594a4f63f4d2575 SHA1 47fc3ba36441c79fa4d8188530a4a2e1a9c8dcd2 SHA256 a60e2f5d26673be2ae107d9fcec024f41c522663d28f4741000fb1885ce067bc |
|
| 4 |
+AUX 0.59.2-remove-obsolete-macro.patch 254 RMD160 268c175e0e75893661c9d17a36265a008469d49d SHA1 1afe4d21d480ab71d58a60cfca03d0a5abef2a3b SHA256 1e9d8df4d8a29c91384891a389da090a9c0a16e963936e21d2f999e13cfdbc1f |
|
| 5 |
+AUX 0.60.2-remove-obsolete-macro.patch 254 RMD160 268c175e0e75893661c9d17a36265a008469d49d SHA1 1afe4d21d480ab71d58a60cfca03d0a5abef2a3b SHA256 1e9d8df4d8a29c91384891a389da090a9c0a16e963936e21d2f999e13cfdbc1f |
|
| 6 |
+AUX courier-authlib 1112 RMD160 a0d5bf781ed1792677d83efd5034c83f689f7f2f SHA1 e755e781157787c921ef4884c1aca27e0ec68e87 SHA256 c946e42e5ed31a210da99af4d83cb739e2008ad2ea524955cdb141f4c7289dc9 |
|
| 7 |
+DIST courier-authlib-0.58.tar.bz2 2006735 RMD160 6474612496cd287f294c7f52239ea853c44e4aa1 SHA1 8bdab3c2e734cc8f47230924ec638ba3609a92a1 SHA256 d877cc6c65e90471ec9410c5ce7af467ba5beb3922b9cfbf2bf6aa24f6bdc7ad |
|
| 8 |
+DIST courier-authlib-0.59.2.tar.bz2 2109549 RMD160 499da7ec09fbe46be5ea9450c6ecb9c3d648244b SHA1 84dfd3175b2fcbbb18a1ea87f3cb803daff827df SHA256 326f4a2e0c2a6259083f521ae838984eca051483dadfdcda4b0a535d7472f396 |
|
| 9 |
+DIST courier-authlib-0.60.2.tar.bz2 2158473 RMD160 bdf6d68b7b6a5c6d13079477d83312f98dd7bd31 SHA1 cd5969075de212ecfb406ffb1ac974ea939ddcc0 SHA256 824e92b6b6f7755ec06a22b5b1eb3734853ee8824612c62f92a9b2f33be04bbd |
|
| 10 |
+EBUILD courier-authlib-0.58.ebuild 5860 RMD160 548faac1dfcafe294b9f84f4fb50ad6af773f3a3 SHA1 81f68f94ca2023cc3bf23225a4ba5cbfb15e520f SHA256 8a11056b2e2f609f12325393e29b2b5b3915864d7499f6f74924f83d82d17d37 |
|
| 11 |
+EBUILD courier-authlib-0.59.2.ebuild 5937 RMD160 a117fc0212c40d94ff8986a813790f7a2550d27a SHA1 4a2246b390242930cbeb51aacd9fb10a9803e2c4 SHA256 dcf99c3c30e6525baed0163b1c6bd20e28fdec32929528340a71da8018f6450b |
|
| 12 |
+EBUILD courier-authlib-0.60.2.ebuild 5937 RMD160 a117fc0212c40d94ff8986a813790f7a2550d27a SHA1 4a2246b390242930cbeb51aacd9fb10a9803e2c4 SHA256 dcf99c3c30e6525baed0163b1c6bd20e28fdec32929528340a71da8018f6450b |
|
| 13 |
+MISC ChangeLog 11838 RMD160 241c9f044c56634831180f534a013ff234e906dc SHA1 7b332caf6e0c9e4514b04662984bb5afa879072a SHA256 6453af1151aa1da3fa7f142a7d3468ac6eb616e55105d23fbb6965b29bbd4a05 |
|
| 14 |
+MISC metadata.xml 257 RMD160 2b87c540cca4d55b319602734c4feadc9c73cdaa SHA1 d5eb357bc87a8263fc17f50526f1a171bf8ce951 SHA256 047c9e5f17bca31968e9291cab682721118932209934644e1865d7e6e84e49b8 |
| ... | ... |
@@ -0,0 +1,177 @@ |
| 1 |
+# Copyright 1999-2007 Gentoo Foundation |
|
| 2 |
+# Distributed under the terms of the GNU General Public License v2 |
|
| 3 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/courier-authlib-0.58.ebuild,v 1.16 2007/07/02 14:51:44 peper Exp $ |
|
| 4 |
+ |
|
| 5 |
+WANT_AUTOCONF="latest" |
|
| 6 |
+WANT_AUTOMAKE="latest" |
|
| 7 |
+ |
|
| 8 |
+inherit eutils flag-o-matic autotools |
|
| 9 |
+ |
|
| 10 |
+DESCRIPTION="courier authentication library" |
|
| 11 |
+[ -z "${PV/?.??/}" ] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
|
|
| 12 |
+[ -z "$SRC_URI" ] && SRC_URI="http://www.courier-mta.org/beta/courier-authlib/${P%%_pre}.tar.bz2"
|
|
| 13 |
+HOMEPAGE="http://www.courier-mta.org/" |
|
| 14 |
+ |
|
| 15 |
+LICENSE="GPL-2" |
|
| 16 |
+SLOT="0" |
|
| 17 |
+KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86" |
|
| 18 |
+IUSE="postgres ldap mysql berkdb gdbm pam crypt debug" |
|
| 19 |
+ |
|
| 20 |
+RESTRICT="userpriv" |
|
| 21 |
+ |
|
| 22 |
+DEPEND="gdbm? ( sys-libs/gdbm ) |
|
| 23 |
+ !gdbm? ( >=sys-devel/autoconf-2.5 sys-libs/db ) |
|
| 24 |
+ >=dev-libs/openssl-0.9.6 |
|
| 25 |
+ pam? ( >=sys-libs/pam-0.75 ) |
|
| 26 |
+ mysql? ( virtual/mysql ) |
|
| 27 |
+ ldap? ( >=net-nds/openldap-1.2.11 ) |
|
| 28 |
+ postgres? ( >=dev-db/postgresql-7.2 )" |
|
| 29 |
+ |
|
| 30 |
+RDEPEND="gdbm? ( sys-libs/gdbm ) |
|
| 31 |
+ !gdbm? ( sys-libs/db )" |
|
| 32 |
+ |
|
| 33 |
+S="${WORKDIR}/${P%%_pre}"
|
|
| 34 |
+ |
|
| 35 |
+pkg_setup() {
|
|
| 36 |
+ if ! has_version 'dev-tcltk/expect' ; then |
|
| 37 |
+ ewarn 'The dev-tcltk/expect package is not installed.' |
|
| 38 |
+ ewarn 'Without it, you will not be able to change system login passwords.' |
|
| 39 |
+ ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,' |
|
| 40 |
+ ewarn 'and others) will work just fine.' |
|
| 41 |
+ fi |
|
| 42 |
+} |
|
| 43 |
+ |
|
| 44 |
+src_unpack() {
|
|
| 45 |
+ unpack ${A}
|
|
| 46 |
+ cd "${S}"
|
|
| 47 |
+ sed -e "s|^chk_file .* |&\${DESTDIR}|g" -i.orig authmigrate.in
|
|
| 48 |
+ use elibc_uclibc && sed -i -e 's:linux-gnu\*:linux-gnu\*\ \|\ linux-uclibc:' config.sub |
|
| 49 |
+ if ! use gdbm ; then |
|
| 50 |
+ epatch "${FILESDIR}/${PV}-configure-db4.patch"
|
|
| 51 |
+ else |
|
| 52 |
+ epatch "${FILESDIR}/${PV}-remove-obsolete-macro.patch"
|
|
| 53 |
+ fi |
|
| 54 |
+ sed -i -e'/for dir in/a@@INDENT@@/etc/courier-imap \\' ${S}/authmigrate.in
|
|
| 55 |
+ sed -i -e'/for dir in/a@@INDENT@@/etc/courier/authlib \\' ${S}/authmigrate.in
|
|
| 56 |
+ sed -i -e"s|@@INDENT@@| |g" ${S}/authmigrate.in
|
|
| 57 |
+ sed -i -e"s|\$sbindir/makeuserdb||g" ${S}/authmigrate.in
|
|
| 58 |
+ |
|
| 59 |
+ eautoreconf |
|
| 60 |
+} |
|
| 61 |
+ |
|
| 62 |
+src_compile() {
|
|
| 63 |
+ filter-flags -fomit-frame-pointer |
|
| 64 |
+ |
|
| 65 |
+ local myconf |
|
| 66 |
+ myconf="$(use_with pam authpam) $(use_with ldap authldap)" |
|
| 67 |
+ |
|
| 68 |
+ if use berkdb; then |
|
| 69 |
+ if use gdbm; then |
|
| 70 |
+ ewarn "Both gdbm and berkdb selected. Using gdbm." |
|
| 71 |
+ else |
|
| 72 |
+ myconf="${myconf} --with-db=db"
|
|
| 73 |
+ fi |
|
| 74 |
+ fi |
|
| 75 |
+ use gdbm && myconf="${myconf} --with-db=gdbm"
|
|
| 76 |
+ |
|
| 77 |
+ if has_version 'net-mail/vpopmail' ; then |
|
| 78 |
+ myconf="${myconf} --with-authvchkpw --without-authmysql --without-authpgsql"
|
|
| 79 |
+ use mysql && ewarn "vpopmail found. authmysql will not be built." |
|
| 80 |
+ use postgres && ewarn "vpopmail found. authpgsql will not be built." |
|
| 81 |
+ else |
|
| 82 |
+ myconf="${myconf} --without-authvchkpw $(use_with mysql authmysql) $(use_with postgres authpgsql)"
|
|
| 83 |
+ fi |
|
| 84 |
+ |
|
| 85 |
+ use debug && myconf="${myconf} debug=true"
|
|
| 86 |
+ |
|
| 87 |
+ einfo "Configuring courier-authlib: ${myconf}"
|
|
| 88 |
+ |
|
| 89 |
+ econf \ |
|
| 90 |
+ --sysconfdir=/etc/courier \ |
|
| 91 |
+ --datadir=/usr/share/courier \ |
|
| 92 |
+ --libexecdir=/usr/$(get_libdir)/courier \ |
|
| 93 |
+ --localstatedir=/var/lib/courier \ |
|
| 94 |
+ --sharedstatedir=/var/lib/courier/com \ |
|
| 95 |
+ --with-authdaemonvar=/var/lib/courier/authdaemon \ |
|
| 96 |
+ --with-authshadow \ |
|
| 97 |
+ --without-redhat \ |
|
| 98 |
+ --with-mailuser=mail \ |
|
| 99 |
+ --with-mailgroup=mail \ |
|
| 100 |
+ --cache-file="${S}/configuring.cache" \
|
|
| 101 |
+ ${myconf} || die "econf failed"
|
|
| 102 |
+ emake || die "emake failed" |
|
| 103 |
+} |
|
| 104 |
+ |
|
| 105 |
+orderfirst() {
|
|
| 106 |
+ file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}"
|
|
| 107 |
+ if [ -e "${file}" ] ; then
|
|
| 108 |
+ orig="$(grep \"^${option}=\" ${file} | cut -d'\"' -f 2)"
|
|
| 109 |
+ new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\""
|
|
| 110 |
+ sed -i -e"s/^${option}=.*$/${new}/" ${file}
|
|
| 111 |
+ fi |
|
| 112 |
+} |
|
| 113 |
+ |
|
| 114 |
+finduserdb() {
|
|
| 115 |
+ for dir in \ |
|
| 116 |
+ /etc/courier/authlib /etc/courier /etc/courier-imap \ |
|
| 117 |
+ /usr/lib/courier/etc /usr/lib/courier-imap/etc \ |
|
| 118 |
+ /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \ |
|
| 119 |
+ /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \ |
|
| 120 |
+ /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do |
|
| 121 |
+ if [ -e "$dir/userdb" ]; then |
|
| 122 |
+ einfo "found $dir/userdb" |
|
| 123 |
+ cp -v $dir/userdb ${D}/etc/courier/authlib/
|
|
| 124 |
+ chmod go-rwx ${D}/etc/courier/authlib/userdb
|
|
| 125 |
+ continue |
|
| 126 |
+ fi |
|
| 127 |
+ done |
|
| 128 |
+} |
|
| 129 |
+ |
|
| 130 |
+src_install() {
|
|
| 131 |
+ diropts -o mail -g mail |
|
| 132 |
+ dodir /etc/courier |
|
| 133 |
+ keepdir /var/lib/courier/authdaemon |
|
| 134 |
+ keepdir /etc/courier/authlib |
|
| 135 |
+ emake install DESTDIR="${D}" || die "install failed"
|
|
| 136 |
+ emake install-migrate DESTDIR="${D}" || die "migrate failed"
|
|
| 137 |
+ [ ! -e "${D}/etc/courier/authlib/userdb" ] && finduserdb
|
|
| 138 |
+ emake install-configure DESTDIR="${D}" || die "install-configure failed"
|
|
| 139 |
+ rm -vf ${D}/etc/courier/authlib/*.bak
|
|
| 140 |
+ chown mail:mail ${D}/etc/courier/authlib/*
|
|
| 141 |
+ for y in ${D}/etc/courier/authlib/*.dist ; do
|
|
| 142 |
+ [ ! -e "${y%%.dist}" ] && cp -v ${y} ${y%%.dist}
|
|
| 143 |
+ done |
|
| 144 |
+ use pam && orderfirst authdaemonrc authmodulelist authpam |
|
| 145 |
+ use ldap && orderfirst authdaemonrc authmodulelist authldap |
|
| 146 |
+ use postgres && orderfirst authdaemonrc authmodulelist authpgsql |
|
| 147 |
+ use mysql && orderfirst authdaemonrc authmodulelist authmysql |
|
| 148 |
+ dodoc AUTHORS COPYING ChangeLog* INSTALL NEWS README |
|
| 149 |
+ dohtml README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html |
|
| 150 |
+ if use mysql; then |
|
| 151 |
+ dodoc README.authmysql.myownquery |
|
| 152 |
+ dohtml README.authmysql.html |
|
| 153 |
+ fi |
|
| 154 |
+ use postgres && dohtml README.authpostgres.html README.authmysql.html |
|
| 155 |
+ if use ldap; then |
|
| 156 |
+ dodoc README.ldap |
|
| 157 |
+ dodir /etc/openldap/schema |
|
| 158 |
+ cp authldap.schema "${D}/etc/openldap/schema/"
|
|
| 159 |
+ fi |
|
| 160 |
+ doinitd "${FILESDIR}/${PN}" || die "doinitd failed"
|
|
| 161 |
+} |
|
| 162 |
+ |
|
| 163 |
+pkg_postinst() {
|
|
| 164 |
+ if [ -e /etc/courier/authlib/userdb ]; then |
|
| 165 |
+ einfo "running makeuserdb" |
|
| 166 |
+ chmod go-rwx /etc/courier/authlib/userdb |
|
| 167 |
+ makeuserdb |
|
| 168 |
+ fi |
|
| 169 |
+ |
|
| 170 |
+ # Suggest cleaning out the following old files |
|
| 171 |
+ list="$(find /etc/courier -type f -maxdepth 1 | grep \"^/etc/courier/auth\")" |
|
| 172 |
+ if [ ! -z "${list}" ] ; then
|
|
| 173 |
+ ewarn "Courier authentication files are now in /etc/courier/authlib/" |
|
| 174 |
+ elog "The following files are no longer needed and can likely be removed:" |
|
| 175 |
+ elog " rm $(echo \"${list}\")"
|
|
| 176 |
+ fi |
|
| 177 |
+} |
| ... | ... |
@@ -0,0 +1,185 @@ |
| 1 |
+# Copyright 1999-2007 Gentoo Foundation |
|
| 2 |
+# Distributed under the terms of the GNU General Public License v2 |
|
| 3 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/courier-authlib-0.59.2.ebuild,v 1.2 2007/05/08 22:50:40 genone Exp $ |
|
| 4 |
+ |
|
| 5 |
+WANT_AUTOCONF="latest" |
|
| 6 |
+WANT_AUTOMAKE="latest" |
|
| 7 |
+ |
|
| 8 |
+inherit eutils flag-o-matic autotools |
|
| 9 |
+ |
|
| 10 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
|
| 11 |
+ |
|
| 12 |
+DESCRIPTION="Courier authentication library." |
|
| 13 |
+SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
|
|
| 14 |
+HOMEPAGE="http://www.courier-mta.org/" |
|
| 15 |
+LICENSE="GPL-2" |
|
| 16 |
+SLOT="0" |
|
| 17 |
+IUSE="berkdb crypt debug gdbm ldap mysql pam postgres vpopmail" |
|
| 18 |
+ |
|
| 19 |
+RESTRICT="userpriv" |
|
| 20 |
+ |
|
| 21 |
+RDEPEND="gdbm? ( sys-libs/gdbm ) |
|
| 22 |
+ !gdbm? ( sys-libs/db )" |
|
| 23 |
+ |
|
| 24 |
+DEPEND="${RDEPEND}
|
|
| 25 |
+ >=dev-libs/openssl-0.9.6 |
|
| 26 |
+ ldap? ( >=net-nds/openldap-1.2.11 ) |
|
| 27 |
+ mysql? ( virtual/mysql ) |
|
| 28 |
+ pam? ( virtual/pam ) |
|
| 29 |
+ postgres? ( >=dev-db/postgresql-7.2 )" |
|
| 30 |
+ |
|
| 31 |
+pkg_setup() {
|
|
| 32 |
+ enewuser mail -1 -1 /var/spool/mail |
|
| 33 |
+ |
|
| 34 |
+ if ! has_version 'dev-tcltk/expect' ; then |
|
| 35 |
+ ewarn 'The dev-tcltk/expect package is not installed.' |
|
| 36 |
+ ewarn 'Without it, you will not be able to change system login passwords.' |
|
| 37 |
+ ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,' |
|
| 38 |
+ ewarn 'and others) will work just fine.' |
|
| 39 |
+ fi |
|
| 40 |
+} |
|
| 41 |
+ |
|
| 42 |
+src_unpack() {
|
|
| 43 |
+ unpack ${A}
|
|
| 44 |
+ cd "${S}"
|
|
| 45 |
+ |
|
| 46 |
+ sed -i -e "s|^chk_file .* |&\${DESTDIR}|g" authmigrate.in || die "sed failed"
|
|
| 47 |
+ |
|
| 48 |
+ if use elibc_uclibc ; then |
|
| 49 |
+ sed -i -e 's:linux-gnu\*:linux-gnu\*\ \|\ linux-uclibc:' config.sub || die "sed failed" |
|
| 50 |
+ fi |
|
| 51 |
+ |
|
| 52 |
+ if ! use gdbm ; then |
|
| 53 |
+ epatch "${FILESDIR}/${PV}-configure-db4.patch"
|
|
| 54 |
+ else |
|
| 55 |
+ epatch "${FILESDIR}/${PV}-remove-obsolete-macro.patch"
|
|
| 56 |
+ fi |
|
| 57 |
+ |
|
| 58 |
+ sed -i -e'/for dir in/a@@INDENT@@/etc/courier-imap \\' authmigrate.in || die "sed failed" |
|
| 59 |
+ sed -i -e'/for dir in/a@@INDENT@@/etc/courier/authlib \\' authmigrate.in || die "sed failed" |
|
| 60 |
+ sed -i -e"s|@@INDENT@@| |g" authmigrate.in || die "sed failed" |
|
| 61 |
+ sed -i -e"s|\$sbindir/makeuserdb||g" authmigrate.in || die "sed failed" |
|
| 62 |
+ |
|
| 63 |
+ eautoreconf |
|
| 64 |
+} |
|
| 65 |
+ |
|
| 66 |
+src_compile() {
|
|
| 67 |
+ filter-flags -fomit-frame-pointer |
|
| 68 |
+ |
|
| 69 |
+ local myconf="" |
|
| 70 |
+ |
|
| 71 |
+ myconf="${myconf} `use_with pam authpam`"
|
|
| 72 |
+ myconf="${myconf} `use_with ldap authldap`"
|
|
| 73 |
+ |
|
| 74 |
+ if use berkdb ; then |
|
| 75 |
+ if use gdbm ; then |
|
| 76 |
+ ewarn "Both gdbm and berkdb selected. Using gdbm." |
|
| 77 |
+ else |
|
| 78 |
+ myconf="${myconf} --with-db=db"
|
|
| 79 |
+ fi |
|
| 80 |
+ fi |
|
| 81 |
+ use gdbm && myconf="${myconf} --with-db=gdbm"
|
|
| 82 |
+ |
|
| 83 |
+ if use vpopmail ; then |
|
| 84 |
+ myconf="${myconf} --with-authvchkpw --without-authmysql --without-authpgsql"
|
|
| 85 |
+ use mysql && ewarn "Building vpopmail support instead of authmysql" |
|
| 86 |
+ use postgres && ewarn "Building vpopmail support instead of authpgsql" |
|
| 87 |
+ else |
|
| 88 |
+ myconf="${myconf} --without-authvchkpw `use_with mysql authmysql` `use_with postgres authpgsql`"
|
|
| 89 |
+ fi |
|
| 90 |
+ |
|
| 91 |
+ use debug && myconf="${myconf} debug=true"
|
|
| 92 |
+ |
|
| 93 |
+ einfo "Configuring courier-authlib: ${myconf}"
|
|
| 94 |
+ |
|
| 95 |
+ econf \ |
|
| 96 |
+ --sysconfdir=/etc/courier \ |
|
| 97 |
+ --datadir=/usr/share/courier \ |
|
| 98 |
+ --libexecdir=/usr/$(get_libdir)/courier \ |
|
| 99 |
+ --localstatedir=/var/lib/courier \ |
|
| 100 |
+ --sharedstatedir=/var/lib/courier/com \ |
|
| 101 |
+ --with-authdaemonvar=/var/lib/courier/authdaemon \ |
|
| 102 |
+ --with-authshadow \ |
|
| 103 |
+ --without-redhat \ |
|
| 104 |
+ --with-mailuser=mail \ |
|
| 105 |
+ --with-mailgroup=mail \ |
|
| 106 |
+ --cache-file="${S}/configuring.cache" \
|
|
| 107 |
+ ${myconf} || die "econf failed"
|
|
| 108 |
+ emake || die "emake failed" |
|
| 109 |
+} |
|
| 110 |
+ |
|
| 111 |
+orderfirst() {
|
|
| 112 |
+ file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}"
|
|
| 113 |
+ if [[ -e "${file}" ]] ; then
|
|
| 114 |
+ orig="$(grep \"^${option}=\" ${file} | cut -d'\"' -f 2)"
|
|
| 115 |
+ new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\""
|
|
| 116 |
+ sed -i -e "s/^${option}=.*$/${new}/" "${file}"
|
|
| 117 |
+ fi |
|
| 118 |
+} |
|
| 119 |
+ |
|
| 120 |
+finduserdb() {
|
|
| 121 |
+ for dir in \ |
|
| 122 |
+ /etc/courier/authlib /etc/courier /etc/courier-imap \ |
|
| 123 |
+ /usr/lib/courier/etc /usr/lib/courier-imap/etc \ |
|
| 124 |
+ /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \ |
|
| 125 |
+ /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \ |
|
| 126 |
+ /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do |
|
| 127 |
+ if [[ -e "${dir}/userdb" ]] ; then
|
|
| 128 |
+ einfo "Found userdb at: ${dir}/userdb"
|
|
| 129 |
+ cp -f "${dir}/userdb" "${D}/etc/courier/authlib/"
|
|
| 130 |
+ chmod go-rwx "${D}/etc/courier/authlib/userdb"
|
|
| 131 |
+ continue |
|
| 132 |
+ fi |
|
| 133 |
+ done |
|
| 134 |
+} |
|
| 135 |
+ |
|
| 136 |
+src_install() {
|
|
| 137 |
+ diropts -o mail -g mail |
|
| 138 |
+ dodir /etc/courier |
|
| 139 |
+ keepdir /var/lib/courier/authdaemon |
|
| 140 |
+ keepdir /etc/courier/authlib |
|
| 141 |
+ emake DESTDIR="${D}" install || die "emake install failed"
|
|
| 142 |
+ emake DESTDIR="${D}" install-migrate|| die "emake install-migrate failed"
|
|
| 143 |
+ [[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb
|
|
| 144 |
+ emake DESTDIR="${D}" install-configure || die "emake install-configure failed"
|
|
| 145 |
+ rm -f "${D}"/etc/courier/authlib/*.bak
|
|
| 146 |
+ chown mail:mail "${D}"/etc/courier/authlib/*
|
|
| 147 |
+ for y in "${D}"/etc/courier/authlib/*.dist ; do
|
|
| 148 |
+ [[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}"
|
|
| 149 |
+ done |
|
| 150 |
+ use pam && orderfirst authdaemonrc authmodulelist authpam |
|
| 151 |
+ use ldap && orderfirst authdaemonrc authmodulelist authldap |
|
| 152 |
+ use postgres && orderfirst authdaemonrc authmodulelist authpgsql |
|
| 153 |
+ use mysql && orderfirst authdaemonrc authmodulelist authmysql |
|
| 154 |
+ dodoc AUTHORS COPYING ChangeLog* INSTALL NEWS README |
|
| 155 |
+ dohtml README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html |
|
| 156 |
+ if use mysql ; then |
|
| 157 |
+ dodoc README.authmysql.myownquery |
|
| 158 |
+ dohtml README.authmysql.html |
|
| 159 |
+ fi |
|
| 160 |
+ if use postgres ; then |
|
| 161 |
+ dohtml README.authpostgres.html README.authmysql.html |
|
| 162 |
+ fi |
|
| 163 |
+ if use ldap ; then |
|
| 164 |
+ dodoc README.ldap |
|
| 165 |
+ dodir /etc/openldap/schema |
|
| 166 |
+ cp -f authldap.schema "${D}/etc/openldap/schema/"
|
|
| 167 |
+ fi |
|
| 168 |
+ doinitd "${FILESDIR}/${PN}" || die "doinitd failed"
|
|
| 169 |
+} |
|
| 170 |
+ |
|
| 171 |
+pkg_postinst() {
|
|
| 172 |
+ if [[ -e /etc/courier/authlib/userdb ]] ; then |
|
| 173 |
+ einfo "Running makeuserdb ..." |
|
| 174 |
+ chmod go-rwx /etc/courier/authlib/userdb |
|
| 175 |
+ makeuserdb |
|
| 176 |
+ fi |
|
| 177 |
+ |
|
| 178 |
+ # Suggest cleaning out the following old files |
|
| 179 |
+ list="$(find /etc/courier -maxdepth 1 -type f | grep \"^/etc/courier/auth\")" |
|
| 180 |
+ if [[ ! -z "${list}" ]] ; then
|
|
| 181 |
+ ewarn "Courier authentication files are now in /etc/courier/authlib/" |
|
| 182 |
+ elog "The following files are no longer needed and can likely be removed:" |
|
| 183 |
+ elog " rm $(echo \"${list}\")"
|
|
| 184 |
+ fi |
|
| 185 |
+} |
| ... | ... |
@@ -0,0 +1,185 @@ |
| 1 |
+# Copyright 1999-2007 Gentoo Foundation |
|
| 2 |
+# Distributed under the terms of the GNU General Public License v2 |
|
| 3 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/courier-authlib-0.59.2.ebuild,v 1.2 2007/05/08 22:50:40 genone Exp $ |
|
| 4 |
+ |
|
| 5 |
+WANT_AUTOCONF="latest" |
|
| 6 |
+WANT_AUTOMAKE="latest" |
|
| 7 |
+ |
|
| 8 |
+inherit eutils flag-o-matic autotools |
|
| 9 |
+ |
|
| 10 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
|
| 11 |
+ |
|
| 12 |
+DESCRIPTION="Courier authentication library." |
|
| 13 |
+SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
|
|
| 14 |
+HOMEPAGE="http://www.courier-mta.org/" |
|
| 15 |
+LICENSE="GPL-2" |
|
| 16 |
+SLOT="0" |
|
| 17 |
+IUSE="berkdb crypt debug gdbm ldap mysql pam postgres vpopmail" |
|
| 18 |
+ |
|
| 19 |
+RESTRICT="userpriv" |
|
| 20 |
+ |
|
| 21 |
+RDEPEND="gdbm? ( sys-libs/gdbm ) |
|
| 22 |
+ !gdbm? ( sys-libs/db )" |
|
| 23 |
+ |
|
| 24 |
+DEPEND="${RDEPEND}
|
|
| 25 |
+ >=dev-libs/openssl-0.9.6 |
|
| 26 |
+ ldap? ( >=net-nds/openldap-1.2.11 ) |
|
| 27 |
+ mysql? ( virtual/mysql ) |
|
| 28 |
+ pam? ( virtual/pam ) |
|
| 29 |
+ postgres? ( >=dev-db/postgresql-7.2 )" |
|
| 30 |
+ |
|
| 31 |
+pkg_setup() {
|
|
| 32 |
+ enewuser mail -1 -1 /var/spool/mail |
|
| 33 |
+ |
|
| 34 |
+ if ! has_version 'dev-tcltk/expect' ; then |
|
| 35 |
+ ewarn 'The dev-tcltk/expect package is not installed.' |
|
| 36 |
+ ewarn 'Without it, you will not be able to change system login passwords.' |
|
| 37 |
+ ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,' |
|
| 38 |
+ ewarn 'and others) will work just fine.' |
|
| 39 |
+ fi |
|
| 40 |
+} |
|
| 41 |
+ |
|
| 42 |
+src_unpack() {
|
|
| 43 |
+ unpack ${A}
|
|
| 44 |
+ cd "${S}"
|
|
| 45 |
+ |
|
| 46 |
+ sed -i -e "s|^chk_file .* |&\${DESTDIR}|g" authmigrate.in || die "sed failed"
|
|
| 47 |
+ |
|
| 48 |
+ if use elibc_uclibc ; then |
|
| 49 |
+ sed -i -e 's:linux-gnu\*:linux-gnu\*\ \|\ linux-uclibc:' config.sub || die "sed failed" |
|
| 50 |
+ fi |
|
| 51 |
+ |
|
| 52 |
+ if ! use gdbm ; then |
|
| 53 |
+ epatch "${FILESDIR}/${PV}-configure-db4.patch"
|
|
| 54 |
+ else |
|
| 55 |
+ epatch "${FILESDIR}/${PV}-remove-obsolete-macro.patch"
|
|
| 56 |
+ fi |
|
| 57 |
+ |
|
| 58 |
+ sed -i -e'/for dir in/a@@INDENT@@/etc/courier-imap \\' authmigrate.in || die "sed failed" |
|
| 59 |
+ sed -i -e'/for dir in/a@@INDENT@@/etc/courier/authlib \\' authmigrate.in || die "sed failed" |
|
| 60 |
+ sed -i -e"s|@@INDENT@@| |g" authmigrate.in || die "sed failed" |
|
| 61 |
+ sed -i -e"s|\$sbindir/makeuserdb||g" authmigrate.in || die "sed failed" |
|
| 62 |
+ |
|
| 63 |
+ eautoreconf |
|
| 64 |
+} |
|
| 65 |
+ |
|
| 66 |
+src_compile() {
|
|
| 67 |
+ filter-flags -fomit-frame-pointer |
|
| 68 |
+ |
|
| 69 |
+ local myconf="" |
|
| 70 |
+ |
|
| 71 |
+ myconf="${myconf} `use_with pam authpam`"
|
|
| 72 |
+ myconf="${myconf} `use_with ldap authldap`"
|
|
| 73 |
+ |
|
| 74 |
+ if use berkdb ; then |
|
| 75 |
+ if use gdbm ; then |
|
| 76 |
+ ewarn "Both gdbm and berkdb selected. Using gdbm." |
|
| 77 |
+ else |
|
| 78 |
+ myconf="${myconf} --with-db=db"
|
|
| 79 |
+ fi |
|
| 80 |
+ fi |
|
| 81 |
+ use gdbm && myconf="${myconf} --with-db=gdbm"
|
|
| 82 |
+ |
|
| 83 |
+ if use vpopmail ; then |
|
| 84 |
+ myconf="${myconf} --with-authvchkpw --without-authmysql --without-authpgsql"
|
|
| 85 |
+ use mysql && ewarn "Building vpopmail support instead of authmysql" |
|
| 86 |
+ use postgres && ewarn "Building vpopmail support instead of authpgsql" |
|
| 87 |
+ else |
|
| 88 |
+ myconf="${myconf} --without-authvchkpw `use_with mysql authmysql` `use_with postgres authpgsql`"
|
|
| 89 |
+ fi |
|
| 90 |
+ |
|
| 91 |
+ use debug && myconf="${myconf} debug=true"
|
|
| 92 |
+ |
|
| 93 |
+ einfo "Configuring courier-authlib: ${myconf}"
|
|
| 94 |
+ |
|
| 95 |
+ econf \ |
|
| 96 |
+ --sysconfdir=/etc/courier \ |
|
| 97 |
+ --datadir=/usr/share/courier \ |
|
| 98 |
+ --libexecdir=/usr/$(get_libdir)/courier \ |
|
| 99 |
+ --localstatedir=/var/lib/courier \ |
|
| 100 |
+ --sharedstatedir=/var/lib/courier/com \ |
|
| 101 |
+ --with-authdaemonvar=/var/lib/courier/authdaemon \ |
|
| 102 |
+ --with-authshadow \ |
|
| 103 |
+ --without-redhat \ |
|
| 104 |
+ --with-mailuser=mail \ |
|
| 105 |
+ --with-mailgroup=mail \ |
|
| 106 |
+ --cache-file="${S}/configuring.cache" \
|
|
| 107 |
+ ${myconf} || die "econf failed"
|
|
| 108 |
+ emake || die "emake failed" |
|
| 109 |
+} |
|
| 110 |
+ |
|
| 111 |
+orderfirst() {
|
|
| 112 |
+ file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}"
|
|
| 113 |
+ if [[ -e "${file}" ]] ; then
|
|
| 114 |
+ orig="$(grep \"^${option}=\" ${file} | cut -d'\"' -f 2)"
|
|
| 115 |
+ new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\""
|
|
| 116 |
+ sed -i -e "s/^${option}=.*$/${new}/" "${file}"
|
|
| 117 |
+ fi |
|
| 118 |
+} |
|
| 119 |
+ |
|
| 120 |
+finduserdb() {
|
|
| 121 |
+ for dir in \ |
|
| 122 |
+ /etc/courier/authlib /etc/courier /etc/courier-imap \ |
|
| 123 |
+ /usr/lib/courier/etc /usr/lib/courier-imap/etc \ |
|
| 124 |
+ /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \ |
|
| 125 |
+ /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \ |
|
| 126 |
+ /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do |
|
| 127 |
+ if [[ -e "${dir}/userdb" ]] ; then
|
|
| 128 |
+ einfo "Found userdb at: ${dir}/userdb"
|
|
| 129 |
+ cp -f "${dir}/userdb" "${D}/etc/courier/authlib/"
|
|
| 130 |
+ chmod go-rwx "${D}/etc/courier/authlib/userdb"
|
|
| 131 |
+ continue |
|
| 132 |
+ fi |
|
| 133 |
+ done |
|
| 134 |
+} |
|
| 135 |
+ |
|
| 136 |
+src_install() {
|
|
| 137 |
+ diropts -o mail -g mail |
|
| 138 |
+ dodir /etc/courier |
|
| 139 |
+ keepdir /var/lib/courier/authdaemon |
|
| 140 |
+ keepdir /etc/courier/authlib |
|
| 141 |
+ emake DESTDIR="${D}" install || die "emake install failed"
|
|
| 142 |
+ emake DESTDIR="${D}" install-migrate|| die "emake install-migrate failed"
|
|
| 143 |
+ [[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb
|
|
| 144 |
+ emake DESTDIR="${D}" install-configure || die "emake install-configure failed"
|
|
| 145 |
+ rm -f "${D}"/etc/courier/authlib/*.bak
|
|
| 146 |
+ chown mail:mail "${D}"/etc/courier/authlib/*
|
|
| 147 |
+ for y in "${D}"/etc/courier/authlib/*.dist ; do
|
|
| 148 |
+ [[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}"
|
|
| 149 |
+ done |
|
| 150 |
+ use pam && orderfirst authdaemonrc authmodulelist authpam |
|
| 151 |
+ use ldap && orderfirst authdaemonrc authmodulelist authldap |
|
| 152 |
+ use postgres && orderfirst authdaemonrc authmodulelist authpgsql |
|
| 153 |
+ use mysql && orderfirst authdaemonrc authmodulelist authmysql |
|
| 154 |
+ dodoc AUTHORS COPYING ChangeLog* INSTALL NEWS README |
|
| 155 |
+ dohtml README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html |
|
| 156 |
+ if use mysql ; then |
|
| 157 |
+ dodoc README.authmysql.myownquery |
|
| 158 |
+ dohtml README.authmysql.html |
|
| 159 |
+ fi |
|
| 160 |
+ if use postgres ; then |
|
| 161 |
+ dohtml README.authpostgres.html README.authmysql.html |
|
| 162 |
+ fi |
|
| 163 |
+ if use ldap ; then |
|
| 164 |
+ dodoc README.ldap |
|
| 165 |
+ dodir /etc/openldap/schema |
|
| 166 |
+ cp -f authldap.schema "${D}/etc/openldap/schema/"
|
|
| 167 |
+ fi |
|
| 168 |
+ doinitd "${FILESDIR}/${PN}" || die "doinitd failed"
|
|
| 169 |
+} |
|
| 170 |
+ |
|
| 171 |
+pkg_postinst() {
|
|
| 172 |
+ if [[ -e /etc/courier/authlib/userdb ]] ; then |
|
| 173 |
+ einfo "Running makeuserdb ..." |
|
| 174 |
+ chmod go-rwx /etc/courier/authlib/userdb |
|
| 175 |
+ makeuserdb |
|
| 176 |
+ fi |
|
| 177 |
+ |
|
| 178 |
+ # Suggest cleaning out the following old files |
|
| 179 |
+ list="$(find /etc/courier -maxdepth 1 -type f | grep \"^/etc/courier/auth\")" |
|
| 180 |
+ if [[ ! -z "${list}" ]] ; then
|
|
| 181 |
+ ewarn "Courier authentication files are now in /etc/courier/authlib/" |
|
| 182 |
+ elog "The following files are no longer needed and can likely be removed:" |
|
| 183 |
+ elog " rm $(echo \"${list}\")"
|
|
| 184 |
+ fi |
|
| 185 |
+} |
| ... | ... |
@@ -0,0 +1,68 @@ |
| 1 |
+--- configure.in.orig 2004-11-02 14:46:22.000000000 -0800 |
|
| 2 |
++++ configure.in 2004-11-02 14:51:02.531958000 -0800 |
|
| 3 |
+@@ -26,7 +26,6 @@ |
|
| 4 |
+ AC_PROG_CPP |
|
| 5 |
+ AC_PROG_INSTALL |
|
| 6 |
+ AC_PROG_LN_S |
|
| 7 |
+-AC_PROG_SYSCONFTOOL |
|
| 8 |
+ AC_SUBST(LTDLINCL) |
|
| 9 |
+ AC_SUBST(LIBLTDL) |
|
| 10 |
+ AC_LIBTOOL_DLOPEN |
|
| 11 |
+@@ -284,15 +283,17 @@ |
|
| 12 |
+ |
|
| 13 |
+ if test "$db" != "gdbm" |
|
| 14 |
+ then |
|
| 15 |
+- AC_CHECK_LIB(db, dbopen, [ LIBDB=-ldb ; LIBS="-ldb $LIBS" ], |
|
| 16 |
+- [ AC_CHECK_LIB(db, db_open, [ LIBDB=-ldb ; LIBS="-ldb $LIBS"], |
|
| 17 |
+- [ AC_CHECK_LIB(db, db_env_create, |
|
| 18 |
+- [ LIBDB=-ldb; LIBS="-ldb $LIBS"]) ] |
|
| 19 |
+- )]) |
|
| 20 |
+- |
|
| 21 |
+- AC_CHECK_FUNC(dbopen, HAVE_BDB=1) |
|
| 22 |
+- AC_CHECK_FUNC(db_open, HAVE_BDB=1) |
|
| 23 |
+- AC_CHECK_FUNC(db_env_create, HAVE_BDB=1) |
|
| 24 |
++ for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db |
|
| 25 |
++ do |
|
| 26 |
++ AC_CHECK_LIB($dbname, db_create_4002, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ], |
|
| 27 |
++ AC_CHECK_LIB($dbname, db_create_4001, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ], |
|
| 28 |
++ AC_CHECK_LIB($dbname, db_create_4000, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ], |
|
| 29 |
++ AC_CHECK_LIB($dbname, db_create, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ])))) |
|
| 30 |
++ done |
|
| 31 |
++ AC_CHECK_FUNC(db_create_4002, HAVE_BDB=1) |
|
| 32 |
++ AC_CHECK_FUNC(db_create_4001, HAVE_BDB=1) |
|
| 33 |
++ AC_CHECK_FUNC(db_create_4000, HAVE_BDB=1) |
|
| 34 |
++ AC_CHECK_FUNC(db_create, HAVE_BDB=1) |
|
| 35 |
+ fi |
|
| 36 |
+ |
|
| 37 |
+ LIBS="$saveLIBS" |
|
| 38 |
+--- bdbobj/configure.in 2001-09-18 18:26:28.000000000 -0700 |
|
| 39 |
++++ bdbobj/configure.in 2004-08-14 16:15:08.469316646 -0700 |
|
| 40 |
+@@ -21,15 +21,19 @@ |
|
| 41 |
+ dnl Checks for libraries. |
|
| 42 |
+ |
|
| 43 |
+ saveLIBS="$LIBS" |
|
| 44 |
+-AC_CHECK_LIB(db, dbopen, [ LIBDB=-ldb ; LIBS="-ldb $LIBS" ], |
|
| 45 |
+- AC_CHECK_LIB(db, db_open, [ LIBDB=-ldb ; LIBS="-ldb $LIBS"], |
|
| 46 |
+- AC_CHECK_LIB(db, db_env_create, [ LIBDB=-ldb; LIBS="-ldb $LIBS"]) |
|
| 47 |
+- )) |
|
| 48 |
+- |
|
| 49 |
+-FOUND_DB=0 |
|
| 50 |
+-AC_CHECK_FUNC(dbopen, FOUND_DB=1) |
|
| 51 |
+-AC_CHECK_FUNC(db_open, FOUND_DB=1) |
|
| 52 |
+-AC_CHECK_FUNC(db_env_create, FOUND_DB=1) |
|
| 53 |
++for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db |
|
| 54 |
++ do |
|
| 55 |
++ AC_CHECK_LIB($dbname, db_create_4002, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ], |
|
| 56 |
++ AC_CHECK_LIB($dbname, db_create_4001, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ], |
|
| 57 |
++ AC_CHECK_LIB($dbname, db_create_4000, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ], |
|
| 58 |
++ AC_CHECK_LIB($dbname, db_create, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ])))) |
|
| 59 |
++ |
|
| 60 |
++ done |
|
| 61 |
++FOUND_DB=0 |
|
| 62 |
++AC_CHECK_FUNC(db_create_4002, FOUND_DB=1) |
|
| 63 |
++AC_CHECK_FUNC(db_create_4001, FOUND_DB=1) |
|
| 64 |
++AC_CHECK_FUNC(db_create_4000, FOUND_DB=1) |
|
| 65 |
++AC_CHECK_FUNC(db_create, FOUND_DB=1) |
|
| 66 |
+ |
|
| 67 |
+ LIBS="$saveLIBS" |
|
| 68 |
+ |
| ... | ... |
@@ -0,0 +1,10 @@ |
| 1 |
+--- configure.in.orig 2004-11-02 14:46:22.000000000 -0800 |
|
| 2 |
++++ configure.in 2004-11-02 14:51:02.531958000 -0800 |
|
| 3 |
+@@ -26,7 +26,6 @@ |
|
| 4 |
+ AC_PROG_CPP |
|
| 5 |
+ AC_PROG_INSTALL |
|
| 6 |
+ AC_PROG_LN_S |
|
| 7 |
+-AC_PROG_SYSCONFTOOL |
|
| 8 |
+ AC_SUBST(LTDLINCL) |
|
| 9 |
+ AC_SUBST(LIBLTDL) |
|
| 10 |
+ AC_LIBTOOL_DLOPEN |
| ... | ... |
@@ -0,0 +1,68 @@ |
| 1 |
+--- configure.in.orig 2007-01-17 02:15:46.000000000 +0000 |
|
| 2 |
++++ configure.in 2007-02-03 19:52:48.000000000 +0000 |
|
| 3 |
+@@ -22,7 +22,6 @@ |
|
| 4 |
+ AC_PROG_CPP |
|
| 5 |
+ AC_PROG_INSTALL |
|
| 6 |
+ AC_PROG_LN_S |
|
| 7 |
+-AC_PROG_SYSCONFTOOL |
|
| 8 |
+ AC_LIBLTDL_INSTALLABLE |
|
| 9 |
+ AC_LIBTOOL_DLOPEN |
|
| 10 |
+ AM_PROG_LIBTOOL |
|
| 11 |
+@@ -264,15 +263,17 @@ |
|
| 12 |
+ |
|
| 13 |
+ if test "$db" != "gdbm" |
|
| 14 |
+ then |
|
| 15 |
+- AC_CHECK_LIB(db, dbopen, [ LIBDB=-ldb ; LIBS="-ldb $LIBS" ], |
|
| 16 |
+- [ AC_CHECK_LIB(db, db_open, [ LIBDB=-ldb ; LIBS="-ldb $LIBS"], |
|
| 17 |
+- [ AC_CHECK_LIB(db, db_env_create, |
|
| 18 |
+- [ LIBDB=-ldb; LIBS="-ldb $LIBS"]) ] |
|
| 19 |
+- )]) |
|
| 20 |
+- |
|
| 21 |
+- AC_CHECK_FUNC(dbopen, HAVE_BDB=1) |
|
| 22 |
+- AC_CHECK_FUNC(db_open, HAVE_BDB=1) |
|
| 23 |
+- AC_CHECK_FUNC(db_env_create, HAVE_BDB=1) |
|
| 24 |
++ for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db |
|
| 25 |
++ do |
|
| 26 |
++ AC_CHECK_LIB($dbname, db_create_4002, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ], |
|
| 27 |
++ AC_CHECK_LIB($dbname, db_create_4001, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ], |
|
| 28 |
++ AC_CHECK_LIB($dbname, db_create_4000, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ], |
|
| 29 |
++ AC_CHECK_LIB($dbname, db_create, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ])))) |
|
| 30 |
++ done |
|
| 31 |
++ AC_CHECK_FUNC(db_create_4002, HAVE_BDB=1) |
|
| 32 |
++ AC_CHECK_FUNC(db_create_4001, HAVE_BDB=1) |
|
| 33 |
++ AC_CHECK_FUNC(db_create_4000, HAVE_BDB=1) |
|
| 34 |
++ AC_CHECK_FUNC(db_create, HAVE_BDB=1) |
|
| 35 |
+ fi |
|
| 36 |
+ |
|
| 37 |
+ LIBS="$saveLIBS" |
|
| 38 |
+--- bdbobj/configure.in 2001-09-18 18:26:28.000000000 -0700 |
|
| 39 |
++++ bdbobj/configure.in 2004-08-14 16:15:08.469316646 -0700 |
|
| 40 |
+@@ -21,15 +21,19 @@ |
|
| 41 |
+ dnl Checks for libraries. |
|
| 42 |
+ |
|
| 43 |
+ saveLIBS="$LIBS" |
|
| 44 |
+-AC_CHECK_LIB(db, dbopen, [ LIBDB=-ldb ; LIBS="-ldb $LIBS" ], |
|
| 45 |
+- AC_CHECK_LIB(db, db_open, [ LIBDB=-ldb ; LIBS="-ldb $LIBS"], |
|
| 46 |
+- AC_CHECK_LIB(db, db_env_create, [ LIBDB=-ldb; LIBS="-ldb $LIBS"]) |
|
| 47 |
+- )) |
|
| 48 |
+- |
|
| 49 |
+-FOUND_DB=0 |
|
| 50 |
+-AC_CHECK_FUNC(dbopen, FOUND_DB=1) |
|
| 51 |
+-AC_CHECK_FUNC(db_open, FOUND_DB=1) |
|
| 52 |
+-AC_CHECK_FUNC(db_env_create, FOUND_DB=1) |
|
| 53 |
++for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db |
|
| 54 |
++ do |
|
| 55 |
++ AC_CHECK_LIB($dbname, db_create_4002, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ], |
|
| 56 |
++ AC_CHECK_LIB($dbname, db_create_4001, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ], |
|
| 57 |
++ AC_CHECK_LIB($dbname, db_create_4000, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ], |
|
| 58 |
++ AC_CHECK_LIB($dbname, db_create, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ])))) |
|
| 59 |
++ |
|
| 60 |
++ done |
|
| 61 |
++FOUND_DB=0 |
|
| 62 |
++AC_CHECK_FUNC(db_create_4002, FOUND_DB=1) |
|
| 63 |
++AC_CHECK_FUNC(db_create_4001, FOUND_DB=1) |
|
| 64 |
++AC_CHECK_FUNC(db_create_4000, FOUND_DB=1) |
|
| 65 |
++AC_CHECK_FUNC(db_create, FOUND_DB=1) |
|
| 66 |
+ |
|
| 67 |
+ LIBS="$saveLIBS" |
|
| 68 |
+ |
| ... | ... |
@@ -0,0 +1,10 @@ |
| 1 |
+--- configure.in.orig 2007-01-17 02:15:46.000000000 +0000 |
|
| 2 |
++++ configure.in 2007-02-03 19:58:19.000000000 +0000 |
|
| 3 |
+@@ -22,7 +22,6 @@ |
|
| 4 |
+ AC_PROG_CPP |
|
| 5 |
+ AC_PROG_INSTALL |
|
| 6 |
+ AC_PROG_LN_S |
|
| 7 |
+-AC_PROG_SYSCONFTOOL |
|
| 8 |
+ AC_LIBLTDL_INSTALLABLE |
|
| 9 |
+ AC_LIBTOOL_DLOPEN |
|
| 10 |
+ AM_PROG_LIBTOOL |
| ... | ... |
@@ -0,0 +1,10 @@ |
| 1 |
+--- configure.in.orig 2007-01-17 02:15:46.000000000 +0000 |
|
| 2 |
++++ configure.in 2007-02-03 19:58:19.000000000 +0000 |
|
| 3 |
+@@ -22,7 +22,6 @@ |
|
| 4 |
+ AC_PROG_CPP |
|
| 5 |
+ AC_PROG_INSTALL |
|
| 6 |
+ AC_PROG_LN_S |
|
| 7 |
+-AC_PROG_SYSCONFTOOL |
|
| 8 |
+ AC_LIBLTDL_INSTALLABLE |
|
| 9 |
+ AC_LIBTOOL_DLOPEN |
|
| 10 |
+ AM_PROG_LIBTOOL |
| ... | ... |
@@ -0,0 +1,41 @@ |
| 1 |
+#!/sbin/runscript |
|
| 2 |
+# Copyright 1999-2007 Gentoo Foundation |
|
| 3 |
+# Distributed under the terms of the GNU General Public License v2 |
|
| 4 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/files/courier-authlib,v 1.2 2007/04/08 14:10:55 chtekk Exp $ |
|
| 5 |
+ |
|
| 6 |
+depend() {
|
|
| 7 |
+ need net |
|
| 8 |
+ provide authdaemond |
|
| 9 |
+} |
|
| 10 |
+ |
|
| 11 |
+checkconfig() {
|
|
| 12 |
+ if [[ ! -e /etc/courier/authlib/authdaemonrc ]] ; then |
|
| 13 |
+ eerror "You need an /etc/courier/authlib/authdaemonrc file to run authdaemon" |
|
| 14 |
+ return 1 |
|
| 15 |
+ fi |
|
| 16 |
+} |
|
| 17 |
+ |
|
| 18 |
+setauth() {
|
|
| 19 |
+ source /etc/courier/authlib/authdaemonrc |
|
| 20 |
+ AUTHLIB="/usr/lib/courier/courier-authlib" |
|
| 21 |
+ AUTHDAEMOND="authdaemond" |
|
| 22 |
+ pidfile="/var/run/authdaemon.pid" |
|
| 23 |
+ logger="/usr/sbin/courierlogger" |
|
| 24 |
+ export DEBUG_LOGIN DEFAULTOPTIONS LOGGEROPTS |
|
| 25 |
+} |
|
| 26 |
+ |
|
| 27 |
+start() {
|
|
| 28 |
+ checkconfig || return 1 |
|
| 29 |
+ setauth |
|
| 30 |
+ ebegin "Starting courier-authlib: ${AUTHDAEMOND}"
|
|
| 31 |
+ start-stop-daemon --quiet --start --pidfile "${pidfile}" --exec \
|
|
| 32 |
+ /usr/bin/env ${logger} -- ${LOGGEROPTS} -pid="${pidfile}" -start "${AUTHLIB}/${AUTHDAEMOND}"
|
|
| 33 |
+ eend $? |
|
| 34 |
+} |
|
| 35 |
+ |
|
| 36 |
+stop() {
|
|
| 37 |
+ setauth |
|
| 38 |
+ ebegin "Stopping courier-authlib: ${AUTHDAEMOND}"
|
|
| 39 |
+ start-stop-daemon --quiet --stop --pidfile "${pidfile}"
|
|
| 40 |
+ eend $? |
|
| 41 |
+} |
| ... | ... |
@@ -0,0 +1,9 @@ |
| 1 |
+<?xml version="1.0" encoding="UTF-8"?> |
|
| 2 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
|
| 3 |
+<pkgmetadata> |
|
| 4 |
+ <herd>net-mail</herd> |
|
| 5 |
+ <maintainer> |
|
| 6 |
+ <email>chtekk@gentoo.org</email> |
|
| 7 |
+ <name>Luca Longinotti</name> |
|
| 8 |
+ </maintainer> |
|
| 9 |
+</pkgmetadata> |
|
| 0 | 10 |