1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit fixheadtails toolchain-funcs
7 DESCRIPTION="Mail server network protocol front-ends"
8 HOMEPAGE="http://untroubled.org/mailfront/"
9 SRC_URI="http://untroubled.org/mailfront/archive/${P}.tar.gz"
13 KEYWORDS="x86 ~sparc ~ppc"
16 DEPEND=">=dev-libs/bglibs-1.006"
25 ht_fix_file "${S}"/Makefile
29 echo "/usr/lib/bglibs/include" > conf-bgincs
30 echo "/usr/lib/bglibs/lib" > conf-bglibs
31 echo "/var/qmail/bin" > conf-bin
32 echo "$(tc-getCC) ${CFLAGS}" > conf-cc
33 echo "$(tc-getCC) " > conf-ld
38 exeinto /var/qmail/bin
39 doexe pop3front-auth pop3front-maildir smtpfront-echo \
40 smtpfront-qmail smtpfront-reject imapfront-auth \
41 qmqpfront-qmail qmtpfront-qmail || die
43 #install new run files for qmail-smtpd and qmail-pop3
44 exeinto /var/qmail/supervise/qmail-smtpd
45 newexe "${FILESDIR}"/run-smtpfront run.mailfront
46 exeinto /var/qmail/supervise/qmail-pop3d
47 newexe "${FILESDIR}"/run-pop3front run.mailfront
49 dodoc ANNOUNCEMENT FILES NEWS README TARGETS TODO VERSION
51 dohtml cvm-sasl.html imapfront.html mailfront.html mailrules.html \
52 mailrules2.html pop3front.html qmail-backend.html \
53 qmail-validate.html smtpfront.html
57 cd /var/qmail/supervise/qmail-smtpd/
58 cp run run.qmail-smtpd.`date +%Y%m%d%H%M%S` && cp run.mailfront run
59 cd /var/qmail/supervise/qmail-pop3d/
60 cp run run.qmail-pop3d.`date +%Y%m%d%H%M%S` && cp run.mailfront run
65 elog "Run emerge --config =${CATEGORY}/${PF}"
66 elog "to update you run files (backup are created) in"
67 elog " /var/qmail/supervise/qmail-pop3d and"
68 elog " /var/qmail/supervise/qmail-smtpd"