mds/net-misc/dhcp/files/dhcp-ebuild.patch
2009-01-21 21:12:06 +00:00

32 lines
1.0 KiB
Diff

--- dhcp-3.1.0.ebuild 2008-01-10 10:36:28.000000000 +0100
+++ dhcp-4.0.0-r1.ebuild 2008-07-30 14:55:17.000000000 +0200
@@ -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