Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 160979 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/net-misc/dhcp/dhcp-4.0.1.ebuild (-5 / +28 lines)
Lines 4-25 Link Here
4
4
5
inherit eutils flag-o-matic autotools
5
inherit eutils flag-o-matic autotools
6
6
7
LDAP_PV="4.0.1-2.1"
8
7
MY_PV="${PV//_alpha/a}"
9
MY_PV="${PV//_alpha/a}"
8
MY_PV="${MY_PV//_beta/b}"
10
MY_PV="${MY_PV//_beta/b}"
9
MY_PV="${MY_PV//_rc/rc}"
11
MY_PV="${MY_PV//_rc/rc}"
10
MY_P="${PN}-${MY_PV}"
12
MY_P="${PN}-${MY_PV}"
13
MY_LDAP_PV="${LDAP_PV//-*/}"
14
11
DESCRIPTION="ISC Dynamic Host Configuration Protocol"
15
DESCRIPTION="ISC Dynamic Host Configuration Protocol"
12
HOMEPAGE="http://www.isc.org/products/DHCP"
16
HOMEPAGE="http://www.isc.org/products/DHCP"
13
SRC_URI="ftp://ftp.isc.org/isc/dhcp/${MY_P}.tar.gz"
17
SRC_URI="ftp://ftp.isc.org/isc/dhcp/${MY_P}.tar.gz
18
	ldap? ( http://dcantrel.fedorapeople.org/dhcp/ldap-patch/ldap-for-dhcp-${LDAP_PV}.tar.gz
19
		http://ftp.mars.arge.at/pub/ldap-for-dhcp-${LDAP_PV}.tar.gz )"
14
20
15
LICENSE="isc-dhcp"
21
LICENSE="isc-dhcp"
16
SLOT="0"
22
SLOT="0"
17
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
23
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
18
IUSE="doc ipv6 selinux kernel_linux vim-syntax"
24
IUSE="doc ipv6 selinux kernel_linux vim-syntax ldap ssl"
19
25
20
DEPEND="selinux? ( sec-policy/selinux-dhcp )
26
DEPEND="selinux? ( sec-policy/selinux-dhcp )
21
	kernel_linux? ( sys-apps/net-tools )
27
	kernel_linux? ( sys-apps/net-tools )
22
	vim-syntax? ( app-vim/dhcpd-syntax )"
28
	vim-syntax? ( app-vim/dhcpd-syntax )
29
	ldap? ( net-nds/openldap
30
		ssl? ( dev-libs/openssl ) )"
23
31
24
PROVIDE="virtual/dhcpc"
32
PROVIDE="virtual/dhcpc"
25
33
Lines 65-70 Link Here
65
	# Add dbus support to dhclient
73
	# Add dbus support to dhclient
66
	epatch "${FILESDIR}/${PN}"-3.0.3-dhclient-dbus.patch
74
	epatch "${FILESDIR}/${PN}"-3.0.3-dhclient-dbus.patch
67
75
76
	# Ldap patch for dhcp
77
	epatch "${WORKDIR}/ldap-for-dhcp-${LDAP_PV}/dhcp-${MY_LDAP_PV}"-ldap.patch
78
68
	# Brand the version with Gentoo
79
	# Brand the version with Gentoo
69
	# include revision if >0
80
	# include revision if >0
70
	local newver="Gentoo"
81
	local newver="Gentoo"
Lines 114-119 Link Here
114
		--with-srv-lease-file=/var/lib/dhcp/dhcpd.leases \
125
		--with-srv-lease-file=/var/lib/dhcp/dhcpd.leases \
115
		--with-relay-pid-file=/var/run/dhcp/dhcrelay.pid \
126
		--with-relay-pid-file=/var/run/dhcp/dhcrelay.pid \
116
		$(use_enable ipv6 dhcpv6) \
127
		$(use_enable ipv6 dhcpv6) \
128
		$(use_with ldap) \
129
		$(use_with ssl ldapcrypto) \
117
		|| die
130
		|| die
118
131
119
	emake || die "compile problem"
132
	emake || die "compile problem"
Lines 138-145 Link Here
138
		newexe "${S}"/client/scripts/freebsd dhclient-script
151
		newexe "${S}"/client/scripts/freebsd dhclient-script
139
	fi
152
	fi
140
153
141
	use doc && dodoc README RELNOTES doc/*
154
	if use doc; then
142
155
		dodoc README RELNOTES doc/*
156
		use ldap && dodoc "${WORKDIR}/ldap-for-dhcp-${LDAP_PV}"/*.ldap "${WORKDIR}/ldap-for-dhcp-${LDAP_PV}"/draft-ietf-dhc-ldap-schema-01.txt
157
	fi
143
	insinto /etc/dhcp
158
	insinto /etc/dhcp
144
	newins client/dhclient.conf dhclient.conf.sample
159
	newins client/dhclient.conf dhclient.conf.sample
145
	keepdir /var/{lib,run}/dhcp
160
	keepdir /var/{lib,run}/dhcp
Lines 152-157 Link Here
152
	newconfd "${FILESDIR}"/dhcpd.conf dhcpd
167
	newconfd "${FILESDIR}"/dhcpd.conf dhcpd
153
	newconfd "${FILESDIR}"/dhcrelay.conf dhcrelay
168
	newconfd "${FILESDIR}"/dhcrelay.conf dhcrelay
154
169
170
	# install ldap files
171
	if use ldap; then
172
		insinto /etc/openldap/schema
173
		doins "${WORKDIR}/ldap-for-dhcp-${LDAP_PV}"/dhcp.*
174
		dosbin "${WORKDIR}/ldap-for-dhcp-${LDAP_PV}"/dhcpd-conf-to-ldap
175
	fi
176
177
155
	# We never want portage to own this file
178
	# We never want portage to own this file
156
	rm -f "${D}"/var/lib/dhcp/dhcpd.leases
179
	rm -f "${D}"/var/lib/dhcp/dhcpd.leases
157
}
180
}

Return to bug 160979