Gentoo Archives: gentoo-commits

From: "lordvan (lordvan)" <lordvan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-mail/dbmail: ChangeLog dbmail-2.2.6_rc2.ebuild
Date: Mon, 10 Sep 2007 18:34:42
Message-Id: E1IUnm9-0006HY-E0@stork.gentoo.org
1 lordvan 07/09/10 18:14:21
2
3 Modified: ChangeLog
4 Added: dbmail-2.2.6_rc2.ebuild
5 Log:
6 new rc added
7 (Portage version: 2.1.3.9)
8
9 Revision Changes Path
10 1.7 net-mail/dbmail/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/dbmail/ChangeLog?rev=1.7&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/dbmail/ChangeLog?rev=1.7&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/dbmail/ChangeLog?r1=1.6&r2=1.7
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-mail/dbmail/ChangeLog,v
19 retrieving revision 1.6
20 retrieving revision 1.7
21 diff -u -r1.6 -r1.7
22 --- ChangeLog 16 Jul 2007 08:53:57 -0000 1.6
23 +++ ChangeLog 10 Sep 2007 18:14:20 -0000 1.7
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-mail/dbmail
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-mail/dbmail/ChangeLog,v 1.6 2007/07/16 08:53:57 lordvan Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-mail/dbmail/ChangeLog,v 1.7 2007/09/10 18:14:20 lordvan Exp $
29 +
30 +*dbmail-2.2.6_rc2 (10 Sep 2007)
31 +
32 + 10 Sep 2007; Thomas Raschbacher <lordvan@g.o>
33 + +dbmail-2.2.6_rc2.ebuild:
34 + new rc added
35
36 *dbmail-2.2.6_rc1 (16 Jul 2007)
37
38
39
40
41 1.1 net-mail/dbmail/dbmail-2.2.6_rc2.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/dbmail/dbmail-2.2.6_rc2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/dbmail/dbmail-2.2.6_rc2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: dbmail-2.2.6_rc2.ebuild
47 ===================================================================
48 # Copyright 1999-2007 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-mail/dbmail/dbmail-2.2.6_rc2.ebuild,v 1.1 2007/09/10 18:14:20 lordvan Exp $
51
52 inherit eutils
53
54 MY_P="${P/_/-}" # for rcX
55 #MY_P="${P}" # releases
56 DESCRIPTION="A mail storage and retrieval daemon that uses MySQL or PostgreSQL as its data store"
57 HOMEPAGE="http://www.dbmail.org/"
58 SRC_URI="http://www.dbmail.org/download/2.2/${MY_P}.tar.gz"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~amd64 ~x86"
63 IUSE="ldap mysql postgres sieve sqlite3 ssl static"
64
65 DEPEND="ssl? ( dev-libs/openssl )
66 postgres? ( >=dev-db/postgresql-7.4 )
67 mysql? ( >=virtual/mysql-4.1 )
68 sqlite3? ( >=dev-db/sqlite-3.0 )
69 sieve? ( >=mail-filter/libsieve-2.2.1 )
70 app-text/asciidoc
71 app-text/xmlto
72 sys-libs/zlib
73 >=dev-libs/gmime-2.1.18
74 >=dev-libs/glib-2.8"
75
76 S=${WORKDIR}/${P/_/-}
77
78 pkg_setup() {
79 enewgroup dbmail
80 enewuser dbmail -1 -1 /var/lib/dbmail dbmail
81 }
82
83 src_compile() {
84 use sqlite3 && myconf="--with-sqlite"
85 use ldap && myconf=${myconf}" --with-auth-ldap"
86
87 econf \
88 --sysconfdir=/etc/dbmail \
89 ${myconf} \
90 $(use_enable static) \
91 $(use_with sieve) \
92 $(use_with ssl) \
93 $(use_with postgres pgsql) \
94 $(use_with mysql) \
95 || die "econf failed"
96
97 emake || die "emake failed"
98 }
99
100 src_install() {
101 emake DESTDIR="${D}" install || die "emake install failed"
102
103 dodoc AUTHORS BUGS UPGRADING ChangeLog README* INSTALL* NEWS THANKS
104 dodoc sql/mysql/*
105 dodoc sql/postgresql/*
106 dodoc sql/sqlite/*
107
108 cp dbmail.conf.dist dbmail.conf
109 sed -i -e "s:nobody:dbmail:" dbmail.conf
110 sed -i -e "s:nogroup:dbmail:" dbmail.conf
111 #sed -i -e "s:#library_directory:library_directory:" dbmail.conf
112 insinto /etc/dbmail
113 newins dbmail.conf dbmail.conf.dist
114
115 newinitd "${FILESDIR}"/dbmail-imapd.initd dbmail-imapd
116 newinitd "${FILESDIR}"/dbmail-lmtpd.initd dbmail-lmtpd
117 newinitd "${FILESDIR}"/dbmail-pop3d.initd dbmail-pop3d
118 use sieve && newinitd "${FILESDIR}"/dbmail-timsieved.initd dbmail-timsieved
119
120 dobin contrib/mailbox2dbmail/mailbox2dbmail
121 doman contrib/mailbox2dbmail/mailbox2dbmail.1
122
123 keepdir /var/lib/dbmail
124 fperms 750 /var/lib/dbmail
125
126 }
127
128 pkg_postinst() {
129 elog "Please read /usr/share/doc/${PF}/INSTALL.gz"
130 elog "for remaining instructions on setting up dbmail users and "
131 elog "for finishing configuration to connect to your MTA and "
132 elog "to connect to your db."
133 echo
134 elog "Database schemes can be found in /usr/share/doc/${PF}/"
135 elog "You will also want to follow the installation instructions"
136 elog "on setting up the maintenance program to delete old messages."
137 elog "Don't forget to edit /etc/dbmail/dbmail.conf as well."
138 echo
139 elog "For regular maintenance, add this to crontab:"
140 elog "0 3 * * * /usr/bin/dbmail-util -cpdy >/dev/null 2>&1"
141 echo
142 elog "Please make sure to run etc-update."
143 elog "If you get an error message about plugins not found"
144 elog "please add the library_directory configuration switch to"
145 elog "dbmail.conf and set it to the correct path"
146 elog "(usually /usr/lib/dbmail or /usr/lib64/dbmail on amd64)"
147 elog "A sample can be found in dbmail.conf.dist after etc-update."
148 }
149
150
151
152 --
153 gentoo-commits@g.o mailing list