blob: c748829e1c213265391e03037357641ae4e6e84b (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/cvm-vmailmgr/cvm-vmailmgr-0.6.ebuild,v 1.6 2005/05/16 09:58:44 ticho Exp $
inherit fixheadtails toolchain-funcs
DESCRIPTION="CVM modules for use with vmailmgr"
HOMEPAGE="http://untroubled.org/cvm-vmailmgr/"
SRC_URI="http://untroubled.org/cvm-vmailmgr/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~sparc ~ppc"
IUSE=""
DEPEND="virtual/libc
net-libs/cvm
>=dev-libs/bglibs-1.009"
RDEPEND=">=net-mail/vmailmgr-0.96.9-r1
>=sys-apps/ucspi-unix-0.34
net-libs/cvm
virtual/libc"
src_unpack() {
unpack ${A}
cd ${S}
ht_fix_file Makefile
sed 's|-lcvm/|-lcvm-|g' -i Makefile
}
src_compile() {
echo "/usr/lib/bglibs/include" > conf-bgincs
echo "/usr/lib/bglibs/lib" > conf-bglibs
echo "$(tc-getCC) ${CFLAGS}" > conf-cc
echo "$(tc-getCC) -s" > conf-ld
make || die
}
src_install() {
dobin cvm-vmailmgr cvm-vmailmgr-local cvm-vmailmgr-udp cvm-vmlookup || die
exeinto /var/lib/supervise/cvm-vmailmgr
newexe ${FILESDIR}/run-cvm-vmailmgr run
exeinto /var/lib/supervise/cvm-vmailmgr/log
newexe ${FILESDIR}/run-cvm-vmailmgr-log run
insinto /etc/vmailmgr
doins ${FILESDIR}/cvm-vmailmgr-socket
dodoc ANNOUNCEMENT FILES NEWS README TARGETS TODO VERSION
}
pkg_postinst() {
einfo "To start cvm-vmailmgr you need to link"
einfo "/var/lib/supervise/cvm-vmailmgr to /service"
}
|