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-3.2.2.ebuild ChangeLog
Date: Tue, 30 Dec 2014 10:15:24
Message-Id: 20141230101520.E34FEE7C6@oystercatcher.gentoo.org
1 lordvan 14/12/30 10:15:20
2
3 Modified: ChangeLog
4 Added: dbmail-3.2.2.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key )
9
10 Revision Changes Path
11 1.68 net-mail/dbmail/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/dbmail/ChangeLog?rev=1.68&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/dbmail/ChangeLog?rev=1.68&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/dbmail/ChangeLog?r1=1.67&r2=1.68
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-mail/dbmail/ChangeLog,v
20 retrieving revision 1.67
21 retrieving revision 1.68
22 diff -u -r1.67 -r1.68
23 --- ChangeLog 2 Nov 2014 12:50:17 -0000 1.67
24 +++ ChangeLog 30 Dec 2014 10:15:20 -0000 1.68
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-mail/dbmail
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-mail/dbmail/ChangeLog,v 1.67 2014/11/02 12:50:17 lordvan Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-mail/dbmail/ChangeLog,v 1.68 2014/12/30 10:15:20 lordvan Exp $
30 +
31 +*dbmail-3.2.2 (30 Dec 2014)
32 +
33 + 30 Dec 2014; Thomas Raschbacher <lordvan@g.o> +dbmail-3.2.2.ebuild:
34 + new versions (fixes CRAM-MD5 bug)
35
36 *dbmail-3.2.0 (02 Nov 2014)
37
38
39
40
41 1.1 net-mail/dbmail/dbmail-3.2.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/dbmail/dbmail-3.2.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/dbmail/dbmail-3.2.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: dbmail-3.2.2.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-mail/dbmail/dbmail-3.2.2.ebuild,v 1.1 2014/12/30 10:15:20 lordvan Exp $
51
52 EAPI="4"
53 inherit eutils multilib versionator user
54
55 DESCRIPTION="DBMail is an open-source project that enables storage of mail messages in a relational database"
56 HOMEPAGE="http://www.dbmail.org/"
57 SRC_URI="http://www.dbmail.org/download/$(get_version_component_range 1-2)/${P}.tar.gz"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~amd64 ~x86"
62 IUSE="ldap sieve +sqlite ssl static"
63
64 DEPEND="dev-db/libzdb
65 sieve? ( >=mail-filter/libsieve-2.2.1 )
66 ldap? ( >=net-nds/openldap-2.3.33 )
67 app-text/asciidoc
68 app-text/xmlto
69 app-crypt/mhash
70 sys-libs/zlib
71 || ( dev-libs/gmime:2.6 dev-libs/gmime:2.4 )
72 >=dev-libs/glib-2.16
73 dev-libs/libevent
74 ssl? ( dev-libs/openssl )"
75 #asciidoc and xmlto needed?
76 RDEPEND="${DEPEND}"
77
78 pkg_setup() {
79 enewgroup dbmail
80 enewuser dbmail -1 -1 /var/lib/dbmail dbmail
81 }
82
83 src_configure() {
84 local myconf=""
85 use ldap && myconf=${myconf}" --with-auth-ldap"
86
87 econf \
88 --sysconfdir=/etc/dbmail \
89 $(use_enable static) \
90 $(use_with sieve) \
91 ${myconf}
92 }
93
94 src_compile() {
95 emake || die "emake failed"
96 }
97
98 src_install() {
99 emake DESTDIR="${D}" install || die "emake install failed"
100
101 dodoc AUTHORS BUGS ChangeLog README* INSTALL NEWS THANKS UPGRADING
102
103 docompress -x /usr/share/doc/${PF}/sql
104 dodoc -r sql
105 dodoc -r test-scripts
106 dodoc -r contrib
107 ## TODO: install other contrib stuff
108
109 sed -i -e "s:nobody:dbmail:" dbmail.conf
110 sed -i -e "s:nogroup:dbmail:" dbmail.conf
111 sed -i -e "s:/var/run:/var/run/dbmail:" dbmail.conf
112 #sed -i -e "s:#library_directory:library_directory:" dbmail.conf
113
114 insinto /etc/dbmail
115 newins dbmail.conf dbmail.conf.dist
116
117 # change config path to our default and use the conf.d and init.d files from the contrib dir
118 sed -i -e "s:/etc/dbmail.conf:/etc/dbmail/dbmail.conf:" contrib/startup-scripts/gentoo/init.d-dbmail
119 #sed -i -e "s:exit 0:return 1:" contrib/startup-scripts/gentoo/init.d-dbmail
120 #sed -i -e "s:/var/run:/var/run/dbmail:" contrib/startup-scripts/gentoo/init.d-dbmail
121 #newconfd contrib/startup-scripts/gentoo/conf.d-dbmail dbmail
122 #newinitd contrib/startup-scripts/gentoo/init.d-dbmail dbmail
123 # use custom init scripts until updated in upstream contrib
124 newinitd "${FILESDIR}/dbmail-imapd.initd" dbmail-imapd
125 newinitd "${FILESDIR}/dbmail-lmtpd.initd" dbmail-lmtpd
126 newinitd "${FILESDIR}/dbmail-pop3d.initd" dbmail-pop3d
127 newinitd "${FILESDIR}/dbmail-timsieved.initd" dbmail-timsieved
128
129 dobin contrib/mailbox2dbmail/mailbox2dbmail
130 doman contrib/mailbox2dbmail/mailbox2dbmail.1
131 #doman man/*.{1,5,8}
132
133 # ldap schema
134 if use ldap; then
135 insinto /etc/openldap/schema
136 doins "${S}/dbmail.schema"
137 fi
138
139 keepdir /var/lib/dbmail
140 fperms 750 /var/lib/dbmail
141 fowners dbmail:dbmail /var/lib/dbmail
142 # create this through init-scripts instead of at installt ime (bug #455002)
143 #keepdir /var/run/dbmail
144 #fowners dbmail:dbmail /var/run/dbmail
145 }
146
147 pkg_postinst() {
148 elog "Please read the INSTALL file in /usr/share/doc/${PF}/"
149 elog "for remaining instructions on setting up dbmail users and "
150 elog "for finishing configuration to connect to your MTA and "
151 elog "to connect to your db."
152 echo
153 elog "DBMail requires either SQLite, PostgreSQL or MySQL."
154 elog "Database schemes can be found in /usr/share/doc/${PF}/"
155 elog "You will also want to follow the installation instructions"
156 elog "on setting up the maintenance program to delete old messages."
157 elog "Don't forget to edit /etc/dbmail/dbmail.conf as well."
158 echo
159 elog "For regular maintenance, add this to crontab:"
160 elog "0 3 * * * /usr/bin/dbmail-util -cpdy >/dev/null 2>&1"
161 echo
162 elog "Please make sure to run etc-update."
163 elog "If you get an error message about plugins not found"
164 elog "please add the library_directory configuration switch to"
165 elog "dbmail.conf and set it to the correct path"
166 elog "(usually /usr/lib/dbmail or /usr/lib64/dbmail on amd64)"
167 elog "A sample can be found in dbmail.conf.dist after etc-update."
168 echo
169 elog "We are now using the init script from upstream."
170 elog "Please edit /etc/conf.d/dbmail to set which services to start"
171 elog "and delete /etc/init.d/dbmail-* when you are done. (don't"
172 elog "forget to rc-update del dbmail-* first)"
173 echo
174 elog "Changed pid directory to /var/run/dbmail (see"
175 elog "http://www.dbmail.org/mantis/view.php?id=949 for details)"
176 echo
177 ewarn "The database config has changed to support libzdb db URI"
178 ewarn "Please check the documentation (or Bug #479664)"
179 echo
180 ewarn "The database schema has changed since 3.0.x make sure"
181 ewarn "to run the migration script"
182 echo
183 ewarn "Please be aware, that the single init-script for all services"
184 ewarn "has been replaced with seperate init scripts for the individual services."
185 ewarn "Make sure to add dbmail-(imapd|lmtpd|pop3d|timsieved) using rc-update"
186 ewarn "and remove dbmail if you want to take advantage of this change."
187 echo
188 }