Lines 1-9
Link Here
|
1 |
# Copyright 1999-2004 Gentoo Foundation |
1 |
# Copyright 1999-2004 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/netatalk/netatalk-1.6.4-r1.ebuild,v 1.5 2004/10/25 12:04:28 klieber Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
inherit eutils |
5 |
inherit eutils flag-o-matic |
6 |
IUSE="ssl pam tcpd" |
6 |
IUSE="ssl pam tcpd slp afs debug cracklib" |
7 |
|
7 |
|
8 |
DESCRIPTION="kernel level implementation of the AppleTalk Protocol Suite" |
8 |
DESCRIPTION="kernel level implementation of the AppleTalk Protocol Suite" |
9 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
9 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
Lines 11-36
Link Here
|
11 |
|
11 |
|
12 |
SLOT="0" |
12 |
SLOT="0" |
13 |
LICENSE="GPL-2" |
13 |
LICENSE="GPL-2" |
14 |
KEYWORDS="x86 ppc sparc ppc64" |
14 |
KEYWORDS="~x86 ~ppc" |
15 |
|
15 |
|
16 |
DEPEND="sys-apps/shadow |
16 |
RDEPEND="sys-apps/shadow |
17 |
pam? ( sys-libs/pam ) |
17 |
pam? ( sys-libs/pam ) |
18 |
ssl? ( dev-libs/openssl ) |
18 |
ssl? ( dev-libs/openssl ) |
19 |
tcpd? ( sys-apps/tcp-wrappers )" |
19 |
tcpd? ( sys-apps/tcp-wrappers ) |
|
|
20 |
slp? ( net-libs/openslp ) |
21 |
afs? ( net-fs/openafs ) |
22 |
cracklib? ( sys-libs/cracklib )" |
20 |
|
23 |
|
|
|
24 |
DEPEND="${RDEPEND} |
25 |
sys-apps/sed" |
21 |
|
26 |
|
22 |
src_unpack() { |
27 |
src_unpack() { |
23 |
unpack ${A} |
28 |
unpack ${A} |
24 |
cd ${S} |
29 |
cd ${S} |
25 |
epatch ${FILESDIR}/${PN}-1.6.4-tempfile.patch |
30 |
epatch ${FILESDIR}/${P}-tempfile.patch |
|
|
31 |
cp ${FILESDIR}/${P}-atalk ${WORKDIR}/atalk |
26 |
} |
32 |
} |
27 |
|
33 |
|
28 |
src_compile() { |
34 |
src_compile() { |
29 |
use pam && myconf="${myconf} --with-pam" |
|
|
30 |
use tcpd && myconf="${myconf} --with-tcp-wrappers" |
35 |
use tcpd && myconf="${myconf} --with-tcp-wrappers" |
31 |
use ssl && myconf="${myconf} --disable-ssl" |
36 |
|
|
|
37 |
if use slp; then |
38 |
myconf="${myconf} --enable-srvloc" |
39 |
mv ${WORKDIR}/atalk ${WORKDIR}/atalk.orig |
40 |
sed -e 's/^\([[:space:]]*use[[:space:][:alnum:]]*\)$/\1 slpd/' ${WORKDIR}/atalk.orig > ${WORKDIR}/atalk |
41 |
# epatch ${FILESDIR}/${P}-atalk-slp.patch |
42 |
fi |
43 |
|
44 |
append-ldflags -Wl,-z,now |
32 |
|
45 |
|
33 |
econf \ |
46 |
econf \ |
|
|
47 |
$(use_with pam) \ |
48 |
$(use_enable ssl) \ |
49 |
$(use_enable afs) \ |
50 |
$(use_enable debug) \ |
51 |
$(use_with cracklib) \ |
34 |
--enable-fhs \ |
52 |
--enable-fhs \ |
35 |
--with-shadow \ |
53 |
--with-shadow \ |
36 |
--with-bdb=/usr \ |
54 |
--with-bdb=/usr \ |
Lines 43-53
Link Here
|
43 |
make DESTDIR=${D} install || die "netatalk make install failed" |
61 |
make DESTDIR=${D} install || die "netatalk make install failed" |
44 |
|
62 |
|
45 |
# install docs |
63 |
# install docs |
46 |
dodoc CHANGES CONTRIBUTORS COPYING COPYRIGHT ChangeLog |
64 |
dodoc CONTRIBUTORS ChangeLog |
47 |
dodoc NEWS README TODO VERSION |
65 |
dodoc NEWS README TODO VERSION |
48 |
dodoc doc/* |
66 |
dodoc doc/* |
49 |
|
67 |
|
50 |
# install init script |
68 |
# install init script |
51 |
exeinto /etc/init.d |
69 |
doinitd ${WORKDIR}/atalk |
52 |
newexe ${FILESDIR}/atalknew-rc6 atalk |
|
|
53 |
} |
70 |
} |