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.1.17.ebuild ChangeLog
Date: Sun, 27 Jul 2014 20:32:34
Message-Id: 20140727203229.78E412004E@flycatcher.gentoo.org
1 lordvan 14/07/27 20:32:29
2
3 Modified: ChangeLog
4 Added: dbmail-3.1.17.ebuild
5 Log:
6 new version
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key )
9
10 Revision Changes Path
11 1.64 net-mail/dbmail/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/dbmail/ChangeLog?rev=1.64&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/dbmail/ChangeLog?rev=1.64&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/dbmail/ChangeLog?r1=1.63&r2=1.64
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-mail/dbmail/ChangeLog,v
20 retrieving revision 1.63
21 retrieving revision 1.64
22 diff -u -r1.63 -r1.64
23 --- ChangeLog 14 Jun 2014 10:57:08 -0000 1.63
24 +++ ChangeLog 27 Jul 2014 20:32:29 -0000 1.64
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.63 2014/06/14 10:57:08 phajdan.jr Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-mail/dbmail/ChangeLog,v 1.64 2014/07/27 20:32:29 lordvan Exp $
30 +
31 +*dbmail-3.1.17 (27 Jul 2014)
32 +
33 + 27 Jul 2014; <lordvan@g.o> +dbmail-3.1.17.ebuild:
34 + new version
35
36 14 Jun 2014; Pawel Hajdan jr <phajdan.jr@g.o> dbmail-3.1.13.ebuild:
37 x86 stable wrt bug #509774
38
39
40
41 1.1 net-mail/dbmail/dbmail-3.1.17.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/dbmail/dbmail-3.1.17.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/dbmail/dbmail-3.1.17.ebuild?rev=1.1&content-type=text/plain
45
46 Index: dbmail-3.1.17.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.1.17.ebuild,v 1.1 2014/07/27 20:32:29 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.4.6: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 dodoc -r sql
104 dodoc -r test-scripts
105 dodoc -r contrib
106 ## TODO: install other contrib stuff
107
108 sed -i -e "s:nobody:dbmail:" dbmail.conf
109 sed -i -e "s:nogroup:dbmail:" dbmail.conf
110 sed -i -e "s:/var/run:/var/run/dbmail:" dbmail.conf
111 #sed -i -e "s:#library_directory:library_directory:" dbmail.conf
112
113 insinto /etc/dbmail
114 newins dbmail.conf dbmail.conf.dist
115
116 # change config path to our default and use the conf.d and init.d files from the contrib dir
117 sed -i -e "s:/etc/dbmail.conf:/etc/dbmail/dbmail.conf:" contrib/startup-scripts/gentoo/init.d-dbmail
118 #sed -i -e "s:exit 0:return 1:" contrib/startup-scripts/gentoo/init.d-dbmail
119 #sed -i -e "s:/var/run:/var/run/dbmail:" contrib/startup-scripts/gentoo/init.d-dbmail
120 #newconfd contrib/startup-scripts/gentoo/conf.d-dbmail dbmail
121 #newinitd contrib/startup-scripts/gentoo/init.d-dbmail dbmail
122 # use custom init scripts until updated in upstream contrib
123 newinitd "${FILESDIR}/dbmail-imapd.initd" dbmail-imapd
124 newinitd "${FILESDIR}/dbmail-lmtpd.initd" dbmail-lmtpd
125 newinitd "${FILESDIR}/dbmail-pop3d.initd" dbmail-pop3d
126 newinitd "${FILESDIR}/dbmail-timsieved.initd" dbmail-timsieved
127
128 dobin contrib/mailbox2dbmail/mailbox2dbmail
129 doman contrib/mailbox2dbmail/mailbox2dbmail.1
130 #doman man/*.{1,5,8}
131
132 # ldap schema
133 if use ldap; then
134 insinto /etc/openldap/schema
135 doins "${S}/dbmail.schema"
136 fi
137
138 keepdir /var/lib/dbmail
139 fperms 750 /var/lib/dbmail
140 fowners dbmail:dbmail /var/lib/dbmail
141 # create this through init-scripts instead of at installt ime (bug #455002)
142 #keepdir /var/run/dbmail
143 #fowners dbmail:dbmail /var/run/dbmail
144 }
145
146 pkg_postinst() {
147 elog "Please read the INSTALL file in /usr/share/doc/${PF}/"
148 elog "for remaining instructions on setting up dbmail users and "
149 elog "for finishing configuration to connect to your MTA and "
150 elog "to connect to your db."
151 echo
152 elog "DBMail requires either SQLite, PostgreSQL or MySQL."
153 elog "Database schemes can be found in /usr/share/doc/${PF}/"
154 elog "You will also want to follow the installation instructions"
155 elog "on setting up the maintenance program to delete old messages."
156 elog "Don't forget to edit /etc/dbmail/dbmail.conf as well."
157 echo
158 elog "For regular maintenance, add this to crontab:"
159 elog "0 3 * * * /usr/bin/dbmail-util -cpdy >/dev/null 2>&1"
160 echo
161 elog "Please make sure to run etc-update."
162 elog "If you get an error message about plugins not found"
163 elog "please add the library_directory configuration switch to"
164 elog "dbmail.conf and set it to the correct path"
165 elog "(usually /usr/lib/dbmail or /usr/lib64/dbmail on amd64)"
166 elog "A sample can be found in dbmail.conf.dist after etc-update."
167 echo
168 elog "We are now using the init script from upstream."
169 elog "Please edit /etc/conf.d/dbmail to set which services to start"
170 elog "and delete /etc/init.d/dbmail-* when you are done. (don't"
171 elog "forget to rc-update del dbmail-* first)"
172 echo
173 elog "Changed pid directory to /var/run/dbmail (see"
174 elog "http://www.dbmail.org/mantis/view.php?id=949 for details)"
175 echo
176 ewarn "The database config has changed to support libzdb db URI"
177 ewarn "Please check the documentation (or Bug #479664)"
178 echo
179 ewarn "The database schema has changed since 3.0.x make sure"
180 ewarn "to run the migration script"
181 echo
182 ewarn "Please be aware, that the single init-script for all services"
183 ewarn "has been replaced with seperate init scripts for the individual services."
184 ewarn "Make sure to add dbmail-(imapd|lmtpd|pop3d|timsieved) using rc-update"
185 ewarn "and remove dbmail if you want to take advantage of this change."
186 echo
187 }