Lines 25-36
Link Here
|
25 |
fam? ( virtual/fam ) |
25 |
fam? ( virtual/fam ) |
26 |
selinux? ( sec-policy/selinux-courier-imap )" |
26 |
selinux? ( sec-policy/selinux-courier-imap )" |
27 |
DEPEND="${RDEPEND} |
27 |
DEPEND="${RDEPEND} |
28 |
>=sys-apps/sed-4 |
|
|
29 |
dev-lang/perl |
28 |
dev-lang/perl |
30 |
sys-process/procps |
|
|
31 |
!mail-mta/courier" |
29 |
!mail-mta/courier" |
32 |
PROVIDE="virtual/imapd" |
30 |
PROVIDE="virtual/imapd" |
33 |
|
31 |
|
|
|
32 |
RC_VER="4.0.1-r1" |
33 |
INITD_VER="4.0.1" |
34 |
|
34 |
#S=${WORKDIR}/${PN}-${MY_PV} |
35 |
#S=${WORKDIR}/${PN}-${MY_PV} |
35 |
pkg_setup() { |
36 |
pkg_setup() { |
36 |
if ! use berkdb && ! use gdbm; then |
37 |
if ! use berkdb && ! use gdbm; then |
Lines 98-105
Link Here
|
98 |
vpopmail_setup |
99 |
vpopmail_setup |
99 |
|
100 |
|
100 |
local myconf |
101 |
local myconf |
101 |
myconf="$(use_with ipv6)" |
102 |
|
102 |
|
|
|
103 |
# 19 Aug 2004; langthang@gentoo.org |
103 |
# 19 Aug 2004; langthang@gentoo.org |
104 |
# default to gdbm if both berkdb and gdbm present. |
104 |
# default to gdbm if both berkdb and gdbm present. |
105 |
if use gdbm; then |
105 |
if use gdbm; then |
Lines 142-154
Link Here
|
142 |
|
142 |
|
143 |
use debug && myconf="${myconf} debug=true" |
143 |
use debug && myconf="${myconf} debug=true" |
144 |
|
144 |
|
145 |
# fix for bug #27528 |
|
|
146 |
# they really should use a better way to detect redhat |
147 |
myconf="${myconf} --without-redhat" |
148 |
|
149 |
# bug #29879 - FAM support |
150 |
myconf="${myconf} $(use_with fam)" |
151 |
|
152 |
# bug #76592 |
145 |
# bug #76592 |
153 |
# configure cache confuses the configure script. |
146 |
# configure cache confuses the configure script. |
154 |
#local cachefile |
147 |
#local cachefile |
Lines 176-190
Link Here
|
176 |
--with-authdaemonvar=/var/lib/courier-imap/authdaemon \ |
169 |
--with-authdaemonvar=/var/lib/courier-imap/authdaemon \ |
177 |
--with-mailuser=mail \ |
170 |
--with-mailuser=mail \ |
178 |
--with-mailgroup=mail \ |
171 |
--with-mailgroup=mail \ |
|
|
172 |
$(use_with ipv6) \ |
173 |
$(use_with fam) \ |
179 |
${myconf} || die "econf failed" |
174 |
${myconf} || die "econf failed" |
180 |
|
175 |
|
181 |
# change the pem file location.. |
176 |
# change the pem file location.. |
182 |
sed -e "s:^\(TLS_CERTFILE=\).*:\1/etc/courier-imap/imapd.pem:" \ |
177 |
sed -i -e "s:^\(TLS_CERTFILE=\).*:\1/etc/courier-imap/imapd.pem:" \ |
183 |
-i.orig imap/imapd-ssl.dist || \ |
178 |
imap/imapd-ssl.dist || \ |
184 |
die "sed failed" |
179 |
die "sed failed" |
185 |
|
180 |
|
186 |
sed -e "s:^\(TLS_CERTFILE=\).*:\1/etc/courier-imap/pop3d.pem:" \ |
181 |
sed -i -e "s:^\(TLS_CERTFILE=\).*:\1/etc/courier-imap/pop3d.pem:" \ |
187 |
-i.orig imap/pop3d-ssl.dist || \ |
182 |
imap/pop3d-ssl.dist || \ |
188 |
die "sed failed" |
183 |
die "sed failed" |
189 |
|
184 |
|
190 |
emake || die "compile problem" |
185 |
emake || die "compile problem" |
Lines 213-225
Link Here
|
213 |
for type in "" "-ssl"; do |
208 |
for type in "" "-ssl"; do |
214 |
local file |
209 |
local file |
215 |
file="${service}${type}.rc" |
210 |
file="${service}${type}.rc" |
216 |
#cp ${file} ${file}.orig |
211 |
sed -i -e 's/Maildir/${MAILDIR}/' ${file} || die "sed failed" |
217 |
#sed -e 's/Maildir/${MAILDIR}/' \ |
212 |
sed -i -e "s/\/usr\/sbin\/${service}/\/usr\/sbin\/courier-${service}/" \ |
218 |
# -e "s/\/usr\/sbin\/${service}/\/usr\/sbin\/courier-${service}/" \ |
213 |
${file} || die "sed failed" |
219 |
# ${file}.orig > ${file} |
|
|
220 |
sed -e 's/Maildir/${MAILDIR}/' \ |
221 |
-e "s/\/usr\/sbin\/${service}/\/usr\/sbin\/courier-${service}/" \ |
222 |
-i.orig ${file} || die "sed failed" |
223 |
done |
214 |
done |
224 |
done |
215 |
done |
225 |
|
216 |
|
Lines 273-291
Link Here
|
273 |
dosym /usr/sbin/courierlogger /usr/$(get_libdir)/courier-imap/courierlogger || \ |
264 |
dosym /usr/sbin/courierlogger /usr/$(get_libdir)/courier-imap/courierlogger || \ |
274 |
die "dosym failed" |
265 |
die "dosym failed" |
275 |
|
266 |
|
276 |
exeinto /etc/init.d |
267 |
newinitd ${FILESDIR}/${PN}-${INITD_VER}-courier-imapd.rc6 courier-imapd || die "newinitd failed" |
277 |
newexe ${FILESDIR}/${P}-courier-imapd.rc6 courier-imapd || die "newexe failed" |
268 |
newinitd ${FILESDIR}/${PN}-${INITD_VER}-courier-imapd-ssl.rc6 courier-imapd-ssl || die "newinitd failed" |
278 |
newexe ${FILESDIR}/${P}-courier-imapd-ssl.rc6 courier-imapd-ssl || die "newexe failed" |
269 |
newinitd ${FILESDIR}/${PN}-${INITD_VER}-courier-pop3d.rc6 courier-pop3d || die "newinitd failed" |
279 |
newexe ${FILESDIR}/${P}-courier-pop3d.rc6 courier-pop3d || die "newexe failed" |
270 |
newinitd ${FILESDIR}/${PN}-${INITD_VER}-courier-pop3d-ssl.rc6 courier-pop3d-ssl || die "newinitd failed" |
280 |
newexe ${FILESDIR}/${P}-courier-pop3d-ssl.rc6 courier-pop3d-ssl || die "newexe failed" |
|
|
281 |
|
271 |
|
282 |
exeinto /usr/$(get_libdir)/courier-imap |
272 |
exeinto /usr/$(get_libdir)/courier-imap |
283 |
newexe ${FILESDIR}/${P}-r1-gentoo-imapd.rc gentoo-imapd.rc || die "newexe failed" |
273 |
newexe ${FILESDIR}/${PN}-${RC_VER}-gentoo-imapd.rc gentoo-imapd.rc || die "newexe failed" |
284 |
newexe ${FILESDIR}/${P}-r1-gentoo-imapd-ssl.rc gentoo-imapd-ssl.rc || die "newexe failed" |
274 |
newexe ${FILESDIR}/${PN}-${RC_VER}-gentoo-imapd-ssl.rc gentoo-imapd-ssl.rc || die "newexe failed" |
285 |
newexe ${FILESDIR}/${P}-r1-gentoo-pop3d.rc gentoo-pop3d.rc || die "newexe failed" |
275 |
newexe ${FILESDIR}/${PN}-${RC_VER}-gentoo-pop3d.rc gentoo-pop3d.rc || die "newexe failed" |
286 |
newexe ${FILESDIR}/${P}-r1-gentoo-pop3d-ssl.rc gentoo-pop3d-ssl.rc || die "newexe failed" |
276 |
newexe ${FILESDIR}/${PN}-${RC_VER}-gentoo-pop3d-ssl.rc gentoo-pop3d-ssl.rc || die "newexe failed" |
287 |
newexe ${FILESDIR}/${P}-r1-courier-imapd.indirect courier-imapd.indirect || die "newexe failed" |
277 |
newexe ${FILESDIR}/${PN}-${RC_VER}-courier-imapd.indirect courier-imapd.indirect || die "newexe failed" |
288 |
newexe ${FILESDIR}/${P}-r1-courier-pop3d.indirect courier-pop3d.indirect || die "newexe failed" |
278 |
newexe ${FILESDIR}/${PN}-${RC_VER}-courier-pop3d.indirect courier-pop3d.indirect || die "newexe failed" |
289 |
|
279 |
|
290 |
#local authmods |
280 |
#local authmods |
291 |
#authmods="authsystem.passwd authcram authshadow authuserdb authpwd authtest authinfo authmksock authcustom authdaemontest" |
281 |
#authmods="authsystem.passwd authcram authshadow authuserdb authpwd authtest authinfo authmksock authcustom authdaemontest" |