blob: 436e18503f4a9fb20295eafc18acd8e217b336f9 (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/mini-qmail/mini-qmail-1.05.ebuild,v 1.3 2004/07/01 19:53:04 eradicator Exp $
inherit eutils gcc fixheadtails
DESCRIPTION="a small null client that forwards mail via QMQP to a full qmail server"
HOMEPAGE="http://www.qmail.org/ http://cr.yp.to/qmail/mini.html"
SRC_URI="http://www.qmail.org/netqmail-${PV}.tar.gz
http://www.din.or.jp/~ushijima/mini-qmail-kit/mini-qmail-kit-0.52.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="x86 ppc sparc mips arm hppa"
IUSE=""
DEPEND="virtual/libc
sys-apps/groff"
RDEPEND="!virtual/mta
virtual/libc"
PROVIDE="virtual/mta
virtual/mda"
S=${WORKDIR}/netqmail-${PV}/netqmail-${PV}
src_unpack() {
unpack netqmail-${PV}.tar.gz
unpack mini-qmail-kit-0.52.tar.gz
cd netqmail-${PV}
./collate.sh || die "patching failed"
mv ${WORKDIR}/mini-qmail-kit-0.52/* ${S}/
cd ${S}
echo -n "$(gcc-getCC) ${CFLAGS}" >${S}/conf-cc
echo -n "$(gcc-getCC) ${LDFLAGS}" > ${S}/conf-ld
ht_fix_file ${S}/Makefile
epatch ${FILESDIR}/${PV}-config-mini-help.patch
}
src_compile() {
emake it man || die
}
src_install() {
einfo "Setting up directory hierarchy ..."
keepdir /var/mini-qmail/control
dodoc FAQ UPGRADE SENDMAIL INSTALL* TEST* REMOVE* PIC* SECURITY
dodoc SYSDEPS TARGETS THANKS THOUGHTS TODO VERSION README*
exeinto /var/mini-qmail/bin
doexe qmail-qmqpc forward qmail-inject \
sendmail predate datemail mailsubj \
qmail-showctl maildirmake maildir2mbox \
maildirwatch qail elq pinq \
|| die "doexe failed"
dosym qmail-qmqpc /var/mini-qmail/bin/qmail-queue
newexe config-mini.sh config-mini
dosed "s:QMAIL:/var/mini-qmail/:g" /var/mini-qmail/bin/config-mini
doman qmail-qmqpc.8 forward.1 qmail-inject.8 \
mailsubj.1 qmail-showctl.8 maildirmake.1 \
maildir2mbox.1 maildirwatch.1 qmail-queue.8 \
qmail.7
einfo "Adding env.d entry for qmail"
dodir /etc/env.d
insinto /etc/env.d
doins ${FILESDIR}/99qmail
einfo "Creating sendmail replacement ..."
diropts -m 755
dodir /usr/sbin /usr/lib
dosym /var/mini-qmail/bin/sendmail /usr/sbin/sendmail
dosym /var/mini-qmail/bin/sendmail /usr/lib/sendmail
}
pkg_postinst() {
einfo "In order for mini-qmail to work, you need to setup"
einfo "the QMQP server information."
einfo
einfo "You can setup the values in /var/mini-qmail/control yourself,"
einfo "or use the utility /var/mini-qmail/bin/config-mini"
einfo "To find out what values to put in what files, see the install"
einfo "section of http://cr.yp.to/qmail/mini.html"
}
|