blob: ad506a2c47a844e2e10c5c22decc6588788099c5 (
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-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2
# Maintainer: Thilo Bangert <bangert@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-mail/vmailmgr/vmailmgr-0.96.9-r1.ebuild,v 1.2 2002/04/27 21:46:45 bangert Exp $
S=${WORKDIR}/${P}
DESCRIPTION="vmailmgr - virtual domains for qmail"
SRC_URI="http://www.vmailmgr.org/current/${P}.tar.gz"
HOMEPAGE="http://www.vmailmgr.org"
DEPEND="virtual/glibc"
RDEPEND=">=sys-apps/ucspi-unix-0.34
>=net-mail/qmail-1.03-r7
>=net-mail/qmail-autoresponder-0.95"
src_unpack() {
unpack ${A} ; cd ${S}
#make sure stuff get's installed the right places
mv configure configure.orig
sed -e "s:^cgidir=.*:cgidir=\"/etc/vmailmgr/cgi-bin\":" \
-e "s:^phpdir=.*:phpdir=\"/etc/vmailmgr/php\":" \
configure.orig > configure
chmod ug+x configure
}
src_compile() {
./configure \
--host=${CHOST} \
--prefix=/usr \
--infodir=/usr/share/info \
--mandir=/usr/share/man || die "./configure failed"
emake || die
}
src_install () {
make DESTDIR=${D} install || die
#add documentation
exeinto /var/lib/supervise/vmailmgrd
newexe ${S}/scripts/vmailmgrd.run run
exeinto /var/lib/supervise/vmailmgrd/log
newexe ${S}/scripts/vmailmgrd-log.run run
exeinto /etc/vmailmgr
newexe ${S}/scripts/autoresponder.sh vdeliver-postdeliver
doexe ${FILESDIR}/checkvpw-loginfail
doexe ${FILESDIR}/socket-file
doexe ${FILESDIR}/separators
}
pkg_postinst() {
einfo "To start vmailmgrd you need to link"
einfo "/var/lib/supervise/vmailmgrd to /service"
}
|