2008-07-30 21:23:50 +02:00
|
|
|
--- dhcp-3.1.0.ebuild 2008-01-10 10:36:28.000000000 +0100
|
2008-11-01 19:10:17 +01:00
|
|
|
+++ dhcp-4.0.0-r1.ebuild 2008-07-30 14:55:17.000000000 +0200
|
2008-07-30 21:23:50 +02:00
|
|
|
@@ -15,10 +15,11 @@
|
|
|
|
LICENSE="isc-dhcp"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="alpha amd64 arm hppa mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
|
|
|
|
-IUSE="doc minimal static selinux kernel_linux"
|
|
|
|
+IUSE="doc minimal static selinux kernel_linux ldap"
|
|
|
|
|
|
|
|
DEPEND="selinux? ( sec-policy/selinux-dhcp )
|
|
|
|
- kernel_linux? ( sys-apps/net-tools )"
|
|
|
|
+ kernel_linux? ( sys-apps/net-tools )
|
|
|
|
+ ldap? ( net-nds/openldap )"
|
|
|
|
|
|
|
|
PROVIDE="virtual/dhcpc"
|
|
|
|
|
|
|
|
@@ -65,9 +66,14 @@
|
|
|
|
# Add dbus support to dhclient
|
|
|
|
epatch "${FILESDIR}/${PN}"-3.0.3-dhclient-dbus.patch
|
|
|
|
|
|
|
|
+ # Ldap support patch
|
|
|
|
+ # Add ldap support to dhcpd
|
|
|
|
+ use ldap && epatch "${FILESDIR}/${PN}"-3.1.0-ldap.patch
|
|
|
|
+
|
|
|
|
# Brand the version with Gentoo
|
|
|
|
# include revision if >0
|
|
|
|
local newver="${MY_PV}-Gentoo"
|
|
|
|
+ use ldap && local newver="${MY_PV}-Gentoo-LDAP"
|
|
|
|
[[ ${PR} != "r0" ]] && newver="${newver}-${PR}"
|
|
|
|
sed -i '/^#define DHCP_VERSION[ \t]\+/ s/'"${MY_PV}/${newver}/g" \
|
|
|
|
includes/version.h || die
|