Gentoo Archives: gentoo-commits

From: "Thomas Raschbacher (lordvan)" <lordvan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-mail/dbmail: dbmail-2.2.11.ebuild ChangeLog
Date: Fri, 20 Mar 2009 10:44:39
Message-Id: E1LkcDN-0004hC-4Y@stork.gentoo.org
1 lordvan 09/03/20 10:44:37
2
3 Modified: ChangeLog
4 Added: dbmail-2.2.11.ebuild
5 Log:
6 version bump
7 (Portage version: 2.1.6.7/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.34 net-mail/dbmail/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/dbmail/ChangeLog?rev=1.34&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/dbmail/ChangeLog?rev=1.34&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/dbmail/ChangeLog?r1=1.33&r2=1.34
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-mail/dbmail/ChangeLog,v
19 retrieving revision 1.33
20 retrieving revision 1.34
21 diff -u -r1.33 -r1.34
22 --- ChangeLog 18 Dec 2008 11:38:42 -0000 1.33
23 +++ ChangeLog 20 Mar 2009 10:44:37 -0000 1.34
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-mail/dbmail
26 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-mail/dbmail/ChangeLog,v 1.33 2008/12/18 11:38:42 lordvan Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/net-mail/dbmail/ChangeLog,v 1.34 2009/03/20 10:44:37 lordvan Exp $
30 +
31 +*dbmail-2.2.11 (20 Mar 2009)
32 +
33 + 20 Mar 2009; Thomas Raschbacher <lordvan@g.o>
34 + +dbmail-2.2.11.ebuild:
35 + version bump
36
37 *dbmail-2.2.11_rc3-r1 (18 Dec 2008)
38
39
40
41
42 1.1 net-mail/dbmail/dbmail-2.2.11.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/dbmail/dbmail-2.2.11.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/dbmail/dbmail-2.2.11.ebuild?rev=1.1&content-type=text/plain
46
47 Index: dbmail-2.2.11.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-mail/dbmail/dbmail-2.2.11.ebuild,v 1.1 2009/03/20 10:44:37 lordvan Exp $
52
53 inherit eutils multilib python
54
55 MY_P="${P/_/-}" # for rcX was without the - for versions < 2.2.6
56 #MY_P="${P}" # releases
57 DESCRIPTION="A mail storage and retrieval daemon that uses MySQL or PostgreSQL as its data store"
58 HOMEPAGE="http://www.dbmail.org/"
59 SRC_URI="http://www.dbmail.org/download/2.2/${MY_P}.tar.gz"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~x86"
64 IUSE="ldap mysql postgres sieve sqlite3 ssl static python"
65
66 DEPEND="ssl? ( dev-libs/openssl )
67 postgres? ( >=virtual/postgresql-server-7.4 )
68 mysql? ( >=virtual/mysql-4.1 )
69 sqlite3? ( >=dev-db/sqlite-3.0 )
70 !mysql? ( !postgres? ( !sqlite3? ( >=dev-db/sqlite-3.0 ) ) )
71 sieve? ( >=mail-filter/libsieve-2.2.1 )
72 ldap? ( >=net-nds/openldap-2.3.33 )
73 python? ( net-zope/zopeinterface )
74 app-text/asciidoc
75 app-text/xmlto
76 sys-libs/zlib
77 =dev-libs/gmime-2.2*
78 >=dev-libs/glib-2.8"
79
80 S=${WORKDIR}/${P/_/-}
81
82 pkg_setup() {
83 enewgroup dbmail
84 enewuser dbmail -1 -1 /var/lib/dbmail dbmail
85 }
86
87 src_compile() {
88 use sqlite3 && myconf="--with-sqlite"
89 if ! use postgres && !use mysql && !use sqlite3; then myconf="${myconf} --with-sqlite" ; fi
90 use ldap && myconf=${myconf}" --with-auth-ldap"
91
92 econf \
93 --sysconfdir=/etc/dbmail \
94 ${myconf} \
95 $(use_enable static) \
96 $(use_with sieve) \
97 $(use_with ssl) \
98 $(use_with postgres pgsql) \
99 $(use_with mysql) \
100 || die "econf failed"
101
102 emake || die "emake failed"
103 }
104
105 src_install() {
106 emake DESTDIR="${D}" install || die "emake install failed"
107
108 dodoc AUTHORS BUGS ChangeLog README* INSTALL NEWS THANKS UPGRADING VERSION
109
110 docinto sql/mysql
111 dodoc sql/mysql/*
112 docinto sql/postgresql
113 dodoc sql/postgresql/*
114 docinto sql/sqlite
115 dodoc sql/sqlite/*
116 docinto test-scripts
117 dodoc test-scripts/*
118 docinto contrib/sql2sql
119 dodoc contrib/sql2sql
120 docinto contrib/mailbox2dbmail
121 dodoc contrib/mailbox2dbmail
122 docinto contrib
123 dodoc contrib/quota_warn.pl
124
125 sed -i -e "s:nobody:dbmail:" dbmail.conf
126 sed -i -e "s:nogroup:dbmail:" dbmail.conf
127 #sed -i -e "s:#library_directory:library_directory:" dbmail.conf
128
129 insinto /etc/dbmail
130 newins dbmail.conf dbmail.conf.dist
131
132 # change config path to our default and use the conf.d and init.d files from the contrib dir
133 sed -i -e "s:/etc/dbmail.conf:/etc/dbmail/dbmail.conf:" contrib/startup-scripts/gentoo/init.d-dbmail
134 newconfd contrib/startup-scripts/gentoo/conf.d-dbmail dbmail
135 newinitd contrib/startup-scripts/gentoo/init.d-dbmail dbmail
136
137 dobin contrib/mailbox2dbmail/mailbox2dbmail
138 doman contrib/mailbox2dbmail/mailbox2dbmail.1
139
140 # ldap schema
141 if use ldap; then
142 insinto /etc/openldap/schema
143 doins "${S}/dbmail.schema"
144 fi
145
146 if use python; then
147 python_version
148 insinto /usr/$(get_libdir)/python${PYVER}/site-packages/dbmail
149 doins python/*.py
150 insinto /usr/$(get_libdir)/python${PYVER}/site-packages/dbmail/app
151 doins python/app/*.py
152 insinto /usr/$(get_libdir)/python${PYVER}/site-packages/dbmail/bin
153 doins python/bin/*.py
154 insinto /usr/$(get_libdir)/python${PYVER}/site-packages/dbmail/lib
155 doins python/lib/*.py
156 insinto /usr/$(get_libdir)/python${PYVER}/site-packages/dbmail/tests
157 doins python/tests/*.py
158 fi
159
160 keepdir /var/lib/dbmail
161 fperms 750 /var/lib/dbmail
162
163 }
164
165 pkg_postinst() {
166 if use python; then
167 python_version
168 python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/dbmail
169 fi
170 elog "Please read /usr/share/doc/${PF}/INSTALL.gz"
171 elog "for remaining instructions on setting up dbmail users and "
172 elog "for finishing configuration to connect to your MTA and "
173 elog "to connect to your db."
174 echo
175 elog "DBMail requires either SQLite3, PostgreSQL or MySQL."
176 elog "If none of the use-flags are specified SQLite3 is"
177 elog "used as default. To use another database please"
178 elog "specify the appropriate use-flag and re-emerge dbmail."
179 echo
180 elog "Database schemes can be found in /usr/share/doc/${PF}/"
181 elog "You will also want to follow the installation instructions"
182 elog "on setting up the maintenance program to delete old messages."
183 elog "Don't forget to edit /etc/dbmail/dbmail.conf as well."
184 echo
185 elog "For regular maintenance, add this to crontab:"
186 elog "0 3 * * * /usr/bin/dbmail-util -cpdy >/dev/null 2>&1"
187 echo
188 elog "Please make sure to run etc-update."
189 elog "If you get an error message about plugins not found"
190 elog "please add the library_directory configuration switch to"
191 elog "dbmail.conf and set it to the correct path"
192 elog "(usually /usr/lib/dbmail or /usr/lib64/dbmail on amd64)"
193 elog "A sample can be found in dbmail.conf.dist after etc-update."
194 echo
195 elog "We are now using the init script from upstream."
196 elog "Please edit /etc/conf.d/dbmail to set which services to start"
197 elog "and delete /etc/init.d/dbmail-* when you are done. (don't"
198 elog "forget to rc-update del dbmail-* first)"
199 }
200
201 pkg_postrm() {
202 python_mod_cleanup
203 }