blob: db3d28d17bbb0354d59148cae50b052137b7bcd8 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-client/drac/drac-1.12.ebuild,v 1.5 2004/07/01 19:48:10 eradicator Exp $
inherit eutils
DESCRIPTION="A robust implementation of POP-before-SMTP"
HOMEPAGE="http://mail.cc.umanitoba.ca/drac/"
SRC_URI="ftp://ftp.cc.umanitoba.ca/src/${PN}.tar.Z"
LICENSE="as-is"
SLOT="0"
KEYWORDS="x86"
IUSE="debug"
DEPEND="virtual/libc
sys-libs/db
>=mail-mta/sendmail-8.9"
S=${WORKDIR}
src_compile() {
cp Makefile Makefile.orig
sed \
-e "s:INSTALL = /usr/ucb/install:INSTALL = install:" \
-e "s:EBIN = /usr/local/sbin:EBIN = /usr/sbin:" \
-e "s:MAN = /usr/local/man/man:MAN = /usr/share/man/man:" \
-e "s:DEFS = -DTI_RPC -DFCNTL_LOCK -DSYSINFO:DEFS = -DSOCK_RPC -DFCNTL_LOCK -DGETHOST -DDASH_C:" \
-e "s:CC = cc:CC = gcc:" \
-e "s:LDLIBS = -L/usr/local/src/db/db-4.1.25/build_unix -lnsl -ldb-4.1:LDLIBS = -ldb:" \
-e "s:TSTLIBS = -L. -ldrac -lnsl:TSTLIBS = -L. -ldrac:" \
-e "s:RPCGENFLAGS =:RPCGENFLAGS = -C -I:" \
-e "s:MANADM = 1m:MANADM = 8:" \
< Makefile.orig > Makefile
if use debug; then
cp Makefile Makefile.posthacked
sed -e "s:CFLAGS = \$(DEFS) -g -I/usr/local/src/db/db-4.1.25/build_unix:CFLAGS = \$(DEFS) -g ${CFLAGS}:" \
< Makefile.posthacked > Makefile
else
cp Makefile Makefile.posthacked
sed -e "s:CFLAGS = \$(DEFS) -g -I/usr/local/src/db/db-4.1.25/build_unix:CFLAGS = \$(DEFS) ${CFLAGS}:" \
< Makefile.posthacked > Makefile
fi
make || die
}
src_install() {
dobin rpc.dracd
mv rpc.dracd.1m rpc.dracd.8
doman dracauth.3 rpc.dracd.8
}
|