1 |
robbat2 08/07/31 18:34:38 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: vpopmail-5.4.26.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
(Portage version: 2.2_rc5/cvs/Linux 2.6.26-rc4-00103-g1beee8d x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.85 net-mail/vpopmail/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/vpopmail/ChangeLog?rev=1.85&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/vpopmail/ChangeLog?rev=1.85&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/vpopmail/ChangeLog?r1=1.84&r2=1.85 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-mail/vpopmail/ChangeLog,v |
19 |
retrieving revision 1.84 |
20 |
retrieving revision 1.85 |
21 |
diff -p -w -b -B -u -u -r1.84 -r1.85 |
22 |
--- ChangeLog 6 Apr 2008 17:37:38 -0000 1.84 |
23 |
+++ ChangeLog 31 Jul 2008 18:34:37 -0000 1.85 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for net-mail/vpopmail |
26 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-mail/vpopmail/ChangeLog,v 1.84 2008/04/06 17:37:38 hollow Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-mail/vpopmail/ChangeLog,v 1.85 2008/07/31 18:34:37 robbat2 Exp $ |
29 |
+ |
30 |
+*vpopmail-5.4.26 (31 Jul 2008) |
31 |
+ |
32 |
+ 31 Jul 2008; Robin H. Johnson <robbat2@g.o> |
33 |
+ +vpopmail-5.4.26.ebuild: |
34 |
+ Version bump. |
35 |
|
36 |
*vpopmail-5.4.25 (06 Apr 2008) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 net-mail/vpopmail/vpopmail-5.4.26.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/vpopmail/vpopmail-5.4.26.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/vpopmail/vpopmail-5.4.26.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: vpopmail-5.4.26.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2008 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/net-mail/vpopmail/vpopmail-5.4.26.ebuild,v 1.1 2008/07/31 18:34:37 robbat2 Exp $ |
51 |
|
52 |
inherit autotools eutils fixheadtails qmail |
53 |
|
54 |
HOMEPAGE="http://www.inter7.com/index.php?page=vpopmail" |
55 |
DESCRIPTION="A collection of programs to manage virtual email domains and accounts on your Qmail mail servers." |
56 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
57 |
|
58 |
LICENSE="GPL-2" |
59 |
SLOT="0" |
60 |
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~s390 ~sh ~sparc ~x86" |
61 |
IUSE="clearpasswd ipalias maildrop mysql" |
62 |
|
63 |
DEPEND="virtual/qmail |
64 |
maildrop? ( mail-filter/maildrop ) |
65 |
mysql? ( virtual/mysql ) |
66 |
" |
67 |
|
68 |
# This makes sure the variable is set, and that it isn't null. |
69 |
VPOP_DEFAULT_HOME="/var/vpopmail" |
70 |
|
71 |
vpopmail_set_homedir() { |
72 |
VPOP_HOME=$(getent passwd vpopmail | cut -d: -f6) |
73 |
if [[ -z "${VPOP_HOME}" ]]; then |
74 |
ebeep |
75 |
eerror "vpopmail's home directory is null in passwd data!" |
76 |
eerror "You probably want to check that out." |
77 |
eerror "Continuing with default." |
78 |
VPOP_HOME="${VPOP_DEFAULT_HOME}" |
79 |
else |
80 |
einfo "Setting VPOP_HOME to: $VPOP_HOME" |
81 |
fi |
82 |
} |
83 |
|
84 |
pkg_setup() { |
85 |
enewgroup vpopmail 89 |
86 |
enewuser vpopmail 89 -1 ${VPOP_DEFAULT_HOME} vpopmail |
87 |
upgradewarning |
88 |
} |
89 |
|
90 |
src_unpack() { |
91 |
unpack ${A} |
92 |
cd "${S}" |
93 |
|
94 |
epatch "${FILESDIR}"/${PN}-5.4.9-access.violation.patch |
95 |
epatch "${FILESDIR}"/${PN}-lazy.patch |
96 |
|
97 |
# fix maildir paths |
98 |
sed -i -e 's|Maildir|.maildir|g' \ |
99 |
vchkpw.c vconvert.c vdelivermail.c \ |
100 |
vpopbull.c vpopmail.c vqmaillocal.c \ |
101 |
vuserinfo.c maildirquota.c || die |
102 |
|
103 |
# remove vpopmail advertisement |
104 |
sed -i -e '/printf.*vpopmail/s:vpopmail (:(:' \ |
105 |
vdelivermail.c vpopbull.c vqmaillocal.c || die |
106 |
|
107 |
eautoreconf |
108 |
ht_fix_file cdb/Makefile |
109 |
} |
110 |
|
111 |
src_compile() { |
112 |
vpopmail_set_homedir |
113 |
|
114 |
if use mysql; then |
115 |
authopts=" \ |
116 |
--enable-auth-module=mysql \ |
117 |
--enable-libs=/usr/include/mysql \ |
118 |
--enable-libdir=/usr/lib/mysql \ |
119 |
--enable-sql-logging \ |
120 |
--enable-valias \ |
121 |
--disable-mysql-replication \ |
122 |
--enable-mysql-limits" |
123 |
else |
124 |
authopts="--enable-auth-module=cdb" |
125 |
fi |
126 |
|
127 |
econf ${authopts} \ |
128 |
--sysconfdir=${VPOP_HOME}/etc \ |
129 |
--enable-non-root-build \ |
130 |
--enable-qmaildir=${QMAIL_HOME} \ |
131 |
--enable-qmail-newu=${QMAIL_HOME}/bin/qmail-newu \ |
132 |
--enable-qmail-inject=${QMAIL_HOME}/bin/qmail-inject \ |
133 |
--enable-qmail-newmrh=${QMAIL_HOME}/bin/qmail-newmrh \ |
134 |
--enable-vpopuser=vpopmail \ |
135 |
--enable-vpopgroup=vpopmail \ |
136 |
--enable-many-domains \ |
137 |
--enable-file-locking \ |
138 |
--enable-file-sync \ |
139 |
--enable-md5-passwords \ |
140 |
--enable-logging \ |
141 |
--enable-auth-logging \ |
142 |
--enable-log-name=vpopmail \ |
143 |
--enable-qmail-ext \ |
144 |
--disable-tcp-rules-prog \ |
145 |
--disable-tcpserver-file \ |
146 |
--disable-roaming-users \ |
147 |
$(use_enable ipalias ip-alias-domains) \ |
148 |
$(use_enable clearpasswd clear-passwd) \ |
149 |
$(use_enable maildrop) \ |
150 |
|| die "configure failed" |
151 |
|
152 |
emake || die "make failed" |
153 |
} |
154 |
|
155 |
src_install() { |
156 |
vpopmail_set_homedir |
157 |
|
158 |
make DESTDIR="${D}" install || die "make install failed" |
159 |
keepdir "${VPOP_HOME}"/domains |
160 |
|
161 |
# install helper script for maildir conversion |
162 |
into "${VPOP_HOME}" |
163 |
dobin "${FILESDIR}"/vpopmail-Maildir-dotmaildir-fix.sh |
164 |
into /usr |
165 |
|
166 |
dodoc AUTHORS ChangeLog FAQ INSTALL README* |
167 |
dohtml doc/doc_html/* doc/man_html/* |
168 |
rm -rf "${D}/${VPOP_HOME}"/doc |
169 |
dosym /usr/share/doc/${PF}/ "${VPOP_HOME}"/doc |
170 |
|
171 |
# create /etc/vpopmail.conf |
172 |
if use mysql; then |
173 |
dodir /etc |
174 |
mv "${D}${VPOP_HOME}"/etc/vpopmail.mysql "${D}"/etc/vpopmail.conf |
175 |
dosym /etc/vpopmail.conf "${VPOP_HOME}"/etc/vpopmail.mysql |
176 |
|
177 |
sed -e '12d' -i "${D}"/etc/vpopmail.conf |
178 |
echo '# Read-only DB' >> "${D}"/etc/vpopmail.conf |
179 |
echo 'localhost|0|vpopmail|secret|vpopmail' >> "${D}"/etc/vpopmail.conf |
180 |
echo '# Write DB' >> "${D}"/etc/vpopmail.conf |
181 |
echo 'localhost|0|vpopmail|secret|vpopmail' >> "${D}"/etc/vpopmail.conf |
182 |
|
183 |
# lock down perms |
184 |
fperms 640 /etc/vpopmail.conf |
185 |
fowners root:vpopmail /etc/vpopmail.conf |
186 |
fi |
187 |
|
188 |
einfo "Installing env.d entry" |
189 |
dodir /etc/env.d |
190 |
doenvd "${FILESDIR}"/99vpopmail |
191 |
|
192 |
einfo "Locking down vpopmail permissions" |
193 |
fowners root:0 -R "${VPOP_HOME}"/{bin,etc,include} |
194 |
fowners root:vpopmail "${VPOP_HOME}"/bin/vchkpw |
195 |
fperms 4711 "${VPOP_HOME}"/bin/vchkpw |
196 |
} |
197 |
|
198 |
pkg_postinst() { |
199 |
if use mysql ; then |
200 |
elog |
201 |
elog "You have 'mysql' turned on in your USE" |
202 |
elog "Vpopmail needs a VALID MySQL USER. Let's call it 'vpopmail'" |
203 |
elog "You MUST add it and then specify its passwd in the /etc/vpopmail.conf file" |
204 |
elog |
205 |
elog "First log into mysql as your mysql root user and pass. Then:" |
206 |
elog "> create database vpopmail;" |
207 |
elog "> use mysql;" |
208 |
elog "> grant select, insert, update, delete, create, drop on vpopmail.* to" |
209 |
elog " vpopmail@localhost identified by 'your password';" |
210 |
elog "> flush privileges;" |
211 |
elog |
212 |
elog "If you have problems with vpopmail not accepting mail properly," |
213 |
elog "please ensure that /etc/vpopmail.conf is chmod 640 and" |
214 |
elog "owned by root:vpopmail" |
215 |
elog |
216 |
fi |
217 |
|
218 |
# do this for good measure |
219 |
if [[ -e /etc/vpopmail.conf ]]; then |
220 |
chmod 640 /etc/vpopmail.conf |
221 |
chown root:vpopmail /etc/vpopmail.conf |
222 |
fi |
223 |
|
224 |
upgradewarning |
225 |
} |
226 |
|
227 |
pkg_postrm() { |
228 |
vpopmail_set_homedir |
229 |
|
230 |
elog "The vpopmail DATA will NOT be removed automatically." |
231 |
elog "You can delete them manually by removing the ${VPOP_HOME} directory." |
232 |
} |
233 |
|
234 |
upgradewarning() { |
235 |
ewarn |
236 |
ewarn "Massive important warning if you are upgrading to 5.2.1-r8 or older" |
237 |
ewarn "The internal structure of the mail storage has changed for" |
238 |
ewarn "consistancy with the rest of Gentoo! Please review and utilize the " |
239 |
ewarn "script at ${VPOP_HOME}/bin/vpopmail-Maildir-dotmaildir-fix.sh" |
240 |
ewarn "to upgrade your system! (It can do conversions both ways)." |
241 |
ewarn "You should be able to run it right away without any changes." |
242 |
ewarn |
243 |
|
244 |
elog |
245 |
elog "Use of vpopmail's tcp.smtp[.cdb] is also deprecated now, consider" |
246 |
elog "using net-mail/relay-ctrl instead." |
247 |
elog |
248 |
|
249 |
if use mysql; then |
250 |
elog |
251 |
elog "If you are upgrading from 5.4.17 or older, you have to fix your" |
252 |
elog "MySQL tables:" |
253 |
elog |
254 |
elog 'ALTER TABLE `dir_control` CHANGE `domain` `domain` CHAR(96) NOT NULL;' |
255 |
elog 'ALTER TABLE `ip_alias_map` CHANGE domain domain CHAR(96) NOT NULL;' |
256 |
elog 'ALTER TABLE `lastauth` CHANGE domain domain CHAR(96) NOT NULL;' |
257 |
elog 'ALTER TABLE `valias` CHANGE domain domain CHAR(96) NOT NULL;' |
258 |
elog 'ALTER TABLE `vlog` CHANGE domain domain CHAR(96) NOT NULL;' |
259 |
elog 'ALTER TABLE `vpopmail` CHANGE domain domain CHAR(96) NOT NULL;' |
260 |
elog 'ALTER TABLE `limits` CHANGE domain domain CHAR(96) NOT NULL,' |
261 |
elog ' ADD `disable_spamassassin` TINYINT(1) DEFAULT '0' NOT NULL AFTER `disable_smtp`,' |
262 |
elog ' ADD `delete_spam` TINYINT(1) DEFAULT '0' NOT NULL AFTER `disable_spamassassin`;' |
263 |
elog |
264 |
fi |
265 |
} |