blob: 0fae74cd3b540aa6f18f37e96969d4dc60b674cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
DESCRIPTION="Mail server network protocol front-ends"
HOMEPAGE="https://untroubled.org/mailfront/"
SRC_URI="https://untroubled.org/mailfront/archive/${P}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE=""
DEPEND=">=dev-libs/bglibs-2.04
>=net-libs/cvm-0.81"
RDEPEND="${DEPEND}
virtual/qmail
net-libs/cvm"
src_configure() {
echo "${EPREFIX}/var/qmail" > conf-qmail || die
echo "/var/qmail/bin" > conf-bin || die
echo "/usr/$(get_libdir)/mailfront" > conf-modules || die
echo "/usr/include" > conf-include || die
echo "$(tc-getCC) ${CFLAGS}" > conf-cc || die
echo "$(tc-getCC) ${CFLAGS} -fPIC -shared" > conf-ccso || die
echo "$(tc-getCC) ${LDFLAGS}" > conf-ld || die
}
src_install() {
emake install install_prefix="${ED}"
exeinto /var/qmail/supervise/qmail-smtpd
newexe "${FILESDIR}"/run-smtpfront run.mailfront
exeinto /var/qmail/supervise/qmail-pop3d
newexe "${FILESDIR}"/run-pop3front run.mailfront
dodoc ANNOUNCEMENT ChangeLog NEWS README TODO VERSION
docinto html
dodoc *.html
}
pkg_config() {
cd "${EROOT}"/var/qmail/supervise/qmail-smtpd/ || die
[[ -e run ]] && ( cp run run.qmail-smtpd.`date +%Y%m%d%H%M%S` || die )
cp run.mailfront run || die
cd "${EROOT}"/var/qmail/supervise/qmail-pop3d/ || die
[[ -e run ]] && ( cp run run.qmail-pop3d.`date +%Y%m%d%H%M%S` || die )
cp run.mailfront run || die
}
pkg_postinst() {
elog "Run"
elog "emerge --config '=${CATEGORY}/${PF}'"
elog "to update your run files (backups are created) in"
elog " /var/qmail/supervise/qmail-pop3d and"
elog " /var/qmail/supervise/qmail-smtpd"
}
|