| 1 | # Copyright 1999-2008 Gentoo Foundation |
1 | # Copyright 1999-2008 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/qmail.eclass,v 1.2 2010/07/28 12:37:32 jer Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/qmail.eclass,v 1.3 2011/04/29 14:07:43 ssuominen Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: qmail.eclass |
5 | # @ECLASS: qmail.eclass |
| 6 | # @MAINTAINER: qmail-bugs@gentoo.org |
6 | # @MAINTAINER: qmail-bugs@gentoo.org |
| 7 | # @BLURB: common qmail functions |
7 | # @BLURB: common qmail functions |
| 8 | |
8 | |
| … | |
… | |
| 247 | qmail_sendmail_install() { |
247 | qmail_sendmail_install() { |
| 248 | einfo "Installing sendmail replacement" |
248 | einfo "Installing sendmail replacement" |
| 249 | diropts -m 755 |
249 | diropts -m 755 |
| 250 | dodir /usr/sbin /usr/lib |
250 | dodir /usr/sbin /usr/lib |
| 251 | |
251 | |
| 252 | if use mailwrapper; then |
|
|
| 253 | insinto /etc/mail |
|
|
| 254 | doins "${GENQMAIL_S}"/conf/mailer.conf |
|
|
| 255 | else |
|
|
| 256 | dosym "${QMAIL_HOME}"/bin/sendmail /usr/sbin/sendmail |
252 | dosym "${QMAIL_HOME}"/bin/sendmail /usr/sbin/sendmail |
| 257 | dosym "${QMAIL_HOME}"/bin/sendmail /usr/lib/sendmail |
253 | dosym "${QMAIL_HOME}"/bin/sendmail /usr/lib/sendmail |
| 258 | fi |
|
|
| 259 | |
254 | |
| 260 | declare -F qmail_sendmail_install_hook >/dev/null && \ |
255 | declare -F qmail_sendmail_install_hook >/dev/null && \ |
| 261 | qmail_sendmail_install_hook |
256 | qmail_sendmail_install_hook |
| 262 | } |
257 | } |
| 263 | |
258 | |