Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 84688 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/net-mail/courier-imap/courier-imap-4.0.1-r1.ebuild (-27 / +14 lines)
Lines 25-33 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
Lines 98-105 Link Here
98
	vpopmail_setup
96
	vpopmail_setup
99
97
100
	local myconf
98
	local myconf
101
	myconf="$(use_with ipv6)"
99
	
102
103
	# 19 Aug 2004; langthang@gentoo.org
100
	# 19 Aug 2004; langthang@gentoo.org
104
	# default to gdbm if both berkdb and gdbm present.
101
	# default to gdbm if both berkdb and gdbm present.
105
	if use gdbm; then
102
	if use gdbm; then
Lines 142-154 Link Here
142
139
143
	use debug && myconf="${myconf} debug=true"
140
	use debug && myconf="${myconf} debug=true"
144
141
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
142
	# bug #76592
153
	# configure cache confuses the configure script. 
143
	# configure cache confuses the configure script. 
154
	#local cachefile
144
	#local cachefile
Lines 176-190 Link Here
176
		--with-authdaemonvar=/var/lib/courier-imap/authdaemon \
166
		--with-authdaemonvar=/var/lib/courier-imap/authdaemon \
177
		--with-mailuser=mail \
167
		--with-mailuser=mail \
178
		--with-mailgroup=mail \
168
		--with-mailgroup=mail \
169
		$(use_with ipv6) \
170
		$(use_with fam) \
179
		${myconf} || die "econf failed"
171
		${myconf} || die "econf failed"
180
172
181
	# change the pem file location..
173
	# change the pem file location..
182
	sed -e "s:^\(TLS_CERTFILE=\).*:\1/etc/courier-imap/imapd.pem:" \
174
	sed -i -e "s:^\(TLS_CERTFILE=\).*:\1/etc/courier-imap/imapd.pem:" \
183
		-i.orig imap/imapd-ssl.dist || \
175
		imap/imapd-ssl.dist || \
184
		die "sed failed"
176
		die "sed failed"
185
177
186
	sed -e "s:^\(TLS_CERTFILE=\).*:\1/etc/courier-imap/pop3d.pem:" \
178
	sed -i -e "s:^\(TLS_CERTFILE=\).*:\1/etc/courier-imap/pop3d.pem:" \
187
		-i.orig imap/pop3d-ssl.dist || \
179
		imap/pop3d-ssl.dist || \
188
		die "sed failed"
180
		die "sed failed"
189
181
190
	emake || die "compile problem"
182
	emake || die "compile problem"
Lines 213-225 Link Here
213
		for type in "" "-ssl"; do
205
		for type in "" "-ssl"; do
214
			local file
206
			local file
215
			file="${service}${type}.rc"
207
			file="${service}${type}.rc"
216
			#cp ${file} ${file}.orig
208
			sed -i -e 's/Maildir/${MAILDIR}/' ${file} || die "sed failed"
217
			#sed -e 's/Maildir/${MAILDIR}/' \
209
			sed -i -e "s/\/usr\/sbin\/${service}/\/usr\/sbin\/courier-${service}/" \
218
			#    -e "s/\/usr\/sbin\/${service}/\/usr\/sbin\/courier-${service}/" \
210
				${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
211
		done
224
	done
212
	done
225
213
Lines 273-283 Link Here
273
	dosym /usr/sbin/courierlogger /usr/$(get_libdir)/courier-imap/courierlogger || \
261
	dosym /usr/sbin/courierlogger /usr/$(get_libdir)/courier-imap/courierlogger || \
274
			die "dosym failed"
262
			die "dosym failed"
275
263
276
	exeinto /etc/init.d
264
	newinitd ${FILESDIR}/${P}-courier-imapd.rc6 courier-imapd || die "newinitd failed"
277
		newexe ${FILESDIR}/${P}-courier-imapd.rc6 courier-imapd || die "newexe failed"
265
	newinitd ${FILESDIR}/${P}-courier-imapd-ssl.rc6 courier-imapd-ssl || die "newinitd failed"
278
		newexe ${FILESDIR}/${P}-courier-imapd-ssl.rc6 courier-imapd-ssl || die "newexe failed"
266
	newinitd ${FILESDIR}/${P}-courier-pop3d.rc6 courier-pop3d || die "newinitd failed"
279
		newexe ${FILESDIR}/${P}-courier-pop3d.rc6 courier-pop3d || die "newexe failed"
267
	newinitd ${FILESDIR}/${P}-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
268
282
	exeinto /usr/$(get_libdir)/courier-imap
269
	exeinto /usr/$(get_libdir)/courier-imap
283
		newexe ${FILESDIR}/${P}-r1-gentoo-imapd.rc gentoo-imapd.rc || die "newexe failed"
270
		newexe ${FILESDIR}/${P}-r1-gentoo-imapd.rc gentoo-imapd.rc || die "newexe failed"

Return to bug 84688