blob: b87bef29865f0c6242c99e2f4b712e7000b3921b (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/vm-pop3d/vm-pop3d-1.1.6-r2.ebuild,v 1.1 2005/05/21 21:01:45 ferdy Exp $
inherit eutils
DESCRIPTION="POP3 server"
HOMEPAGE="http://www.reedmedia.net/software/virtualmail-pop3d/"
SRC_URI="http://www.ibiblio.org/pub/Linux/system/mail/pop/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~ppc ~sparc ~x86"
IUSE="pam debug"
DEPEND="virtual/libc
pam? (
virtual/pam
>=net-mail/mailbase-0.00-r8
)"
pkg_setup() {
if use pam && ! built_with_use net-mail/mailbase pam ; then
echo
eerror
eerror "${PN} needs net-mail/mailbase to be built with USE flag pam"
eerror " activated. Please rebuild net-mail/mailbase with pam"
eerror
echo
die "mailbase has to be built with pam flag"
fi
}
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/makefile.in.diff
}
src_compile() {
econf \
$(use_enable pam) \
$(use_enable debug) \
|| die "configure failed"
emake || die "make failed"
}
src_install() {
einstall || die "make install failed"
dodoc AUTHORS CHANGES COPYING FAQ INSTALL README TODO
newinitd "${FILESDIR}/vm-pop3d.rc3" vm-pop3d || \
die "failed to install initd file"
newconfd "${FILESDIR}/vm-pop3d.confd" vm-pop3d || \
die "failed to install confd file"
if use pam ; then
dodir /etc/pam.d/
dosym /etc/pam.d/pop /etc/pam.d/vm-pop3d
fi
}
|