Bernd Wurst commited on 2010-12-08 06:40:37
Zeige 25 geänderte Dateien mit 4652 Einfügungen und 0 Löschungen.
| ... | ... |
@@ -0,0 +1,901 @@ |
| 1 |
+# ChangeLog for mail-mta/courier |
|
| 2 |
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
|
| 3 |
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/ChangeLog,v 1.132 2010/12/05 20:54:48 mattst88 Exp $ |
|
| 4 |
+ |
|
| 5 |
+ 05 Dec 2010; Matt Turner <mattst88@gentoo.org> courier-0.59.0.ebuild, |
|
| 6 |
+ courier-0.60.0.ebuild, courier-0.61.1.ebuild, courier-0.61.2.ebuild, |
|
| 7 |
+ courier-0.62.2.ebuild, courier-0.63.0.ebuild, courier-0.64.0.ebuild, |
|
| 8 |
+ courier-0.64.1.ebuild, courier-0.65.0.ebuild: |
|
| 9 |
+ Drop ~mips keywords due to broken dependencies. Bug 247702. |
|
| 10 |
+ |
|
| 11 |
+ 24 Oct 2010; Brent Baude <ranger@gentoo.org> courier-0.64.1.ebuild: |
|
| 12 |
+ Marking courier-0.64.1 ppc for bug 319785 |
|
| 13 |
+ |
|
| 14 |
+ 16 Jul 2010; Christian Faulhammer <fauli@gentoo.org> |
|
| 15 |
+ courier-0.64.1.ebuild: |
|
| 16 |
+ stable x86, bug 319785 |
|
| 17 |
+ |
|
| 18 |
+*courier-0.65.0 (28 Jun 2010) |
|
| 19 |
+ |
|
| 20 |
+ 28 Jun 2010; Hanno Boeck <hanno@gentoo.org> +courier-0.65.0.ebuild: |
|
| 21 |
+ Version bump. |
|
| 22 |
+ |
|
| 23 |
+ 17 Jun 2010; Patrick Lauer <patrick@gentoo.org> courier-0.59.0.ebuild, |
|
| 24 |
+ courier-0.60.0.ebuild, courier-0.61.1.ebuild, courier-0.61.2.ebuild, |
|
| 25 |
+ courier-0.62.2.ebuild, courier-0.63.0.ebuild, courier-0.64.0.ebuild, |
|
| 26 |
+ courier-0.64.1.ebuild: |
|
| 27 |
+ Migrating away from deprecated postgres virtuals |
|
| 28 |
+ |
|
| 29 |
+ 19 May 2010; Jeroen Roovers <jer@gentoo.org> courier-0.64.1.ebuild: |
|
| 30 |
+ Stable for HPPA (bug #319785). |
|
| 31 |
+ |
|
| 32 |
+*courier-0.64.1 (08 Mar 2010) |
|
| 33 |
+ |
|
| 34 |
+ 08 Mar 2010; Hanno Boeck <hanno@gentoo.org> +courier-0.64.1.ebuild: |
|
| 35 |
+ Version bump. |
|
| 36 |
+ |
|
| 37 |
+ 31 Jan 2010; Torsten Veller <tove@gentoo.org> courier-0.59.0.ebuild, |
|
| 38 |
+ courier-0.60.0.ebuild, courier-0.61.1.ebuild, courier-0.61.2.ebuild: |
|
| 39 |
+ Change vecho to echo |
|
| 40 |
+ |
|
| 41 |
+*courier-0.64.0 (31 Jan 2010) |
|
| 42 |
+ |
|
| 43 |
+ 31 Jan 2010; Hanno Boeck <hanno@gentoo.org> +courier-0.64.0.ebuild: |
|
| 44 |
+ Version bump. |
|
| 45 |
+ |
|
| 46 |
+ 07 Jan 2010; Brent Baude <ranger@gentoo.org> courier-0.62.2.ebuild: |
|
| 47 |
+ Marking courier-0.62.2 ppc for bug 292087 |
|
| 48 |
+ |
|
| 49 |
+ 01 Jan 2010; Raúl Porcel <armin76@gentoo.org> courier-0.62.2.ebuild: |
|
| 50 |
+ alpha/ia64/sparc stable wrt #292087 |
|
| 51 |
+ |
|
| 52 |
+ 26 Dec 2009; Peter Volkov <pva@gentoo.org> courier-0.59.0.ebuild, |
|
| 53 |
+ courier-0.60.0.ebuild, courier-0.61.1.ebuild, courier-0.61.2.ebuild, |
|
| 54 |
+ courier-0.62.2.ebuild, courier-0.63.0.ebuild: |
|
| 55 |
+ virtual/ghostscript->app-text/ghostscript-gpl: ghostscript-gpl is the only |
|
| 56 |
+ implementation left in the tree. |
|
| 57 |
+ |
|
| 58 |
+*courier-0.63.0 (07 Dec 2009) |
|
| 59 |
+ |
|
| 60 |
+ 07 Dec 2009; Hanno Boeck <hanno@gentoo.org> +courier-0.63.0.ebuild: |
|
| 61 |
+ Version bump. |
|
| 62 |
+ |
|
| 63 |
+ 01 Dec 2009; Markus Meier <maekke@gentoo.org> courier-0.62.2.ebuild: |
|
| 64 |
+ amd64/x86 stable, bug #292087 |
|
| 65 |
+ |
|
| 66 |
+*courier-0.62.2 (31 Jul 2009) |
|
| 67 |
+ |
|
| 68 |
+ 31 Jul 2009; Hanno Boeck <hanno@gentoo.org> +courier-0.62.2.ebuild: |
|
| 69 |
+ Version bump, some cleanup, get rid of checking FEATURES variable. |
|
| 70 |
+ |
|
| 71 |
+ 04 May 2009; Hanno Boeck <hanno@gentoo.org> courier-0.61.2.ebuild: |
|
| 72 |
+ Don't redundantly set S and don't call filter-flags in global scope. |
|
| 73 |
+ |
|
| 74 |
+*courier-0.61.2 (04 May 2009) |
|
| 75 |
+ |
|
| 76 |
+ 04 May 2009; Hanno Boeck <hanno@gentoo.org> +courier-0.61.2.ebuild: |
|
| 77 |
+ Version bump. |
|
| 78 |
+ |
|
| 79 |
+*courier-0.61.1 (22 Feb 2009) |
|
| 80 |
+ |
|
| 81 |
+ 22 Feb 2009; Hanno Boeck <hanno@gentoo.org> +courier-0.61.1.ebuild: |
|
| 82 |
+ Version bump. |
|
| 83 |
+ |
|
| 84 |
+ 20 Nov 2008; Hanno Boeck <hanno@gentoo.org> +files/courier-init-r2, |
|
| 85 |
+ courier-0.60.0.ebuild: |
|
| 86 |
+ Fix location of webmaild in init script, thanks to Mike Bryce in #225093. |
|
| 87 |
+ |
|
| 88 |
+ 23 Aug 2008; Doug Goldstein <cardoe@gentoo.org> metadata.xml: |
|
| 89 |
+ add GLEP 56 USE flag desc from use.local.desc |
|
| 90 |
+ |
|
| 91 |
+*courier-0.60.0 (21 Jul 2008) |
|
| 92 |
+ |
|
| 93 |
+ 21 Jul 2008; Hanno Boeck <hanno@gentoo.org> +courier-0.60.0.ebuild: |
|
| 94 |
+ Version bump, as-needed-Patch removed, has been applied upstream. |
|
| 95 |
+ |
|
| 96 |
+ 16 Jul 2008; Luca Longinotti <chtekk@gentoo.org> courier-0.53.2-r1.ebuild, |
|
| 97 |
+ courier-0.55.1-r1.ebuild, courier-0.59.0.ebuild: |
|
| 98 |
+ Dep on PostgreSQL libs only. |
|
| 99 |
+ |
|
| 100 |
+ 14 Jun 2008; nixnut <nixnut@gentoo.org> courier-0.59.0.ebuild: |
|
| 101 |
+ Stable on ppc wrt bug 223767 |
|
| 102 |
+ |
|
| 103 |
+ 07 Jun 2008; Raúl Porcel <armin76@gentoo.org> courier-0.59.0.ebuild: |
|
| 104 |
+ alpha/ia64 stable wrt #223767 |
|
| 105 |
+ |
|
| 106 |
+ 07 Jun 2008; Friedrich Oslage <bluebird@gentoo.org> courier-0.59.0.ebuild: |
|
| 107 |
+ stable on sparc, bug #223767 |
|
| 108 |
+ |
|
| 109 |
+ 04 Jun 2008; Dawid Węgliński <cla@gentoo.org> courier-0.59.0.ebuild: |
|
| 110 |
+ Stable on x86/amd64 (bug #223767) |
|
| 111 |
+ |
|
| 112 |
+ 02 Jun 2008; Jeroen Roovers <jer@gentoo.org> courier-0.59.0.ebuild: |
|
| 113 |
+ Stable for HPPA (bug #223767). |
|
| 114 |
+ |
|
| 115 |
+ 21 May 2008; Tiziano Müller <dev-zero@gentoo.org> |
|
| 116 |
+ courier-0.53.2-r1.ebuild, courier-0.55.1-r1.ebuild, courier-0.59.0.ebuild: |
|
| 117 |
+ Changed dependency for postgresql from dev-db/postgresql to |
|
| 118 |
+ virtual/postgresql-server |
|
| 119 |
+ |
|
| 120 |
+ 21 May 2008; Tiziano Müller <dev-zero@gentoo.org> |
|
| 121 |
+ courier-0.53.2-r1.ebuild, courier-0.55.1-r1.ebuild, courier-0.59.0.ebuild: |
|
| 122 |
+ Changed dependency for postgresql from dev-db/postgresql to |
|
| 123 |
+ virtual/postgresql-server |
|
| 124 |
+ |
|
| 125 |
+ 14 May 2008; Hanno Boeck <hanno@gentoo.org> courier-0.59.0.ebuild: |
|
| 126 |
+ Remove uclibc-sed (this is already in upstream). remove global eautoreconf |
|
| 127 |
+ call (we don't need it and it causes trouble). |
|
| 128 |
+ |
|
| 129 |
+ 05 May 2008; Hanno Boeck <hanno@gentoo.org> |
|
| 130 |
+ +files/courier-0.59.0-asneeded.patch, metadata.xml, courier-0.59.0.ebuild: |
|
| 131 |
+ Fix for --as-needed, thanks to flameeyes. |
|
| 132 |
+ |
|
| 133 |
+ 22 Apr 2008; Diego Pettenò <flameeyes@gentoo.org> courier-0.59.0.ebuild: |
|
| 134 |
+ Don't call _elibtoolize manually! Use eautoreconf instead. |
|
| 135 |
+ |
|
| 136 |
+ 21 Apr 2008; Christian Heim <phreak@gentoo.org> metadata.xml: |
|
| 137 |
+ Fixing up the metadata.xml. If there's no maintainer and no herd, also add |
|
| 138 |
+ the maintainer-needed assignee. |
|
| 139 |
+ |
|
| 140 |
+*courier-0.59.0 (21 Apr 2008) |
|
| 141 |
+ |
|
| 142 |
+ 21 Apr 2008; Hanno Boeck <hanno@gentoo.org> |
|
| 143 |
+ +files/remove-sysconftool.patch, +courier-0.59.0.ebuild: |
|
| 144 |
+ Version bump, proxy-maintained user ebuild by Bernd Wurst. |
|
| 145 |
+ |
|
| 146 |
+ 20 Apr 2008; Hanno Boeck <hanno@gentoo.org> courier-0.55.1-r1.ebuild: |
|
| 147 |
+ Fix quoting. |
|
| 148 |
+ |
|
| 149 |
+ 03 Feb 2008; Benedikt Böhm <hollow@gentoo.org> courier-0.53.2.ebuild, |
|
| 150 |
+ courier-0.53.2-r1.ebuild, courier-0.55.1.ebuild, courier-0.55.1-r1.ebuild: |
|
| 151 |
+ get rid of completely broken mime type handling wrt #208033 |
|
| 152 |
+ |
|
| 153 |
+ 15 Aug 2007; Tobias Scherbaum <dertobi123@gentoo.org> |
|
| 154 |
+ courier-0.53.2-r1.ebuild: |
|
| 155 |
+ ppc stable, bug #184221 |
|
| 156 |
+ |
|
| 157 |
+ 11 Aug 2007; Steve Dibb <beandog@gentoo.org> courier-0.53.2-r1.ebuild: |
|
| 158 |
+ amd64 stable, bug 184221 |
|
| 159 |
+ |
|
| 160 |
+ 29 Jul 2007; Christian Heim <phreak@gentoo.org> courier-0.53.2.ebuild, |
|
| 161 |
+ courier-0.53.2-r1.ebuild, courier-0.55.1.ebuild, courier-0.55.1-r1.ebuild: |
|
| 162 |
+ Fixing the DEPEND/RDEPEND for the move of net-www/apache to |
|
| 163 |
+ www-servers/apache (#78622). |
|
| 164 |
+ |
|
| 165 |
+ 10 Jul 2007; Jeroen Roovers <jer@gentoo.org> courier-0.53.2-r1.ebuild: |
|
| 166 |
+ Stable for HPPA (bug #184221). |
|
| 167 |
+ |
|
| 168 |
+ 05 Jul 2007; Gustavo Zacarias <gustavoz@gentoo.org> |
|
| 169 |
+ courier-0.53.2-r1.ebuild: |
|
| 170 |
+ Stable on sparc wrt #184221 |
|
| 171 |
+ |
|
| 172 |
+ 05 Jul 2007; Raúl Porcel <armin76@gentoo.org> courier-0.53.2-r1.ebuild: |
|
| 173 |
+ alpha/ia64/x86 stable wrt #184221 |
|
| 174 |
+ |
|
| 175 |
+*courier-0.55.1-r1 (04 Jul 2007) |
|
| 176 |
+*courier-0.53.2-r1 (04 Jul 2007) |
|
| 177 |
+ |
|
| 178 |
+ 04 Jul 2007; Diego Pettenò <flameeyes@gentoo.org> |
|
| 179 |
+ +files/pam-include.patch, +courier-0.53.2-r1.ebuild, |
|
| 180 |
+ +courier-0.55.1-r1.ebuild: |
|
| 181 |
+ Add patch from Ed Catmur to work with PAM 0.99 (and in general without |
|
| 182 |
+ pam_stack). Thanks Ed. See bug #177748. |
|
| 183 |
+ |
|
| 184 |
+*courier-0.55.1 (30 May 2007) |
|
| 185 |
+ |
|
| 186 |
+ 30 May 2007; Caleb Tennis <caleb@gentoo.org> +courier-0.55.1.ebuild: |
|
| 187 |
+ Version bump. It emerges, but I'm still testing everything out |
|
| 188 |
+ |
|
| 189 |
+ 28 Apr 2007; Sven Wegener <swegener@gentoo.org> courier-0.53.2.ebuild: |
|
| 190 |
+ Fix *initd, *confd and *envd calls (#17388, #174266) |
|
| 191 |
+ |
|
| 192 |
+ 02 Apr 2007; Petteri Räty <betelgeuse@gentoo.org> -courier-0.48.1.ebuild, |
|
| 193 |
+ -courier-0.48.1-r1.ebuild, -courier-0.48.2.20050224.ebuild, |
|
| 194 |
+ -courier-0.49.0.ebuild, -courier-0.49.0.20050405.ebuild, |
|
| 195 |
+ -courier-0.50.0.ebuild, -courier-0.50.1.ebuild, -courier-0.50.1-r1.ebuild, |
|
| 196 |
+ -courier-0.52.2.ebuild, courier-0.53.2.ebuild: |
|
| 197 |
+ Remove old versions. Most of these are vulnerable to security issues. |
|
| 198 |
+ |
|
| 199 |
+ 18 Mar 2007; Marius Mauch <genone@gentoo.org> courier-0.48.1.ebuild, |
|
| 200 |
+ courier-0.48.1-r1.ebuild, courier-0.48.2.20050224.ebuild, |
|
| 201 |
+ courier-0.49.0.ebuild, courier-0.49.0.20050405.ebuild, |
|
| 202 |
+ courier-0.50.0.ebuild, courier-0.50.1.ebuild, courier-0.50.1-r1.ebuild, |
|
| 203 |
+ courier-0.52.2.ebuild, courier-0.53.2.ebuild: |
|
| 204 |
+ Replacing einfo with elog |
|
| 205 |
+ |
|
| 206 |
+ 05 Jan 2007; Diego Pettenò <flameeyes@gentoo.org> |
|
| 207 |
+ courier-0.48.2.20050224.ebuild, courier-0.49.0.ebuild, |
|
| 208 |
+ courier-0.49.0.20050405.ebuild, courier-0.50.0.ebuild, |
|
| 209 |
+ courier-0.50.1.ebuild, courier-0.50.1-r1.ebuild, courier-0.52.2.ebuild: |
|
| 210 |
+ Remove gnuconfig_update usage, leave it to econf. |
|
| 211 |
+ |
|
| 212 |
+ 04 Jan 2007; Diego Pettenò <flameeyes@gentoo.org> courier-0.53.2.ebuild: |
|
| 213 |
+ Fix broken autotools handling and remove gnuconfig inheritance. |
|
| 214 |
+ |
|
| 215 |
+ 23 Nov 2006; Francesco Riosa <vivo@gentoo.org> courier-0.48.1.ebuild, |
|
| 216 |
+ courier-0.48.1-r1.ebuild, courier-0.48.2.20050224.ebuild, |
|
| 217 |
+ courier-0.49.0.ebuild, courier-0.49.0.20050405.ebuild, |
|
| 218 |
+ courier-0.50.0.ebuild, courier-0.50.1.ebuild, courier-0.50.1-r1.ebuild, |
|
| 219 |
+ courier-0.52.2.ebuild, courier-0.53.2.ebuild: |
|
| 220 |
+ dev-db/mysql => virtual/mysql |
|
| 221 |
+ |
|
| 222 |
+ 15 Oct 2006; Bryan Østergaard <kloeri@gentoo.org> courier-0.53.2.ebuild: |
|
| 223 |
+ Stable on ia64, bug 135005. |
|
| 224 |
+ |
|
| 225 |
+ 14 Oct 2006; Bryan Østergaard <kloeri@gentoo.org> metadata.xml: |
|
| 226 |
+ Remove swtaylor from metadata.xml due to retiring. |
|
| 227 |
+ |
|
| 228 |
+ 31 Jul 2006; Simon Stelling <blubb@gentoo.org> courier-0.53.2.ebuild: |
|
| 229 |
+ stable on amd64 wrt bug 135005 |
|
| 230 |
+ |
|
| 231 |
+ 22 Jul 2006; Thomas Cort <tcort@gentoo.org> courier-0.53.2.ebuild: |
|
| 232 |
+ Stable on alpha wrt security Bug #135005. |
|
| 233 |
+ |
|
| 234 |
+ 22 Jul 2006; Rene Nussbaumer <killerfox@gentoo.org> courier-0.53.2.ebuild: |
|
| 235 |
+ Stable on hppa. See bug #135005. |
|
| 236 |
+ |
|
| 237 |
+ 20 Jul 2006; Joshua Jackson <tsunam@gentoo.org> courier-0.53.2.ebuild: |
|
| 238 |
+ marking the right version stable for x86 this time |
|
| 239 |
+ |
|
| 240 |
+ 18 Jul 2006; Michael Hanselmann <hansmi@gentoo.org> courier-0.53.2.ebuild: |
|
| 241 |
+ Stable on ppc, too. |
|
| 242 |
+ |
|
| 243 |
+ 18 Jul 2006; Michael Hanselmann <hansmi@gentoo.org> courier-0.52.2.ebuild: |
|
| 244 |
+ Stable on ppc. |
|
| 245 |
+ |
|
| 246 |
+ 18 Jul 2006; Tuấn Văn <langthang@gentoo.org> courier-0.53.2.ebuild: |
|
| 247 |
+ remove conditional patch. should be always or `use_with fam` won't work. |
|
| 248 |
+ |
|
| 249 |
+ 18 Jul 2006; Tuấn Văn <langthang@gentoo.org> |
|
| 250 |
+ +files/fam-disable-check.patch, courier-0.53.2.ebuild: |
|
| 251 |
+ add fam-disable-check patch. Bug #140883. |
|
| 252 |
+ mv epatch to src_unpack and use eautoreconf instead. |
|
| 253 |
+ |
|
| 254 |
+ 16 Jul 2006; Jason Wever <weeve@gentoo.org> courier-0.53.2.ebuild: |
|
| 255 |
+ Stable on SPARC wrt security bug #135005. |
|
| 256 |
+ |
|
| 257 |
+ 14 Jul 2006; Luca Longinotti <chtekk@gentoo.org> files/mailer.conf, |
|
| 258 |
+ courier-0.53.2.ebuild: |
|
| 259 |
+ Fix bug in src_test and correct mailer.conf, thanks to Jason Wever on bug |
|
| 260 |
+ #135005. |
|
| 261 |
+ |
|
| 262 |
+ 12 Jul 2006; Joshua Jackson <tsunam@gentoo.org> courier-0.52.2.ebuild: |
|
| 263 |
+ Stable x86; security bug #135005 |
|
| 264 |
+ |
|
| 265 |
+*courier-0.53.2 (11 Jul 2006) |
|
| 266 |
+ |
|
| 267 |
+ 11 Jul 2006; Luca Longinotti <chtekk@gentoo.org> +files/courier-init-r1, |
|
| 268 |
+ +courier-0.53.2.ebuild: |
|
| 269 |
+ Version bump. Fixes security bug #135005 and bugs #130957, #133401, #107557 |
|
| 270 |
+ and #134027. Thanks to Marcin Semeniuk for his help. |
|
| 271 |
+ |
|
| 272 |
+ 27 Apr 2006; Marien Zwart <marienz@gentoo.org> |
|
| 273 |
+ files/digest-courier-0.48.1, files/digest-courier-0.48.1-r1, |
|
| 274 |
+ files/digest-courier-0.48.2.20050224, files/digest-courier-0.49.0, |
|
| 275 |
+ files/digest-courier-0.49.0.20050405, files/digest-courier-0.50.0, |
|
| 276 |
+ files/digest-courier-0.50.1, files/digest-courier-0.50.1-r1, Manifest: |
|
| 277 |
+ Fixing SHA256 digest, pass four |
|
| 278 |
+ |
|
| 279 |
+ 02 Mar 2006; Brian Jackson <iggy@gentoo.org> courier-0.52.2.ebuild: |
|
| 280 |
+ added libpcre as a dep, bug 123900, thanks to Marco Iseli ismaATsfsservices.biz |
|
| 281 |
+ |
|
| 282 |
+ 19 Feb 2006; Brian Jackson <iggy@gentoo.org> +courier-0.52.2.ebuild: |
|
| 283 |
+ version bump |
|
| 284 |
+ |
|
| 285 |
+*courier-0.52.2 (19 Feb 2006) |
|
| 286 |
+ |
|
| 287 |
+ 25 Dec 2005; Diego Pettenò <flameeyes@gentoo.org> |
|
| 288 |
+ courier-0.50.1-r1.ebuild: |
|
| 289 |
+ Use root:0, not root:root. |
|
| 290 |
+ |
|
| 291 |
+*courier-0.50.1-r1 (29 Jul 2005) |
|
| 292 |
+ |
|
| 293 |
+ 29 Jul 2005; Brian Jackson <iggy@gentoo.org> +courier-0.50.1-r1.ebuild: |
|
| 294 |
+ revbump with some changes. it's -*, and I'd like to get some testing |
|
| 295 |
+ |
|
| 296 |
+ 11 Jul 2005; Bryan Østergaard <kloeri@gentoo.org> |
|
| 297 |
+ courier-0.48.1-r1.ebuild: |
|
| 298 |
+ Stable on alpha + ia64, bug 97915. |
|
| 299 |
+ |
|
| 300 |
+ 11 Jul 2005; Tobias Scherbaum <dertobi123@gentoo.org> |
|
| 301 |
+ courier-0.48.1-r1.ebuild: |
|
| 302 |
+ ppc stable, #97915 |
|
| 303 |
+ |
|
| 304 |
+ 11 Jul 2005; Simon Stelling <blubb@gentoo.org> courier-0.48.1-r1.ebuild: |
|
| 305 |
+ stable on amd64 wrt bug 97915 |
|
| 306 |
+ |
|
| 307 |
+ 11 Jul 2005; Rene Nussbaumer <killerfox@gentoo.org> |
|
| 308 |
+ courier-0.48.1-r1.ebuild: |
|
| 309 |
+ Stable on hppa. bug #97915 |
|
| 310 |
+ |
|
| 311 |
+ 11 Jul 2005; Jason Wever <weeve@gentoo.org> courier-0.48.1-r1.ebuild: |
|
| 312 |
+ Stable on SPARC wrt security bug #97915. |
|
| 313 |
+ |
|
| 314 |
+ 10 Jul 2005; Andrej Kacian <ticho@gentoo.org> courier-0.48.1-r1.ebuild: |
|
| 315 |
+ Stable on x86. |
|
| 316 |
+ |
|
| 317 |
+*courier-0.48.1-r1 (10 Jul 2005) |
|
| 318 |
+ |
|
| 319 |
+ 10 Jul 2005; Andrej Kacian <ticho@gentoo.org> |
|
| 320 |
+ +files/courier-0.48.1-spf-error-handling.patch, +courier-0.48.1-r1.ebuild: |
|
| 321 |
+ Bumped 0.48.1 because of security bug #97915 with a patch to fix it. Also |
|
| 322 |
+ fixed sandbox access violation on subsequent merge. |
|
| 323 |
+ |
|
| 324 |
+ 10 Jul 2005; Andrej Kacian <ticho@gentoo.org> +files/mailer.conf, |
|
| 325 |
+ +courier-0.50.1.ebuild: |
|
| 326 |
+ Version bump, wrt security bug #97915. Also changed the ebuild to be more |
|
| 327 |
+ mailwrapper-compatible. |
|
| 328 |
+ |
|
| 329 |
+*courier-0.50.1 (04 Jul 2005) |
|
| 330 |
+ |
|
| 331 |
+ 04 Jul 2005; Andrej Kacian <ticho@gentoo.org> +files/mailer.conf, |
|
| 332 |
+ +courier-0.50.1.ebuild: |
|
| 333 |
+ Version bump, due to security bug #97915. Also improved mailwrapper |
|
| 334 |
+ compatibility. |
|
| 335 |
+ |
|
| 336 |
+*courier-0.50.0 (02 Jul 2005) |
|
| 337 |
+ |
|
| 338 |
+ 02 Jul 2005; Scott W Taylor <swtaylor@gentoo.org> +courier-0.50.0.ebuild: |
|
| 339 |
+ bump |
|
| 340 |
+ |
|
| 341 |
+ 29 May 2005; <solar@gentoo.org> courier-0.48.1.ebuild, |
|
| 342 |
+ courier-0.48.2.20050224.ebuild, courier-0.49.0.20050405.ebuild, |
|
| 343 |
+ courier-0.49.0.ebuild: |
|
| 344 |
+ - update courier to use libc expanded variable elibc_uclibc vs uclibc so |
|
| 345 |
+ USE=-* works |
|
| 346 |
+ |
|
| 347 |
+*courier-0.49.0.20050405 (06 Apr 2005) |
|
| 348 |
+ |
|
| 349 |
+ 06 Apr 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 350 |
+ +courier-0.49.0.20050405.ebuild: |
|
| 351 |
+ bump |
|
| 352 |
+ |
|
| 353 |
+ 21 Mar 2005; Scott W Taylor <swtaylor@gentoo.org> -courier-0.47-r1.ebuild, |
|
| 354 |
+ -courier-0.48.2.ebuild, -courier-0.48.2.20050215.ebuild, |
|
| 355 |
+ courier-0.48.2.20050224.ebuild, courier-0.49.0.ebuild: |
|
| 356 |
+ tidy up due to collision with mailbase. strip bad cflags |
|
| 357 |
+ |
|
| 358 |
+*courier-0.49.0 (04 Mar 2005) |
|
| 359 |
+ |
|
| 360 |
+ 04 Mar 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 361 |
+ courier-0.48.2.20050215.ebuild, courier-0.48.2.20050224.ebuild, |
|
| 362 |
+ courier-0.48.2.ebuild, +courier-0.49.0.ebuild: |
|
| 363 |
+ bump to 0.49.0 keepdir had been executed on too many directories, collided |
|
| 364 |
+ with baselayout. readded more sane keepdir calls, fixes bug 82286 |
|
| 365 |
+ |
|
| 366 |
+ 03 Mar 2005; Ciaran McCreesh <ciaranm@gentoo.org> courier-0.47-r1.ebuild, |
|
| 367 |
+ courier-0.48.1.ebuild, courier-0.48.2.20050130.ebuild, |
|
| 368 |
+ courier-0.48.2.20050203.ebuild, courier-0.48.2.20050215.ebuild, |
|
| 369 |
+ courier-0.48.2.20050224.ebuild, courier-0.48.2.ebuild: |
|
| 370 |
+ Move sys-apps/procps -> sys-process/procps |
|
| 371 |
+ |
|
| 372 |
+*courier-0.48.2.20050224 (25 Feb 2005) |
|
| 373 |
+ |
|
| 374 |
+ 25 Feb 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 375 |
+ +courier-0.48.2.20050224.ebuild: |
|
| 376 |
+ bump. adds sha256 |
|
| 377 |
+ |
|
| 378 |
+*courier-0.48.2.20050215 (15 Feb 2005) |
|
| 379 |
+ |
|
| 380 |
+ 15 Feb 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 381 |
+ +courier-0.48.2.20050215.ebuild: |
|
| 382 |
+ bump, looks like minor stuff from upstream, consistency updates and |
|
| 383 |
+ backscatter on uucp/fax |
|
| 384 |
+ |
|
| 385 |
+*courier-0.48.2.20050203 (05 Feb 2005) |
|
| 386 |
+ |
|
| 387 |
+ 05 Feb 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 388 |
+ +courier-0.48.2.20050203.ebuild: |
|
| 389 |
+ version bump. mostly backscatter updates |
|
| 390 |
+ |
|
| 391 |
+ 31 Jan 2005; Scott W Taylor <swtaylor@gentoo.org> files/courier-init, |
|
| 392 |
+ courier-0.48.1.ebuild, courier-0.48.2.20050130.ebuild: |
|
| 393 |
+ apply keepdir change to 0.48.1 as well |
|
| 394 |
+ |
|
| 395 |
+ 31 Jan 2005; Scott W Taylor <swtaylor@gentoo.org> files/courier-init, |
|
| 396 |
+ courier-0.48.2.20050130.ebuild: |
|
| 397 |
+ fewer keepdirs for 70503 |
|
| 398 |
+ init.d need famd for 69630 |
|
| 399 |
+ allow removal of fam for 69630.7 |
|
| 400 |
+ |
|
| 401 |
+ 30 Jan 2005; Scott W Taylor <swtaylor@gentoo.org> courier-0.48.1.ebuild: |
|
| 402 |
+ stabilize 0.48.1 - most notable change is authentication moved to new |
|
| 403 |
+ courier-authlib package |
|
| 404 |
+ |
|
| 405 |
+ 30 Jan 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 406 |
+ courier-0.48.2.20050130.ebuild: |
|
| 407 |
+ version bump, add smtp auth methods as well. |
|
| 408 |
+ |
|
| 409 |
+*courier-0.48.2.20050130 (30 Jan 2005) |
|
| 410 |
+*courier-0.48.2 (30 Jan 2005) |
|
| 411 |
+ |
|
| 412 |
+ 30 Jan 2005; Scott W Taylor <swtaylor@gentoo.org> |
|
| 413 |
+ -courier-0.46.20040902.ebuild, -courier-0.47.20041129.ebuild, |
|
| 414 |
+ courier-0.48.1.ebuild, +courier-0.48.2.20050130.ebuild, |
|
| 415 |
+ +courier-0.48.2.ebuild, -courier-0.48.ebuild: |
|
| 416 |
+ $(get_libdir) added for arch compatibility. cleaning house too. |
|
| 417 |
+ |
|
| 418 |
+*courier-0.48.1 (05 Jan 2005) |
|
| 419 |
+ |
|
| 420 |
+ 05 Jan 2005; Scott W Taylor <swtaylor@gentoo.org> +courier-0.48.1.ebuild: |
|
| 421 |
+ bump |
|
| 422 |
+ |
|
| 423 |
+*courier-0.48 (01 Jan 2005) |
|
| 424 |
+ |
|
| 425 |
+ 01 Jan 2005; Scott W Taylor <swtaylor@gentoo.org> +courier-0.48.ebuild, |
|
| 426 |
+ -courier-0.48_pre.ebuild: |
|
| 427 |
+ courier 0.48 released |
|
| 428 |
+ |
|
| 429 |
+ 15 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> courier-0.47-r1.ebuild, |
|
| 430 |
+ courier-0.47.20041129.ebuild, courier-0.48_pre.ebuild: |
|
| 431 |
+ move gnupg to fix circular dependancy |
|
| 432 |
+ |
|
| 433 |
+ 10 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 434 |
+ -courier-0.46.20040825.ebuild, -courier-0.46.ebuild, -courier-0.47.ebuild: |
|
| 435 |
+ housecleaning |
|
| 436 |
+ |
|
| 437 |
+ 09 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> courier-0.48_pre.ebuild: |
|
| 438 |
+ don't mirror release candidate |
|
| 439 |
+ |
|
| 440 |
+*courier-0.48_pre (09 Dec 2004) |
|
| 441 |
+ |
|
| 442 |
+ 09 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 443 |
+ +courier-0.48_pre.ebuild: |
|
| 444 |
+ bump |
|
| 445 |
+ |
|
| 446 |
+ 07 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> courier-0.47-r1.ebuild, |
|
| 447 |
+ courier-0.47.20041129.ebuild: |
|
| 448 |
+ remove virtual/mda block |
|
| 449 |
+ |
|
| 450 |
+ 06 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> courier-0.47-r1.ebuild, |
|
| 451 |
+ courier-0.47.20041129.ebuild: |
|
| 452 |
+ add mime.types dep |
|
| 453 |
+ |
|
| 454 |
+ 05 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> courier-0.47-r1.ebuild, |
|
| 455 |
+ courier-0.47.20041129.ebuild: |
|
| 456 |
+ keep .maildir even if empty |
|
| 457 |
+ |
|
| 458 |
+*courier-0.47-r1 (05 Dec 2004) |
|
| 459 |
+ |
|
| 460 |
+ 05 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> +courier-0.47-r1.ebuild, |
|
| 461 |
+ courier-0.47.20041129.ebuild: |
|
| 462 |
+ build courier before mailwrapper, bug 73486 |
|
| 463 |
+ |
|
| 464 |
+ 05 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 465 |
+ courier-0.47.20041129.ebuild: |
|
| 466 |
+ sed magic to fix #73468 |
|
| 467 |
+ |
|
| 468 |
+ 01 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> -courier-0.45.6.ebuild, |
|
| 469 |
+ -courier-0.46.20040816.ebuild, -courier-0.47.20041113.ebuild, |
|
| 470 |
+ -courier-0.47.20041120.ebuild, courier-0.47.20041129.ebuild, |
|
| 471 |
+ courier-0.47.ebuild: |
|
| 472 |
+ bump and cleanup |
|
| 473 |
+ |
|
| 474 |
+*courier-0.47.20041129 (01 Dec 2004) |
|
| 475 |
+ |
|
| 476 |
+ 01 Dec 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 477 |
+ +courier-0.47.20041129.ebuild: |
|
| 478 |
+ bump |
|
| 479 |
+ |
|
| 480 |
+ 29 Nov 2004; Andrej Kacian <ticho@gentoo.org> courier-0.45.6.ebuild, |
|
| 481 |
+ courier-0.46.20040816.ebuild, courier-0.46.20040825.ebuild, |
|
| 482 |
+ courier-0.46.20040902.ebuild, courier-0.46.ebuild, |
|
| 483 |
+ courier-0.47.20041113.ebuild, courier-0.47.20041120.ebuild, |
|
| 484 |
+ courier-0.47.ebuild: |
|
| 485 |
+ Changed app-admin/fam -> virtual/fam, as per bug #67170. |
|
| 486 |
+ |
|
| 487 |
+ 26 Nov 2004; Scott W Taylor <swtaylor@gentoo.org> files/courier-init: |
|
| 488 |
+ will need courier-authlib in near future. init script updated to reflect this. |
|
| 489 |
+ |
|
| 490 |
+*courier-0.47.20041120 (21 Nov 2004) |
|
| 491 |
+ |
|
| 492 |
+ 21 Nov 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 493 |
+ +courier-0.47.20041120.ebuild: |
|
| 494 |
+ version bump. work in progress |
|
| 495 |
+ |
|
| 496 |
+ 19 Nov 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 497 |
+ courier-0.47.20041113.ebuild: |
|
| 498 |
+ net-libs/courier-authlib |
|
| 499 |
+ |
|
| 500 |
+ 17 Nov 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 501 |
+ courier-0.47.20041113.ebuild: |
|
| 502 |
+ getting closer |
|
| 503 |
+ |
|
| 504 |
+ 17 Nov 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 505 |
+ courier-0.47.20041113.ebuild: |
|
| 506 |
+ work in progress. don't use. |
|
| 507 |
+ |
|
| 508 |
+ 16 Nov 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 509 |
+ courier-0.47.20041113.ebuild: |
|
| 510 |
+ add maildropldap |
|
| 511 |
+ |
|
| 512 |
+*courier-0.47.20041113 (16 Nov 2004) |
|
| 513 |
+ |
|
| 514 |
+ 16 Nov 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 515 |
+ +courier-0.47.20041113.ebuild: |
|
| 516 |
+ now requires courier-authlib. work in progress. |
|
| 517 |
+ |
|
| 518 |
+ 02 Nov 2004; Bret Curtis,,, <psi29a@gentoo.org> courier-0.47.ebuild: |
|
| 519 |
+ workes well on mips, but marked ~mips for now. |
|
| 520 |
+ |
|
| 521 |
+ 02 Oct 2004; <iggy@gentoo.org> files/courier-init: |
|
| 522 |
+ fix bug #57310, thanks to Ben Kennedy |
|
| 523 |
+ |
|
| 524 |
+ 20 Sep 2004; <iggy@gentoo.org> courier-0.47.ebuild: |
|
| 525 |
+ added a small fix for building with uclibc, and removed expect as a dep |
|
| 526 |
+ |
|
| 527 |
+*courier-0.47 (19 Sep 2004) |
|
| 528 |
+ |
|
| 529 |
+ 19 Sep 2004; Scott W Taylor <swtaylor@gentoo.org> +courier-0.47.ebuild: |
|
| 530 |
+ new version. src_uri is now a conditional instead of swapping commented lines |
|
| 531 |
+ for maintainer ease |
|
| 532 |
+ |
|
| 533 |
+ 19 Sep 2004; Scott W Taylor <swtaylor@gentoo.org> -courier-0.45.4.ebuild, |
|
| 534 |
+ -courier-0.45.5.20040606.ebuild, -courier-0.45.5.ebuild, |
|
| 535 |
+ -courier-0.45.6.20040618.ebuild, courier-0.46.20040902.ebuild, |
|
| 536 |
+ courier-0.46.ebuild: |
|
| 537 |
+ cleanup, promote stable |
|
| 538 |
+ |
|
| 539 |
+ 06 Sep 2004; Ciaran McCreesh <ciaranm@gentoo.org> courier-0.45.4.ebuild, |
|
| 540 |
+ courier-0.45.5.20040606.ebuild, courier-0.45.5.ebuild, |
|
| 541 |
+ courier-0.45.6.20040618.ebuild, courier-0.45.6.ebuild, |
|
| 542 |
+ courier-0.46.20040816.ebuild, courier-0.46.20040825.ebuild, |
|
| 543 |
+ courier-0.46.20040902.ebuild, courier-0.46.ebuild: |
|
| 544 |
+ Switch to use epause and ebeep, bug #62950. Fix header lines. |
|
| 545 |
+ |
|
| 546 |
+ 06 Sep 2004; Danny van Dyk <kugelfang@gentoo.org> |
|
| 547 |
+ courier-0.46.20040902.ebuild: |
|
| 548 |
+ Marked ~amd64. |
|
| 549 |
+ |
|
| 550 |
+*courier-0.46.20040902 (03 Sep 2004) |
|
| 551 |
+ |
|
| 552 |
+ 03 Sep 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 553 |
+ +courier-0.46.20040902.ebuild: |
|
| 554 |
+ hot off the press with spf update |
|
| 555 |
+ |
|
| 556 |
+*courier-0.46.20040825 (26 Aug 2004) |
|
| 557 |
+ |
|
| 558 |
+ 26 Aug 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 559 |
+ +courier-0.46.20040825.ebuild: |
|
| 560 |
+ bump. more SPF support |
|
| 561 |
+ |
|
| 562 |
+*courier-0.46.20040816 (16 Aug 2004) |
|
| 563 |
+ |
|
| 564 |
+ 16 Aug 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 565 |
+ +courier-0.46.20040816.ebuild: |
|
| 566 |
+ version bump. spf beginning to be handled internally. "man 8 courier" for |
|
| 567 |
+ details.54557 really fixed. |
|
| 568 |
+ |
|
| 569 |
+*courier-0.46 (01 Aug 2004) |
|
| 570 |
+ |
|
| 571 |
+ 01 Aug 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 572 |
+ courier-0.45.6.20040618.ebuild, courier-0.45.6.ebuild, +courier-0.46.ebuild: |
|
| 573 |
+ mark 0.45.6.* stable |
|
| 574 |
+ |
|
| 575 |
+*courier-0.46 (01 Aug 2004) |
|
| 576 |
+ |
|
| 577 |
+ 01 Aug 2004; Scott W Taylor <swtaylor@gentoo.org> +courier-0.46.ebuild: |
|
| 578 |
+ courier 0.46 released today |
|
| 579 |
+ |
|
| 580 |
+ 29 Jul 2004; Gustavo Zacarias <gustavoz@gentoo.org> |
|
| 581 |
+ courier-0.45.6.20040618.ebuild: |
|
| 582 |
+ Stable on sparc wrt #58020 |
|
| 583 |
+ |
|
| 584 |
+ 01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> |
|
| 585 |
+ courier-0.45.4.ebuild, courier-0.45.5.20040606.ebuild, |
|
| 586 |
+ courier-0.45.5.ebuild, courier-0.45.6.20040618.ebuild, |
|
| 587 |
+ courier-0.45.6.ebuild: |
|
| 588 |
+ virtual/glibc -> virtual/libc |
|
| 589 |
+ |
|
| 590 |
+ 22 Jun 2004; Scott W Taylor <swtaylor@gentoo.org> -courier-0.45.3.ebuild, |
|
| 591 |
+ courier-0.45.5.ebuild: |
|
| 592 |
+ mark 0.45.5 stable |
|
| 593 |
+ |
|
| 594 |
+ 20 Jun 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 595 |
+ courier-0.45.6.20040618.ebuild, courier-0.45.6.ebuild: |
|
| 596 |
+ cosmetic changes |
|
| 597 |
+ |
|
| 598 |
+ 20 Jun 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 599 |
+ courier-0.45.6.20040618.ebuild: |
|
| 600 |
+ upstream added more config statements referencing Maildir. this fixes 54557 |
|
| 601 |
+ |
|
| 602 |
+*courier-0.45.6.20040618 (18 Jun 2004) |
|
| 603 |
+ |
|
| 604 |
+ 18 Jun 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 605 |
+ +courier-0.45.6.20040618.ebuild: |
|
| 606 |
+ bump |
|
| 607 |
+ |
|
| 608 |
+*courier-0.45.6 (12 Jun 2004) |
|
| 609 |
+ |
|
| 610 |
+ 12 Jun 2004; Scott W Taylor <swtaylor@gentoo.org> -courier-0.45.1.ebuild, |
|
| 611 |
+ -courier-0.45.2.ebuild, courier-0.45.4.ebuild, +courier-0.45.6.ebuild: |
|
| 612 |
+ new 45.6, stable 45.4, drop 45.1 and 45.2 |
|
| 613 |
+ |
|
| 614 |
+*courier-0.45.5.20040606 (08 Jun 2004) |
|
| 615 |
+ |
|
| 616 |
+ 08 Jun 2004; Scott W Taylor <swtaylor@gentoo.org> |
|
| 617 |
+ +courier-0.45.5.20040606.ebuild: |
|
| 618 |
+ Spiffy new courier. Tidy up ebuild as well. |
|
| 619 |
+ |
|
| 620 |
+*courier-0.45.4 (29 May 2004) |
|
| 621 |
+ |
|
| 622 |
+ 29 May 2004; Robin H. Johnson <robbat2@gentoo.org> courier-0.45.1.ebuild, |
|
| 623 |
+ courier-0.45.2.ebuild, courier-0.45.3.ebuild, courier-0.45.4.ebuild, |
|
| 624 |
+ courier-0.45.5.ebuild, metadata.xml, files/apache-sqwebmail.inc, files/bofh, |
|
| 625 |
+ files/courier-init, files/dot_courier, files/locallowercase, |
|
| 626 |
+ files/norewrite.patch, files/password.dist, files/set-mime: |
|
| 627 |
+ Moved from net-mail/courier to mail-mta/courier. |
|
| 628 |
+ |
|
| 629 |
+*courier-0.45.5 (22 May 2004) |
|
| 630 |
+ |
|
| 631 |
+ 22 May 2004; Scott W Taylor <swtaylor@gentoo.org> +courier-0.45.5.ebuild: |
|
| 632 |
+ bump 0.45.5 |
|
| 633 |
+ |
|
| 634 |
+ 22 May 2004; Scott W Taylor <swtaylor@gentoo.org> files/courier-init: |
|
| 635 |
+ spelling fix and init script update for sqwebmail which gets renamed in 0.45.5 |
|
| 636 |
+ |
|
| 637 |
+ 28 Apr 2004; Scott W Taylor <swtaylor@gentoo.org> courier-0.45.2.ebuild, |
|
| 638 |
+ courier-0.45.3.ebuild: |
|
| 639 |
+ get ppc mask caught up |
|
| 640 |
+ |
|
| 641 |
+ 28 Apr 2004; Scott W Taylor <swtaylor@gentoo.org> courier-0.45.2.ebuild, |
|
| 642 |
+ courier-0.45.3.ebuild, courier-0.45.4.ebuild: |
|
| 643 |
+ Bug 49198 - moved ${D} adjustments out of pkg_preinst
|
|
| 644 |
+ |
|
| 645 |
+ 27 Apr 2004; Aron Griffis <agriffis@gentoo.org> courier-0.45.3.ebuild, |
|
| 646 |
+ courier-0.45.4.ebuild: |
|
| 647 |
+ Add inherit eutils |
|
| 648 |
+ |
|
| 649 |
+ 21 Apr 2004; Scott W Taylor <swtaylor@gentoo.org> courier-0.45.2.ebuild, |
|
| 650 |
+ courier-0.45.3.ebuild, courier-0.45.4.ebuild: |
|
| 651 |
+ mark 0.45.2 stable and fix bug 41819 |
|
| 652 |
+ |
|
| 653 |
+ 09 Apr 2004; Scott W Taylor <swtaylor@gentoo.org> courier-0.45.4.ebuild: |
|
| 654 |
+ Added ~sparc on 0.45.4 too |
|
| 655 |
+ |
|
| 656 |
+ 06 Apr 2004; Jason Wever <weeve@gentoo.org> courier-0.45.3.ebuild: |
|
| 657 |
+ Added ~sparc keyword wrt bug #46319. |
|
| 658 |
+ |
|
| 659 |
+*courier-0.45.4 (06 Apr 2004) |
|
| 660 |
+ |
|
| 661 |
+ 06 Apr 2004; Scott W Taylor <swtaylor@gentoo.org> courier-0.45.4.ebuild: |
|
| 662 |
+ version bump |
|
| 663 |
+ |
|
| 664 |
+*courier-0.45.3 (01 Apr 2004) |
|
| 665 |
+ |
|
| 666 |
+ 01 Apr 2004; Scott W Taylor <swtaylor@gentoo.org> courier-0.45.3.ebuild, |
|
| 667 |
+ files/courier-init, files/norewrite.patch: |
|
| 668 |
+ Version bump and fixes for bugs 44241 and 44245. |
|
| 669 |
+ |
|
| 670 |
+ 30 Mar 2004; Lars Weiler <pylon@gentoo.org> courier-0.45.2.ebuild: |
|
| 671 |
+ Masked ~ppc on user report |
|
| 672 |
+ |
|
| 673 |
+*courier-0.45.2 (16 Mar 2004) |
|
| 674 |
+ |
|
| 675 |
+ 16 Mar 2004; Brian Jackson <iggy@gentoo.org> courier-0.45.2.ebuild, |
|
| 676 |
+ files/courier-init: |
|
| 677 |
+ version bump |
|
| 678 |
+ |
|
| 679 |
+*courier-0.45.1 (09 Mar 2004) |
|
| 680 |
+ |
|
| 681 |
+ 09 Mar 2004; Brian Jackson <iggy@gentoo.org> courier-0.44.0.ebuild, |
|
| 682 |
+ courier-0.44.2.20040201.ebuild, courier-0.44.2.ebuild, |
|
| 683 |
+ courier-0.45.0.ebuild, courier-0.45.1.ebuild, files/courier, |
|
| 684 |
+ files/courier-authdaemond, files/courier-esmtpd, files/courier-esmtpd-msa, |
|
| 685 |
+ files/courier-esmtpd-ssl, files/courier-filterd, files/courier-imapd, |
|
| 686 |
+ files/courier-imapd-ssl, files/courier-ldapaliasd, files/courier-mta, |
|
| 687 |
+ files/courier-pop3d, files/courier-pop3d-ssl, files/gentoo.diff.bz2: |
|
| 688 |
+ version bump, fixes 2 minor bugs only |
|
| 689 |
+ |
|
| 690 |
+*courier-0.45.0 (07 Mar 2004) |
|
| 691 |
+ |
|
| 692 |
+ 07 Mar 2004; Brian Jackson <iggy@gentoo.org> courier-0.45.0.ebuild, |
|
| 693 |
+ files/courier-init: |
|
| 694 |
+ version bump, fix for bug 42164, and an issue reported by |
|
| 695 |
+ hachre@dynaloop.net |
|
| 696 |
+ |
|
| 697 |
+ 15 Feb 2004; Brian Jackson <iggy@gentoo.org> courier-0.44.2.20040201.ebuild: |
|
| 698 |
+ a few cleanups, and fix bug 32878 |
|
| 699 |
+ |
|
| 700 |
+*courier-0.44.2.20040201 (08 Feb 2004) |
|
| 701 |
+ |
|
| 702 |
+ 08 Feb 2004; Brian Jackson <iggy@gentoo.org> courier-0.44.0.ebuild, |
|
| 703 |
+ courier-0.44.2.20040201.ebuild, courier-0.44.2.ebuild: |
|
| 704 |
+ version bump to fix a problem with 2.6 kernels, changed a few keywords |
|
| 705 |
+ |
|
| 706 |
+ 14 Jan 2004; Aron Griffis <agriffis@gentoo.org> courier-0.44.2.ebuild: |
|
| 707 |
+ add ~alpha (bug 21240) |
|
| 708 |
+ |
|
| 709 |
+ 09 Dec 2003; Heinrich Wendel <lanius@gentoo.org> courier-0.44.0.ebuild, |
|
| 710 |
+ courier-0.44.2.ebuild: |
|
| 711 |
+ changed app-text/ghostscript to virtual/ghostscript |
|
| 712 |
+ |
|
| 713 |
+ 08 Dec 2003; Brian Jackson <iggy@gentoo.org> courier-0.42.2.ebuild, |
|
| 714 |
+ courier-0.43.2.ebuild, courier-0.44.0.ebuild, courier-0.44.2.ebuild, |
|
| 715 |
+ files/courier-0.42.2-gentoo.diff.bz2: |
|
| 716 |
+ cleaning out old ebuilds/etc, and cleaning up touch .keep's |
|
| 717 |
+ |
|
| 718 |
+ 08 Dec 2003; Brian Jackson <iggy@gentoo.org> courier-0.42.2.ebuild: |
|
| 719 |
+ fixed the other chown in courier-0.42.2 |
|
| 720 |
+ |
|
| 721 |
+ 07 Dec 2003; foser <foser@gentoo.org> courier-0.*.ebuild : |
|
| 722 |
+ Fix fam-oss > fam, due to move |
|
| 723 |
+ |
|
| 724 |
+ 07 Dec 2003; Brian Jackson <iggy@gentoo.org> courier-0.44.2.ebuild: |
|
| 725 |
+ add note about recent sed magic |
|
| 726 |
+ |
|
| 727 |
+ 30 Nov 2003; Brian Jackson <iggy@gentoo.org> courier-0.44.0.ebuild: |
|
| 728 |
+ bump 0.44.0 to x86 |
|
| 729 |
+ |
|
| 730 |
+*courier-0.44.2 (30 Nov 2003) |
|
| 731 |
+ |
|
| 732 |
+ 30 Nov 2003; Brian Jackson <iggy@gentoo.org> courier-0.44.2.ebuild, |
|
| 733 |
+ files/courier-init: |
|
| 734 |
+ version bump |
|
| 735 |
+ |
|
| 736 |
+*courier-0.44.0 (07 Nov 2003) |
|
| 737 |
+ |
|
| 738 |
+ 07 Nov 2003; Brian Jackson <iggy@gentoo.org> courier-0.42.2-r3.ebuild, |
|
| 739 |
+ courier-0.42.2.ebuild, courier-0.43.1.ebuild, courier-0.43.2.ebuild, |
|
| 740 |
+ courier-0.44.0.ebuild, files/gentoo.diff.bz2: |
|
| 741 |
+ version bump |
|
| 742 |
+ cleaned up the ebuild a little |
|
| 743 |
+ some docs weren't getting installed |
|
| 744 |
+ fix bug 32269 |
|
| 745 |
+ applying the sqwebmail patch again |
|
| 746 |
+ |
|
| 747 |
+ 29 Oct 2003; Brian Jackson <iggy@gentoo.org> courier-0.43.2.ebuild, |
|
| 748 |
+ files/courier-init: |
|
| 749 |
+ added esmtpd-ssl to init script, closes bug 32267 |
|
| 750 |
+ |
|
| 751 |
+*courier-0.43.2 (28 Sep 2003) |
|
| 752 |
+ |
|
| 753 |
+ 28 Sep 2003; <iggy@gentoo.org> courier-0.43.1.ebuild, courier-0.43.2.ebuild: |
|
| 754 |
+ version bump |
|
| 755 |
+ |
|
| 756 |
+*courier-0.43.1 (19 Aug 2003) |
|
| 757 |
+ |
|
| 758 |
+ 19 Aug 2003; <iggy@gentoo.org> courier-0.43.1.ebuild: |
|
| 759 |
+ courier-0.43.1 is out, just copied the 42.2-r3 ebuild, and updated the |
|
| 760 |
+ postinst msgs a bit |
|
| 761 |
+ |
|
| 762 |
+ 02 Aug 2003; <iggy@gentoo.org> courier-0.42.2-r1.ebuild, |
|
| 763 |
+ courier-0.42.2-r2.ebuild, courier-0.42.2-r3.ebuild: |
|
| 764 |
+ -r3 -> x86, removed older broken ebuilds (-r1, -r2) |
|
| 765 |
+ |
|
| 766 |
+*courier-0.42.2-r3 (01 Aug 2003) |
|
| 767 |
+ |
|
| 768 |
+ 01 Aug 2003; Paul de Vrieze <pauldv@gentoo.org> courier-0.42.2-r3.ebuild: |
|
| 769 |
+ Removed the optional dependency on berkeley db, as it will not work with db4 |
|
| 770 |
+ and a patch to make it work with db3 is nontrivial |
|
| 771 |
+ |
|
| 772 |
+ 28 Jul 2003; <iggy@gentoo.org> courier-0.42.2-r2.ebuild: |
|
| 773 |
+ temporarily removed expect dep pending clarification of tcltk situation |
|
| 774 |
+ |
|
| 775 |
+ 24 Jul 2003; <iggy@gentoo.org> files/courier-init: |
|
| 776 |
+ fixed courier init script |
|
| 777 |
+ |
|
| 778 |
+ 24 Jul 2003; <iggy@gentoo.org> courier-0.42.2-r2.ebuild: |
|
| 779 |
+ added !virtual/imapd to RDEPEND closes bug 25027 |
|
| 780 |
+ |
|
| 781 |
+ 22 Jul 2003; <iggy@gentoo.org> courier-0.42.2-r2.ebuild: |
|
| 782 |
+ a few more cleanups to 0.42.2-r2 |
|
| 783 |
+ |
|
| 784 |
+*courier-0.42.2-r2 (22 Jul 2003) |
|
| 785 |
+ |
|
| 786 |
+ 22 Jul 2003; <iggy@gentoo.org> courier-0.42.2-r2.ebuild, files/courier-init: |
|
| 787 |
+ fixed bug 25028, and switched to single init script |
|
| 788 |
+ |
|
| 789 |
+ 03 Jul 2003; ,,, <iggy@gentoo.org> metadata.xml: |
|
| 790 |
+ added metadata.xml |
|
| 791 |
+ |
|
| 792 |
+ 01 Jul 2003; ,,, <iggy@gentoo.org> courier-0.42.2-r1.ebuild, |
|
| 793 |
+ courier-0.42.2.ebuild: |
|
| 794 |
+ added --disable-autorenamesent to configure options |
|
| 795 |
+ |
|
| 796 |
+*courier-0.42.2-r1 (14 Jun 2003) |
|
| 797 |
+ |
|
| 798 |
+ 01 Jul 2003; Brian Jackson <iggy@gentoo.org> courier-0.42.2-r1.ebuild: |
|
| 799 |
+ Whatever the patch that we were using was for seems to be fixed upstream. |
|
| 800 |
+ I masked this while I have some other people try to test it out. |
|
| 801 |
+ |
|
| 802 |
+*courier-0.42.2 (14 Jun 2003) |
|
| 803 |
+ |
|
| 804 |
+ 23 Jun 2003; Nick Hadaway <raker@gentoo.org> courier-0.42.2.ebuild: |
|
| 805 |
+ Added crypt use variable. Added fax local use variable. |
|
| 806 |
+ |
|
| 807 |
+ 14 Jun 2003; Nick Hadaway <raker@gentoo.org> courier-0.42.2.ebuild, |
|
| 808 |
+ files/digest-courier-0.42.2, files/courier-0.42.2-gentoo.diff.bz2: |
|
| 809 |
+ New version. Updated dependancies. Added a fix for permissions |
|
| 810 |
+ of /var/run/courier. Changed unicode option code snippet. |
|
| 811 |
+ |
|
| 812 |
+ 15 May 2003; Martin Holzer <mholzer@gentoo.org> courier-0.40.2.ebuild, |
|
| 813 |
+ courier-0.41.0.ebuild: |
|
| 814 |
+ Adding !virtual/mta to RDEPEND. CLoses #21072. |
|
| 815 |
+ |
|
| 816 |
+*courier-0.41.0 (30 Jan 2003) |
|
| 817 |
+ |
|
| 818 |
+ 22 Apr 2003; Graham Forest <vladimir@gentoo.org> courier-0.40.2.ebuild, |
|
| 819 |
+ courier-0.41.0.ebuild: |
|
| 820 |
+ app-text/aspell -> virtual/aspell-dict |
|
| 821 |
+ |
|
| 822 |
+ 30 Jan 2003; Alexandru Hartmann <alex@as-computer.de>, Andreas Erhart <andi@as-computer.de> |
|
| 823 |
+ courier-0.41.0.ebuild, files/courier: |
|
| 824 |
+ new release. supports make install-configure in post_install(). init scripts changes. |
|
| 825 |
+ typo fixes. |
|
| 826 |
+ |
|
| 827 |
+ 31 Dec 2002; Nick Hadaway <raker@gentoo.org> courier-0.40.2.ebuild, |
|
| 828 |
+ files/digest-courier-0.40.2, files/courier-0.40.2-gentoo.diff.bz2 : |
|
| 829 |
+ Version bump. New unicode functionality. Added support for the spell |
|
| 830 |
+ use variable. |
|
| 831 |
+ |
|
| 832 |
+ 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords |
|
| 833 |
+ |
|
| 834 |
+*courier-0.40.2 (31 Dec 2002) |
|
| 835 |
+ |
|
| 836 |
+ 15 Jan 2003; Nick Hadaway <raker@gentoo.org> courier-0.40.2.ebuild : |
|
| 837 |
+ Marked stable to coincide with courier-imap-1.6.2 being stable. |
|
| 838 |
+ |
|
| 839 |
+ 31 Dec 2002; Nick Hadaway <raker@gentoo.org> courier-0.40.2.ebuild, |
|
| 840 |
+ files/digest-courier-0.40.2, files/courier-0.40.2-gentoo.diff.bz2 : |
|
| 841 |
+ Version bump. New unicode functionality. Added support for the spell |
|
| 842 |
+ use variable. |
|
| 843 |
+ |
|
| 844 |
+ 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords |
|
| 845 |
+ |
|
| 846 |
+*courier-0.40.1 (19 Nov 2002) |
|
| 847 |
+ |
|
| 848 |
+ 21 Dec 2002; Nick Hadaway <raker@gentoo.org> courier-0.40.1.ebuild : |
|
| 849 |
+ Filter -fomit-frame-pointer and -funroll-loops as these flags seem |
|
| 850 |
+ to cause problems with maildrop and maildirmake. |
|
| 851 |
+ |
|
| 852 |
+ 21 Nov 2002; Nick Hadaway <raker@gentoo.org> courier-0.40.1.ebuild, |
|
| 853 |
+ files/password.dist : |
|
| 854 |
+ Added a password.dist file so people get instructions on how to |
|
| 855 |
+ setup a password for the webadmin. |
|
| 856 |
+ |
|
| 857 |
+ 19 Nov 2002; Daniel Ahlberg <aliz@gentoo.org> : |
|
| 858 |
+ Security update. |
|
| 859 |
+ |
|
| 860 |
+*courier-0.40.0.20021026 (29 Oct 2002) |
|
| 861 |
+ |
|
| 862 |
+ 06 Nov 2002; Nick Hadaway <raker@gentoo.org> : |
|
| 863 |
+ Added ebuild to portage. Marked unstable. |
|
| 864 |
+ |
|
| 865 |
+ 29 Oct 2002; Andreas Erhart <andi@zollhaus.net> / Alexandru Hartmann <alex@nimic.net> |
|
| 866 |
+ courier-0.40.0.20021026.ebuild, files/digest-courier-0.40.0.20021026 |
|
| 867 |
+ sqwebmail finally works ! |
|
| 868 |
+ new version |
|
| 869 |
+ |
|
| 870 |
+*courier-0.40.0 (28 Oct 2002) |
|
| 871 |
+ 28 Oct 2002; Alexandru Hartmann <alex@nimic.net> |
|
| 872 |
+ courier-0.40.0.ebuild, files/digest-courier-0.40.0 |
|
| 873 |
+ sometimes /var/lib/courier/msgs and msgq just disappear after an upgrade. |
|
| 874 |
+ this is now fixed. |
|
| 875 |
+ |
|
| 876 |
+*courier-0.40.0 (26 Oct 2002) |
|
| 877 |
+ 26 Oct 2002; Andreas Erhart <andi@zollhaus.net> |
|
| 878 |
+ courier-0.40.0.ebuild, files/digest-courier-0.40.0 |
|
| 879 |
+ new version |
|
| 880 |
+ |
|
| 881 |
+*courier-0.39.3 (12 Aug 2002) |
|
| 882 |
+ 12 Aug 2002; Andreas Erhart <andi@zollhaus.net> |
|
| 883 |
+ courier-0.39.3.ebuild, files/digest-courier-0.39.3 |
|
| 884 |
+ new version |
|
| 885 |
+ |
|
| 886 |
+*courier-0.39.2 (03 Aug 2002) |
|
| 887 |
+ |
|
| 888 |
+ 06 Aug 2002; Nick Hadaway <raker@gentoo.org> |
|
| 889 |
+ courier-0.39.2.ebuild, files/digest-courier-0.39.2 : |
|
| 890 |
+ Added --without-authvchkpw to the configure options as some |
|
| 891 |
+ systems will fail to finish configure if vpopmail is not installed. |
|
| 892 |
+ Version bump. |
|
| 893 |
+ |
|
| 894 |
+ 03 Aug 2002; Andreas Erhart <andi@zollhaus.net> : |
|
| 895 |
+ new version, thanks to Sam Varshavchik |
|
| 896 |
+ removed 10MB message sizelimit |
|
| 897 |
+ |
|
| 898 |
+*courier-0.39.1 (04 Jul 2002) |
|
| 899 |
+ |
|
| 900 |
+ 04 Jul 2002; Grant Goodyear <g2boojum@gentoo.org> ChangeLog : |
|
| 901 |
+ New version, thanks to Alex Hartmann |
| ... | ... |
@@ -0,0 +1,34 @@ |
| 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.59.0-asneeded.patch 534 RMD160 fe2f28235842220d999dc77ed22857dd99c648a2 SHA1 5ae8a8cefbbd91f2146988c9095ac0e3668c1135 SHA256 802ae0431c9d2b55cdda4602522058874765170d12f4e2fcdd064971f8d31991 |
|
| 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 courier-init-r2 4877 RMD160 bc1bf99be4e032a0e52bba71801c89f9a6cd4383 SHA1 a9e8329fb0582fc0cf0341de4e054096587f2790 SHA256 d6a53142751f71f3a6287806259a640fdc1c8807003510d775b0239e8410d02a |
|
| 7 |
+AUX dot_courier 26 RMD160 cf20012379abbb63f78e1eb0f9cbaefff6d1048d SHA1 8e5e09e167035d100859b42311b6dda2842f4d67 SHA256 8c585031b4356ca1f887e0823fd9b365fff57a5f9cc32541eccfc1542d5d3763 |
|
| 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 password.dist 247 RMD160 eab211be0b1e3dbd6206f79e993b1d314a24efa3 SHA1 2cdd5bcf561f7267be6f18b731813962030af166 SHA256 46f20a84922d108d39a7c26ad3ba8915326549f46cea811e2384f55a589d38e2 |
|
| 12 |
+AUX set-mime 741 RMD160 8ed45fb4a0aee168a70cdcab6d17cf1606f85cad SHA1 b8834602c7304d42f3179a8dde43dcc57d0f4972 SHA256 bf15af7c181d517a924cb82854cbce46278e6e28ffb338e2159ba89c386dc74f |
|
| 13 |
+DIST courier-0.59.0.tar.bz2 7121762 RMD160 580e57fd9d39b62772e07dcdec653379cd21caaf SHA1 6870d2b12f1c93d5ede12f2a5c9c1107a7fb647c SHA256 e488cc920ed970c6d38496dba21359b50c6032ff4f2f91432b5d23db261578ec |
|
| 14 |
+DIST courier-0.60.0.tar.bz2 7067430 RMD160 f35a9329e87a948ca9abf6bd7fcc42e4bfe3adac SHA1 13be35f2631830ea2bf66831ea492d83b8247464 SHA256 c13da0a0b76c4a59aa219d037129b8305293d1091143027f2dfd631b9e470e64 |
|
| 15 |
+DIST courier-0.61.1.tar.bz2 7229642 RMD160 10e2eae71732a8d09ff9550ba035e66669248b7a SHA1 bfc8dd1a1af7f91b24fe715cea93428d4a874efa SHA256 979ff8342f53478c8f14cb79290d1a795433375c8ad18fc5aa950595a9973c90 |
|
| 16 |
+DIST courier-0.61.2.tar.bz2 7268675 RMD160 a738e534df69fee51aec50a53ce6e5d799f0eecd SHA1 aff9b418c84912832a81295ff4592a76fbe36853 SHA256 c240f2cfb96c0c94811152ea1495f41f72507bdef4e69806771f7203db0d1202 |
|
| 17 |
+DIST courier-0.62.2.tar.bz2 7132042 RMD160 787b0240a0683350d0d1d7fc5220505d82579af7 SHA1 f7c49a86dc6560e4ab33870c9ac4983aac03949b SHA256 7b129ee12bb0f942354fb09527f706821556a0aa824798cafd004b8f60da2964 |
|
| 18 |
+DIST courier-0.63.0.tar.bz2 7133009 RMD160 bb47bf049c831756b5352ad1df5f7f4a67a8d52b SHA1 79d8b3b2e4cdcc07cc54308bac689255816ef9e6 SHA256 3a52363605f75f4156105aefa6bd375626f742033fbf09b5592179f274322044 |
|
| 19 |
+DIST courier-0.64.0.tar.bz2 7136191 RMD160 b38563ec054110068d1b2f6399bdb6539ec272a0 SHA1 921d69f2235be7fd548b9082abdaf0cc18e84223 SHA256 9e72165a6c369d135a128af7e69afa3cfa7be608f8f75049b517a077524aa9cc |
|
| 20 |
+DIST courier-0.64.1.tar.bz2 7131375 RMD160 f7a0733ab2c4f8e0743bbe8b0fb4c44a5d75ceec SHA1 c8b81a2deb87ce07c74033fae807a498e4958e52 SHA256 b1cc5d95b256b7467743bcd78536c952febe3bfd7926fcc51742bf105deaadee |
|
| 21 |
+DIST courier-0.65.0.tar.bz2 7099997 RMD160 e5fc4742da27b3b97bd2592ad3ecc96618abada3 SHA1 4e5b7e64a35fe886a59621bc87e7f111428f19bc SHA256 ad0327eecbd231379a59e728cd27fd45db0e96faabca8920896ed77327d77604 |
|
| 22 |
+DIST courier-0.65.2.tar.bz2 7152680 RMD160 6a81f74c85f9e78e6514f840598dde634fe070ce SHA1 784893216ea6c43c91606fa550cfdff13060855d SHA256 496361b8734381ba6128c7b0d5fe4c64ce7d807c01a74aae2cb5be8bb29e5ab2 |
|
| 23 |
+EBUILD courier-0.59.0.ebuild 10179 RMD160 3def3737d7413cefbe88afe27da30ad6b33dcb83 SHA1 2ecd8f0e11e39940e8a37645844109d82dd901de SHA256 1111b6a3af173424aa5d0dfbe5dda0b30dd9931331b432ab21e2e7cb46422f16 |
|
| 24 |
+EBUILD courier-0.60.0.ebuild 10055 RMD160 5143f42b0af09701c7cce17866eba91fdd6f2bc9 SHA1 4665f7f8c37ba3c9b07016d8dc2acc0a1bdc34e0 SHA256 ea00c4eb9936a6813d3aeaf63118cbe58b1c2762987a87cdaffbfbea1cedfbe8 |
|
| 25 |
+EBUILD courier-0.61.1.ebuild 9855 RMD160 ef205ddddb0dacb4cfd88c5e808a424cf63d5dff SHA1 6a906bc83c85dc102c6717a5dfa75923928fc9d6 SHA256 b583b1d643c1ac3a8ecd41621e78071588d0b12f0be90ca86398e0d985dbde07 |
|
| 26 |
+EBUILD courier-0.61.2.ebuild 9834 RMD160 7fb6fc321c83175045e2ef16331ba129e9c20815 SHA1 fe440f2b0bc60b93ea511778ddafa0707c9be5ba SHA256 d07494ed3c49a2470ed9647d34d8d37c180b7e034ce1139bc0de5ebe1602241d |
|
| 27 |
+EBUILD courier-0.62.2.ebuild 9281 RMD160 b7d702f685039f31bf6ccda4e1af34bb65ae2a3d SHA1 f1aa6acef932172e554317bef24b6b2d8c761ace SHA256 d2df747ac27822f83ecbb02943c0ad4ec29a5405ffbff53d4271c7ded89a5fbe |
|
| 28 |
+EBUILD courier-0.63.0.ebuild 9287 RMD160 82efd8a8f196eff50fc7396eb2e1b545a176d6d9 SHA1 6f1c2eb574e6a1ffa69f4ad00afb3c5733f5b4fa SHA256 1add8fd5f0f0808ce52d43ab9dc28aab0e794f078cfc05bacb77df0df5b942bd |
|
| 29 |
+EBUILD courier-0.64.0.ebuild 9287 RMD160 73c5857869513ca3116976b09c8bf8c1f45602ae SHA1 0fa47f881ce8bb18757a8ef7b832d83320f1f6d1 SHA256 17faaef9c1e66313ad9bcb2e22bb306f3894ff6cc313e1cfd28df672d0259fb9 |
|
| 30 |
+EBUILD courier-0.64.1.ebuild 9284 RMD160 4d2f3a46e166409333597bb954a658ff3e03aa15 SHA1 c0206dbf94df8b047ea11a5715b3eaffbc6f246a SHA256 c2e9f28298b04dda5b0bd70a2211596fa610c7a564fde35b4ee095fd5bd05495 |
|
| 31 |
+EBUILD courier-0.65.0.ebuild 9287 RMD160 aaf464b3fbe7b5a21bf0667026048effac904632 SHA1 9e7949c159d601e8fd6bd2ce5cd3a8391b9a6743 SHA256 05977ee3e1b14f05f85d5682532b695c697fd718af96ea305a9a58a8670d6d56 |
|
| 32 |
+EBUILD courier-0.65.2.ebuild 9287 RMD160 aaf464b3fbe7b5a21bf0667026048effac904632 SHA1 9e7949c159d601e8fd6bd2ce5cd3a8391b9a6743 SHA256 05977ee3e1b14f05f85d5682532b695c697fd718af96ea305a9a58a8670d6d56 |
|
| 33 |
+MISC ChangeLog 32586 RMD160 26c6bfa91525e1f6af31cfa36d90e091c0d1777c SHA1 b57a54341721b5c7593e4f6eb454f566af463ddc SHA256 77d7b92c85665bc09af9926f34035b3a09ce0529470ae635774130f485ad854e |
|
| 34 |
+MISC metadata.xml 687 RMD160 753323e40a9add2b07fd1f138c672ce283d2f255 SHA1 2e8255902a9e0394bd27e13e488e84ba70f05845 SHA256 ea417e66d396e793212529ed20f5570b0c97eb666a5ba52bb3202bbfbc022be1 |
| ... | ... |
@@ -0,0 +1,322 @@ |
| 1 |
+# Copyright 1999-2010 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.59.0.ebuild,v 1.16 2010/12/05 20:54:48 mattst88 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 ppc sparc x86" |
|
| 21 |
+IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite mailwrapper \ |
|
| 22 |
+ fam web webmail" |
|
| 23 |
+ |
|
| 24 |
+PROVIDE="virtual/mta |
|
| 25 |
+ virtual/mda |
|
| 26 |
+ virtual/imapd" |
|
| 27 |
+ |
|
| 28 |
+DEPEND=" |
|
| 29 |
+ >=net-libs/courier-authlib-0.59 |
|
| 30 |
+ >=dev-libs/openssl-0.9.6 |
|
| 31 |
+ >=sys-libs/gdbm-1.8.0 |
|
| 32 |
+ dev-libs/libpcre |
|
| 33 |
+ app-misc/mime-types |
|
| 34 |
+ fax? ( >=media-libs/netpbm-9.12 app-text/ghostscript-gpl >=net-dialup/mgetty-1.1.28 ) |
|
| 35 |
+ pam? ( virtual/pam ) |
|
| 36 |
+ mysql? ( virtual/mysql ) |
|
| 37 |
+ ldap? ( >=net-nds/openldap-1.2.11 ) |
|
| 38 |
+ postgres? ( dev-db/postgresql-base ) |
|
| 39 |
+ spell? ( virtual/aspell-dict ) |
|
| 40 |
+ fam? ( virtual/fam ) |
|
| 41 |
+ !mailwrapper? ( !virtual/mta ) |
|
| 42 |
+ !virtual/imapd |
|
| 43 |
+ !mail-filter/maildrop" |
|
| 44 |
+ |
|
| 45 |
+RDEPEND="${DEPEND}
|
|
| 46 |
+ dev-lang/perl |
|
| 47 |
+ sys-process/procps" |
|
| 48 |
+ |
|
| 49 |
+PDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 ) |
|
| 50 |
+ pam? ( net-mail/mailbase ) |
|
| 51 |
+ crypt? ( >=app-crypt/gnupg-1.0.4 )" |
|
| 52 |
+ |
|
| 53 |
+filter-flags '-fomit-frame-pointer' |
|
| 54 |
+ |
|
| 55 |
+src_unpack() {
|
|
| 56 |
+ use fam || ( |
|
| 57 |
+ ewarn "File Alteration Monitor (FAM) is disabled" |
|
| 58 |
+ ewarn "courier-imap will fall back to 60 second polls." |
|
| 59 |
+ ewarn 'add "fam" to your USE flags to build as usual' |
|
| 60 |
+ ebeep 4 |
|
| 61 |
+ epause 4 ) |
|
| 62 |
+ unpack ${A}
|
|
| 63 |
+ cd "${S}"
|
|
| 64 |
+ use norewrite && epatch "${FILESDIR}/norewrite.patch"
|
|
| 65 |
+ |
|
| 66 |
+ epatch "${FILESDIR}/${P}-asneeded.patch"
|
|
| 67 |
+ cd "${S}/gdbmobj/"
|
|
| 68 |
+ eautoreconf |
|
| 69 |
+} |
|
| 70 |
+ |
|
| 71 |
+src_compile() {
|
|
| 72 |
+ local myconf |
|
| 73 |
+ myconf="`use_with ipv6` \ |
|
| 74 |
+ `use_with ldap ldapaliasd` `use_enable ldap maildropldap`" |
|
| 75 |
+ |
|
| 76 |
+ use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf"
|
|
| 77 |
+ use spell || myconf="${myconf} --without-ispell"
|
|
| 78 |
+ |
|
| 79 |
+ myconf="${myconf} --enable-mimetypes=/etc/mime.types"
|
|
| 80 |
+ |
|
| 81 |
+ myconf="${myconf} $(use_with fam)"
|
|
| 82 |
+ |
|
| 83 |
+ einfo "Configuring courier: $(echo ${myconf} | xargs echo)"
|
|
| 84 |
+ |
|
| 85 |
+ econf \ |
|
| 86 |
+ --prefix=/usr \ |
|
| 87 |
+ --disable-root-check \ |
|
| 88 |
+ --mandir=/usr/share/man \ |
|
| 89 |
+ --sysconfdir=/etc/courier \ |
|
| 90 |
+ --libexecdir=/usr/$(get_libdir)/courier \ |
|
| 91 |
+ --datadir=/usr/share/courier \ |
|
| 92 |
+ --sharedstatedir=/var/lib/courier/com \ |
|
| 93 |
+ --localstatedir=/var/lib/courier \ |
|
| 94 |
+ --with-piddir=/var/run/courier \ |
|
| 95 |
+ --with-authdaemonvar=/var/lib/courier/authdaemon \ |
|
| 96 |
+ --with-mailuser=mail \ |
|
| 97 |
+ --with-mailgroup=mail \ |
|
| 98 |
+ --with-paranoid-smtpext \ |
|
| 99 |
+ --with-db=gdbm \ |
|
| 100 |
+ --disable-autorenamesent \ |
|
| 101 |
+ --cache-file="${S}/configuring.cache" \
|
|
| 102 |
+ --host="${CHOST}" ${myconf} debug=true || die "./configure"
|
|
| 103 |
+ sed -e'/^install-perms-local:/a\ sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile
|
|
| 104 |
+ emake || die "Compile problem" |
|
| 105 |
+} |
|
| 106 |
+ |
|
| 107 |
+etc_courier() {
|
|
| 108 |
+ # Import existing /etc/courier/file if it exists. |
|
| 109 |
+ # Add option only if it was not already set or even commented out |
|
| 110 |
+ file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`"
|
|
| 111 |
+ [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \
|
|
| 112 |
+ cp "/etc/courier/${file}" "${D}/etc/courier/${file}"
|
|
| 113 |
+ grep -q "${word}" "${D}/etc/courier/${file}" || \
|
|
| 114 |
+ echo "${2}" >> "${D}/etc/courier/${file}"
|
|
| 115 |
+} |
|
| 116 |
+ |
|
| 117 |
+etc_courier_chg() {
|
|
| 118 |
+ file="${1}" ; key="${2}" ; value="${3}" ; section="${4}"
|
|
| 119 |
+ [ -z "${section}" ] && section="${2}"
|
|
| 120 |
+ grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}"
|
|
| 121 |
+ sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file}
|
|
| 122 |
+} |
|
| 123 |
+ |
|
| 124 |
+src_install() {
|
|
| 125 |
+ local f |
|
| 126 |
+ diropts -o mail -g mail |
|
| 127 |
+ keepdir /var/run/courier |
|
| 128 |
+ keepdir /var/lib/courier/tmp |
|
| 129 |
+ keepdir /var/lib/courier/msgs |
|
| 130 |
+ make install DESTDIR="${D}" || die "install"
|
|
| 131 |
+ make install-configure || die "install-configure" |
|
| 132 |
+ |
|
| 133 |
+ # Get rid of files we dont want |
|
| 134 |
+ if ! use webmail ; then |
|
| 135 |
+ cd "${D}"
|
|
| 136 |
+ cat "${FILESDIR}/webmail_files" | xargs rm -rf
|
|
| 137 |
+ fi |
|
| 138 |
+ |
|
| 139 |
+ if ! use web ; then |
|
| 140 |
+ cd "${D}"
|
|
| 141 |
+ cat "${FILESDIR}/webadmin_files" | xargs rm -rf
|
|
| 142 |
+ fi |
|
| 143 |
+ |
|
| 144 |
+ for dir2keep in $(cd "${D}" && find ./var/lib/courier -type d) ; do
|
|
| 145 |
+ keepdir "$dir2keep" || die "failed running keepdir: $dir2keep" |
|
| 146 |
+ done |
|
| 147 |
+ |
|
| 148 |
+ newinitd "${FILESDIR}/courier-init-r1" "courier"
|
|
| 149 |
+ use fam || sed -i -e's|^.*use famd$||g' "${D}/etc/init.d/courier"
|
|
| 150 |
+ |
|
| 151 |
+ cd "${D}/etc/courier"
|
|
| 152 |
+ if use webmail ; then |
|
| 153 |
+ insinto /etc/courier |
|
| 154 |
+ newins "${FILESDIR}/apache-sqwebmail.inc" apache-sqwebmail.inc
|
|
| 155 |
+ fi |
|
| 156 |
+ |
|
| 157 |
+ for f in *.dist ; do cp "${f}" "${f%%.dist}" ; done
|
|
| 158 |
+ if use ldap ; then |
|
| 159 |
+ [ -e ldapaliasrc ] && ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc ) |
|
| 160 |
+ else |
|
| 161 |
+ rm -f ldapaliasrc |
|
| 162 |
+ fi |
|
| 163 |
+ |
|
| 164 |
+ ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ |
|
| 165 |
+ > "${D}/etc/courier/sizelimit"
|
|
| 166 |
+ etc_courier maildroprc "" |
|
| 167 |
+ etc_courier esmtproutes "" |
|
| 168 |
+ etc_courier backuprelay "" |
|
| 169 |
+ etc_courier locallowercase "" |
|
| 170 |
+ etc_courier bofh "opt BOFHBADMIME=accept" |
|
| 171 |
+ etc_courier bofh "opt BOFHSPFTRUSTME=1" |
|
| 172 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail" |
|
| 173 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none" |
|
| 174 |
+ etc_courier bofh "opt BOFHSPFFROM=all" |
|
| 175 |
+ etc_courier bofh "opt BOFHSPFMAILFROM=all" |
|
| 176 |
+ etc_courier bofh "#opt BOFHSPFHARDERROR=fail" |
|
| 177 |
+ etc_courier esmtpd "BOFHBADMIME=accept" |
|
| 178 |
+ etc_courier esmtpd-ssl "BOFHBADMIME=accept" |
|
| 179 |
+ etc_courier esmtpd-msa "BOFHBADMIME=accept" |
|
| 180 |
+ |
|
| 181 |
+ 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" |
|
| 182 |
+ 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" |
|
| 183 |
+ |
|
| 184 |
+ # Fix for a sandbox violation on subsequential merges |
|
| 185 |
+ # - ticho@gentoo.org, 2005-07-10 |
|
| 186 |
+ rm "${D}"/usr/sbin/{pop3d,imapd}{,-ssl}
|
|
| 187 |
+ dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d |
|
| 188 |
+ dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl |
|
| 189 |
+ dosym /usr/share/courier/imapd /usr/sbin/courier-imapd |
|
| 190 |
+ dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl |
|
| 191 |
+ |
|
| 192 |
+ cd "${S}"
|
|
| 193 |
+ cp imap/README README.imap |
|
| 194 |
+ use nls && cp unicode/README README.unicode |
|
| 195 |
+ dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt |
|
| 196 |
+ dodoc tcpd/README.couriertls |
|
| 197 |
+ mv "${D}/usr/share/courier/htmldoc" "${D}/usr/share/doc/${P}/html"
|
|
| 198 |
+ |
|
| 199 |
+ if use webmail ; then |
|
| 200 |
+ insinto /usr/$(get_libdir)/courier/courier |
|
| 201 |
+ insopts -m 755 -o mail -g mail |
|
| 202 |
+ doins "${S}/courier/webmaild"
|
|
| 203 |
+ fi |
|
| 204 |
+ |
|
| 205 |
+ if use web ; then |
|
| 206 |
+ insinto /etc/courier/webadmin |
|
| 207 |
+ insopts -m 400 -o mail -g mail |
|
| 208 |
+ doins "${FILESDIR}/password.dist"
|
|
| 209 |
+ fi |
|
| 210 |
+ |
|
| 211 |
+ # avoid name collisions in /usr/sbin, make webadmin match |
|
| 212 |
+ cd "${D}/usr/sbin"
|
|
| 213 |
+ for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv "${f}" "courier-${f}" ; done
|
|
| 214 |
+ if use web ; then |
|
| 215 |
+ sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \ |
|
| 216 |
+ -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \ |
|
| 217 |
+ "${D}/usr/share/courier/courierwebadmin/admin-40imap.pl" \
|
|
| 218 |
+ || ewarn "failed to fix webadmin" |
|
| 219 |
+ sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \ |
|
| 220 |
+ -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \ |
|
| 221 |
+ "${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl" \
|
|
| 222 |
+ || ewarn "failed to fix webadmin" |
|
| 223 |
+ fi |
|
| 224 |
+ |
|
| 225 |
+ # users should be able to send mail. Could be restricted with suictl. |
|
| 226 |
+ chmod u+s "${D}/usr/bin/sendmail"
|
|
| 227 |
+ |
|
| 228 |
+ if use mailwrapper ; then |
|
| 229 |
+ mv "${D}/usr/bin/sendmail" "${D}/usr/bin/sendmail.courier"
|
|
| 230 |
+ mv "${D}/usr/bin/rmail" "${D}/usr/bin/rmail.courier"
|
|
| 231 |
+ mv "${D}/usr/bin/mailq" "${D}/usr/bin/mailq.courier"
|
|
| 232 |
+ |
|
| 233 |
+ mv "${D}/usr/share/man/man1/sendmail.1" \
|
|
| 234 |
+ "${D}/usr/share/man/man1/sendmail-courier.1"
|
|
| 235 |
+ mv "${D}/usr/share/man/man1/mailq.1" \
|
|
| 236 |
+ "${D}/usr/share/man/man1/mailq-courier.1"
|
|
| 237 |
+ mv "${D}/usr/share/man/man1/rmail.1" \
|
|
| 238 |
+ "${D}/usr/share/man/man1/rmail-courier.1"
|
|
| 239 |
+ |
|
| 240 |
+ insopts -m 444 -o mail -g mail |
|
| 241 |
+ insinto /etc/mail |
|
| 242 |
+ doins "${FILESDIR}/mailer.conf"
|
|
| 243 |
+ else |
|
| 244 |
+ dosym /usr/bin/sendmail /usr/sbin/sendmail |
|
| 245 |
+ fi |
|
| 246 |
+} |
|
| 247 |
+ |
|
| 248 |
+src_test() {
|
|
| 249 |
+ addpredict / |
|
| 250 |
+ echo ">>> Test phase [check]: ${CATEGORY}/${PF}"
|
|
| 251 |
+ if hasq userpriv "${FEATURES}" ; then
|
|
| 252 |
+ if ! emake -j1 check; then |
|
| 253 |
+ hasq test "${FEATURES}" && die "Make check failed. See above for details."
|
|
| 254 |
+ hasq test "${FEATURES}" || eerror "Make check failed. See above for details."
|
|
| 255 |
+ fi |
|
| 256 |
+ else |
|
| 257 |
+ hasq test "${FEATURES}" && eerror "Make check needs FEATURES="userpriv" to work."
|
|
| 258 |
+ fi |
|
| 259 |
+ SANDBOX_PREDICT="${SANDBOX_PREDICT%:/}"
|
|
| 260 |
+} |
|
| 261 |
+ |
|
| 262 |
+pkg_postinst() {
|
|
| 263 |
+ use fam && elog "fam daemon is needed for courier-imapd" \ |
|
| 264 |
+ || ewarn "courier was built without fam support" |
|
| 265 |
+} |
|
| 266 |
+ |
|
| 267 |
+pkg_config() {
|
|
| 268 |
+ mailhost="$(hostname)" |
|
| 269 |
+ export mailhost |
|
| 270 |
+ |
|
| 271 |
+ domainname="$(domainname)" |
|
| 272 |
+ if [ "x$domainname" = "x(none)" ] ; then |
|
| 273 |
+ domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")"
|
|
| 274 |
+ fi |
|
| 275 |
+ export domainname |
|
| 276 |
+ |
|
| 277 |
+ if [ "${ROOT}" = "/" ] ; then
|
|
| 278 |
+ file="${ROOT}/etc/courier/locals"
|
|
| 279 |
+ if [ ! -f "${file}" ] ; then
|
|
| 280 |
+ echo "localhost" > "${file}";
|
|
| 281 |
+ echo "${domainname}" >> "${file}";
|
|
| 282 |
+ fi |
|
| 283 |
+ file="${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}"
|
|
| 284 |
+ if [ ! -f "${file}" ] ; then
|
|
| 285 |
+ echo "${domainname}" > "${file}"
|
|
| 286 |
+ /usr/sbin/makeacceptmailfor |
|
| 287 |
+ fi |
|
| 288 |
+ |
|
| 289 |
+ file="${ROOT}/etc/courier/smtpaccess/${domainname}"
|
|
| 290 |
+ if [ ! -f "${file}" ]
|
|
| 291 |
+ then |
|
| 292 |
+ netstat -nr | grep "^[1-9]" | while read network gateway netmask rest |
|
| 293 |
+ do |
|
| 294 |
+ i=1 |
|
| 295 |
+ net="" |
|
| 296 |
+ TIFS="${IFS}"
|
|
| 297 |
+ IFS="." |
|
| 298 |
+ for o in "${netmask}"
|
|
| 299 |
+ do |
|
| 300 |
+ if [ "${o}" == "255" ]
|
|
| 301 |
+ then |
|
| 302 |
+ [ "_${net}" == "_" ] || net="${net}."
|
|
| 303 |
+ t="$(echo "${network}" | cut -d " " -f ${i})"
|
|
| 304 |
+ net="${net}${t}"
|
|
| 305 |
+ fi |
|
| 306 |
+ i="$((${i} + 1))"
|
|
| 307 |
+ done |
|
| 308 |
+ IFS="${TIFS}"
|
|
| 309 |
+ echo "doing configuration - relay control for the network ${net} !"
|
|
| 310 |
+ echo "${net} allow,RELAYCLIENT" >> ${file}
|
|
| 311 |
+ done |
|
| 312 |
+ /usr/sbin/makesmtpaccess |
|
| 313 |
+ fi |
|
| 314 |
+ fi |
|
| 315 |
+ |
|
| 316 |
+ echo "creating cert for esmtpd-ssl:" |
|
| 317 |
+ /usr/sbin/mkesmtpdcert |
|
| 318 |
+ echo "creating cert for imapd-ssl:" |
|
| 319 |
+ /usr/sbin/mkpop3dcert |
|
| 320 |
+ echo "creating cert for pop3d-ssl:" |
|
| 321 |
+ /usr/sbin/mkimapdcert |
|
| 322 |
+} |
| ... | ... |
@@ -0,0 +1,316 @@ |
| 1 |
+# Copyright 1999-2010 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.60.0.ebuild,v 1.6 2010/12/05 20:54:48 mattst88 Exp $ |
|
| 4 |
+ |
|
| 5 |
+inherit eutils flag-o-matic |
|
| 6 |
+ |
|
| 7 |
+DESCRIPTION="An MTA designed specifically for maildirs" |
|
| 8 |
+[ -z "${PV/?.??/}" ] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
|
|
| 9 |
+[ -z "${PV/?.??.?/}" ] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
|
|
| 10 |
+[ -z "${SRC_URI}" ] && SRC_URI="http://www.courier-mta.org/beta/courier/${P%%_pre}.tar.bz2"
|
|
| 11 |
+HOMEPAGE="http://www.courier-mta.org/" |
|
| 12 |
+S="${WORKDIR}/${P%%_pre}"
|
|
| 13 |
+ |
|
| 14 |
+SLOT="0" |
|
| 15 |
+LICENSE="GPL-2" |
|
| 16 |
+# not in keywords due to missing dependencies: ~arm ~s390 ~ppc64 |
|
| 17 |
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86" |
|
| 18 |
+IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite mailwrapper \ |
|
| 19 |
+ fam web webmail" |
|
| 20 |
+ |
|
| 21 |
+PROVIDE="virtual/mta |
|
| 22 |
+ virtual/mda |
|
| 23 |
+ virtual/imapd" |
|
| 24 |
+ |
|
| 25 |
+DEPEND=" |
|
| 26 |
+ >=net-libs/courier-authlib-0.61.0 |
|
| 27 |
+ >=dev-libs/openssl-0.9.6 |
|
| 28 |
+ >=sys-libs/gdbm-1.8.0 |
|
| 29 |
+ dev-libs/libpcre |
|
| 30 |
+ app-misc/mime-types |
|
| 31 |
+ fax? ( >=media-libs/netpbm-9.12 app-text/ghostscript-gpl >=net-dialup/mgetty-1.1.28 ) |
|
| 32 |
+ pam? ( virtual/pam ) |
|
| 33 |
+ mysql? ( virtual/mysql ) |
|
| 34 |
+ ldap? ( >=net-nds/openldap-1.2.11 ) |
|
| 35 |
+ postgres? ( dev-db/postgresql-base ) |
|
| 36 |
+ spell? ( virtual/aspell-dict ) |
|
| 37 |
+ fam? ( virtual/fam ) |
|
| 38 |
+ !mailwrapper? ( !virtual/mta ) |
|
| 39 |
+ !virtual/imapd |
|
| 40 |
+ !mail-filter/maildrop" |
|
| 41 |
+ |
|
| 42 |
+RDEPEND="${DEPEND}
|
|
| 43 |
+ dev-lang/perl |
|
| 44 |
+ sys-process/procps" |
|
| 45 |
+ |
|
| 46 |
+PDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 ) |
|
| 47 |
+ pam? ( net-mail/mailbase ) |
|
| 48 |
+ crypt? ( >=app-crypt/gnupg-1.0.4 )" |
|
| 49 |
+ |
|
| 50 |
+filter-flags '-fomit-frame-pointer' |
|
| 51 |
+ |
|
| 52 |
+src_unpack() {
|
|
| 53 |
+ use fam || ( |
|
| 54 |
+ ewarn "File Alteration Monitor (FAM) is disabled" |
|
| 55 |
+ ewarn "courier-imap will fall back to 60 second polls." |
|
| 56 |
+ ewarn 'add "fam" to your USE flags to build as usual' |
|
| 57 |
+ ebeep 4 |
|
| 58 |
+ epause 4 ) |
|
| 59 |
+ unpack ${A}
|
|
| 60 |
+ cd "${S}"
|
|
| 61 |
+ use norewrite && epatch "${FILESDIR}/norewrite.patch"
|
|
| 62 |
+ |
|
| 63 |
+} |
|
| 64 |
+ |
|
| 65 |
+src_compile() {
|
|
| 66 |
+ local myconf |
|
| 67 |
+ myconf="`use_with ipv6` \ |
|
| 68 |
+ `use_with ldap ldapaliasd` `use_enable ldap maildropldap`" |
|
| 69 |
+ |
|
| 70 |
+ use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf"
|
|
| 71 |
+ use spell || myconf="${myconf} --without-ispell"
|
|
| 72 |
+ |
|
| 73 |
+ myconf="${myconf} --enable-mimetypes=/etc/mime.types"
|
|
| 74 |
+ |
|
| 75 |
+ myconf="${myconf} $(use_with fam)"
|
|
| 76 |
+ |
|
| 77 |
+ einfo "Configuring courier: $(echo ${myconf} | xargs echo)"
|
|
| 78 |
+ |
|
| 79 |
+ econf \ |
|
| 80 |
+ --prefix=/usr \ |
|
| 81 |
+ --disable-root-check \ |
|
| 82 |
+ --mandir=/usr/share/man \ |
|
| 83 |
+ --sysconfdir=/etc/courier \ |
|
| 84 |
+ --libexecdir=/usr/$(get_libdir)/courier \ |
|
| 85 |
+ --datadir=/usr/share/courier \ |
|
| 86 |
+ --sharedstatedir=/var/lib/courier/com \ |
|
| 87 |
+ --localstatedir=/var/lib/courier \ |
|
| 88 |
+ --with-piddir=/var/run/courier \ |
|
| 89 |
+ --with-authdaemonvar=/var/lib/courier/authdaemon \ |
|
| 90 |
+ --with-mailuser=mail \ |
|
| 91 |
+ --with-mailgroup=mail \ |
|
| 92 |
+ --with-paranoid-smtpext \ |
|
| 93 |
+ --with-db=gdbm \ |
|
| 94 |
+ --disable-autorenamesent \ |
|
| 95 |
+ --cache-file="${S}/configuring.cache" \
|
|
| 96 |
+ --host="${CHOST}" ${myconf} debug=true || die "./configure"
|
|
| 97 |
+ sed -e'/^install-perms-local:/a\ sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile
|
|
| 98 |
+ emake || die "Compile problem" |
|
| 99 |
+} |
|
| 100 |
+ |
|
| 101 |
+etc_courier() {
|
|
| 102 |
+ # Import existing /etc/courier/file if it exists. |
|
| 103 |
+ # Add option only if it was not already set or even commented out |
|
| 104 |
+ file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`"
|
|
| 105 |
+ [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \
|
|
| 106 |
+ cp "/etc/courier/${file}" "${D}/etc/courier/${file}"
|
|
| 107 |
+ grep -q "${word}" "${D}/etc/courier/${file}" || \
|
|
| 108 |
+ echo "${2}" >> "${D}/etc/courier/${file}"
|
|
| 109 |
+} |
|
| 110 |
+ |
|
| 111 |
+etc_courier_chg() {
|
|
| 112 |
+ file="${1}" ; key="${2}" ; value="${3}" ; section="${4}"
|
|
| 113 |
+ [ -z "${section}" ] && section="${2}"
|
|
| 114 |
+ grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}"
|
|
| 115 |
+ sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file}
|
|
| 116 |
+} |
|
| 117 |
+ |
|
| 118 |
+src_install() {
|
|
| 119 |
+ local f |
|
| 120 |
+ diropts -o mail -g mail |
|
| 121 |
+ keepdir /var/run/courier |
|
| 122 |
+ keepdir /var/lib/courier/tmp |
|
| 123 |
+ keepdir /var/lib/courier/msgs |
|
| 124 |
+ make install DESTDIR="${D}" || die "install"
|
|
| 125 |
+ make install-configure || die "install-configure" |
|
| 126 |
+ |
|
| 127 |
+ # Get rid of files we dont want |
|
| 128 |
+ if ! use webmail ; then |
|
| 129 |
+ cd "${D}"
|
|
| 130 |
+ cat "${FILESDIR}/webmail_files" | xargs rm -rf
|
|
| 131 |
+ fi |
|
| 132 |
+ |
|
| 133 |
+ if ! use web ; then |
|
| 134 |
+ cd "${D}"
|
|
| 135 |
+ cat "${FILESDIR}/webadmin_files" | xargs rm -rf
|
|
| 136 |
+ fi |
|
| 137 |
+ |
|
| 138 |
+ for dir2keep in $(cd "${D}" && find ./var/lib/courier -type d) ; do
|
|
| 139 |
+ keepdir "$dir2keep" || die "failed running keepdir: $dir2keep" |
|
| 140 |
+ done |
|
| 141 |
+ |
|
| 142 |
+ newinitd "${FILESDIR}/courier-init-r2" "courier"
|
|
| 143 |
+ use fam || sed -i -e's|^.*use famd$||g' "${D}/etc/init.d/courier"
|
|
| 144 |
+ |
|
| 145 |
+ cd "${D}/etc/courier"
|
|
| 146 |
+ if use webmail ; then |
|
| 147 |
+ insinto /etc/courier |
|
| 148 |
+ newins "${FILESDIR}/apache-sqwebmail.inc" apache-sqwebmail.inc
|
|
| 149 |
+ fi |
|
| 150 |
+ |
|
| 151 |
+ for f in *.dist ; do cp "${f}" "${f%%.dist}" ; done
|
|
| 152 |
+ if use ldap ; then |
|
| 153 |
+ [ -e ldapaliasrc ] && ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc ) |
|
| 154 |
+ else |
|
| 155 |
+ rm -f ldapaliasrc |
|
| 156 |
+ fi |
|
| 157 |
+ |
|
| 158 |
+ ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ |
|
| 159 |
+ > "${D}/etc/courier/sizelimit"
|
|
| 160 |
+ etc_courier maildroprc "" |
|
| 161 |
+ etc_courier esmtproutes "" |
|
| 162 |
+ etc_courier backuprelay "" |
|
| 163 |
+ etc_courier locallowercase "" |
|
| 164 |
+ etc_courier bofh "opt BOFHBADMIME=accept" |
|
| 165 |
+ etc_courier bofh "opt BOFHSPFTRUSTME=1" |
|
| 166 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail" |
|
| 167 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none" |
|
| 168 |
+ etc_courier bofh "opt BOFHSPFFROM=all" |
|
| 169 |
+ etc_courier bofh "opt BOFHSPFMAILFROM=all" |
|
| 170 |
+ etc_courier bofh "#opt BOFHSPFHARDERROR=fail" |
|
| 171 |
+ etc_courier esmtpd "BOFHBADMIME=accept" |
|
| 172 |
+ etc_courier esmtpd-ssl "BOFHBADMIME=accept" |
|
| 173 |
+ etc_courier esmtpd-msa "BOFHBADMIME=accept" |
|
| 174 |
+ |
|
| 175 |
+ 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" |
|
| 176 |
+ 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" |
|
| 177 |
+ |
|
| 178 |
+ # Fix for a sandbox violation on subsequential merges |
|
| 179 |
+ # - ticho@gentoo.org, 2005-07-10 |
|
| 180 |
+ rm "${D}"/usr/sbin/{pop3d,imapd}{,-ssl}
|
|
| 181 |
+ dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d |
|
| 182 |
+ dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl |
|
| 183 |
+ dosym /usr/share/courier/imapd /usr/sbin/courier-imapd |
|
| 184 |
+ dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl |
|
| 185 |
+ |
|
| 186 |
+ cd "${S}"
|
|
| 187 |
+ cp imap/README README.imap |
|
| 188 |
+ use nls && cp unicode/README README.unicode |
|
| 189 |
+ dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt |
|
| 190 |
+ dodoc tcpd/README.couriertls |
|
| 191 |
+ mv "${D}/usr/share/courier/htmldoc" "${D}/usr/share/doc/${P}/html"
|
|
| 192 |
+ |
|
| 193 |
+ if use webmail ; then |
|
| 194 |
+ insinto /usr/$(get_libdir)/courier/courier |
|
| 195 |
+ insopts -m 755 -o mail -g mail |
|
| 196 |
+ doins "${S}/courier/webmaild"
|
|
| 197 |
+ fi |
|
| 198 |
+ |
|
| 199 |
+ if use web ; then |
|
| 200 |
+ insinto /etc/courier/webadmin |
|
| 201 |
+ insopts -m 400 -o mail -g mail |
|
| 202 |
+ doins "${FILESDIR}/password.dist"
|
|
| 203 |
+ fi |
|
| 204 |
+ |
|
| 205 |
+ # avoid name collisions in /usr/sbin, make webadmin match |
|
| 206 |
+ cd "${D}/usr/sbin"
|
|
| 207 |
+ for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv "${f}" "courier-${f}" ; done
|
|
| 208 |
+ if use web ; then |
|
| 209 |
+ sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \ |
|
| 210 |
+ -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \ |
|
| 211 |
+ "${D}/usr/share/courier/courierwebadmin/admin-40imap.pl" \
|
|
| 212 |
+ || ewarn "failed to fix webadmin" |
|
| 213 |
+ sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \ |
|
| 214 |
+ -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \ |
|
| 215 |
+ "${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl" \
|
|
| 216 |
+ || ewarn "failed to fix webadmin" |
|
| 217 |
+ fi |
|
| 218 |
+ |
|
| 219 |
+ # users should be able to send mail. Could be restricted with suictl. |
|
| 220 |
+ chmod u+s "${D}/usr/bin/sendmail"
|
|
| 221 |
+ |
|
| 222 |
+ if use mailwrapper ; then |
|
| 223 |
+ mv "${D}/usr/bin/sendmail" "${D}/usr/bin/sendmail.courier"
|
|
| 224 |
+ mv "${D}/usr/bin/rmail" "${D}/usr/bin/rmail.courier"
|
|
| 225 |
+ mv "${D}/usr/bin/mailq" "${D}/usr/bin/mailq.courier"
|
|
| 226 |
+ |
|
| 227 |
+ mv "${D}/usr/share/man/man1/sendmail.1" \
|
|
| 228 |
+ "${D}/usr/share/man/man1/sendmail-courier.1"
|
|
| 229 |
+ mv "${D}/usr/share/man/man1/mailq.1" \
|
|
| 230 |
+ "${D}/usr/share/man/man1/mailq-courier.1"
|
|
| 231 |
+ mv "${D}/usr/share/man/man1/rmail.1" \
|
|
| 232 |
+ "${D}/usr/share/man/man1/rmail-courier.1"
|
|
| 233 |
+ |
|
| 234 |
+ insopts -m 444 -o mail -g mail |
|
| 235 |
+ insinto /etc/mail |
|
| 236 |
+ doins "${FILESDIR}/mailer.conf"
|
|
| 237 |
+ else |
|
| 238 |
+ dosym /usr/bin/sendmail /usr/sbin/sendmail |
|
| 239 |
+ fi |
|
| 240 |
+} |
|
| 241 |
+ |
|
| 242 |
+src_test() {
|
|
| 243 |
+ addpredict / |
|
| 244 |
+ echo ">>> Test phase [check]: ${CATEGORY}/${PF}"
|
|
| 245 |
+ if hasq userpriv "${FEATURES}" ; then
|
|
| 246 |
+ if ! emake -j1 check; then |
|
| 247 |
+ hasq test "${FEATURES}" && die "Make check failed. See above for details."
|
|
| 248 |
+ hasq test "${FEATURES}" || eerror "Make check failed. See above for details."
|
|
| 249 |
+ fi |
|
| 250 |
+ else |
|
| 251 |
+ hasq test "${FEATURES}" && eerror "Make check needs FEATURES="userpriv" to work."
|
|
| 252 |
+ fi |
|
| 253 |
+ SANDBOX_PREDICT="${SANDBOX_PREDICT%:/}"
|
|
| 254 |
+} |
|
| 255 |
+ |
|
| 256 |
+pkg_postinst() {
|
|
| 257 |
+ use fam && elog "fam daemon is needed for courier-imapd" \ |
|
| 258 |
+ || ewarn "courier was built without fam support" |
|
| 259 |
+} |
|
| 260 |
+ |
|
| 261 |
+pkg_config() {
|
|
| 262 |
+ mailhost="$(hostname)" |
|
| 263 |
+ export mailhost |
|
| 264 |
+ |
|
| 265 |
+ domainname="$(domainname)" |
|
| 266 |
+ if [ "x$domainname" = "x(none)" ] ; then |
|
| 267 |
+ domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")"
|
|
| 268 |
+ fi |
|
| 269 |
+ export domainname |
|
| 270 |
+ |
|
| 271 |
+ if [ "${ROOT}" = "/" ] ; then
|
|
| 272 |
+ file="${ROOT}/etc/courier/locals"
|
|
| 273 |
+ if [ ! -f "${file}" ] ; then
|
|
| 274 |
+ echo "localhost" > "${file}";
|
|
| 275 |
+ echo "${domainname}" >> "${file}";
|
|
| 276 |
+ fi |
|
| 277 |
+ file="${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}"
|
|
| 278 |
+ if [ ! -f "${file}" ] ; then
|
|
| 279 |
+ echo "${domainname}" > "${file}"
|
|
| 280 |
+ /usr/sbin/makeacceptmailfor |
|
| 281 |
+ fi |
|
| 282 |
+ |
|
| 283 |
+ file="${ROOT}/etc/courier/smtpaccess/${domainname}"
|
|
| 284 |
+ if [ ! -f "${file}" ]
|
|
| 285 |
+ then |
|
| 286 |
+ netstat -nr | grep "^[1-9]" | while read network gateway netmask rest |
|
| 287 |
+ do |
|
| 288 |
+ i=1 |
|
| 289 |
+ net="" |
|
| 290 |
+ TIFS="${IFS}"
|
|
| 291 |
+ IFS="." |
|
| 292 |
+ for o in "${netmask}"
|
|
| 293 |
+ do |
|
| 294 |
+ if [ "${o}" == "255" ]
|
|
| 295 |
+ then |
|
| 296 |
+ [ "_${net}" == "_" ] || net="${net}."
|
|
| 297 |
+ t="$(echo "${network}" | cut -d " " -f ${i})"
|
|
| 298 |
+ net="${net}${t}"
|
|
| 299 |
+ fi |
|
| 300 |
+ i="$((${i} + 1))"
|
|
| 301 |
+ done |
|
| 302 |
+ IFS="${TIFS}"
|
|
| 303 |
+ echo "doing configuration - relay control for the network ${net} !"
|
|
| 304 |
+ echo "${net} allow,RELAYCLIENT" >> ${file}
|
|
| 305 |
+ done |
|
| 306 |
+ /usr/sbin/makesmtpaccess |
|
| 307 |
+ fi |
|
| 308 |
+ fi |
|
| 309 |
+ |
|
| 310 |
+ echo "creating cert for esmtpd-ssl:" |
|
| 311 |
+ /usr/sbin/mkesmtpdcert |
|
| 312 |
+ echo "creating cert for imapd-ssl:" |
|
| 313 |
+ /usr/sbin/mkpop3dcert |
|
| 314 |
+ echo "creating cert for pop3d-ssl:" |
|
| 315 |
+ /usr/sbin/mkimapdcert |
|
| 316 |
+} |
| ... | ... |
@@ -0,0 +1,314 @@ |
| 1 |
+# Copyright 1999-2010 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.61.1.ebuild,v 1.5 2010/12/05 20:54:48 mattst88 Exp $ |
|
| 4 |
+ |
|
| 5 |
+inherit eutils flag-o-matic |
|
| 6 |
+ |
|
| 7 |
+DESCRIPTION="An MTA designed specifically for maildirs" |
|
| 8 |
+SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
|
|
| 9 |
+HOMEPAGE="http://www.courier-mta.org/" |
|
| 10 |
+S="${WORKDIR}/${P}"
|
|
| 11 |
+ |
|
| 12 |
+SLOT="0" |
|
| 13 |
+LICENSE="GPL-2" |
|
| 14 |
+# not in keywords due to missing dependencies: ~arm ~s390 ~ppc64 |
|
| 15 |
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86" |
|
| 16 |
+IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite mailwrapper \ |
|
| 17 |
+ fam web webmail" |
|
| 18 |
+ |
|
| 19 |
+PROVIDE="virtual/mta |
|
| 20 |
+ virtual/mda |
|
| 21 |
+ virtual/imapd" |
|
| 22 |
+ |
|
| 23 |
+DEPEND=" |
|
| 24 |
+ >=net-libs/courier-authlib-0.61.0 |
|
| 25 |
+ >=dev-libs/openssl-0.9.6 |
|
| 26 |
+ >=sys-libs/gdbm-1.8.0 |
|
| 27 |
+ dev-libs/libpcre |
|
| 28 |
+ app-misc/mime-types |
|
| 29 |
+ fax? ( >=media-libs/netpbm-9.12 app-text/ghostscript-gpl >=net-dialup/mgetty-1.1.28 ) |
|
| 30 |
+ pam? ( virtual/pam ) |
|
| 31 |
+ mysql? ( virtual/mysql ) |
|
| 32 |
+ ldap? ( >=net-nds/openldap-1.2.11 ) |
|
| 33 |
+ postgres? ( dev-db/postgresql-base ) |
|
| 34 |
+ spell? ( virtual/aspell-dict ) |
|
| 35 |
+ fam? ( virtual/fam ) |
|
| 36 |
+ !mailwrapper? ( !virtual/mta ) |
|
| 37 |
+ !virtual/imapd |
|
| 38 |
+ !mail-filter/maildrop" |
|
| 39 |
+ |
|
| 40 |
+RDEPEND="${DEPEND}
|
|
| 41 |
+ dev-lang/perl |
|
| 42 |
+ sys-process/procps" |
|
| 43 |
+ |
|
| 44 |
+PDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 ) |
|
| 45 |
+ pam? ( net-mail/mailbase ) |
|
| 46 |
+ crypt? ( >=app-crypt/gnupg-1.0.4 )" |
|
| 47 |
+ |
|
| 48 |
+filter-flags '-fomit-frame-pointer' |
|
| 49 |
+ |
|
| 50 |
+src_unpack() {
|
|
| 51 |
+ use fam || ( |
|
| 52 |
+ ewarn "File Alteration Monitor (FAM) is disabled" |
|
| 53 |
+ ewarn "courier-imap will fall back to 60 second polls." |
|
| 54 |
+ ewarn 'add "fam" to your USE flags to build as usual' |
|
| 55 |
+ ebeep 4 |
|
| 56 |
+ epause 4 ) |
|
| 57 |
+ unpack ${A}
|
|
| 58 |
+ cd "${S}"
|
|
| 59 |
+ use norewrite && epatch "${FILESDIR}/norewrite.patch"
|
|
| 60 |
+ |
|
| 61 |
+} |
|
| 62 |
+ |
|
| 63 |
+src_compile() {
|
|
| 64 |
+ local myconf |
|
| 65 |
+ myconf="`use_with ipv6` \ |
|
| 66 |
+ `use_with ldap ldapaliasd` `use_enable ldap maildropldap`" |
|
| 67 |
+ |
|
| 68 |
+ use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf"
|
|
| 69 |
+ use spell || myconf="${myconf} --without-ispell"
|
|
| 70 |
+ |
|
| 71 |
+ myconf="${myconf} --enable-mimetypes=/etc/mime.types"
|
|
| 72 |
+ |
|
| 73 |
+ myconf="${myconf} $(use_with fam)"
|
|
| 74 |
+ |
|
| 75 |
+ einfo "Configuring courier: $(echo ${myconf} | xargs echo)"
|
|
| 76 |
+ |
|
| 77 |
+ econf \ |
|
| 78 |
+ --prefix=/usr \ |
|
| 79 |
+ --disable-root-check \ |
|
| 80 |
+ --mandir=/usr/share/man \ |
|
| 81 |
+ --sysconfdir=/etc/courier \ |
|
| 82 |
+ --libexecdir=/usr/$(get_libdir)/courier \ |
|
| 83 |
+ --datadir=/usr/share/courier \ |
|
| 84 |
+ --sharedstatedir=/var/lib/courier/com \ |
|
| 85 |
+ --localstatedir=/var/lib/courier \ |
|
| 86 |
+ --with-piddir=/var/run/courier \ |
|
| 87 |
+ --with-authdaemonvar=/var/lib/courier/authdaemon \ |
|
| 88 |
+ --with-mailuser=mail \ |
|
| 89 |
+ --with-mailgroup=mail \ |
|
| 90 |
+ --with-paranoid-smtpext \ |
|
| 91 |
+ --with-db=gdbm \ |
|
| 92 |
+ --disable-autorenamesent \ |
|
| 93 |
+ --cache-file="${S}/configuring.cache" \
|
|
| 94 |
+ --host="${CHOST}" ${myconf} debug=true || die "./configure"
|
|
| 95 |
+ sed -e'/^install-perms-local:/a\ sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile
|
|
| 96 |
+ emake || die "Compile problem" |
|
| 97 |
+} |
|
| 98 |
+ |
|
| 99 |
+etc_courier() {
|
|
| 100 |
+ # Import existing /etc/courier/file if it exists. |
|
| 101 |
+ # Add option only if it was not already set or even commented out |
|
| 102 |
+ file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`"
|
|
| 103 |
+ [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \
|
|
| 104 |
+ cp "/etc/courier/${file}" "${D}/etc/courier/${file}"
|
|
| 105 |
+ grep -q "${word}" "${D}/etc/courier/${file}" || \
|
|
| 106 |
+ echo "${2}" >> "${D}/etc/courier/${file}"
|
|
| 107 |
+} |
|
| 108 |
+ |
|
| 109 |
+etc_courier_chg() {
|
|
| 110 |
+ file="${1}" ; key="${2}" ; value="${3}" ; section="${4}"
|
|
| 111 |
+ [ -z "${section}" ] && section="${2}"
|
|
| 112 |
+ grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}"
|
|
| 113 |
+ sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file}
|
|
| 114 |
+} |
|
| 115 |
+ |
|
| 116 |
+src_install() {
|
|
| 117 |
+ local f |
|
| 118 |
+ diropts -o mail -g mail |
|
| 119 |
+ keepdir /var/run/courier |
|
| 120 |
+ keepdir /var/lib/courier/tmp |
|
| 121 |
+ keepdir /var/lib/courier/msgs |
|
| 122 |
+ make install DESTDIR="${D}" || die "install"
|
|
| 123 |
+ make install-configure || die "install-configure" |
|
| 124 |
+ |
|
| 125 |
+ # Get rid of files we dont want |
|
| 126 |
+ if ! use webmail ; then |
|
| 127 |
+ cd "${D}"
|
|
| 128 |
+ cat "${FILESDIR}/webmail_files" | xargs rm -rf
|
|
| 129 |
+ fi |
|
| 130 |
+ |
|
| 131 |
+ if ! use web ; then |
|
| 132 |
+ cd "${D}"
|
|
| 133 |
+ cat "${FILESDIR}/webadmin_files" | xargs rm -rf
|
|
| 134 |
+ fi |
|
| 135 |
+ |
|
| 136 |
+ for dir2keep in $(cd "${D}" && find ./var/lib/courier -type d) ; do
|
|
| 137 |
+ keepdir "$dir2keep" || die "failed running keepdir: $dir2keep" |
|
| 138 |
+ done |
|
| 139 |
+ |
|
| 140 |
+ newinitd "${FILESDIR}/courier-init-r2" "courier"
|
|
| 141 |
+ use fam || sed -i -e's|^.*use famd$||g' "${D}/etc/init.d/courier"
|
|
| 142 |
+ |
|
| 143 |
+ cd "${D}/etc/courier"
|
|
| 144 |
+ if use webmail ; then |
|
| 145 |
+ insinto /etc/courier |
|
| 146 |
+ newins "${FILESDIR}/apache-sqwebmail.inc" apache-sqwebmail.inc
|
|
| 147 |
+ fi |
|
| 148 |
+ |
|
| 149 |
+ for f in *.dist ; do cp "${f}" "${f%%.dist}" ; done
|
|
| 150 |
+ if use ldap ; then |
|
| 151 |
+ [ -e ldapaliasrc ] && ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc ) |
|
| 152 |
+ else |
|
| 153 |
+ rm -f ldapaliasrc |
|
| 154 |
+ fi |
|
| 155 |
+ |
|
| 156 |
+ ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ |
|
| 157 |
+ > "${D}/etc/courier/sizelimit"
|
|
| 158 |
+ etc_courier maildroprc "" |
|
| 159 |
+ etc_courier esmtproutes "" |
|
| 160 |
+ etc_courier backuprelay "" |
|
| 161 |
+ etc_courier locallowercase "" |
|
| 162 |
+ etc_courier bofh "opt BOFHBADMIME=accept" |
|
| 163 |
+ etc_courier bofh "opt BOFHSPFTRUSTME=1" |
|
| 164 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail" |
|
| 165 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none" |
|
| 166 |
+ etc_courier bofh "opt BOFHSPFFROM=all" |
|
| 167 |
+ etc_courier bofh "opt BOFHSPFMAILFROM=all" |
|
| 168 |
+ etc_courier bofh "#opt BOFHSPFHARDERROR=fail" |
|
| 169 |
+ etc_courier esmtpd "BOFHBADMIME=accept" |
|
| 170 |
+ etc_courier esmtpd-ssl "BOFHBADMIME=accept" |
|
| 171 |
+ etc_courier esmtpd-msa "BOFHBADMIME=accept" |
|
| 172 |
+ |
|
| 173 |
+ 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" |
|
| 174 |
+ 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" |
|
| 175 |
+ |
|
| 176 |
+ # Fix for a sandbox violation on subsequential merges |
|
| 177 |
+ # - ticho@gentoo.org, 2005-07-10 |
|
| 178 |
+ rm "${D}"/usr/sbin/{pop3d,imapd}{,-ssl}
|
|
| 179 |
+ dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d |
|
| 180 |
+ dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl |
|
| 181 |
+ dosym /usr/share/courier/imapd /usr/sbin/courier-imapd |
|
| 182 |
+ dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl |
|
| 183 |
+ |
|
| 184 |
+ cd "${S}"
|
|
| 185 |
+ cp imap/README README.imap |
|
| 186 |
+ use nls && cp unicode/README README.unicode |
|
| 187 |
+ dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt |
|
| 188 |
+ dodoc tcpd/README.couriertls |
|
| 189 |
+ mv "${D}/usr/share/courier/htmldoc" "${D}/usr/share/doc/${P}/html"
|
|
| 190 |
+ |
|
| 191 |
+ if use webmail ; then |
|
| 192 |
+ insinto /usr/$(get_libdir)/courier/courier |
|
| 193 |
+ insopts -m 755 -o mail -g mail |
|
| 194 |
+ doins "${S}/courier/webmaild"
|
|
| 195 |
+ fi |
|
| 196 |
+ |
|
| 197 |
+ if use web ; then |
|
| 198 |
+ insinto /etc/courier/webadmin |
|
| 199 |
+ insopts -m 400 -o mail -g mail |
|
| 200 |
+ doins "${FILESDIR}/password.dist"
|
|
| 201 |
+ fi |
|
| 202 |
+ |
|
| 203 |
+ # avoid name collisions in /usr/sbin, make webadmin match |
|
| 204 |
+ cd "${D}/usr/sbin"
|
|
| 205 |
+ for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv "${f}" "courier-${f}" ; done
|
|
| 206 |
+ if use web ; then |
|
| 207 |
+ sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \ |
|
| 208 |
+ -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \ |
|
| 209 |
+ "${D}/usr/share/courier/courierwebadmin/admin-40imap.pl" \
|
|
| 210 |
+ || ewarn "failed to fix webadmin" |
|
| 211 |
+ sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \ |
|
| 212 |
+ -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \ |
|
| 213 |
+ "${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl" \
|
|
| 214 |
+ || ewarn "failed to fix webadmin" |
|
| 215 |
+ fi |
|
| 216 |
+ |
|
| 217 |
+ # users should be able to send mail. Could be restricted with suictl. |
|
| 218 |
+ chmod u+s "${D}/usr/bin/sendmail"
|
|
| 219 |
+ |
|
| 220 |
+ if use mailwrapper ; then |
|
| 221 |
+ mv "${D}/usr/bin/sendmail" "${D}/usr/bin/sendmail.courier"
|
|
| 222 |
+ mv "${D}/usr/bin/rmail" "${D}/usr/bin/rmail.courier"
|
|
| 223 |
+ mv "${D}/usr/bin/mailq" "${D}/usr/bin/mailq.courier"
|
|
| 224 |
+ |
|
| 225 |
+ mv "${D}/usr/share/man/man1/sendmail.1" \
|
|
| 226 |
+ "${D}/usr/share/man/man1/sendmail-courier.1"
|
|
| 227 |
+ mv "${D}/usr/share/man/man1/mailq.1" \
|
|
| 228 |
+ "${D}/usr/share/man/man1/mailq-courier.1"
|
|
| 229 |
+ mv "${D}/usr/share/man/man1/rmail.1" \
|
|
| 230 |
+ "${D}/usr/share/man/man1/rmail-courier.1"
|
|
| 231 |
+ |
|
| 232 |
+ insopts -m 444 -o mail -g mail |
|
| 233 |
+ insinto /etc/mail |
|
| 234 |
+ doins "${FILESDIR}/mailer.conf"
|
|
| 235 |
+ else |
|
| 236 |
+ dosym /usr/bin/sendmail /usr/sbin/sendmail |
|
| 237 |
+ fi |
|
| 238 |
+} |
|
| 239 |
+ |
|
| 240 |
+src_test() {
|
|
| 241 |
+ addpredict / |
|
| 242 |
+ echo ">>> Test phase [check]: ${CATEGORY}/${PF}"
|
|
| 243 |
+ if hasq userpriv "${FEATURES}" ; then
|
|
| 244 |
+ if ! emake -j1 check; then |
|
| 245 |
+ hasq test "${FEATURES}" && die "Make check failed. See above for details."
|
|
| 246 |
+ hasq test "${FEATURES}" || eerror "Make check failed. See above for details."
|
|
| 247 |
+ fi |
|
| 248 |
+ else |
|
| 249 |
+ hasq test "${FEATURES}" && eerror "Make check needs FEATURES="userpriv" to work."
|
|
| 250 |
+ fi |
|
| 251 |
+ SANDBOX_PREDICT="${SANDBOX_PREDICT%:/}"
|
|
| 252 |
+} |
|
| 253 |
+ |
|
| 254 |
+pkg_postinst() {
|
|
| 255 |
+ use fam && elog "fam daemon is needed for courier-imapd" \ |
|
| 256 |
+ || ewarn "courier was built without fam support" |
|
| 257 |
+} |
|
| 258 |
+ |
|
| 259 |
+pkg_config() {
|
|
| 260 |
+ mailhost="$(hostname)" |
|
| 261 |
+ export mailhost |
|
| 262 |
+ |
|
| 263 |
+ domainname="$(domainname)" |
|
| 264 |
+ if [ "x$domainname" = "x(none)" ] ; then |
|
| 265 |
+ domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")"
|
|
| 266 |
+ fi |
|
| 267 |
+ export domainname |
|
| 268 |
+ |
|
| 269 |
+ if [ "${ROOT}" = "/" ] ; then
|
|
| 270 |
+ file="${ROOT}/etc/courier/locals"
|
|
| 271 |
+ if [ ! -f "${file}" ] ; then
|
|
| 272 |
+ echo "localhost" > "${file}";
|
|
| 273 |
+ echo "${domainname}" >> "${file}";
|
|
| 274 |
+ fi |
|
| 275 |
+ file="${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}"
|
|
| 276 |
+ if [ ! -f "${file}" ] ; then
|
|
| 277 |
+ echo "${domainname}" > "${file}"
|
|
| 278 |
+ /usr/sbin/makeacceptmailfor |
|
| 279 |
+ fi |
|
| 280 |
+ |
|
| 281 |
+ file="${ROOT}/etc/courier/smtpaccess/${domainname}"
|
|
| 282 |
+ if [ ! -f "${file}" ]
|
|
| 283 |
+ then |
|
| 284 |
+ netstat -nr | grep "^[1-9]" | while read network gateway netmask rest |
|
| 285 |
+ do |
|
| 286 |
+ i=1 |
|
| 287 |
+ net="" |
|
| 288 |
+ TIFS="${IFS}"
|
|
| 289 |
+ IFS="." |
|
| 290 |
+ for o in "${netmask}"
|
|
| 291 |
+ do |
|
| 292 |
+ if [ "${o}" == "255" ]
|
|
| 293 |
+ then |
|
| 294 |
+ [ "_${net}" == "_" ] || net="${net}."
|
|
| 295 |
+ t="$(echo "${network}" | cut -d " " -f ${i})"
|
|
| 296 |
+ net="${net}${t}"
|
|
| 297 |
+ fi |
|
| 298 |
+ i="$((${i} + 1))"
|
|
| 299 |
+ done |
|
| 300 |
+ IFS="${TIFS}"
|
|
| 301 |
+ echo "doing configuration - relay control for the network ${net} !"
|
|
| 302 |
+ echo "${net} allow,RELAYCLIENT" >> ${file}
|
|
| 303 |
+ done |
|
| 304 |
+ /usr/sbin/makesmtpaccess |
|
| 305 |
+ fi |
|
| 306 |
+ fi |
|
| 307 |
+ |
|
| 308 |
+ echo "creating cert for esmtpd-ssl:" |
|
| 309 |
+ /usr/sbin/mkesmtpdcert |
|
| 310 |
+ echo "creating cert for imapd-ssl:" |
|
| 311 |
+ /usr/sbin/mkpop3dcert |
|
| 312 |
+ echo "creating cert for pop3d-ssl:" |
|
| 313 |
+ /usr/sbin/mkimapdcert |
|
| 314 |
+} |
| ... | ... |
@@ -0,0 +1,311 @@ |
| 1 |
+# Copyright 1999-2010 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.61.2.ebuild,v 1.6 2010/12/05 20:54:48 mattst88 Exp $ |
|
| 4 |
+ |
|
| 5 |
+inherit eutils flag-o-matic |
|
| 6 |
+ |
|
| 7 |
+DESCRIPTION="An MTA designed specifically for maildirs" |
|
| 8 |
+SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
|
|
| 9 |
+HOMEPAGE="http://www.courier-mta.org/" |
|
| 10 |
+SLOT="0" |
|
| 11 |
+LICENSE="GPL-2" |
|
| 12 |
+# not in keywords due to missing dependencies: ~arm ~s390 ~ppc64 |
|
| 13 |
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86" |
|
| 14 |
+IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite mailwrapper \ |
|
| 15 |
+ fam web webmail" |
|
| 16 |
+ |
|
| 17 |
+PROVIDE="virtual/mta |
|
| 18 |
+ virtual/mda |
|
| 19 |
+ virtual/imapd" |
|
| 20 |
+ |
|
| 21 |
+DEPEND=" |
|
| 22 |
+ >=net-libs/courier-authlib-0.61.0 |
|
| 23 |
+ >=dev-libs/openssl-0.9.6 |
|
| 24 |
+ >=sys-libs/gdbm-1.8.0 |
|
| 25 |
+ dev-libs/libpcre |
|
| 26 |
+ app-misc/mime-types |
|
| 27 |
+ fax? ( >=media-libs/netpbm-9.12 app-text/ghostscript-gpl >=net-dialup/mgetty-1.1.28 ) |
|
| 28 |
+ pam? ( virtual/pam ) |
|
| 29 |
+ mysql? ( virtual/mysql ) |
|
| 30 |
+ ldap? ( >=net-nds/openldap-1.2.11 ) |
|
| 31 |
+ postgres? ( dev-db/postgresql-base ) |
|
| 32 |
+ spell? ( virtual/aspell-dict ) |
|
| 33 |
+ fam? ( virtual/fam ) |
|
| 34 |
+ !mailwrapper? ( !virtual/mta ) |
|
| 35 |
+ !virtual/imapd |
|
| 36 |
+ !mail-filter/maildrop" |
|
| 37 |
+ |
|
| 38 |
+RDEPEND="${DEPEND}
|
|
| 39 |
+ dev-lang/perl |
|
| 40 |
+ sys-process/procps" |
|
| 41 |
+ |
|
| 42 |
+PDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 ) |
|
| 43 |
+ pam? ( net-mail/mailbase ) |
|
| 44 |
+ crypt? ( >=app-crypt/gnupg-1.0.4 )" |
|
| 45 |
+ |
|
| 46 |
+src_unpack() {
|
|
| 47 |
+ use fam || ( |
|
| 48 |
+ ewarn "File Alteration Monitor (FAM) is disabled" |
|
| 49 |
+ ewarn "courier-imap will fall back to 60 second polls." |
|
| 50 |
+ ewarn 'add "fam" to your USE flags to build as usual' |
|
| 51 |
+ ebeep 4 |
|
| 52 |
+ epause 4 ) |
|
| 53 |
+ unpack ${A}
|
|
| 54 |
+ cd "${S}"
|
|
| 55 |
+ use norewrite && epatch "${FILESDIR}/norewrite.patch"
|
|
| 56 |
+} |
|
| 57 |
+ |
|
| 58 |
+src_compile() {
|
|
| 59 |
+ filter-flags '-fomit-frame-pointer' |
|
| 60 |
+ |
|
| 61 |
+ local myconf |
|
| 62 |
+ myconf="`use_with ipv6` \ |
|
| 63 |
+ `use_with ldap ldapaliasd` `use_enable ldap maildropldap`" |
|
| 64 |
+ |
|
| 65 |
+ use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf"
|
|
| 66 |
+ use spell || myconf="${myconf} --without-ispell"
|
|
| 67 |
+ |
|
| 68 |
+ myconf="${myconf} --enable-mimetypes=/etc/mime.types"
|
|
| 69 |
+ |
|
| 70 |
+ myconf="${myconf} $(use_with fam)"
|
|
| 71 |
+ |
|
| 72 |
+ einfo "Configuring courier: $(echo ${myconf} | xargs echo)"
|
|
| 73 |
+ |
|
| 74 |
+ econf \ |
|
| 75 |
+ --prefix=/usr \ |
|
| 76 |
+ --disable-root-check \ |
|
| 77 |
+ --mandir=/usr/share/man \ |
|
| 78 |
+ --sysconfdir=/etc/courier \ |
|
| 79 |
+ --libexecdir=/usr/$(get_libdir)/courier \ |
|
| 80 |
+ --datadir=/usr/share/courier \ |
|
| 81 |
+ --sharedstatedir=/var/lib/courier/com \ |
|
| 82 |
+ --localstatedir=/var/lib/courier \ |
|
| 83 |
+ --with-piddir=/var/run/courier \ |
|
| 84 |
+ --with-authdaemonvar=/var/lib/courier/authdaemon \ |
|
| 85 |
+ --with-mailuser=mail \ |
|
| 86 |
+ --with-mailgroup=mail \ |
|
| 87 |
+ --with-paranoid-smtpext \ |
|
| 88 |
+ --with-db=gdbm \ |
|
| 89 |
+ --disable-autorenamesent \ |
|
| 90 |
+ --cache-file="${S}/configuring.cache" \
|
|
| 91 |
+ --host="${CHOST}" ${myconf} debug=true || die "./configure"
|
|
| 92 |
+ sed -e'/^install-perms-local:/a\ sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile
|
|
| 93 |
+ emake || die "Compile problem" |
|
| 94 |
+} |
|
| 95 |
+ |
|
| 96 |
+etc_courier() {
|
|
| 97 |
+ # Import existing /etc/courier/file if it exists. |
|
| 98 |
+ # Add option only if it was not already set or even commented out |
|
| 99 |
+ file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`"
|
|
| 100 |
+ [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \
|
|
| 101 |
+ cp "/etc/courier/${file}" "${D}/etc/courier/${file}"
|
|
| 102 |
+ grep -q "${word}" "${D}/etc/courier/${file}" || \
|
|
| 103 |
+ echo "${2}" >> "${D}/etc/courier/${file}"
|
|
| 104 |
+} |
|
| 105 |
+ |
|
| 106 |
+etc_courier_chg() {
|
|
| 107 |
+ file="${1}" ; key="${2}" ; value="${3}" ; section="${4}"
|
|
| 108 |
+ [ -z "${section}" ] && section="${2}"
|
|
| 109 |
+ grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}"
|
|
| 110 |
+ sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file}
|
|
| 111 |
+} |
|
| 112 |
+ |
|
| 113 |
+src_install() {
|
|
| 114 |
+ local f |
|
| 115 |
+ diropts -o mail -g mail |
|
| 116 |
+ keepdir /var/run/courier |
|
| 117 |
+ keepdir /var/lib/courier/tmp |
|
| 118 |
+ keepdir /var/lib/courier/msgs |
|
| 119 |
+ make install DESTDIR="${D}" || die "install"
|
|
| 120 |
+ make install-configure || die "install-configure" |
|
| 121 |
+ |
|
| 122 |
+ # Get rid of files we dont want |
|
| 123 |
+ if ! use webmail ; then |
|
| 124 |
+ cd "${D}"
|
|
| 125 |
+ cat "${FILESDIR}/webmail_files" | xargs rm -rf
|
|
| 126 |
+ fi |
|
| 127 |
+ |
|
| 128 |
+ if ! use web ; then |
|
| 129 |
+ cd "${D}"
|
|
| 130 |
+ cat "${FILESDIR}/webadmin_files" | xargs rm -rf
|
|
| 131 |
+ fi |
|
| 132 |
+ |
|
| 133 |
+ for dir2keep in $(cd "${D}" && find ./var/lib/courier -type d) ; do
|
|
| 134 |
+ keepdir "$dir2keep" || die "failed running keepdir: $dir2keep" |
|
| 135 |
+ done |
|
| 136 |
+ |
|
| 137 |
+ newinitd "${FILESDIR}/courier-init-r2" "courier"
|
|
| 138 |
+ use fam || sed -i -e's|^.*use famd$||g' "${D}/etc/init.d/courier"
|
|
| 139 |
+ |
|
| 140 |
+ cd "${D}/etc/courier"
|
|
| 141 |
+ if use webmail ; then |
|
| 142 |
+ insinto /etc/courier |
|
| 143 |
+ newins "${FILESDIR}/apache-sqwebmail.inc" apache-sqwebmail.inc
|
|
| 144 |
+ fi |
|
| 145 |
+ |
|
| 146 |
+ for f in *.dist ; do cp "${f}" "${f%%.dist}" ; done
|
|
| 147 |
+ if use ldap ; then |
|
| 148 |
+ [ -e ldapaliasrc ] && ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc ) |
|
| 149 |
+ else |
|
| 150 |
+ rm -f ldapaliasrc |
|
| 151 |
+ fi |
|
| 152 |
+ |
|
| 153 |
+ ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ |
|
| 154 |
+ > "${D}/etc/courier/sizelimit"
|
|
| 155 |
+ etc_courier maildroprc "" |
|
| 156 |
+ etc_courier esmtproutes "" |
|
| 157 |
+ etc_courier backuprelay "" |
|
| 158 |
+ etc_courier locallowercase "" |
|
| 159 |
+ etc_courier bofh "opt BOFHBADMIME=accept" |
|
| 160 |
+ etc_courier bofh "opt BOFHSPFTRUSTME=1" |
|
| 161 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail" |
|
| 162 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none" |
|
| 163 |
+ etc_courier bofh "opt BOFHSPFFROM=all" |
|
| 164 |
+ etc_courier bofh "opt BOFHSPFMAILFROM=all" |
|
| 165 |
+ etc_courier bofh "#opt BOFHSPFHARDERROR=fail" |
|
| 166 |
+ etc_courier esmtpd "BOFHBADMIME=accept" |
|
| 167 |
+ etc_courier esmtpd-ssl "BOFHBADMIME=accept" |
|
| 168 |
+ etc_courier esmtpd-msa "BOFHBADMIME=accept" |
|
| 169 |
+ |
|
| 170 |
+ 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" |
|
| 171 |
+ 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" |
|
| 172 |
+ |
|
| 173 |
+ # Fix for a sandbox violation on subsequential merges |
|
| 174 |
+ # - ticho@gentoo.org, 2005-07-10 |
|
| 175 |
+ rm "${D}"/usr/sbin/{pop3d,imapd}{,-ssl}
|
|
| 176 |
+ dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d |
|
| 177 |
+ dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl |
|
| 178 |
+ dosym /usr/share/courier/imapd /usr/sbin/courier-imapd |
|
| 179 |
+ dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl |
|
| 180 |
+ |
|
| 181 |
+ cd "${S}"
|
|
| 182 |
+ cp imap/README README.imap |
|
| 183 |
+ use nls && cp unicode/README README.unicode |
|
| 184 |
+ dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt |
|
| 185 |
+ dodoc tcpd/README.couriertls |
|
| 186 |
+ mv "${D}/usr/share/courier/htmldoc" "${D}/usr/share/doc/${P}/html"
|
|
| 187 |
+ |
|
| 188 |
+ if use webmail ; then |
|
| 189 |
+ insinto /usr/$(get_libdir)/courier/courier |
|
| 190 |
+ insopts -m 755 -o mail -g mail |
|
| 191 |
+ doins "${S}/courier/webmaild"
|
|
| 192 |
+ fi |
|
| 193 |
+ |
|
| 194 |
+ if use web ; then |
|
| 195 |
+ insinto /etc/courier/webadmin |
|
| 196 |
+ insopts -m 400 -o mail -g mail |
|
| 197 |
+ doins "${FILESDIR}/password.dist"
|
|
| 198 |
+ fi |
|
| 199 |
+ |
|
| 200 |
+ # avoid name collisions in /usr/sbin, make webadmin match |
|
| 201 |
+ cd "${D}/usr/sbin"
|
|
| 202 |
+ for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv "${f}" "courier-${f}" ; done
|
|
| 203 |
+ if use web ; then |
|
| 204 |
+ sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \ |
|
| 205 |
+ -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \ |
|
| 206 |
+ "${D}/usr/share/courier/courierwebadmin/admin-40imap.pl" \
|
|
| 207 |
+ || ewarn "failed to fix webadmin" |
|
| 208 |
+ sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \ |
|
| 209 |
+ -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \ |
|
| 210 |
+ "${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl" \
|
|
| 211 |
+ || ewarn "failed to fix webadmin" |
|
| 212 |
+ fi |
|
| 213 |
+ |
|
| 214 |
+ # users should be able to send mail. Could be restricted with suictl. |
|
| 215 |
+ chmod u+s "${D}/usr/bin/sendmail"
|
|
| 216 |
+ |
|
| 217 |
+ if use mailwrapper ; then |
|
| 218 |
+ mv "${D}/usr/bin/sendmail" "${D}/usr/bin/sendmail.courier"
|
|
| 219 |
+ mv "${D}/usr/bin/rmail" "${D}/usr/bin/rmail.courier"
|
|
| 220 |
+ mv "${D}/usr/bin/mailq" "${D}/usr/bin/mailq.courier"
|
|
| 221 |
+ |
|
| 222 |
+ mv "${D}/usr/share/man/man1/sendmail.1" \
|
|
| 223 |
+ "${D}/usr/share/man/man1/sendmail-courier.1"
|
|
| 224 |
+ mv "${D}/usr/share/man/man1/mailq.1" \
|
|
| 225 |
+ "${D}/usr/share/man/man1/mailq-courier.1"
|
|
| 226 |
+ mv "${D}/usr/share/man/man1/rmail.1" \
|
|
| 227 |
+ "${D}/usr/share/man/man1/rmail-courier.1"
|
|
| 228 |
+ |
|
| 229 |
+ insopts -m 444 -o mail -g mail |
|
| 230 |
+ insinto /etc/mail |
|
| 231 |
+ doins "${FILESDIR}/mailer.conf"
|
|
| 232 |
+ else |
|
| 233 |
+ dosym /usr/bin/sendmail /usr/sbin/sendmail |
|
| 234 |
+ fi |
|
| 235 |
+} |
|
| 236 |
+ |
|
| 237 |
+src_test() {
|
|
| 238 |
+ addpredict / |
|
| 239 |
+ echo ">>> Test phase [check]: ${CATEGORY}/${PF}"
|
|
| 240 |
+ if hasq userpriv "${FEATURES}" ; then
|
|
| 241 |
+ if ! emake -j1 check; then |
|
| 242 |
+ hasq test "${FEATURES}" && die "Make check failed. See above for details."
|
|
| 243 |
+ hasq test "${FEATURES}" || eerror "Make check failed. See above for details."
|
|
| 244 |
+ fi |
|
| 245 |
+ else |
|
| 246 |
+ hasq test "${FEATURES}" && eerror "Make check needs FEATURES="userpriv" to work."
|
|
| 247 |
+ fi |
|
| 248 |
+ SANDBOX_PREDICT="${SANDBOX_PREDICT%:/}"
|
|
| 249 |
+} |
|
| 250 |
+ |
|
| 251 |
+pkg_postinst() {
|
|
| 252 |
+ use fam && elog "fam daemon is needed for courier-imapd" \ |
|
| 253 |
+ || ewarn "courier was built without fam support" |
|
| 254 |
+} |
|
| 255 |
+ |
|
| 256 |
+pkg_config() {
|
|
| 257 |
+ mailhost="$(hostname)" |
|
| 258 |
+ export mailhost |
|
| 259 |
+ |
|
| 260 |
+ domainname="$(domainname)" |
|
| 261 |
+ if [ "x$domainname" = "x(none)" ] ; then |
|
| 262 |
+ domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")"
|
|
| 263 |
+ fi |
|
| 264 |
+ export domainname |
|
| 265 |
+ |
|
| 266 |
+ if [ "${ROOT}" = "/" ] ; then
|
|
| 267 |
+ file="${ROOT}/etc/courier/locals"
|
|
| 268 |
+ if [ ! -f "${file}" ] ; then
|
|
| 269 |
+ echo "localhost" > "${file}";
|
|
| 270 |
+ echo "${domainname}" >> "${file}";
|
|
| 271 |
+ fi |
|
| 272 |
+ file="${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}"
|
|
| 273 |
+ if [ ! -f "${file}" ] ; then
|
|
| 274 |
+ echo "${domainname}" > "${file}"
|
|
| 275 |
+ /usr/sbin/makeacceptmailfor |
|
| 276 |
+ fi |
|
| 277 |
+ |
|
| 278 |
+ file="${ROOT}/etc/courier/smtpaccess/${domainname}"
|
|
| 279 |
+ if [ ! -f "${file}" ]
|
|
| 280 |
+ then |
|
| 281 |
+ netstat -nr | grep "^[1-9]" | while read network gateway netmask rest |
|
| 282 |
+ do |
|
| 283 |
+ i=1 |
|
| 284 |
+ net="" |
|
| 285 |
+ TIFS="${IFS}"
|
|
| 286 |
+ IFS="." |
|
| 287 |
+ for o in "${netmask}"
|
|
| 288 |
+ do |
|
| 289 |
+ if [ "${o}" == "255" ]
|
|
| 290 |
+ then |
|
| 291 |
+ [ "_${net}" == "_" ] || net="${net}."
|
|
| 292 |
+ t="$(echo "${network}" | cut -d " " -f ${i})"
|
|
| 293 |
+ net="${net}${t}"
|
|
| 294 |
+ fi |
|
| 295 |
+ i="$((${i} + 1))"
|
|
| 296 |
+ done |
|
| 297 |
+ IFS="${TIFS}"
|
|
| 298 |
+ echo "doing configuration - relay control for the network ${net} !"
|
|
| 299 |
+ echo "${net} allow,RELAYCLIENT" >> ${file}
|
|
| 300 |
+ done |
|
| 301 |
+ /usr/sbin/makesmtpaccess |
|
| 302 |
+ fi |
|
| 303 |
+ fi |
|
| 304 |
+ |
|
| 305 |
+ echo "creating cert for esmtpd-ssl:" |
|
| 306 |
+ /usr/sbin/mkesmtpdcert |
|
| 307 |
+ echo "creating cert for imapd-ssl:" |
|
| 308 |
+ /usr/sbin/mkpop3dcert |
|
| 309 |
+ echo "creating cert for pop3d-ssl:" |
|
| 310 |
+ /usr/sbin/mkimapdcert |
|
| 311 |
+} |
| ... | ... |
@@ -0,0 +1,298 @@ |
| 1 |
+# Copyright 1999-2010 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.62.2.ebuild,v 1.7 2010/12/05 20:54:48 mattst88 Exp $ |
|
| 4 |
+ |
|
| 5 |
+inherit eutils flag-o-matic |
|
| 6 |
+ |
|
| 7 |
+DESCRIPTION="An MTA designed specifically for maildirs" |
|
| 8 |
+SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
|
|
| 9 |
+HOMEPAGE="http://www.courier-mta.org/" |
|
| 10 |
+SLOT="0" |
|
| 11 |
+LICENSE="GPL-2" |
|
| 12 |
+# not in keywords due to missing dependencies: ~arm ~s390 ~ppc64 |
|
| 13 |
+KEYWORDS="alpha amd64 ~hppa ia64 ppc sparc x86" |
|
| 14 |
+IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite mailwrapper \ |
|
| 15 |
+ fam web webmail" |
|
| 16 |
+ |
|
| 17 |
+PROVIDE="virtual/mta |
|
| 18 |
+ virtual/mda |
|
| 19 |
+ virtual/imapd" |
|
| 20 |
+ |
|
| 21 |
+DEPEND=" |
|
| 22 |
+ >=net-libs/courier-authlib-0.61.0 |
|
| 23 |
+ >=dev-libs/openssl-0.9.6 |
|
| 24 |
+ >=sys-libs/gdbm-1.8.0 |
|
| 25 |
+ dev-libs/libpcre |
|
| 26 |
+ app-misc/mime-types |
|
| 27 |
+ fax? ( >=media-libs/netpbm-9.12 app-text/ghostscript-gpl >=net-dialup/mgetty-1.1.28 ) |
|
| 28 |
+ pam? ( virtual/pam ) |
|
| 29 |
+ mysql? ( virtual/mysql ) |
|
| 30 |
+ ldap? ( >=net-nds/openldap-1.2.11 ) |
|
| 31 |
+ postgres? ( dev-db/postgresql-base ) |
|
| 32 |
+ spell? ( virtual/aspell-dict ) |
|
| 33 |
+ fam? ( virtual/fam ) |
|
| 34 |
+ !mailwrapper? ( !virtual/mta ) |
|
| 35 |
+ !virtual/imapd |
|
| 36 |
+ !mail-filter/maildrop" |
|
| 37 |
+ |
|
| 38 |
+RDEPEND="${DEPEND}
|
|
| 39 |
+ dev-lang/perl |
|
| 40 |
+ sys-process/procps" |
|
| 41 |
+ |
|
| 42 |
+PDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 ) |
|
| 43 |
+ pam? ( net-mail/mailbase ) |
|
| 44 |
+ crypt? ( >=app-crypt/gnupg-1.0.4 )" |
|
| 45 |
+ |
|
| 46 |
+src_unpack() {
|
|
| 47 |
+ unpack ${A}
|
|
| 48 |
+ cd "${S}"
|
|
| 49 |
+ use norewrite && epatch "${FILESDIR}/norewrite.patch"
|
|
| 50 |
+} |
|
| 51 |
+ |
|
| 52 |
+src_compile() {
|
|
| 53 |
+ filter-flags '-fomit-frame-pointer' |
|
| 54 |
+ |
|
| 55 |
+ local myconf |
|
| 56 |
+ myconf="" |
|
| 57 |
+ |
|
| 58 |
+ use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf"
|
|
| 59 |
+ |
|
| 60 |
+ econf ${myconf} \
|
|
| 61 |
+ $(use_with fam) \ |
|
| 62 |
+ $(use_with ipv6) \ |
|
| 63 |
+ $(use_with spell ispell) \ |
|
| 64 |
+ $(use_with ldap ldapaliasd) \ |
|
| 65 |
+ $(use_enable ldap maildroldap) \ |
|
| 66 |
+ --enable-mimetypes=/etc/mime.types \ |
|
| 67 |
+ --prefix=/usr \ |
|
| 68 |
+ --disable-root-check \ |
|
| 69 |
+ --mandir=/usr/share/man \ |
|
| 70 |
+ --sysconfdir=/etc/courier \ |
|
| 71 |
+ --libexecdir=/usr/$(get_libdir)/courier \ |
|
| 72 |
+ --datadir=/usr/share/courier \ |
|
| 73 |
+ --sharedstatedir=/var/lib/courier/com \ |
|
| 74 |
+ --localstatedir=/var/lib/courier \ |
|
| 75 |
+ --with-piddir=/var/run/courier \ |
|
| 76 |
+ --with-authdaemonvar=/var/lib/courier/authdaemon \ |
|
| 77 |
+ --with-mailuser=mail \ |
|
| 78 |
+ --with-mailgroup=mail \ |
|
| 79 |
+ --with-paranoid-smtpext \ |
|
| 80 |
+ --with-db=gdbm \ |
|
| 81 |
+ --disable-autorenamesent \ |
|
| 82 |
+ --cache-file="${S}/configuring.cache" \
|
|
| 83 |
+ --host="${CHOST}" debug=true || die "./configure"
|
|
| 84 |
+ sed -e'/^install-perms-local:/a\ sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile
|
|
| 85 |
+ emake || die "Compile problem" |
|
| 86 |
+} |
|
| 87 |
+ |
|
| 88 |
+etc_courier() {
|
|
| 89 |
+ # Import existing /etc/courier/file if it exists. |
|
| 90 |
+ # Add option only if it was not already set or even commented out |
|
| 91 |
+ file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`"
|
|
| 92 |
+ [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \
|
|
| 93 |
+ cp "/etc/courier/${file}" "${D}/etc/courier/${file}"
|
|
| 94 |
+ grep -q "${word}" "${D}/etc/courier/${file}" || \
|
|
| 95 |
+ echo "${2}" >> "${D}/etc/courier/${file}"
|
|
| 96 |
+} |
|
| 97 |
+ |
|
| 98 |
+etc_courier_chg() {
|
|
| 99 |
+ file="${1}" ; key="${2}" ; value="${3}" ; section="${4}"
|
|
| 100 |
+ [ -z "${section}" ] && section="${2}"
|
|
| 101 |
+ grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}"
|
|
| 102 |
+ sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file}
|
|
| 103 |
+} |
|
| 104 |
+ |
|
| 105 |
+src_install() {
|
|
| 106 |
+ local f |
|
| 107 |
+ diropts -o mail -g mail |
|
| 108 |
+ keepdir /var/run/courier |
|
| 109 |
+ keepdir /var/lib/courier/tmp |
|
| 110 |
+ keepdir /var/lib/courier/msgs |
|
| 111 |
+ make install DESTDIR="${D}" || die "install"
|
|
| 112 |
+ make install-configure || die "install-configure" |
|
| 113 |
+ |
|
| 114 |
+ # Get rid of files we dont want |
|
| 115 |
+ if ! use webmail ; then |
|
| 116 |
+ cd "${D}"
|
|
| 117 |
+ cat "${FILESDIR}/webmail_files" | xargs rm -rf
|
|
| 118 |
+ fi |
|
| 119 |
+ |
|
| 120 |
+ if ! use web ; then |
|
| 121 |
+ cd "${D}"
|
|
| 122 |
+ cat "${FILESDIR}/webadmin_files" | xargs rm -rf
|
|
| 123 |
+ fi |
|
| 124 |
+ |
|
| 125 |
+ for dir2keep in $(cd "${D}" && find ./var/lib/courier -type d) ; do
|
|
| 126 |
+ keepdir "$dir2keep" || die "failed running keepdir: $dir2keep" |
|
| 127 |
+ done |
|
| 128 |
+ |
|
| 129 |
+ newinitd "${FILESDIR}/courier-init-r2" "courier"
|
|
| 130 |
+ use fam || sed -i -e's|^.*use famd$||g' "${D}/etc/init.d/courier"
|
|
| 131 |
+ |
|
| 132 |
+ cd "${D}/etc/courier"
|
|
| 133 |
+ if use webmail ; then |
|
| 134 |
+ insinto /etc/courier |
|
| 135 |
+ newins "${FILESDIR}/apache-sqwebmail.inc" apache-sqwebmail.inc
|
|
| 136 |
+ fi |
|
| 137 |
+ |
|
| 138 |
+ for f in *.dist ; do cp "${f}" "${f%%.dist}" ; done
|
|
| 139 |
+ if use ldap ; then |
|
| 140 |
+ [ -e ldapaliasrc ] && ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc ) |
|
| 141 |
+ else |
|
| 142 |
+ rm -f ldapaliasrc |
|
| 143 |
+ fi |
|
| 144 |
+ |
|
| 145 |
+ ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ |
|
| 146 |
+ > "${D}/etc/courier/sizelimit"
|
|
| 147 |
+ etc_courier maildroprc "" |
|
| 148 |
+ etc_courier esmtproutes "" |
|
| 149 |
+ etc_courier backuprelay "" |
|
| 150 |
+ etc_courier locallowercase "" |
|
| 151 |
+ etc_courier bofh "opt BOFHBADMIME=accept" |
|
| 152 |
+ etc_courier bofh "opt BOFHSPFTRUSTME=1" |
|
| 153 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail" |
|
| 154 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none" |
|
| 155 |
+ etc_courier bofh "opt BOFHSPFFROM=all" |
|
| 156 |
+ etc_courier bofh "opt BOFHSPFMAILFROM=all" |
|
| 157 |
+ etc_courier bofh "#opt BOFHSPFHARDERROR=fail" |
|
| 158 |
+ etc_courier esmtpd "BOFHBADMIME=accept" |
|
| 159 |
+ etc_courier esmtpd-ssl "BOFHBADMIME=accept" |
|
| 160 |
+ etc_courier esmtpd-msa "BOFHBADMIME=accept" |
|
| 161 |
+ |
|
| 162 |
+ 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" |
|
| 163 |
+ 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" |
|
| 164 |
+ |
|
| 165 |
+ # Fix for a sandbox violation on subsequential merges |
|
| 166 |
+ # - ticho@gentoo.org, 2005-07-10 |
|
| 167 |
+ rm "${D}"/usr/sbin/{pop3d,imapd}{,-ssl}
|
|
| 168 |
+ dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d |
|
| 169 |
+ dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl |
|
| 170 |
+ dosym /usr/share/courier/imapd /usr/sbin/courier-imapd |
|
| 171 |
+ dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl |
|
| 172 |
+ |
|
| 173 |
+ cd "${S}"
|
|
| 174 |
+ cp imap/README README.imap |
|
| 175 |
+ use nls && cp unicode/README README.unicode |
|
| 176 |
+ dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt |
|
| 177 |
+ dodoc tcpd/README.couriertls |
|
| 178 |
+ mv "${D}/usr/share/courier/htmldoc" "${D}/usr/share/doc/${P}/html"
|
|
| 179 |
+ |
|
| 180 |
+ if use webmail ; then |
|
| 181 |
+ insinto /usr/$(get_libdir)/courier/courier |
|
| 182 |
+ insopts -m 755 -o mail -g mail |
|
| 183 |
+ doins "${S}/courier/webmaild"
|
|
| 184 |
+ fi |
|
| 185 |
+ |
|
| 186 |
+ if use web ; then |
|
| 187 |
+ insinto /etc/courier/webadmin |
|
| 188 |
+ insopts -m 400 -o mail -g mail |
|
| 189 |
+ doins "${FILESDIR}/password.dist"
|
|
| 190 |
+ fi |
|
| 191 |
+ |
|
| 192 |
+ # avoid name collisions in /usr/sbin, make webadmin match |
|
| 193 |
+ cd "${D}/usr/sbin"
|
|
| 194 |
+ for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv "${f}" "courier-${f}" ; done
|
|
| 195 |
+ if use web ; then |
|
| 196 |
+ sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \ |
|
| 197 |
+ -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \ |
|
| 198 |
+ "${D}/usr/share/courier/courierwebadmin/admin-40imap.pl" \
|
|
| 199 |
+ || ewarn "failed to fix webadmin" |
|
| 200 |
+ sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \ |
|
| 201 |
+ -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \ |
|
| 202 |
+ "${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl" \
|
|
| 203 |
+ || ewarn "failed to fix webadmin" |
|
| 204 |
+ fi |
|
| 205 |
+ |
|
| 206 |
+ # users should be able to send mail. Could be restricted with suictl. |
|
| 207 |
+ chmod u+s "${D}/usr/bin/sendmail"
|
|
| 208 |
+ |
|
| 209 |
+ if use mailwrapper ; then |
|
| 210 |
+ mv "${D}/usr/bin/sendmail" "${D}/usr/bin/sendmail.courier"
|
|
| 211 |
+ mv "${D}/usr/bin/rmail" "${D}/usr/bin/rmail.courier"
|
|
| 212 |
+ mv "${D}/usr/bin/mailq" "${D}/usr/bin/mailq.courier"
|
|
| 213 |
+ |
|
| 214 |
+ mv "${D}/usr/share/man/man1/sendmail.1" \
|
|
| 215 |
+ "${D}/usr/share/man/man1/sendmail-courier.1"
|
|
| 216 |
+ mv "${D}/usr/share/man/man1/mailq.1" \
|
|
| 217 |
+ "${D}/usr/share/man/man1/mailq-courier.1"
|
|
| 218 |
+ mv "${D}/usr/share/man/man1/rmail.1" \
|
|
| 219 |
+ "${D}/usr/share/man/man1/rmail-courier.1"
|
|
| 220 |
+ |
|
| 221 |
+ insopts -m 444 -o mail -g mail |
|
| 222 |
+ insinto /etc/mail |
|
| 223 |
+ doins "${FILESDIR}/mailer.conf"
|
|
| 224 |
+ else |
|
| 225 |
+ dosym /usr/bin/sendmail /usr/sbin/sendmail |
|
| 226 |
+ fi |
|
| 227 |
+} |
|
| 228 |
+ |
|
| 229 |
+src_test() {
|
|
| 230 |
+ if [ `whoami` != 'root' ]; then |
|
| 231 |
+ emake -j1 check || die "Make check failed." |
|
| 232 |
+ else |
|
| 233 |
+ einfo "make check skipped, can't run as root." |
|
| 234 |
+ einfo "You can enable it with FEATURES=\"userpriv\"" |
|
| 235 |
+ fi |
|
| 236 |
+} |
|
| 237 |
+ |
|
| 238 |
+pkg_postinst() {
|
|
| 239 |
+ use fam && elog "fam daemon is needed for courier-imapd" \ |
|
| 240 |
+ || ewarn "courier was built without fam support" |
|
| 241 |
+} |
|
| 242 |
+ |
|
| 243 |
+pkg_config() {
|
|
| 244 |
+ mailhost="$(hostname)" |
|
| 245 |
+ export mailhost |
|
| 246 |
+ |
|
| 247 |
+ domainname="$(domainname)" |
|
| 248 |
+ if [ "x$domainname" = "x(none)" ] ; then |
|
| 249 |
+ domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")"
|
|
| 250 |
+ fi |
|
| 251 |
+ export domainname |
|
| 252 |
+ |
|
| 253 |
+ if [ "${ROOT}" = "/" ] ; then
|
|
| 254 |
+ file="${ROOT}/etc/courier/locals"
|
|
| 255 |
+ if [ ! -f "${file}" ] ; then
|
|
| 256 |
+ echo "localhost" > "${file}";
|
|
| 257 |
+ echo "${domainname}" >> "${file}";
|
|
| 258 |
+ fi |
|
| 259 |
+ file="${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}"
|
|
| 260 |
+ if [ ! -f "${file}" ] ; then
|
|
| 261 |
+ echo "${domainname}" > "${file}"
|
|
| 262 |
+ /usr/sbin/makeacceptmailfor |
|
| 263 |
+ fi |
|
| 264 |
+ |
|
| 265 |
+ file="${ROOT}/etc/courier/smtpaccess/${domainname}"
|
|
| 266 |
+ if [ ! -f "${file}" ]
|
|
| 267 |
+ then |
|
| 268 |
+ netstat -nr | grep "^[1-9]" | while read network gateway netmask rest |
|
| 269 |
+ do |
|
| 270 |
+ i=1 |
|
| 271 |
+ net="" |
|
| 272 |
+ TIFS="${IFS}"
|
|
| 273 |
+ IFS="." |
|
| 274 |
+ for o in "${netmask}"
|
|
| 275 |
+ do |
|
| 276 |
+ if [ "${o}" == "255" ]
|
|
| 277 |
+ then |
|
| 278 |
+ [ "_${net}" == "_" ] || net="${net}."
|
|
| 279 |
+ t="$(echo "${network}" | cut -d " " -f ${i})"
|
|
| 280 |
+ net="${net}${t}"
|
|
| 281 |
+ fi |
|
| 282 |
+ i="$((${i} + 1))"
|
|
| 283 |
+ done |
|
| 284 |
+ IFS="${TIFS}"
|
|
| 285 |
+ echo "doing configuration - relay control for the network ${net} !"
|
|
| 286 |
+ echo "${net} allow,RELAYCLIENT" >> ${file}
|
|
| 287 |
+ done |
|
| 288 |
+ /usr/sbin/makesmtpaccess |
|
| 289 |
+ fi |
|
| 290 |
+ fi |
|
| 291 |
+ |
|
| 292 |
+ echo "creating cert for esmtpd-ssl:" |
|
| 293 |
+ /usr/sbin/mkesmtpdcert |
|
| 294 |
+ echo "creating cert for imapd-ssl:" |
|
| 295 |
+ /usr/sbin/mkpop3dcert |
|
| 296 |
+ echo "creating cert for pop3d-ssl:" |
|
| 297 |
+ /usr/sbin/mkimapdcert |
|
| 298 |
+} |
| ... | ... |
@@ -0,0 +1,298 @@ |
| 1 |
+# Copyright 1999-2010 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.63.0.ebuild,v 1.4 2010/12/05 20:54:48 mattst88 Exp $ |
|
| 4 |
+ |
|
| 5 |
+inherit eutils flag-o-matic |
|
| 6 |
+ |
|
| 7 |
+DESCRIPTION="An MTA designed specifically for maildirs" |
|
| 8 |
+SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
|
|
| 9 |
+HOMEPAGE="http://www.courier-mta.org/" |
|
| 10 |
+SLOT="0" |
|
| 11 |
+LICENSE="GPL-2" |
|
| 12 |
+# not in keywords due to missing dependencies: ~arm ~s390 ~ppc64 |
|
| 13 |
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86" |
|
| 14 |
+IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite mailwrapper \ |
|
| 15 |
+ fam web webmail" |
|
| 16 |
+ |
|
| 17 |
+PROVIDE="virtual/mta |
|
| 18 |
+ virtual/mda |
|
| 19 |
+ virtual/imapd" |
|
| 20 |
+ |
|
| 21 |
+DEPEND=" |
|
| 22 |
+ >=net-libs/courier-authlib-0.61.0 |
|
| 23 |
+ >=dev-libs/openssl-0.9.6 |
|
| 24 |
+ >=sys-libs/gdbm-1.8.0 |
|
| 25 |
+ dev-libs/libpcre |
|
| 26 |
+ app-misc/mime-types |
|
| 27 |
+ fax? ( >=media-libs/netpbm-9.12 app-text/ghostscript-gpl >=net-dialup/mgetty-1.1.28 ) |
|
| 28 |
+ pam? ( virtual/pam ) |
|
| 29 |
+ mysql? ( virtual/mysql ) |
|
| 30 |
+ ldap? ( >=net-nds/openldap-1.2.11 ) |
|
| 31 |
+ postgres? ( dev-db/postgresql-base ) |
|
| 32 |
+ spell? ( virtual/aspell-dict ) |
|
| 33 |
+ fam? ( virtual/fam ) |
|
| 34 |
+ !mailwrapper? ( !virtual/mta ) |
|
| 35 |
+ !virtual/imapd |
|
| 36 |
+ !mail-filter/maildrop" |
|
| 37 |
+ |
|
| 38 |
+RDEPEND="${DEPEND}
|
|
| 39 |
+ dev-lang/perl |
|
| 40 |
+ sys-process/procps" |
|
| 41 |
+ |
|
| 42 |
+PDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 ) |
|
| 43 |
+ pam? ( net-mail/mailbase ) |
|
| 44 |
+ crypt? ( >=app-crypt/gnupg-1.0.4 )" |
|
| 45 |
+ |
|
| 46 |
+src_unpack() {
|
|
| 47 |
+ unpack ${A}
|
|
| 48 |
+ cd "${S}"
|
|
| 49 |
+ use norewrite && epatch "${FILESDIR}/norewrite.patch"
|
|
| 50 |
+} |
|
| 51 |
+ |
|
| 52 |
+src_compile() {
|
|
| 53 |
+ filter-flags '-fomit-frame-pointer' |
|
| 54 |
+ |
|
| 55 |
+ local myconf |
|
| 56 |
+ myconf="" |
|
| 57 |
+ |
|
| 58 |
+ use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf"
|
|
| 59 |
+ |
|
| 60 |
+ econf ${myconf} \
|
|
| 61 |
+ $(use_with fam) \ |
|
| 62 |
+ $(use_with ipv6) \ |
|
| 63 |
+ $(use_with spell ispell) \ |
|
| 64 |
+ $(use_with ldap ldapaliasd) \ |
|
| 65 |
+ $(use_enable ldap maildroldap) \ |
|
| 66 |
+ --enable-mimetypes=/etc/mime.types \ |
|
| 67 |
+ --prefix=/usr \ |
|
| 68 |
+ --disable-root-check \ |
|
| 69 |
+ --mandir=/usr/share/man \ |
|
| 70 |
+ --sysconfdir=/etc/courier \ |
|
| 71 |
+ --libexecdir=/usr/$(get_libdir)/courier \ |
|
| 72 |
+ --datadir=/usr/share/courier \ |
|
| 73 |
+ --sharedstatedir=/var/lib/courier/com \ |
|
| 74 |
+ --localstatedir=/var/lib/courier \ |
|
| 75 |
+ --with-piddir=/var/run/courier \ |
|
| 76 |
+ --with-authdaemonvar=/var/lib/courier/authdaemon \ |
|
| 77 |
+ --with-mailuser=mail \ |
|
| 78 |
+ --with-mailgroup=mail \ |
|
| 79 |
+ --with-paranoid-smtpext \ |
|
| 80 |
+ --with-db=gdbm \ |
|
| 81 |
+ --disable-autorenamesent \ |
|
| 82 |
+ --cache-file="${S}/configuring.cache" \
|
|
| 83 |
+ --host="${CHOST}" debug=true || die "./configure"
|
|
| 84 |
+ sed -e'/^install-perms-local:/a\ sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile
|
|
| 85 |
+ emake || die "Compile problem" |
|
| 86 |
+} |
|
| 87 |
+ |
|
| 88 |
+etc_courier() {
|
|
| 89 |
+ # Import existing /etc/courier/file if it exists. |
|
| 90 |
+ # Add option only if it was not already set or even commented out |
|
| 91 |
+ file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`"
|
|
| 92 |
+ [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \
|
|
| 93 |
+ cp "/etc/courier/${file}" "${D}/etc/courier/${file}"
|
|
| 94 |
+ grep -q "${word}" "${D}/etc/courier/${file}" || \
|
|
| 95 |
+ echo "${2}" >> "${D}/etc/courier/${file}"
|
|
| 96 |
+} |
|
| 97 |
+ |
|
| 98 |
+etc_courier_chg() {
|
|
| 99 |
+ file="${1}" ; key="${2}" ; value="${3}" ; section="${4}"
|
|
| 100 |
+ [ -z "${section}" ] && section="${2}"
|
|
| 101 |
+ grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}"
|
|
| 102 |
+ sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file}
|
|
| 103 |
+} |
|
| 104 |
+ |
|
| 105 |
+src_install() {
|
|
| 106 |
+ local f |
|
| 107 |
+ diropts -o mail -g mail |
|
| 108 |
+ keepdir /var/run/courier |
|
| 109 |
+ keepdir /var/lib/courier/tmp |
|
| 110 |
+ keepdir /var/lib/courier/msgs |
|
| 111 |
+ make install DESTDIR="${D}" || die "install"
|
|
| 112 |
+ make install-configure || die "install-configure" |
|
| 113 |
+ |
|
| 114 |
+ # Get rid of files we dont want |
|
| 115 |
+ if ! use webmail ; then |
|
| 116 |
+ cd "${D}"
|
|
| 117 |
+ cat "${FILESDIR}/webmail_files" | xargs rm -rf
|
|
| 118 |
+ fi |
|
| 119 |
+ |
|
| 120 |
+ if ! use web ; then |
|
| 121 |
+ cd "${D}"
|
|
| 122 |
+ cat "${FILESDIR}/webadmin_files" | xargs rm -rf
|
|
| 123 |
+ fi |
|
| 124 |
+ |
|
| 125 |
+ for dir2keep in $(cd "${D}" && find ./var/lib/courier -type d) ; do
|
|
| 126 |
+ keepdir "$dir2keep" || die "failed running keepdir: $dir2keep" |
|
| 127 |
+ done |
|
| 128 |
+ |
|
| 129 |
+ newinitd "${FILESDIR}/courier-init-r2" "courier"
|
|
| 130 |
+ use fam || sed -i -e's|^.*use famd$||g' "${D}/etc/init.d/courier"
|
|
| 131 |
+ |
|
| 132 |
+ cd "${D}/etc/courier"
|
|
| 133 |
+ if use webmail ; then |
|
| 134 |
+ insinto /etc/courier |
|
| 135 |
+ newins "${FILESDIR}/apache-sqwebmail.inc" apache-sqwebmail.inc
|
|
| 136 |
+ fi |
|
| 137 |
+ |
|
| 138 |
+ for f in *.dist ; do cp "${f}" "${f%%.dist}" ; done
|
|
| 139 |
+ if use ldap ; then |
|
| 140 |
+ [ -e ldapaliasrc ] && ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc ) |
|
| 141 |
+ else |
|
| 142 |
+ rm -f ldapaliasrc |
|
| 143 |
+ fi |
|
| 144 |
+ |
|
| 145 |
+ ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ |
|
| 146 |
+ > "${D}/etc/courier/sizelimit"
|
|
| 147 |
+ etc_courier maildroprc "" |
|
| 148 |
+ etc_courier esmtproutes "" |
|
| 149 |
+ etc_courier backuprelay "" |
|
| 150 |
+ etc_courier locallowercase "" |
|
| 151 |
+ etc_courier bofh "opt BOFHBADMIME=accept" |
|
| 152 |
+ etc_courier bofh "opt BOFHSPFTRUSTME=1" |
|
| 153 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail" |
|
| 154 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none" |
|
| 155 |
+ etc_courier bofh "opt BOFHSPFFROM=all" |
|
| 156 |
+ etc_courier bofh "opt BOFHSPFMAILFROM=all" |
|
| 157 |
+ etc_courier bofh "#opt BOFHSPFHARDERROR=fail" |
|
| 158 |
+ etc_courier esmtpd "BOFHBADMIME=accept" |
|
| 159 |
+ etc_courier esmtpd-ssl "BOFHBADMIME=accept" |
|
| 160 |
+ etc_courier esmtpd-msa "BOFHBADMIME=accept" |
|
| 161 |
+ |
|
| 162 |
+ 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" |
|
| 163 |
+ 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" |
|
| 164 |
+ |
|
| 165 |
+ # Fix for a sandbox violation on subsequential merges |
|
| 166 |
+ # - ticho@gentoo.org, 2005-07-10 |
|
| 167 |
+ rm "${D}"/usr/sbin/{pop3d,imapd}{,-ssl}
|
|
| 168 |
+ dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d |
|
| 169 |
+ dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl |
|
| 170 |
+ dosym /usr/share/courier/imapd /usr/sbin/courier-imapd |
|
| 171 |
+ dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl |
|
| 172 |
+ |
|
| 173 |
+ cd "${S}"
|
|
| 174 |
+ cp imap/README README.imap |
|
| 175 |
+ use nls && cp unicode/README README.unicode |
|
| 176 |
+ dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt |
|
| 177 |
+ dodoc tcpd/README.couriertls |
|
| 178 |
+ mv "${D}/usr/share/courier/htmldoc" "${D}/usr/share/doc/${P}/html"
|
|
| 179 |
+ |
|
| 180 |
+ if use webmail ; then |
|
| 181 |
+ insinto /usr/$(get_libdir)/courier/courier |
|
| 182 |
+ insopts -m 755 -o mail -g mail |
|
| 183 |
+ doins "${S}/courier/webmaild"
|
|
| 184 |
+ fi |
|
| 185 |
+ |
|
| 186 |
+ if use web ; then |
|
| 187 |
+ insinto /etc/courier/webadmin |
|
| 188 |
+ insopts -m 400 -o mail -g mail |
|
| 189 |
+ doins "${FILESDIR}/password.dist"
|
|
| 190 |
+ fi |
|
| 191 |
+ |
|
| 192 |
+ # avoid name collisions in /usr/sbin, make webadmin match |
|
| 193 |
+ cd "${D}/usr/sbin"
|
|
| 194 |
+ for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv "${f}" "courier-${f}" ; done
|
|
| 195 |
+ if use web ; then |
|
| 196 |
+ sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \ |
|
| 197 |
+ -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \ |
|
| 198 |
+ "${D}/usr/share/courier/courierwebadmin/admin-40imap.pl" \
|
|
| 199 |
+ || ewarn "failed to fix webadmin" |
|
| 200 |
+ sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \ |
|
| 201 |
+ -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \ |
|
| 202 |
+ "${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl" \
|
|
| 203 |
+ || ewarn "failed to fix webadmin" |
|
| 204 |
+ fi |
|
| 205 |
+ |
|
| 206 |
+ # users should be able to send mail. Could be restricted with suictl. |
|
| 207 |
+ chmod u+s "${D}/usr/bin/sendmail"
|
|
| 208 |
+ |
|
| 209 |
+ if use mailwrapper ; then |
|
| 210 |
+ mv "${D}/usr/bin/sendmail" "${D}/usr/bin/sendmail.courier"
|
|
| 211 |
+ mv "${D}/usr/bin/rmail" "${D}/usr/bin/rmail.courier"
|
|
| 212 |
+ mv "${D}/usr/bin/mailq" "${D}/usr/bin/mailq.courier"
|
|
| 213 |
+ |
|
| 214 |
+ mv "${D}/usr/share/man/man1/sendmail.1" \
|
|
| 215 |
+ "${D}/usr/share/man/man1/sendmail-courier.1"
|
|
| 216 |
+ mv "${D}/usr/share/man/man1/mailq.1" \
|
|
| 217 |
+ "${D}/usr/share/man/man1/mailq-courier.1"
|
|
| 218 |
+ mv "${D}/usr/share/man/man1/rmail.1" \
|
|
| 219 |
+ "${D}/usr/share/man/man1/rmail-courier.1"
|
|
| 220 |
+ |
|
| 221 |
+ insopts -m 444 -o mail -g mail |
|
| 222 |
+ insinto /etc/mail |
|
| 223 |
+ doins "${FILESDIR}/mailer.conf"
|
|
| 224 |
+ else |
|
| 225 |
+ dosym /usr/bin/sendmail /usr/sbin/sendmail |
|
| 226 |
+ fi |
|
| 227 |
+} |
|
| 228 |
+ |
|
| 229 |
+src_test() {
|
|
| 230 |
+ if [ `whoami` != 'root' ]; then |
|
| 231 |
+ emake -j1 check || die "Make check failed." |
|
| 232 |
+ else |
|
| 233 |
+ einfo "make check skipped, can't run as root." |
|
| 234 |
+ einfo "You can enable it with FEATURES=\"userpriv\"" |
|
| 235 |
+ fi |
|
| 236 |
+} |
|
| 237 |
+ |
|
| 238 |
+pkg_postinst() {
|
|
| 239 |
+ use fam && elog "fam daemon is needed for courier-imapd" \ |
|
| 240 |
+ || ewarn "courier was built without fam support" |
|
| 241 |
+} |
|
| 242 |
+ |
|
| 243 |
+pkg_config() {
|
|
| 244 |
+ mailhost="$(hostname)" |
|
| 245 |
+ export mailhost |
|
| 246 |
+ |
|
| 247 |
+ domainname="$(domainname)" |
|
| 248 |
+ if [ "x$domainname" = "x(none)" ] ; then |
|
| 249 |
+ domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")"
|
|
| 250 |
+ fi |
|
| 251 |
+ export domainname |
|
| 252 |
+ |
|
| 253 |
+ if [ "${ROOT}" = "/" ] ; then
|
|
| 254 |
+ file="${ROOT}/etc/courier/locals"
|
|
| 255 |
+ if [ ! -f "${file}" ] ; then
|
|
| 256 |
+ echo "localhost" > "${file}";
|
|
| 257 |
+ echo "${domainname}" >> "${file}";
|
|
| 258 |
+ fi |
|
| 259 |
+ file="${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}"
|
|
| 260 |
+ if [ ! -f "${file}" ] ; then
|
|
| 261 |
+ echo "${domainname}" > "${file}"
|
|
| 262 |
+ /usr/sbin/makeacceptmailfor |
|
| 263 |
+ fi |
|
| 264 |
+ |
|
| 265 |
+ file="${ROOT}/etc/courier/smtpaccess/${domainname}"
|
|
| 266 |
+ if [ ! -f "${file}" ]
|
|
| 267 |
+ then |
|
| 268 |
+ netstat -nr | grep "^[1-9]" | while read network gateway netmask rest |
|
| 269 |
+ do |
|
| 270 |
+ i=1 |
|
| 271 |
+ net="" |
|
| 272 |
+ TIFS="${IFS}"
|
|
| 273 |
+ IFS="." |
|
| 274 |
+ for o in "${netmask}"
|
|
| 275 |
+ do |
|
| 276 |
+ if [ "${o}" == "255" ]
|
|
| 277 |
+ then |
|
| 278 |
+ [ "_${net}" == "_" ] || net="${net}."
|
|
| 279 |
+ t="$(echo "${network}" | cut -d " " -f ${i})"
|
|
| 280 |
+ net="${net}${t}"
|
|
| 281 |
+ fi |
|
| 282 |
+ i="$((${i} + 1))"
|
|
| 283 |
+ done |
|
| 284 |
+ IFS="${TIFS}"
|
|
| 285 |
+ echo "doing configuration - relay control for the network ${net} !"
|
|
| 286 |
+ echo "${net} allow,RELAYCLIENT" >> ${file}
|
|
| 287 |
+ done |
|
| 288 |
+ /usr/sbin/makesmtpaccess |
|
| 289 |
+ fi |
|
| 290 |
+ fi |
|
| 291 |
+ |
|
| 292 |
+ echo "creating cert for esmtpd-ssl:" |
|
| 293 |
+ /usr/sbin/mkesmtpdcert |
|
| 294 |
+ echo "creating cert for imapd-ssl:" |
|
| 295 |
+ /usr/sbin/mkpop3dcert |
|
| 296 |
+ echo "creating cert for pop3d-ssl:" |
|
| 297 |
+ /usr/sbin/mkimapdcert |
|
| 298 |
+} |
| ... | ... |
@@ -0,0 +1,298 @@ |
| 1 |
+# Copyright 1999-2010 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.64.0.ebuild,v 1.3 2010/12/05 20:54:48 mattst88 Exp $ |
|
| 4 |
+ |
|
| 5 |
+inherit eutils flag-o-matic |
|
| 6 |
+ |
|
| 7 |
+DESCRIPTION="An MTA designed specifically for maildirs" |
|
| 8 |
+SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
|
|
| 9 |
+HOMEPAGE="http://www.courier-mta.org/" |
|
| 10 |
+SLOT="0" |
|
| 11 |
+LICENSE="GPL-2" |
|
| 12 |
+# not in keywords due to missing dependencies: ~arm ~s390 ~ppc64 |
|
| 13 |
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86" |
|
| 14 |
+IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite mailwrapper \ |
|
| 15 |
+ fam web webmail" |
|
| 16 |
+ |
|
| 17 |
+PROVIDE="virtual/mta |
|
| 18 |
+ virtual/mda |
|
| 19 |
+ virtual/imapd" |
|
| 20 |
+ |
|
| 21 |
+DEPEND=" |
|
| 22 |
+ >=net-libs/courier-authlib-0.61.0 |
|
| 23 |
+ >=dev-libs/openssl-0.9.6 |
|
| 24 |
+ >=sys-libs/gdbm-1.8.0 |
|
| 25 |
+ dev-libs/libpcre |
|
| 26 |
+ app-misc/mime-types |
|
| 27 |
+ fax? ( >=media-libs/netpbm-9.12 app-text/ghostscript-gpl >=net-dialup/mgetty-1.1.28 ) |
|
| 28 |
+ pam? ( virtual/pam ) |
|
| 29 |
+ mysql? ( virtual/mysql ) |
|
| 30 |
+ ldap? ( >=net-nds/openldap-1.2.11 ) |
|
| 31 |
+ postgres? ( dev-db/postgresql-base ) |
|
| 32 |
+ spell? ( virtual/aspell-dict ) |
|
| 33 |
+ fam? ( virtual/fam ) |
|
| 34 |
+ !mailwrapper? ( !virtual/mta ) |
|
| 35 |
+ !virtual/imapd |
|
| 36 |
+ !mail-filter/maildrop" |
|
| 37 |
+ |
|
| 38 |
+RDEPEND="${DEPEND}
|
|
| 39 |
+ dev-lang/perl |
|
| 40 |
+ sys-process/procps" |
|
| 41 |
+ |
|
| 42 |
+PDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 ) |
|
| 43 |
+ pam? ( net-mail/mailbase ) |
|
| 44 |
+ crypt? ( >=app-crypt/gnupg-1.0.4 )" |
|
| 45 |
+ |
|
| 46 |
+src_unpack() {
|
|
| 47 |
+ unpack ${A}
|
|
| 48 |
+ cd "${S}"
|
|
| 49 |
+ use norewrite && epatch "${FILESDIR}/norewrite.patch"
|
|
| 50 |
+} |
|
| 51 |
+ |
|
| 52 |
+src_compile() {
|
|
| 53 |
+ filter-flags '-fomit-frame-pointer' |
|
| 54 |
+ |
|
| 55 |
+ local myconf |
|
| 56 |
+ myconf="" |
|
| 57 |
+ |
|
| 58 |
+ use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf"
|
|
| 59 |
+ |
|
| 60 |
+ econf ${myconf} \
|
|
| 61 |
+ $(use_with fam) \ |
|
| 62 |
+ $(use_with ipv6) \ |
|
| 63 |
+ $(use_with spell ispell) \ |
|
| 64 |
+ $(use_with ldap ldapaliasd) \ |
|
| 65 |
+ $(use_enable ldap maildroldap) \ |
|
| 66 |
+ --enable-mimetypes=/etc/mime.types \ |
|
| 67 |
+ --prefix=/usr \ |
|
| 68 |
+ --disable-root-check \ |
|
| 69 |
+ --mandir=/usr/share/man \ |
|
| 70 |
+ --sysconfdir=/etc/courier \ |
|
| 71 |
+ --libexecdir=/usr/$(get_libdir)/courier \ |
|
| 72 |
+ --datadir=/usr/share/courier \ |
|
| 73 |
+ --sharedstatedir=/var/lib/courier/com \ |
|
| 74 |
+ --localstatedir=/var/lib/courier \ |
|
| 75 |
+ --with-piddir=/var/run/courier \ |
|
| 76 |
+ --with-authdaemonvar=/var/lib/courier/authdaemon \ |
|
| 77 |
+ --with-mailuser=mail \ |
|
| 78 |
+ --with-mailgroup=mail \ |
|
| 79 |
+ --with-paranoid-smtpext \ |
|
| 80 |
+ --with-db=gdbm \ |
|
| 81 |
+ --disable-autorenamesent \ |
|
| 82 |
+ --cache-file="${S}/configuring.cache" \
|
|
| 83 |
+ --host="${CHOST}" debug=true || die "./configure"
|
|
| 84 |
+ sed -e'/^install-perms-local:/a\ sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile
|
|
| 85 |
+ emake || die "Compile problem" |
|
| 86 |
+} |
|
| 87 |
+ |
|
| 88 |
+etc_courier() {
|
|
| 89 |
+ # Import existing /etc/courier/file if it exists. |
|
| 90 |
+ # Add option only if it was not already set or even commented out |
|
| 91 |
+ file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`"
|
|
| 92 |
+ [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \
|
|
| 93 |
+ cp "/etc/courier/${file}" "${D}/etc/courier/${file}"
|
|
| 94 |
+ grep -q "${word}" "${D}/etc/courier/${file}" || \
|
|
| 95 |
+ echo "${2}" >> "${D}/etc/courier/${file}"
|
|
| 96 |
+} |
|
| 97 |
+ |
|
| 98 |
+etc_courier_chg() {
|
|
| 99 |
+ file="${1}" ; key="${2}" ; value="${3}" ; section="${4}"
|
|
| 100 |
+ [ -z "${section}" ] && section="${2}"
|
|
| 101 |
+ grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}"
|
|
| 102 |
+ sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file}
|
|
| 103 |
+} |
|
| 104 |
+ |
|
| 105 |
+src_install() {
|
|
| 106 |
+ local f |
|
| 107 |
+ diropts -o mail -g mail |
|
| 108 |
+ keepdir /var/run/courier |
|
| 109 |
+ keepdir /var/lib/courier/tmp |
|
| 110 |
+ keepdir /var/lib/courier/msgs |
|
| 111 |
+ make install DESTDIR="${D}" || die "install"
|
|
| 112 |
+ make install-configure || die "install-configure" |
|
| 113 |
+ |
|
| 114 |
+ # Get rid of files we dont want |
|
| 115 |
+ if ! use webmail ; then |
|
| 116 |
+ cd "${D}"
|
|
| 117 |
+ cat "${FILESDIR}/webmail_files" | xargs rm -rf
|
|
| 118 |
+ fi |
|
| 119 |
+ |
|
| 120 |
+ if ! use web ; then |
|
| 121 |
+ cd "${D}"
|
|
| 122 |
+ cat "${FILESDIR}/webadmin_files" | xargs rm -rf
|
|
| 123 |
+ fi |
|
| 124 |
+ |
|
| 125 |
+ for dir2keep in $(cd "${D}" && find ./var/lib/courier -type d) ; do
|
|
| 126 |
+ keepdir "$dir2keep" || die "failed running keepdir: $dir2keep" |
|
| 127 |
+ done |
|
| 128 |
+ |
|
| 129 |
+ newinitd "${FILESDIR}/courier-init-r2" "courier"
|
|
| 130 |
+ use fam || sed -i -e's|^.*use famd$||g' "${D}/etc/init.d/courier"
|
|
| 131 |
+ |
|
| 132 |
+ cd "${D}/etc/courier"
|
|
| 133 |
+ if use webmail ; then |
|
| 134 |
+ insinto /etc/courier |
|
| 135 |
+ newins "${FILESDIR}/apache-sqwebmail.inc" apache-sqwebmail.inc
|
|
| 136 |
+ fi |
|
| 137 |
+ |
|
| 138 |
+ for f in *.dist ; do cp "${f}" "${f%%.dist}" ; done
|
|
| 139 |
+ if use ldap ; then |
|
| 140 |
+ [ -e ldapaliasrc ] && ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc ) |
|
| 141 |
+ else |
|
| 142 |
+ rm -f ldapaliasrc |
|
| 143 |
+ fi |
|
| 144 |
+ |
|
| 145 |
+ ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ |
|
| 146 |
+ > "${D}/etc/courier/sizelimit"
|
|
| 147 |
+ etc_courier maildroprc "" |
|
| 148 |
+ etc_courier esmtproutes "" |
|
| 149 |
+ etc_courier backuprelay "" |
|
| 150 |
+ etc_courier locallowercase "" |
|
| 151 |
+ etc_courier bofh "opt BOFHBADMIME=accept" |
|
| 152 |
+ etc_courier bofh "opt BOFHSPFTRUSTME=1" |
|
| 153 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail" |
|
| 154 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none" |
|
| 155 |
+ etc_courier bofh "opt BOFHSPFFROM=all" |
|
| 156 |
+ etc_courier bofh "opt BOFHSPFMAILFROM=all" |
|
| 157 |
+ etc_courier bofh "#opt BOFHSPFHARDERROR=fail" |
|
| 158 |
+ etc_courier esmtpd "BOFHBADMIME=accept" |
|
| 159 |
+ etc_courier esmtpd-ssl "BOFHBADMIME=accept" |
|
| 160 |
+ etc_courier esmtpd-msa "BOFHBADMIME=accept" |
|
| 161 |
+ |
|
| 162 |
+ 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" |
|
| 163 |
+ 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" |
|
| 164 |
+ |
|
| 165 |
+ # Fix for a sandbox violation on subsequential merges |
|
| 166 |
+ # - ticho@gentoo.org, 2005-07-10 |
|
| 167 |
+ rm "${D}"/usr/sbin/{pop3d,imapd}{,-ssl}
|
|
| 168 |
+ dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d |
|
| 169 |
+ dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl |
|
| 170 |
+ dosym /usr/share/courier/imapd /usr/sbin/courier-imapd |
|
| 171 |
+ dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl |
|
| 172 |
+ |
|
| 173 |
+ cd "${S}"
|
|
| 174 |
+ cp imap/README README.imap |
|
| 175 |
+ use nls && cp unicode/README README.unicode |
|
| 176 |
+ dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt |
|
| 177 |
+ dodoc tcpd/README.couriertls |
|
| 178 |
+ mv "${D}/usr/share/courier/htmldoc" "${D}/usr/share/doc/${P}/html"
|
|
| 179 |
+ |
|
| 180 |
+ if use webmail ; then |
|
| 181 |
+ insinto /usr/$(get_libdir)/courier/courier |
|
| 182 |
+ insopts -m 755 -o mail -g mail |
|
| 183 |
+ doins "${S}/courier/webmaild"
|
|
| 184 |
+ fi |
|
| 185 |
+ |
|
| 186 |
+ if use web ; then |
|
| 187 |
+ insinto /etc/courier/webadmin |
|
| 188 |
+ insopts -m 400 -o mail -g mail |
|
| 189 |
+ doins "${FILESDIR}/password.dist"
|
|
| 190 |
+ fi |
|
| 191 |
+ |
|
| 192 |
+ # avoid name collisions in /usr/sbin, make webadmin match |
|
| 193 |
+ cd "${D}/usr/sbin"
|
|
| 194 |
+ for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv "${f}" "courier-${f}" ; done
|
|
| 195 |
+ if use web ; then |
|
| 196 |
+ sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \ |
|
| 197 |
+ -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \ |
|
| 198 |
+ "${D}/usr/share/courier/courierwebadmin/admin-40imap.pl" \
|
|
| 199 |
+ || ewarn "failed to fix webadmin" |
|
| 200 |
+ sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \ |
|
| 201 |
+ -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \ |
|
| 202 |
+ "${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl" \
|
|
| 203 |
+ || ewarn "failed to fix webadmin" |
|
| 204 |
+ fi |
|
| 205 |
+ |
|
| 206 |
+ # users should be able to send mail. Could be restricted with suictl. |
|
| 207 |
+ chmod u+s "${D}/usr/bin/sendmail"
|
|
| 208 |
+ |
|
| 209 |
+ if use mailwrapper ; then |
|
| 210 |
+ mv "${D}/usr/bin/sendmail" "${D}/usr/bin/sendmail.courier"
|
|
| 211 |
+ mv "${D}/usr/bin/rmail" "${D}/usr/bin/rmail.courier"
|
|
| 212 |
+ mv "${D}/usr/bin/mailq" "${D}/usr/bin/mailq.courier"
|
|
| 213 |
+ |
|
| 214 |
+ mv "${D}/usr/share/man/man1/sendmail.1" \
|
|
| 215 |
+ "${D}/usr/share/man/man1/sendmail-courier.1"
|
|
| 216 |
+ mv "${D}/usr/share/man/man1/mailq.1" \
|
|
| 217 |
+ "${D}/usr/share/man/man1/mailq-courier.1"
|
|
| 218 |
+ mv "${D}/usr/share/man/man1/rmail.1" \
|
|
| 219 |
+ "${D}/usr/share/man/man1/rmail-courier.1"
|
|
| 220 |
+ |
|
| 221 |
+ insopts -m 444 -o mail -g mail |
|
| 222 |
+ insinto /etc/mail |
|
| 223 |
+ doins "${FILESDIR}/mailer.conf"
|
|
| 224 |
+ else |
|
| 225 |
+ dosym /usr/bin/sendmail /usr/sbin/sendmail |
|
| 226 |
+ fi |
|
| 227 |
+} |
|
| 228 |
+ |
|
| 229 |
+src_test() {
|
|
| 230 |
+ if [ `whoami` != 'root' ]; then |
|
| 231 |
+ emake -j1 check || die "Make check failed." |
|
| 232 |
+ else |
|
| 233 |
+ einfo "make check skipped, can't run as root." |
|
| 234 |
+ einfo "You can enable it with FEATURES=\"userpriv\"" |
|
| 235 |
+ fi |
|
| 236 |
+} |
|
| 237 |
+ |
|
| 238 |
+pkg_postinst() {
|
|
| 239 |
+ use fam && elog "fam daemon is needed for courier-imapd" \ |
|
| 240 |
+ || ewarn "courier was built without fam support" |
|
| 241 |
+} |
|
| 242 |
+ |
|
| 243 |
+pkg_config() {
|
|
| 244 |
+ mailhost="$(hostname)" |
|
| 245 |
+ export mailhost |
|
| 246 |
+ |
|
| 247 |
+ domainname="$(domainname)" |
|
| 248 |
+ if [ "x$domainname" = "x(none)" ] ; then |
|
| 249 |
+ domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")"
|
|
| 250 |
+ fi |
|
| 251 |
+ export domainname |
|
| 252 |
+ |
|
| 253 |
+ if [ "${ROOT}" = "/" ] ; then
|
|
| 254 |
+ file="${ROOT}/etc/courier/locals"
|
|
| 255 |
+ if [ ! -f "${file}" ] ; then
|
|
| 256 |
+ echo "localhost" > "${file}";
|
|
| 257 |
+ echo "${domainname}" >> "${file}";
|
|
| 258 |
+ fi |
|
| 259 |
+ file="${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}"
|
|
| 260 |
+ if [ ! -f "${file}" ] ; then
|
|
| 261 |
+ echo "${domainname}" > "${file}"
|
|
| 262 |
+ /usr/sbin/makeacceptmailfor |
|
| 263 |
+ fi |
|
| 264 |
+ |
|
| 265 |
+ file="${ROOT}/etc/courier/smtpaccess/${domainname}"
|
|
| 266 |
+ if [ ! -f "${file}" ]
|
|
| 267 |
+ then |
|
| 268 |
+ netstat -nr | grep "^[1-9]" | while read network gateway netmask rest |
|
| 269 |
+ do |
|
| 270 |
+ i=1 |
|
| 271 |
+ net="" |
|
| 272 |
+ TIFS="${IFS}"
|
|
| 273 |
+ IFS="." |
|
| 274 |
+ for o in "${netmask}"
|
|
| 275 |
+ do |
|
| 276 |
+ if [ "${o}" == "255" ]
|
|
| 277 |
+ then |
|
| 278 |
+ [ "_${net}" == "_" ] || net="${net}."
|
|
| 279 |
+ t="$(echo "${network}" | cut -d " " -f ${i})"
|
|
| 280 |
+ net="${net}${t}"
|
|
| 281 |
+ fi |
|
| 282 |
+ i="$((${i} + 1))"
|
|
| 283 |
+ done |
|
| 284 |
+ IFS="${TIFS}"
|
|
| 285 |
+ echo "doing configuration - relay control for the network ${net} !"
|
|
| 286 |
+ echo "${net} allow,RELAYCLIENT" >> ${file}
|
|
| 287 |
+ done |
|
| 288 |
+ /usr/sbin/makesmtpaccess |
|
| 289 |
+ fi |
|
| 290 |
+ fi |
|
| 291 |
+ |
|
| 292 |
+ echo "creating cert for esmtpd-ssl:" |
|
| 293 |
+ /usr/sbin/mkesmtpdcert |
|
| 294 |
+ echo "creating cert for imapd-ssl:" |
|
| 295 |
+ /usr/sbin/mkpop3dcert |
|
| 296 |
+ echo "creating cert for pop3d-ssl:" |
|
| 297 |
+ /usr/sbin/mkimapdcert |
|
| 298 |
+} |
| ... | ... |
@@ -0,0 +1,298 @@ |
| 1 |
+# Copyright 1999-2010 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.64.1.ebuild,v 1.6 2010/12/05 20:54:48 mattst88 Exp $ |
|
| 4 |
+ |
|
| 5 |
+inherit eutils flag-o-matic |
|
| 6 |
+ |
|
| 7 |
+DESCRIPTION="An MTA designed specifically for maildirs" |
|
| 8 |
+SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
|
|
| 9 |
+HOMEPAGE="http://www.courier-mta.org/" |
|
| 10 |
+SLOT="0" |
|
| 11 |
+LICENSE="GPL-2" |
|
| 12 |
+# not in keywords due to missing dependencies: ~arm ~s390 ~ppc64 |
|
| 13 |
+KEYWORDS="~alpha ~amd64 hppa ~ia64 ppc ~sparc x86" |
|
| 14 |
+IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite mailwrapper \ |
|
| 15 |
+ fam web webmail" |
|
| 16 |
+ |
|
| 17 |
+PROVIDE="virtual/mta |
|
| 18 |
+ virtual/mda |
|
| 19 |
+ virtual/imapd" |
|
| 20 |
+ |
|
| 21 |
+DEPEND=" |
|
| 22 |
+ >=net-libs/courier-authlib-0.61.0 |
|
| 23 |
+ >=dev-libs/openssl-0.9.6 |
|
| 24 |
+ >=sys-libs/gdbm-1.8.0 |
|
| 25 |
+ dev-libs/libpcre |
|
| 26 |
+ app-misc/mime-types |
|
| 27 |
+ fax? ( >=media-libs/netpbm-9.12 app-text/ghostscript-gpl >=net-dialup/mgetty-1.1.28 ) |
|
| 28 |
+ pam? ( virtual/pam ) |
|
| 29 |
+ mysql? ( virtual/mysql ) |
|
| 30 |
+ ldap? ( >=net-nds/openldap-1.2.11 ) |
|
| 31 |
+ postgres? ( dev-db/postgresql-base ) |
|
| 32 |
+ spell? ( virtual/aspell-dict ) |
|
| 33 |
+ fam? ( virtual/fam ) |
|
| 34 |
+ !mailwrapper? ( !virtual/mta ) |
|
| 35 |
+ !virtual/imapd |
|
| 36 |
+ !mail-filter/maildrop" |
|
| 37 |
+ |
|
| 38 |
+RDEPEND="${DEPEND}
|
|
| 39 |
+ dev-lang/perl |
|
| 40 |
+ sys-process/procps" |
|
| 41 |
+ |
|
| 42 |
+PDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 ) |
|
| 43 |
+ pam? ( net-mail/mailbase ) |
|
| 44 |
+ crypt? ( >=app-crypt/gnupg-1.0.4 )" |
|
| 45 |
+ |
|
| 46 |
+src_unpack() {
|
|
| 47 |
+ unpack ${A}
|
|
| 48 |
+ cd "${S}"
|
|
| 49 |
+ use norewrite && epatch "${FILESDIR}/norewrite.patch"
|
|
| 50 |
+} |
|
| 51 |
+ |
|
| 52 |
+src_compile() {
|
|
| 53 |
+ filter-flags '-fomit-frame-pointer' |
|
| 54 |
+ |
|
| 55 |
+ local myconf |
|
| 56 |
+ myconf="" |
|
| 57 |
+ |
|
| 58 |
+ use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf"
|
|
| 59 |
+ |
|
| 60 |
+ econf ${myconf} \
|
|
| 61 |
+ $(use_with fam) \ |
|
| 62 |
+ $(use_with ipv6) \ |
|
| 63 |
+ $(use_with spell ispell) \ |
|
| 64 |
+ $(use_with ldap ldapaliasd) \ |
|
| 65 |
+ $(use_enable ldap maildroldap) \ |
|
| 66 |
+ --enable-mimetypes=/etc/mime.types \ |
|
| 67 |
+ --prefix=/usr \ |
|
| 68 |
+ --disable-root-check \ |
|
| 69 |
+ --mandir=/usr/share/man \ |
|
| 70 |
+ --sysconfdir=/etc/courier \ |
|
| 71 |
+ --libexecdir=/usr/$(get_libdir)/courier \ |
|
| 72 |
+ --datadir=/usr/share/courier \ |
|
| 73 |
+ --sharedstatedir=/var/lib/courier/com \ |
|
| 74 |
+ --localstatedir=/var/lib/courier \ |
|
| 75 |
+ --with-piddir=/var/run/courier \ |
|
| 76 |
+ --with-authdaemonvar=/var/lib/courier/authdaemon \ |
|
| 77 |
+ --with-mailuser=mail \ |
|
| 78 |
+ --with-mailgroup=mail \ |
|
| 79 |
+ --with-paranoid-smtpext \ |
|
| 80 |
+ --with-db=gdbm \ |
|
| 81 |
+ --disable-autorenamesent \ |
|
| 82 |
+ --cache-file="${S}/configuring.cache" \
|
|
| 83 |
+ --host="${CHOST}" debug=true || die "./configure"
|
|
| 84 |
+ sed -e'/^install-perms-local:/a\ sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile
|
|
| 85 |
+ emake || die "Compile problem" |
|
| 86 |
+} |
|
| 87 |
+ |
|
| 88 |
+etc_courier() {
|
|
| 89 |
+ # Import existing /etc/courier/file if it exists. |
|
| 90 |
+ # Add option only if it was not already set or even commented out |
|
| 91 |
+ file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`"
|
|
| 92 |
+ [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \
|
|
| 93 |
+ cp "/etc/courier/${file}" "${D}/etc/courier/${file}"
|
|
| 94 |
+ grep -q "${word}" "${D}/etc/courier/${file}" || \
|
|
| 95 |
+ echo "${2}" >> "${D}/etc/courier/${file}"
|
|
| 96 |
+} |
|
| 97 |
+ |
|
| 98 |
+etc_courier_chg() {
|
|
| 99 |
+ file="${1}" ; key="${2}" ; value="${3}" ; section="${4}"
|
|
| 100 |
+ [ -z "${section}" ] && section="${2}"
|
|
| 101 |
+ grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}"
|
|
| 102 |
+ sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file}
|
|
| 103 |
+} |
|
| 104 |
+ |
|
| 105 |
+src_install() {
|
|
| 106 |
+ local f |
|
| 107 |
+ diropts -o mail -g mail |
|
| 108 |
+ keepdir /var/run/courier |
|
| 109 |
+ keepdir /var/lib/courier/tmp |
|
| 110 |
+ keepdir /var/lib/courier/msgs |
|
| 111 |
+ make install DESTDIR="${D}" || die "install"
|
|
| 112 |
+ make install-configure || die "install-configure" |
|
| 113 |
+ |
|
| 114 |
+ # Get rid of files we dont want |
|
| 115 |
+ if ! use webmail ; then |
|
| 116 |
+ cd "${D}"
|
|
| 117 |
+ cat "${FILESDIR}/webmail_files" | xargs rm -rf
|
|
| 118 |
+ fi |
|
| 119 |
+ |
|
| 120 |
+ if ! use web ; then |
|
| 121 |
+ cd "${D}"
|
|
| 122 |
+ cat "${FILESDIR}/webadmin_files" | xargs rm -rf
|
|
| 123 |
+ fi |
|
| 124 |
+ |
|
| 125 |
+ for dir2keep in $(cd "${D}" && find ./var/lib/courier -type d) ; do
|
|
| 126 |
+ keepdir "$dir2keep" || die "failed running keepdir: $dir2keep" |
|
| 127 |
+ done |
|
| 128 |
+ |
|
| 129 |
+ newinitd "${FILESDIR}/courier-init-r2" "courier"
|
|
| 130 |
+ use fam || sed -i -e's|^.*use famd$||g' "${D}/etc/init.d/courier"
|
|
| 131 |
+ |
|
| 132 |
+ cd "${D}/etc/courier"
|
|
| 133 |
+ if use webmail ; then |
|
| 134 |
+ insinto /etc/courier |
|
| 135 |
+ newins "${FILESDIR}/apache-sqwebmail.inc" apache-sqwebmail.inc
|
|
| 136 |
+ fi |
|
| 137 |
+ |
|
| 138 |
+ for f in *.dist ; do cp "${f}" "${f%%.dist}" ; done
|
|
| 139 |
+ if use ldap ; then |
|
| 140 |
+ [ -e ldapaliasrc ] && ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc ) |
|
| 141 |
+ else |
|
| 142 |
+ rm -f ldapaliasrc |
|
| 143 |
+ fi |
|
| 144 |
+ |
|
| 145 |
+ ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ |
|
| 146 |
+ > "${D}/etc/courier/sizelimit"
|
|
| 147 |
+ etc_courier maildroprc "" |
|
| 148 |
+ etc_courier esmtproutes "" |
|
| 149 |
+ etc_courier backuprelay "" |
|
| 150 |
+ etc_courier locallowercase "" |
|
| 151 |
+ etc_courier bofh "opt BOFHBADMIME=accept" |
|
| 152 |
+ etc_courier bofh "opt BOFHSPFTRUSTME=1" |
|
| 153 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail" |
|
| 154 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none" |
|
| 155 |
+ etc_courier bofh "opt BOFHSPFFROM=all" |
|
| 156 |
+ etc_courier bofh "opt BOFHSPFMAILFROM=all" |
|
| 157 |
+ etc_courier bofh "#opt BOFHSPFHARDERROR=fail" |
|
| 158 |
+ etc_courier esmtpd "BOFHBADMIME=accept" |
|
| 159 |
+ etc_courier esmtpd-ssl "BOFHBADMIME=accept" |
|
| 160 |
+ etc_courier esmtpd-msa "BOFHBADMIME=accept" |
|
| 161 |
+ |
|
| 162 |
+ 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" |
|
| 163 |
+ 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" |
|
| 164 |
+ |
|
| 165 |
+ # Fix for a sandbox violation on subsequential merges |
|
| 166 |
+ # - ticho@gentoo.org, 2005-07-10 |
|
| 167 |
+ rm "${D}"/usr/sbin/{pop3d,imapd}{,-ssl}
|
|
| 168 |
+ dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d |
|
| 169 |
+ dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl |
|
| 170 |
+ dosym /usr/share/courier/imapd /usr/sbin/courier-imapd |
|
| 171 |
+ dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl |
|
| 172 |
+ |
|
| 173 |
+ cd "${S}"
|
|
| 174 |
+ cp imap/README README.imap |
|
| 175 |
+ use nls && cp unicode/README README.unicode |
|
| 176 |
+ dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt |
|
| 177 |
+ dodoc tcpd/README.couriertls |
|
| 178 |
+ mv "${D}/usr/share/courier/htmldoc" "${D}/usr/share/doc/${P}/html"
|
|
| 179 |
+ |
|
| 180 |
+ if use webmail ; then |
|
| 181 |
+ insinto /usr/$(get_libdir)/courier/courier |
|
| 182 |
+ insopts -m 755 -o mail -g mail |
|
| 183 |
+ doins "${S}/courier/webmaild"
|
|
| 184 |
+ fi |
|
| 185 |
+ |
|
| 186 |
+ if use web ; then |
|
| 187 |
+ insinto /etc/courier/webadmin |
|
| 188 |
+ insopts -m 400 -o mail -g mail |
|
| 189 |
+ doins "${FILESDIR}/password.dist"
|
|
| 190 |
+ fi |
|
| 191 |
+ |
|
| 192 |
+ # avoid name collisions in /usr/sbin, make webadmin match |
|
| 193 |
+ cd "${D}/usr/sbin"
|
|
| 194 |
+ for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv "${f}" "courier-${f}" ; done
|
|
| 195 |
+ if use web ; then |
|
| 196 |
+ sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \ |
|
| 197 |
+ -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \ |
|
| 198 |
+ "${D}/usr/share/courier/courierwebadmin/admin-40imap.pl" \
|
|
| 199 |
+ || ewarn "failed to fix webadmin" |
|
| 200 |
+ sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \ |
|
| 201 |
+ -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \ |
|
| 202 |
+ "${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl" \
|
|
| 203 |
+ || ewarn "failed to fix webadmin" |
|
| 204 |
+ fi |
|
| 205 |
+ |
|
| 206 |
+ # users should be able to send mail. Could be restricted with suictl. |
|
| 207 |
+ chmod u+s "${D}/usr/bin/sendmail"
|
|
| 208 |
+ |
|
| 209 |
+ if use mailwrapper ; then |
|
| 210 |
+ mv "${D}/usr/bin/sendmail" "${D}/usr/bin/sendmail.courier"
|
|
| 211 |
+ mv "${D}/usr/bin/rmail" "${D}/usr/bin/rmail.courier"
|
|
| 212 |
+ mv "${D}/usr/bin/mailq" "${D}/usr/bin/mailq.courier"
|
|
| 213 |
+ |
|
| 214 |
+ mv "${D}/usr/share/man/man1/sendmail.1" \
|
|
| 215 |
+ "${D}/usr/share/man/man1/sendmail-courier.1"
|
|
| 216 |
+ mv "${D}/usr/share/man/man1/mailq.1" \
|
|
| 217 |
+ "${D}/usr/share/man/man1/mailq-courier.1"
|
|
| 218 |
+ mv "${D}/usr/share/man/man1/rmail.1" \
|
|
| 219 |
+ "${D}/usr/share/man/man1/rmail-courier.1"
|
|
| 220 |
+ |
|
| 221 |
+ insopts -m 444 -o mail -g mail |
|
| 222 |
+ insinto /etc/mail |
|
| 223 |
+ doins "${FILESDIR}/mailer.conf"
|
|
| 224 |
+ else |
|
| 225 |
+ dosym /usr/bin/sendmail /usr/sbin/sendmail |
|
| 226 |
+ fi |
|
| 227 |
+} |
|
| 228 |
+ |
|
| 229 |
+src_test() {
|
|
| 230 |
+ if [ `whoami` != 'root' ]; then |
|
| 231 |
+ emake -j1 check || die "Make check failed." |
|
| 232 |
+ else |
|
| 233 |
+ einfo "make check skipped, can't run as root." |
|
| 234 |
+ einfo "You can enable it with FEATURES=\"userpriv\"" |
|
| 235 |
+ fi |
|
| 236 |
+} |
|
| 237 |
+ |
|
| 238 |
+pkg_postinst() {
|
|
| 239 |
+ use fam && elog "fam daemon is needed for courier-imapd" \ |
|
| 240 |
+ || ewarn "courier was built without fam support" |
|
| 241 |
+} |
|
| 242 |
+ |
|
| 243 |
+pkg_config() {
|
|
| 244 |
+ mailhost="$(hostname)" |
|
| 245 |
+ export mailhost |
|
| 246 |
+ |
|
| 247 |
+ domainname="$(domainname)" |
|
| 248 |
+ if [ "x$domainname" = "x(none)" ] ; then |
|
| 249 |
+ domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")"
|
|
| 250 |
+ fi |
|
| 251 |
+ export domainname |
|
| 252 |
+ |
|
| 253 |
+ if [ "${ROOT}" = "/" ] ; then
|
|
| 254 |
+ file="${ROOT}/etc/courier/locals"
|
|
| 255 |
+ if [ ! -f "${file}" ] ; then
|
|
| 256 |
+ echo "localhost" > "${file}";
|
|
| 257 |
+ echo "${domainname}" >> "${file}";
|
|
| 258 |
+ fi |
|
| 259 |
+ file="${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}"
|
|
| 260 |
+ if [ ! -f "${file}" ] ; then
|
|
| 261 |
+ echo "${domainname}" > "${file}"
|
|
| 262 |
+ /usr/sbin/makeacceptmailfor |
|
| 263 |
+ fi |
|
| 264 |
+ |
|
| 265 |
+ file="${ROOT}/etc/courier/smtpaccess/${domainname}"
|
|
| 266 |
+ if [ ! -f "${file}" ]
|
|
| 267 |
+ then |
|
| 268 |
+ netstat -nr | grep "^[1-9]" | while read network gateway netmask rest |
|
| 269 |
+ do |
|
| 270 |
+ i=1 |
|
| 271 |
+ net="" |
|
| 272 |
+ TIFS="${IFS}"
|
|
| 273 |
+ IFS="." |
|
| 274 |
+ for o in "${netmask}"
|
|
| 275 |
+ do |
|
| 276 |
+ if [ "${o}" == "255" ]
|
|
| 277 |
+ then |
|
| 278 |
+ [ "_${net}" == "_" ] || net="${net}."
|
|
| 279 |
+ t="$(echo "${network}" | cut -d " " -f ${i})"
|
|
| 280 |
+ net="${net}${t}"
|
|
| 281 |
+ fi |
|
| 282 |
+ i="$((${i} + 1))"
|
|
| 283 |
+ done |
|
| 284 |
+ IFS="${TIFS}"
|
|
| 285 |
+ echo "doing configuration - relay control for the network ${net} !"
|
|
| 286 |
+ echo "${net} allow,RELAYCLIENT" >> ${file}
|
|
| 287 |
+ done |
|
| 288 |
+ /usr/sbin/makesmtpaccess |
|
| 289 |
+ fi |
|
| 290 |
+ fi |
|
| 291 |
+ |
|
| 292 |
+ echo "creating cert for esmtpd-ssl:" |
|
| 293 |
+ /usr/sbin/mkesmtpdcert |
|
| 294 |
+ echo "creating cert for imapd-ssl:" |
|
| 295 |
+ /usr/sbin/mkpop3dcert |
|
| 296 |
+ echo "creating cert for pop3d-ssl:" |
|
| 297 |
+ /usr/sbin/mkimapdcert |
|
| 298 |
+} |
| ... | ... |
@@ -0,0 +1,298 @@ |
| 1 |
+# Copyright 1999-2010 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.65.0.ebuild,v 1.2 2010/12/05 20:54:48 mattst88 Exp $ |
|
| 4 |
+ |
|
| 5 |
+inherit eutils flag-o-matic |
|
| 6 |
+ |
|
| 7 |
+DESCRIPTION="An MTA designed specifically for maildirs" |
|
| 8 |
+SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
|
|
| 9 |
+HOMEPAGE="http://www.courier-mta.org/" |
|
| 10 |
+SLOT="0" |
|
| 11 |
+LICENSE="GPL-2" |
|
| 12 |
+# not in keywords due to missing dependencies: ~arm ~s390 ~ppc64 |
|
| 13 |
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86" |
|
| 14 |
+IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite mailwrapper \ |
|
| 15 |
+ fam web webmail" |
|
| 16 |
+ |
|
| 17 |
+PROVIDE="virtual/mta |
|
| 18 |
+ virtual/mda |
|
| 19 |
+ virtual/imapd" |
|
| 20 |
+ |
|
| 21 |
+DEPEND=" |
|
| 22 |
+ >=net-libs/courier-authlib-0.61.0 |
|
| 23 |
+ >=dev-libs/openssl-0.9.6 |
|
| 24 |
+ >=sys-libs/gdbm-1.8.0 |
|
| 25 |
+ dev-libs/libpcre |
|
| 26 |
+ app-misc/mime-types |
|
| 27 |
+ fax? ( >=media-libs/netpbm-9.12 app-text/ghostscript-gpl >=net-dialup/mgetty-1.1.28 ) |
|
| 28 |
+ pam? ( virtual/pam ) |
|
| 29 |
+ mysql? ( virtual/mysql ) |
|
| 30 |
+ ldap? ( >=net-nds/openldap-1.2.11 ) |
|
| 31 |
+ postgres? ( dev-db/postgresql-base ) |
|
| 32 |
+ spell? ( virtual/aspell-dict ) |
|
| 33 |
+ fam? ( virtual/fam ) |
|
| 34 |
+ !mailwrapper? ( !virtual/mta ) |
|
| 35 |
+ !virtual/imapd |
|
| 36 |
+ !mail-filter/maildrop" |
|
| 37 |
+ |
|
| 38 |
+RDEPEND="${DEPEND}
|
|
| 39 |
+ dev-lang/perl |
|
| 40 |
+ sys-process/procps" |
|
| 41 |
+ |
|
| 42 |
+PDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 ) |
|
| 43 |
+ pam? ( net-mail/mailbase ) |
|
| 44 |
+ crypt? ( >=app-crypt/gnupg-1.0.4 )" |
|
| 45 |
+ |
|
| 46 |
+src_unpack() {
|
|
| 47 |
+ unpack ${A}
|
|
| 48 |
+ cd "${S}"
|
|
| 49 |
+ use norewrite && epatch "${FILESDIR}/norewrite.patch"
|
|
| 50 |
+} |
|
| 51 |
+ |
|
| 52 |
+src_compile() {
|
|
| 53 |
+ filter-flags '-fomit-frame-pointer' |
|
| 54 |
+ |
|
| 55 |
+ local myconf |
|
| 56 |
+ myconf="" |
|
| 57 |
+ |
|
| 58 |
+ use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf"
|
|
| 59 |
+ |
|
| 60 |
+ econf ${myconf} \
|
|
| 61 |
+ $(use_with fam) \ |
|
| 62 |
+ $(use_with ipv6) \ |
|
| 63 |
+ $(use_with spell ispell) \ |
|
| 64 |
+ $(use_with ldap ldapaliasd) \ |
|
| 65 |
+ $(use_enable ldap maildroldap) \ |
|
| 66 |
+ --enable-mimetypes=/etc/mime.types \ |
|
| 67 |
+ --prefix=/usr \ |
|
| 68 |
+ --disable-root-check \ |
|
| 69 |
+ --mandir=/usr/share/man \ |
|
| 70 |
+ --sysconfdir=/etc/courier \ |
|
| 71 |
+ --libexecdir=/usr/$(get_libdir)/courier \ |
|
| 72 |
+ --datadir=/usr/share/courier \ |
|
| 73 |
+ --sharedstatedir=/var/lib/courier/com \ |
|
| 74 |
+ --localstatedir=/var/lib/courier \ |
|
| 75 |
+ --with-piddir=/var/run/courier \ |
|
| 76 |
+ --with-authdaemonvar=/var/lib/courier/authdaemon \ |
|
| 77 |
+ --with-mailuser=mail \ |
|
| 78 |
+ --with-mailgroup=mail \ |
|
| 79 |
+ --with-paranoid-smtpext \ |
|
| 80 |
+ --with-db=gdbm \ |
|
| 81 |
+ --disable-autorenamesent \ |
|
| 82 |
+ --cache-file="${S}/configuring.cache" \
|
|
| 83 |
+ --host="${CHOST}" debug=true || die "./configure"
|
|
| 84 |
+ sed -e'/^install-perms-local:/a\ sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile
|
|
| 85 |
+ emake || die "Compile problem" |
|
| 86 |
+} |
|
| 87 |
+ |
|
| 88 |
+etc_courier() {
|
|
| 89 |
+ # Import existing /etc/courier/file if it exists. |
|
| 90 |
+ # Add option only if it was not already set or even commented out |
|
| 91 |
+ file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`"
|
|
| 92 |
+ [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \
|
|
| 93 |
+ cp "/etc/courier/${file}" "${D}/etc/courier/${file}"
|
|
| 94 |
+ grep -q "${word}" "${D}/etc/courier/${file}" || \
|
|
| 95 |
+ echo "${2}" >> "${D}/etc/courier/${file}"
|
|
| 96 |
+} |
|
| 97 |
+ |
|
| 98 |
+etc_courier_chg() {
|
|
| 99 |
+ file="${1}" ; key="${2}" ; value="${3}" ; section="${4}"
|
|
| 100 |
+ [ -z "${section}" ] && section="${2}"
|
|
| 101 |
+ grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}"
|
|
| 102 |
+ sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file}
|
|
| 103 |
+} |
|
| 104 |
+ |
|
| 105 |
+src_install() {
|
|
| 106 |
+ local f |
|
| 107 |
+ diropts -o mail -g mail |
|
| 108 |
+ keepdir /var/run/courier |
|
| 109 |
+ keepdir /var/lib/courier/tmp |
|
| 110 |
+ keepdir /var/lib/courier/msgs |
|
| 111 |
+ make install DESTDIR="${D}" || die "install"
|
|
| 112 |
+ make install-configure || die "install-configure" |
|
| 113 |
+ |
|
| 114 |
+ # Get rid of files we dont want |
|
| 115 |
+ if ! use webmail ; then |
|
| 116 |
+ cd "${D}"
|
|
| 117 |
+ cat "${FILESDIR}/webmail_files" | xargs rm -rf
|
|
| 118 |
+ fi |
|
| 119 |
+ |
|
| 120 |
+ if ! use web ; then |
|
| 121 |
+ cd "${D}"
|
|
| 122 |
+ cat "${FILESDIR}/webadmin_files" | xargs rm -rf
|
|
| 123 |
+ fi |
|
| 124 |
+ |
|
| 125 |
+ for dir2keep in $(cd "${D}" && find ./var/lib/courier -type d) ; do
|
|
| 126 |
+ keepdir "$dir2keep" || die "failed running keepdir: $dir2keep" |
|
| 127 |
+ done |
|
| 128 |
+ |
|
| 129 |
+ newinitd "${FILESDIR}/courier-init-r2" "courier"
|
|
| 130 |
+ use fam || sed -i -e's|^.*use famd$||g' "${D}/etc/init.d/courier"
|
|
| 131 |
+ |
|
| 132 |
+ cd "${D}/etc/courier"
|
|
| 133 |
+ if use webmail ; then |
|
| 134 |
+ insinto /etc/courier |
|
| 135 |
+ newins "${FILESDIR}/apache-sqwebmail.inc" apache-sqwebmail.inc
|
|
| 136 |
+ fi |
|
| 137 |
+ |
|
| 138 |
+ for f in *.dist ; do cp "${f}" "${f%%.dist}" ; done
|
|
| 139 |
+ if use ldap ; then |
|
| 140 |
+ [ -e ldapaliasrc ] && ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc ) |
|
| 141 |
+ else |
|
| 142 |
+ rm -f ldapaliasrc |
|
| 143 |
+ fi |
|
| 144 |
+ |
|
| 145 |
+ ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ |
|
| 146 |
+ > "${D}/etc/courier/sizelimit"
|
|
| 147 |
+ etc_courier maildroprc "" |
|
| 148 |
+ etc_courier esmtproutes "" |
|
| 149 |
+ etc_courier backuprelay "" |
|
| 150 |
+ etc_courier locallowercase "" |
|
| 151 |
+ etc_courier bofh "opt BOFHBADMIME=accept" |
|
| 152 |
+ etc_courier bofh "opt BOFHSPFTRUSTME=1" |
|
| 153 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail" |
|
| 154 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none" |
|
| 155 |
+ etc_courier bofh "opt BOFHSPFFROM=all" |
|
| 156 |
+ etc_courier bofh "opt BOFHSPFMAILFROM=all" |
|
| 157 |
+ etc_courier bofh "#opt BOFHSPFHARDERROR=fail" |
|
| 158 |
+ etc_courier esmtpd "BOFHBADMIME=accept" |
|
| 159 |
+ etc_courier esmtpd-ssl "BOFHBADMIME=accept" |
|
| 160 |
+ etc_courier esmtpd-msa "BOFHBADMIME=accept" |
|
| 161 |
+ |
|
| 162 |
+ 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" |
|
| 163 |
+ 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" |
|
| 164 |
+ |
|
| 165 |
+ # Fix for a sandbox violation on subsequential merges |
|
| 166 |
+ # - ticho@gentoo.org, 2005-07-10 |
|
| 167 |
+ rm "${D}"/usr/sbin/{pop3d,imapd}{,-ssl}
|
|
| 168 |
+ dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d |
|
| 169 |
+ dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl |
|
| 170 |
+ dosym /usr/share/courier/imapd /usr/sbin/courier-imapd |
|
| 171 |
+ dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl |
|
| 172 |
+ |
|
| 173 |
+ cd "${S}"
|
|
| 174 |
+ cp imap/README README.imap |
|
| 175 |
+ use nls && cp unicode/README README.unicode |
|
| 176 |
+ dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt |
|
| 177 |
+ dodoc tcpd/README.couriertls |
|
| 178 |
+ mv "${D}/usr/share/courier/htmldoc" "${D}/usr/share/doc/${P}/html"
|
|
| 179 |
+ |
|
| 180 |
+ if use webmail ; then |
|
| 181 |
+ insinto /usr/$(get_libdir)/courier/courier |
|
| 182 |
+ insopts -m 755 -o mail -g mail |
|
| 183 |
+ doins "${S}/courier/webmaild"
|
|
| 184 |
+ fi |
|
| 185 |
+ |
|
| 186 |
+ if use web ; then |
|
| 187 |
+ insinto /etc/courier/webadmin |
|
| 188 |
+ insopts -m 400 -o mail -g mail |
|
| 189 |
+ doins "${FILESDIR}/password.dist"
|
|
| 190 |
+ fi |
|
| 191 |
+ |
|
| 192 |
+ # avoid name collisions in /usr/sbin, make webadmin match |
|
| 193 |
+ cd "${D}/usr/sbin"
|
|
| 194 |
+ for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv "${f}" "courier-${f}" ; done
|
|
| 195 |
+ if use web ; then |
|
| 196 |
+ sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \ |
|
| 197 |
+ -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \ |
|
| 198 |
+ "${D}/usr/share/courier/courierwebadmin/admin-40imap.pl" \
|
|
| 199 |
+ || ewarn "failed to fix webadmin" |
|
| 200 |
+ sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \ |
|
| 201 |
+ -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \ |
|
| 202 |
+ "${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl" \
|
|
| 203 |
+ || ewarn "failed to fix webadmin" |
|
| 204 |
+ fi |
|
| 205 |
+ |
|
| 206 |
+ # users should be able to send mail. Could be restricted with suictl. |
|
| 207 |
+ chmod u+s "${D}/usr/bin/sendmail"
|
|
| 208 |
+ |
|
| 209 |
+ if use mailwrapper ; then |
|
| 210 |
+ mv "${D}/usr/bin/sendmail" "${D}/usr/bin/sendmail.courier"
|
|
| 211 |
+ mv "${D}/usr/bin/rmail" "${D}/usr/bin/rmail.courier"
|
|
| 212 |
+ mv "${D}/usr/bin/mailq" "${D}/usr/bin/mailq.courier"
|
|
| 213 |
+ |
|
| 214 |
+ mv "${D}/usr/share/man/man1/sendmail.1" \
|
|
| 215 |
+ "${D}/usr/share/man/man1/sendmail-courier.1"
|
|
| 216 |
+ mv "${D}/usr/share/man/man1/mailq.1" \
|
|
| 217 |
+ "${D}/usr/share/man/man1/mailq-courier.1"
|
|
| 218 |
+ mv "${D}/usr/share/man/man1/rmail.1" \
|
|
| 219 |
+ "${D}/usr/share/man/man1/rmail-courier.1"
|
|
| 220 |
+ |
|
| 221 |
+ insopts -m 444 -o mail -g mail |
|
| 222 |
+ insinto /etc/mail |
|
| 223 |
+ doins "${FILESDIR}/mailer.conf"
|
|
| 224 |
+ else |
|
| 225 |
+ dosym /usr/bin/sendmail /usr/sbin/sendmail |
|
| 226 |
+ fi |
|
| 227 |
+} |
|
| 228 |
+ |
|
| 229 |
+src_test() {
|
|
| 230 |
+ if [ `whoami` != 'root' ]; then |
|
| 231 |
+ emake -j1 check || die "Make check failed." |
|
| 232 |
+ else |
|
| 233 |
+ einfo "make check skipped, can't run as root." |
|
| 234 |
+ einfo "You can enable it with FEATURES=\"userpriv\"" |
|
| 235 |
+ fi |
|
| 236 |
+} |
|
| 237 |
+ |
|
| 238 |
+pkg_postinst() {
|
|
| 239 |
+ use fam && elog "fam daemon is needed for courier-imapd" \ |
|
| 240 |
+ || ewarn "courier was built without fam support" |
|
| 241 |
+} |
|
| 242 |
+ |
|
| 243 |
+pkg_config() {
|
|
| 244 |
+ mailhost="$(hostname)" |
|
| 245 |
+ export mailhost |
|
| 246 |
+ |
|
| 247 |
+ domainname="$(domainname)" |
|
| 248 |
+ if [ "x$domainname" = "x(none)" ] ; then |
|
| 249 |
+ domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")"
|
|
| 250 |
+ fi |
|
| 251 |
+ export domainname |
|
| 252 |
+ |
|
| 253 |
+ if [ "${ROOT}" = "/" ] ; then
|
|
| 254 |
+ file="${ROOT}/etc/courier/locals"
|
|
| 255 |
+ if [ ! -f "${file}" ] ; then
|
|
| 256 |
+ echo "localhost" > "${file}";
|
|
| 257 |
+ echo "${domainname}" >> "${file}";
|
|
| 258 |
+ fi |
|
| 259 |
+ file="${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}"
|
|
| 260 |
+ if [ ! -f "${file}" ] ; then
|
|
| 261 |
+ echo "${domainname}" > "${file}"
|
|
| 262 |
+ /usr/sbin/makeacceptmailfor |
|
| 263 |
+ fi |
|
| 264 |
+ |
|
| 265 |
+ file="${ROOT}/etc/courier/smtpaccess/${domainname}"
|
|
| 266 |
+ if [ ! -f "${file}" ]
|
|
| 267 |
+ then |
|
| 268 |
+ netstat -nr | grep "^[1-9]" | while read network gateway netmask rest |
|
| 269 |
+ do |
|
| 270 |
+ i=1 |
|
| 271 |
+ net="" |
|
| 272 |
+ TIFS="${IFS}"
|
|
| 273 |
+ IFS="." |
|
| 274 |
+ for o in "${netmask}"
|
|
| 275 |
+ do |
|
| 276 |
+ if [ "${o}" == "255" ]
|
|
| 277 |
+ then |
|
| 278 |
+ [ "_${net}" == "_" ] || net="${net}."
|
|
| 279 |
+ t="$(echo "${network}" | cut -d " " -f ${i})"
|
|
| 280 |
+ net="${net}${t}"
|
|
| 281 |
+ fi |
|
| 282 |
+ i="$((${i} + 1))"
|
|
| 283 |
+ done |
|
| 284 |
+ IFS="${TIFS}"
|
|
| 285 |
+ echo "doing configuration - relay control for the network ${net} !"
|
|
| 286 |
+ echo "${net} allow,RELAYCLIENT" >> ${file}
|
|
| 287 |
+ done |
|
| 288 |
+ /usr/sbin/makesmtpaccess |
|
| 289 |
+ fi |
|
| 290 |
+ fi |
|
| 291 |
+ |
|
| 292 |
+ echo "creating cert for esmtpd-ssl:" |
|
| 293 |
+ /usr/sbin/mkesmtpdcert |
|
| 294 |
+ echo "creating cert for imapd-ssl:" |
|
| 295 |
+ /usr/sbin/mkpop3dcert |
|
| 296 |
+ echo "creating cert for pop3d-ssl:" |
|
| 297 |
+ /usr/sbin/mkimapdcert |
|
| 298 |
+} |
| ... | ... |
@@ -0,0 +1,298 @@ |
| 1 |
+# Copyright 1999-2010 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.65.0.ebuild,v 1.2 2010/12/05 20:54:48 mattst88 Exp $ |
|
| 4 |
+ |
|
| 5 |
+inherit eutils flag-o-matic |
|
| 6 |
+ |
|
| 7 |
+DESCRIPTION="An MTA designed specifically for maildirs" |
|
| 8 |
+SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
|
|
| 9 |
+HOMEPAGE="http://www.courier-mta.org/" |
|
| 10 |
+SLOT="0" |
|
| 11 |
+LICENSE="GPL-2" |
|
| 12 |
+# not in keywords due to missing dependencies: ~arm ~s390 ~ppc64 |
|
| 13 |
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86" |
|
| 14 |
+IUSE="postgres ldap mysql pam nls ipv6 spell fax crypt norewrite mailwrapper \ |
|
| 15 |
+ fam web webmail" |
|
| 16 |
+ |
|
| 17 |
+PROVIDE="virtual/mta |
|
| 18 |
+ virtual/mda |
|
| 19 |
+ virtual/imapd" |
|
| 20 |
+ |
|
| 21 |
+DEPEND=" |
|
| 22 |
+ >=net-libs/courier-authlib-0.61.0 |
|
| 23 |
+ >=dev-libs/openssl-0.9.6 |
|
| 24 |
+ >=sys-libs/gdbm-1.8.0 |
|
| 25 |
+ dev-libs/libpcre |
|
| 26 |
+ app-misc/mime-types |
|
| 27 |
+ fax? ( >=media-libs/netpbm-9.12 app-text/ghostscript-gpl >=net-dialup/mgetty-1.1.28 ) |
|
| 28 |
+ pam? ( virtual/pam ) |
|
| 29 |
+ mysql? ( virtual/mysql ) |
|
| 30 |
+ ldap? ( >=net-nds/openldap-1.2.11 ) |
|
| 31 |
+ postgres? ( dev-db/postgresql-base ) |
|
| 32 |
+ spell? ( virtual/aspell-dict ) |
|
| 33 |
+ fam? ( virtual/fam ) |
|
| 34 |
+ !mailwrapper? ( !virtual/mta ) |
|
| 35 |
+ !virtual/imapd |
|
| 36 |
+ !mail-filter/maildrop" |
|
| 37 |
+ |
|
| 38 |
+RDEPEND="${DEPEND}
|
|
| 39 |
+ dev-lang/perl |
|
| 40 |
+ sys-process/procps" |
|
| 41 |
+ |
|
| 42 |
+PDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 ) |
|
| 43 |
+ pam? ( net-mail/mailbase ) |
|
| 44 |
+ crypt? ( >=app-crypt/gnupg-1.0.4 )" |
|
| 45 |
+ |
|
| 46 |
+src_unpack() {
|
|
| 47 |
+ unpack ${A}
|
|
| 48 |
+ cd "${S}"
|
|
| 49 |
+ use norewrite && epatch "${FILESDIR}/norewrite.patch"
|
|
| 50 |
+} |
|
| 51 |
+ |
|
| 52 |
+src_compile() {
|
|
| 53 |
+ filter-flags '-fomit-frame-pointer' |
|
| 54 |
+ |
|
| 55 |
+ local myconf |
|
| 56 |
+ myconf="" |
|
| 57 |
+ |
|
| 58 |
+ use ldap && myconf="${myconf} --with-ldapconfig=/etc/courier/maildropldap.conf"
|
|
| 59 |
+ |
|
| 60 |
+ econf ${myconf} \
|
|
| 61 |
+ $(use_with fam) \ |
|
| 62 |
+ $(use_with ipv6) \ |
|
| 63 |
+ $(use_with spell ispell) \ |
|
| 64 |
+ $(use_with ldap ldapaliasd) \ |
|
| 65 |
+ $(use_enable ldap maildroldap) \ |
|
| 66 |
+ --enable-mimetypes=/etc/mime.types \ |
|
| 67 |
+ --prefix=/usr \ |
|
| 68 |
+ --disable-root-check \ |
|
| 69 |
+ --mandir=/usr/share/man \ |
|
| 70 |
+ --sysconfdir=/etc/courier \ |
|
| 71 |
+ --libexecdir=/usr/$(get_libdir)/courier \ |
|
| 72 |
+ --datadir=/usr/share/courier \ |
|
| 73 |
+ --sharedstatedir=/var/lib/courier/com \ |
|
| 74 |
+ --localstatedir=/var/lib/courier \ |
|
| 75 |
+ --with-piddir=/var/run/courier \ |
|
| 76 |
+ --with-authdaemonvar=/var/lib/courier/authdaemon \ |
|
| 77 |
+ --with-mailuser=mail \ |
|
| 78 |
+ --with-mailgroup=mail \ |
|
| 79 |
+ --with-paranoid-smtpext \ |
|
| 80 |
+ --with-db=gdbm \ |
|
| 81 |
+ --disable-autorenamesent \ |
|
| 82 |
+ --cache-file="${S}/configuring.cache" \
|
|
| 83 |
+ --host="${CHOST}" debug=true || die "./configure"
|
|
| 84 |
+ sed -e'/^install-perms-local:/a\ sed -e\"s|^|'"${D}"'|g\" -i permissions.dat' -i Makefile
|
|
| 85 |
+ emake || die "Compile problem" |
|
| 86 |
+} |
|
| 87 |
+ |
|
| 88 |
+etc_courier() {
|
|
| 89 |
+ # Import existing /etc/courier/file if it exists. |
|
| 90 |
+ # Add option only if it was not already set or even commented out |
|
| 91 |
+ file="${1}" ; word="`echo \"${2}\" | sed -e\"s|=.*$||\" -e\"s|^.*opt ||\"`"
|
|
| 92 |
+ [ ! -e "${D}/etc/courier/${file}" ] && [ -e "/etc/courier/${file}" ] && \
|
|
| 93 |
+ cp "/etc/courier/${file}" "${D}/etc/courier/${file}"
|
|
| 94 |
+ grep -q "${word}" "${D}/etc/courier/${file}" || \
|
|
| 95 |
+ echo "${2}" >> "${D}/etc/courier/${file}"
|
|
| 96 |
+} |
|
| 97 |
+ |
|
| 98 |
+etc_courier_chg() {
|
|
| 99 |
+ file="${1}" ; key="${2}" ; value="${3}" ; section="${4}"
|
|
| 100 |
+ [ -z "${section}" ] && section="${2}"
|
|
| 101 |
+ grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}"
|
|
| 102 |
+ sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file}
|
|
| 103 |
+} |
|
| 104 |
+ |
|
| 105 |
+src_install() {
|
|
| 106 |
+ local f |
|
| 107 |
+ diropts -o mail -g mail |
|
| 108 |
+ keepdir /var/run/courier |
|
| 109 |
+ keepdir /var/lib/courier/tmp |
|
| 110 |
+ keepdir /var/lib/courier/msgs |
|
| 111 |
+ make install DESTDIR="${D}" || die "install"
|
|
| 112 |
+ make install-configure || die "install-configure" |
|
| 113 |
+ |
|
| 114 |
+ # Get rid of files we dont want |
|
| 115 |
+ if ! use webmail ; then |
|
| 116 |
+ cd "${D}"
|
|
| 117 |
+ cat "${FILESDIR}/webmail_files" | xargs rm -rf
|
|
| 118 |
+ fi |
|
| 119 |
+ |
|
| 120 |
+ if ! use web ; then |
|
| 121 |
+ cd "${D}"
|
|
| 122 |
+ cat "${FILESDIR}/webadmin_files" | xargs rm -rf
|
|
| 123 |
+ fi |
|
| 124 |
+ |
|
| 125 |
+ for dir2keep in $(cd "${D}" && find ./var/lib/courier -type d) ; do
|
|
| 126 |
+ keepdir "$dir2keep" || die "failed running keepdir: $dir2keep" |
|
| 127 |
+ done |
|
| 128 |
+ |
|
| 129 |
+ newinitd "${FILESDIR}/courier-init-r2" "courier"
|
|
| 130 |
+ use fam || sed -i -e's|^.*use famd$||g' "${D}/etc/init.d/courier"
|
|
| 131 |
+ |
|
| 132 |
+ cd "${D}/etc/courier"
|
|
| 133 |
+ if use webmail ; then |
|
| 134 |
+ insinto /etc/courier |
|
| 135 |
+ newins "${FILESDIR}/apache-sqwebmail.inc" apache-sqwebmail.inc
|
|
| 136 |
+ fi |
|
| 137 |
+ |
|
| 138 |
+ for f in *.dist ; do cp "${f}" "${f%%.dist}" ; done
|
|
| 139 |
+ if use ldap ; then |
|
| 140 |
+ [ -e ldapaliasrc ] && ( chown root:0 ldapaliasrc ; chmod 400 ldapaliasrc ) |
|
| 141 |
+ else |
|
| 142 |
+ rm -f ldapaliasrc |
|
| 143 |
+ fi |
|
| 144 |
+ |
|
| 145 |
+ ( [ -e /etc/courier/sizelimit ] && cat /etc/courier/sizelimit || echo 0 ) \ |
|
| 146 |
+ > "${D}/etc/courier/sizelimit"
|
|
| 147 |
+ etc_courier maildroprc "" |
|
| 148 |
+ etc_courier esmtproutes "" |
|
| 149 |
+ etc_courier backuprelay "" |
|
| 150 |
+ etc_courier locallowercase "" |
|
| 151 |
+ etc_courier bofh "opt BOFHBADMIME=accept" |
|
| 152 |
+ etc_courier bofh "opt BOFHSPFTRUSTME=1" |
|
| 153 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none,error,softfail,fail" |
|
| 154 |
+ etc_courier bofh "opt BOFHSPFHELO=pass,neutral,unknown,none" |
|
| 155 |
+ etc_courier bofh "opt BOFHSPFFROM=all" |
|
| 156 |
+ etc_courier bofh "opt BOFHSPFMAILFROM=all" |
|
| 157 |
+ etc_courier bofh "#opt BOFHSPFHARDERROR=fail" |
|
| 158 |
+ etc_courier esmtpd "BOFHBADMIME=accept" |
|
| 159 |
+ etc_courier esmtpd-ssl "BOFHBADMIME=accept" |
|
| 160 |
+ etc_courier esmtpd-msa "BOFHBADMIME=accept" |
|
| 161 |
+ |
|
| 162 |
+ 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" |
|
| 163 |
+ 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" |
|
| 164 |
+ |
|
| 165 |
+ # Fix for a sandbox violation on subsequential merges |
|
| 166 |
+ # - ticho@gentoo.org, 2005-07-10 |
|
| 167 |
+ rm "${D}"/usr/sbin/{pop3d,imapd}{,-ssl}
|
|
| 168 |
+ dosym /usr/share/courier/pop3d /usr/sbin/courier-pop3d |
|
| 169 |
+ dosym /usr/share/courier/pop3d-ssl /usr/sbin/courier-pop3d-ssl |
|
| 170 |
+ dosym /usr/share/courier/imapd /usr/sbin/courier-imapd |
|
| 171 |
+ dosym /usr/share/courier/imapd-ssl /usr/sbin/courier-imapd-ssl |
|
| 172 |
+ |
|
| 173 |
+ cd "${S}"
|
|
| 174 |
+ cp imap/README README.imap |
|
| 175 |
+ use nls && cp unicode/README README.unicode |
|
| 176 |
+ dodoc AUTHORS BENCHMARKS COPYING* ChangeLog* INSTALL NEWS README* TODO courier/doc/*.txt |
|
| 177 |
+ dodoc tcpd/README.couriertls |
|
| 178 |
+ mv "${D}/usr/share/courier/htmldoc" "${D}/usr/share/doc/${P}/html"
|
|
| 179 |
+ |
|
| 180 |
+ if use webmail ; then |
|
| 181 |
+ insinto /usr/$(get_libdir)/courier/courier |
|
| 182 |
+ insopts -m 755 -o mail -g mail |
|
| 183 |
+ doins "${S}/courier/webmaild"
|
|
| 184 |
+ fi |
|
| 185 |
+ |
|
| 186 |
+ if use web ; then |
|
| 187 |
+ insinto /etc/courier/webadmin |
|
| 188 |
+ insopts -m 400 -o mail -g mail |
|
| 189 |
+ doins "${FILESDIR}/password.dist"
|
|
| 190 |
+ fi |
|
| 191 |
+ |
|
| 192 |
+ # avoid name collisions in /usr/sbin, make webadmin match |
|
| 193 |
+ cd "${D}/usr/sbin"
|
|
| 194 |
+ for f in imapd imapd-ssl pop3d pop3d-ssl ; do mv "${f}" "courier-${f}" ; done
|
|
| 195 |
+ if use web ; then |
|
| 196 |
+ sed -i -e 's:\$sbindir\/imapd:\$sbindir\/courier-imapd:g' \ |
|
| 197 |
+ -e 's:\$sbindir\/imapd-ssl:\$sbindir\/courier-imapd-ssl:g' \ |
|
| 198 |
+ "${D}/usr/share/courier/courierwebadmin/admin-40imap.pl" \
|
|
| 199 |
+ || ewarn "failed to fix webadmin" |
|
| 200 |
+ sed -i -e 's:\$sbindir\/pop3d:\$sbindir\/courier-pop3d:g' \ |
|
| 201 |
+ -e 's:\$sbindir\/pop3d-ssl:\$sbindir\/courier-pop3d-ssl:g' \ |
|
| 202 |
+ "${D}/usr/share/courier/courierwebadmin/admin-45pop3.pl" \
|
|
| 203 |
+ || ewarn "failed to fix webadmin" |
|
| 204 |
+ fi |
|
| 205 |
+ |
|
| 206 |
+ # users should be able to send mail. Could be restricted with suictl. |
|
| 207 |
+ chmod u+s "${D}/usr/bin/sendmail"
|
|
| 208 |
+ |
|
| 209 |
+ if use mailwrapper ; then |
|
| 210 |
+ mv "${D}/usr/bin/sendmail" "${D}/usr/bin/sendmail.courier"
|
|
| 211 |
+ mv "${D}/usr/bin/rmail" "${D}/usr/bin/rmail.courier"
|
|
| 212 |
+ mv "${D}/usr/bin/mailq" "${D}/usr/bin/mailq.courier"
|
|
| 213 |
+ |
|
| 214 |
+ mv "${D}/usr/share/man/man1/sendmail.1" \
|
|
| 215 |
+ "${D}/usr/share/man/man1/sendmail-courier.1"
|
|
| 216 |
+ mv "${D}/usr/share/man/man1/mailq.1" \
|
|
| 217 |
+ "${D}/usr/share/man/man1/mailq-courier.1"
|
|
| 218 |
+ mv "${D}/usr/share/man/man1/rmail.1" \
|
|
| 219 |
+ "${D}/usr/share/man/man1/rmail-courier.1"
|
|
| 220 |
+ |
|
| 221 |
+ insopts -m 444 -o mail -g mail |
|
| 222 |
+ insinto /etc/mail |
|
| 223 |
+ doins "${FILESDIR}/mailer.conf"
|
|
| 224 |
+ else |
|
| 225 |
+ dosym /usr/bin/sendmail /usr/sbin/sendmail |
|
| 226 |
+ fi |
|
| 227 |
+} |
|
| 228 |
+ |
|
| 229 |
+src_test() {
|
|
| 230 |
+ if [ `whoami` != 'root' ]; then |
|
| 231 |
+ emake -j1 check || die "Make check failed." |
|
| 232 |
+ else |
|
| 233 |
+ einfo "make check skipped, can't run as root." |
|
| 234 |
+ einfo "You can enable it with FEATURES=\"userpriv\"" |
|
| 235 |
+ fi |
|
| 236 |
+} |
|
| 237 |
+ |
|
| 238 |
+pkg_postinst() {
|
|
| 239 |
+ use fam && elog "fam daemon is needed for courier-imapd" \ |
|
| 240 |
+ || ewarn "courier was built without fam support" |
|
| 241 |
+} |
|
| 242 |
+ |
|
| 243 |
+pkg_config() {
|
|
| 244 |
+ mailhost="$(hostname)" |
|
| 245 |
+ export mailhost |
|
| 246 |
+ |
|
| 247 |
+ domainname="$(domainname)" |
|
| 248 |
+ if [ "x$domainname" = "x(none)" ] ; then |
|
| 249 |
+ domainname="$(echo ${mailhost} | sed -e "s/[^\.]*\.\(.*\)/\1/")"
|
|
| 250 |
+ fi |
|
| 251 |
+ export domainname |
|
| 252 |
+ |
|
| 253 |
+ if [ "${ROOT}" = "/" ] ; then
|
|
| 254 |
+ file="${ROOT}/etc/courier/locals"
|
|
| 255 |
+ if [ ! -f "${file}" ] ; then
|
|
| 256 |
+ echo "localhost" > "${file}";
|
|
| 257 |
+ echo "${domainname}" >> "${file}";
|
|
| 258 |
+ fi |
|
| 259 |
+ file="${ROOT}/etc/courier/esmtpacceptmailfor.dir/${domainname}"
|
|
| 260 |
+ if [ ! -f "${file}" ] ; then
|
|
| 261 |
+ echo "${domainname}" > "${file}"
|
|
| 262 |
+ /usr/sbin/makeacceptmailfor |
|
| 263 |
+ fi |
|
| 264 |
+ |
|
| 265 |
+ file="${ROOT}/etc/courier/smtpaccess/${domainname}"
|
|
| 266 |
+ if [ ! -f "${file}" ]
|
|
| 267 |
+ then |
|
| 268 |
+ netstat -nr | grep "^[1-9]" | while read network gateway netmask rest |
|
| 269 |
+ do |
|
| 270 |
+ i=1 |
|
| 271 |
+ net="" |
|
| 272 |
+ TIFS="${IFS}"
|
|
| 273 |
+ IFS="." |
|
| 274 |
+ for o in "${netmask}"
|
|
| 275 |
+ do |
|
| 276 |
+ if [ "${o}" == "255" ]
|
|
| 277 |
+ then |
|
| 278 |
+ [ "_${net}" == "_" ] || net="${net}."
|
|
| 279 |
+ t="$(echo "${network}" | cut -d " " -f ${i})"
|
|
| 280 |
+ net="${net}${t}"
|
|
| 281 |
+ fi |
|
| 282 |
+ i="$((${i} + 1))"
|
|
| 283 |
+ done |
|
| 284 |
+ IFS="${TIFS}"
|
|
| 285 |
+ echo "doing configuration - relay control for the network ${net} !"
|
|
| 286 |
+ echo "${net} allow,RELAYCLIENT" >> ${file}
|
|
| 287 |
+ done |
|
| 288 |
+ /usr/sbin/makesmtpaccess |
|
| 289 |
+ fi |
|
| 290 |
+ fi |
|
| 291 |
+ |
|
| 292 |
+ echo "creating cert for esmtpd-ssl:" |
|
| 293 |
+ /usr/sbin/mkesmtpdcert |
|
| 294 |
+ echo "creating cert for imapd-ssl:" |
|
| 295 |
+ /usr/sbin/mkpop3dcert |
|
| 296 |
+ echo "creating cert for pop3d-ssl:" |
|
| 297 |
+ /usr/sbin/mkimapdcert |
|
| 298 |
+} |
| ... | ... |
@@ -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,18 @@ |
| 1 |
+Index: courier-0.59.0/gdbmobj/Makefile.am |
|
| 2 |
+=================================================================== |
|
| 3 |
+--- courier-0.59.0.orig/gdbmobj/Makefile.am |
|
| 4 |
++++ courier-0.59.0/gdbmobj/Makefile.am |
|
| 5 |
+@@ -14,11 +14,12 @@ noinst_LTLIBRARIES=libgdbmobj.la |
|
| 6 |
+ noinst_PROGRAMS=testgdbm |
|
| 7 |
+ |
|
| 8 |
+ libgdbmobj_la_SOURCES=$(LIBGDBMSOURCES) |
|
| 9 |
++libgdbmobj_la_LIBADD=@LIBGDBM@ |
|
| 10 |
+ |
|
| 11 |
+ testgdbm_SOURCES=$(TESTGDBMSOURCES) |
|
| 12 |
+ |
|
| 13 |
+ testgdbm_DEPENDENCIES=libgdbmobj.la |
|
| 14 |
+-testgdbm_LDADD=libgdbmobj.la @LIBGDBM@ |
|
| 15 |
++testgdbm_LDADD=libgdbmobj.la |
|
| 16 |
+ testgdbm_LDFLAGS=-static |
|
| 17 |
+ |
|
| 18 |
+ check-am: |
| ... | ... |
@@ -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,181 @@ |
| 1 |
+#!/sbin/runscript |
|
| 2 |
+# Portions Copyright 2003 Gentoo Linux |
|
| 3 |
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/files/courier-init-r2,v 1.1 2008/11/20 13:26:32 hanno 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 ${sbindir}/webmaild ] && \
|
|
| 68 |
+ ${sbindir}/webmaild start && ebegin " Starting webmaild"
|
|
| 69 |
+ |
|
| 70 |
+ [ -x ${sbindir}/courierldapaliasd ] && \
|
|
| 71 |
+ ${sbindir}/courierldapaliasd start && ebegin " Starting courierldapaliasd"
|
|
| 72 |
+ |
|
| 73 |
+ ebegin " Starting courierd" |
|
| 74 |
+ ${sbindir}/courier start
|
|
| 75 |
+ |
|
| 76 |
+ # start esmtpd if so written |
|
| 77 |
+ [ -f ${sysconfdir}/esmtpd ] && source ${sysconfdir}/esmtpd
|
|
| 78 |
+ case x$ESMTPDSTART in |
|
| 79 |
+ x[yY]*) |
|
| 80 |
+ ebegin " Starting esmtpd" |
|
| 81 |
+ ${sbindir}/esmtpd start
|
|
| 82 |
+ ;; |
|
| 83 |
+ esac |
|
| 84 |
+ |
|
| 85 |
+ # start esmtpd-msa if so written |
|
| 86 |
+ [ -f ${sysconfdir}/esmtpd-msa ] && source ${sysconfdir}/esmtpd-msa
|
|
| 87 |
+ case x$ESMTPDSTART in |
|
| 88 |
+ x[yY]*) |
|
| 89 |
+ ebegin " Starting esmtpd-msa" |
|
| 90 |
+ ${sbindir}/esmtpd-msa start
|
|
| 91 |
+ ;; |
|
| 92 |
+ esac |
|
| 93 |
+ |
|
| 94 |
+ # start esmtpd-ssl if so written |
|
| 95 |
+ [ -f ${sysconfdir}/esmtpd-ssl ] && source ${sysconfdir}/esmtpd-ssl
|
|
| 96 |
+ case x$ESMTPDSSLSTART in |
|
| 97 |
+ x[yY]*) |
|
| 98 |
+ ebegin " Starting esmtpd-ssl" |
|
| 99 |
+ ${sbindir}/esmtpd-ssl start
|
|
| 100 |
+ ;; |
|
| 101 |
+ esac |
|
| 102 |
+ |
|
| 103 |
+ # start pop3d if so written |
|
| 104 |
+ [ -f ${sysconfdir}/pop3d ] && source ${sysconfdir}/pop3d
|
|
| 105 |
+ case x$POP3DSTART in |
|
| 106 |
+ x[yY]*) |
|
| 107 |
+ ebegin " courier-pop3d" |
|
| 108 |
+ ${sbindir}/courier-pop3d start
|
|
| 109 |
+ ;; |
|
| 110 |
+ esac |
|
| 111 |
+ |
|
| 112 |
+ # start pop3d-ssl if so written |
|
| 113 |
+ [ -f ${sysconfdir}/pop3d-ssl ] && source ${sysconfdir}/pop3d-ssl
|
|
| 114 |
+ case x$POP3DSSLSTART in |
|
| 115 |
+ x[yY]*) |
|
| 116 |
+ ebegin " courier-pop3d-ssl" |
|
| 117 |
+ ${sbindir}/courier-pop3d-ssl start
|
|
| 118 |
+ ;; |
|
| 119 |
+ esac |
|
| 120 |
+ |
|
| 121 |
+ [ -f ${sysconfdir}/imapd ] && source ${sysconfdir}/imapd
|
|
| 122 |
+ case x$IMAPDSTART in |
|
| 123 |
+ x[yY]*) |
|
| 124 |
+ ebegin " courier-imapd" |
|
| 125 |
+ ${sbindir}/courier-imapd start
|
|
| 126 |
+ ;; |
|
| 127 |
+ esac |
|
| 128 |
+ |
|
| 129 |
+ [ -f ${sysconfdir}/imapd-ssl ] && source ${sysconfdir}/imapd-ssl
|
|
| 130 |
+ case x$IMAPDSSLSTART in |
|
| 131 |
+ x[yY]*) |
|
| 132 |
+ ebegin " courier-imapd-ssl" |
|
| 133 |
+ ${sbindir}/courier-imapd-ssl start
|
|
| 134 |
+ ;; |
|
| 135 |
+ esac |
|
| 136 |
+ |
|
| 137 |
+ eend $? |
|
| 138 |
+} |
|
| 139 |
+ |
|
| 140 |
+stop() {
|
|
| 141 |
+ ebegin "Stopping Courier mail server:" |
|
| 142 |
+ |
|
| 143 |
+ ebegin " Stopping courier-esmtpd" |
|
| 144 |
+ ${sbindir}/esmtpd stop
|
|
| 145 |
+ |
|
| 146 |
+ ebegin " Stopping courier-esmtpd-msa" |
|
| 147 |
+ ${sbindir}/esmtpd-msa stop
|
|
| 148 |
+ |
|
| 149 |
+ ebegin " Stopping courier-esmtpd-ssl" |
|
| 150 |
+ ${sbindir}/esmtpd-ssl stop
|
|
| 151 |
+ |
|
| 152 |
+ [ -x ${sbindir}/courier-pop3d ] && \
|
|
| 153 |
+ ebegin " Stopping courier-pop3d" && ${sbindir}/courier-pop3d stop
|
|
| 154 |
+ |
|
| 155 |
+ [ -x ${sbindir}/courier-pop3d-ssl ] && \
|
|
| 156 |
+ ebegin " Stopping courier-pop3d-ssl" && ${sbindir}/courier-pop3d-ssl stop
|
|
| 157 |
+ |
|
| 158 |
+ [ -x ${sbindir}/courier-imapd ] && \
|
|
| 159 |
+ ebegin " Stopping courier-imapd" && ${sbindir}/courier-imapd stop
|
|
| 160 |
+ |
|
| 161 |
+ |
|
| 162 |
+ [ -x ${sbindir}/courier-imapd-ssl ] && \
|
|
| 163 |
+ ebegin " Stopping courier-imapd-ssl" && ${sbindir}/courier-imapd-ssl stop
|
|
| 164 |
+ |
|
| 165 |
+ ebegin " Stopping courierd" |
|
| 166 |
+ ${sbindir}/courier stop
|
|
| 167 |
+ |
|
| 168 |
+ [ -x ${sbindir}/courierldapaliasd ] && \
|
|
| 169 |
+ ( ${sbindir}/courierldapaliasd stop ; ebegin " Stopping courierldapaliasd" )
|
|
| 170 |
+ |
|
| 171 |
+ [ -x ${sbindir}/webmaild ] && \
|
|
| 172 |
+ ( ${sbindir}/webmaild stop ; ebegin " Stopping webmaild" )
|
|
| 173 |
+ |
|
| 174 |
+ [ ! -d /etc/courier/authlib ] && [ -x ${libexecdir}/authlib/authdaemond ] && \
|
|
| 175 |
+ ( ${libexecdir}/authlib/authdaemond stop ; ebegin " Stopping authdaemond" )
|
|
| 176 |
+ |
|
| 177 |
+ ${sbindir}/courierfilter stop
|
|
| 178 |
+ ebegin " Stopping courierfilterd" |
|
| 179 |
+ |
|
| 180 |
+ eend $? |
|
| 181 |
+} |
| ... | ... |
@@ -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,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,20 @@ |
| 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 |
+ <maintainer> |
|
| 7 |
+ <email>hanno@gentoo.org</email> |
|
| 8 |
+ </maintainer> |
|
| 9 |
+ <longdescription> |
|
| 10 |
+ Complete email package consisting of pop, imap, smtp, and fax |
|
| 11 |
+ server and secure version of the above also. |
|
| 12 |
+ </longdescription> |
|
| 13 |
+ <use> |
|
| 14 |
+ <flag name='fax'>Enables fax support in the courier mail server</flag> |
|
| 15 |
+ <flag name='norewrite'>Prevents courier mail server from mangling |
|
| 16 |
+ virtual user addresses when sending</flag> |
|
| 17 |
+ <flag name='web'>Enable the web interface</flag> |
|
| 18 |
+ <flag name='webmail'>Enable the webmail interface</flag> |
|
| 19 |
+ </use> |
|
| 20 |
+</pkgmetadata> |
|
| 0 | 21 |