Lines 1-6
Link Here
|
1 |
# Copyright 1999-2006 Gentoo Foundation |
1 |
# Copyright 1999-2009 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-misc/dhcp/dhcp-3.0.5.ebuild,v 1.2 2006/12/20 12:35:53 uberlord Exp $ |
3 |
# $Header$ |
4 |
|
4 |
|
5 |
inherit eutils flag-o-matic multilib toolchain-funcs |
5 |
inherit eutils flag-o-matic multilib toolchain-funcs |
6 |
|
6 |
|
Lines 13-23
Link Here
|
13 |
|
13 |
|
14 |
LICENSE="isc-dhcp" |
14 |
LICENSE="isc-dhcp" |
15 |
SLOT="0" |
15 |
SLOT="0" |
16 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
16 |
KEYWORDS="~x86 ~x86-fbsd" |
17 |
IUSE="doc minimal static selinux kernel_linux" |
17 |
IUSE="doc minimal static selinux kernel_linux ldap" |
18 |
|
18 |
|
19 |
DEPEND="selinux? ( sec-policy/selinux-dhcp ) |
19 |
DEPEND="selinux? ( sec-policy/selinux-dhcp ) |
20 |
kernel_linux? ( sys-apps/net-tools )" |
20 |
kernel_linux? ( sys-apps/net-tools ) |
|
|
21 |
ldap? ( net-nds/openldap dev-libs/openssl )" |
21 |
|
22 |
|
22 |
PROVIDE="virtual/dhcpc" |
23 |
PROVIDE="virtual/dhcpc" |
23 |
|
24 |
|
Lines 28-35
Link Here
|
28 |
cd "${S}" |
29 |
cd "${S}" |
29 |
|
30 |
|
30 |
#Enable LDAP-Support |
31 |
#Enable LDAP-Support |
31 |
epatch "${FILESDIR}/${PN}"-3.0.5-ldap.patch |
32 |
if use ldap; then |
32 |
|
33 |
epatch "${FILESDIR}/${PN}"-3.0.5-ldap.patch |
|
|
34 |
fi |
35 |
|
33 |
# Gentoo patches - these will probably never be accepted upstream |
36 |
# Gentoo patches - these will probably never be accepted upstream |
34 |
# Enable chroot support |
37 |
# Enable chroot support |
35 |
epatch "${FILESDIR}/${PN}"-3.0-paranoia.patch |
38 |
epatch "${FILESDIR}/${PN}"-3.0-paranoia.patch |
Lines 61-66
Link Here
|
61 |
epatch "${FILESDIR}/${PN}"-3.0.3-libdst.patch |
64 |
epatch "${FILESDIR}/${PN}"-3.0.3-libdst.patch |
62 |
# Fix building on Gentoo/FreeBSD |
65 |
# Fix building on Gentoo/FreeBSD |
63 |
epatch "${FILESDIR}/${PN}"-3.0.2-gmake.patch |
66 |
epatch "${FILESDIR}/${PN}"-3.0.2-gmake.patch |
|
|
67 |
# Set ddns-update-style none in the example config, #170311 |
68 |
#epatch "${FILESDIR}/${PN}"-3.0-ddns-example.patch |
64 |
|
69 |
|
65 |
# NetworkManager support patches |
70 |
# NetworkManager support patches |
66 |
# If they fail to apply to future versions they will be dropped |
71 |
# If they fail to apply to future versions they will be dropped |
Lines 164-178
Link Here
|
164 |
newins client/dhclient.conf dhclient.conf.sample |
169 |
newins client/dhclient.conf dhclient.conf.sample |
165 |
keepdir /var/{lib,run}/dhcp |
170 |
keepdir /var/{lib,run}/dhcp |
166 |
|
171 |
|
|
|
172 |
cp "${FILESDIR}"/dhcpd.init dhcpd |
173 |
if use ldap ; then |
174 |
dodoc README.ldap |
175 |
dodir /etc/openldap/schema |
176 |
cp -f dhcp.schema "${D}/etc/openldap/schema/" |
177 |
sed -e "s|\(need .*$\)|\1 slapd|g" "${FILESDIR}"/dhcpd.init > dhcpd |
178 |
fi |
179 |
|
167 |
# Install our server files |
180 |
# Install our server files |
168 |
if ! use minimal ; then |
181 |
if ! use minimal ; then |
169 |
insinto /etc/dhcp |
182 |
insinto /etc/dhcp |
170 |
newins server/dhcpd.conf dhcpd.conf.sample |
183 |
newins server/dhcpd.conf dhcpd.conf.sample |
171 |
newinitd "${FILESDIR}"/dhcpd.init dhcpd |
184 |
newinitd dhcpd |
172 |
newinitd "${FILESDIR}"/dhcrelay.init dhcrelay |
185 |
newinitd "${FILESDIR}"/dhcrelay.init dhcrelay |
173 |
insinto /etc/conf.d |
186 |
newconfd "${FILESDIR}"/dhcpd.conf dhcpd |
174 |
newins "${FILESDIR}"/dhcpd.conf dhcpd |
187 |
newconfd "${FILESDIR}"/dhcrelay.conf dhcrelay |
175 |
newins "${FILESDIR}"/dhcrelay.conf dhcrelay |
188 |
|
|
|
189 |
# We never want portage to own this file |
190 |
rm -f "${D}"/var/lib/dhcp/dhcpd.leases |
176 |
fi |
191 |
fi |
177 |
} |
192 |
} |
178 |
|
193 |
|