summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <uberlord@gentoo.org>2006-07-21 09:59:52 +0000
committerRoy Marples <uberlord@gentoo.org>2006-07-21 09:59:52 +0000
commit253bb062ca5e2f9ada773310a31f669479b873e8 (patch)
tree708428dfa065f4623faac519f4c61c97e28b3a80
parentStable on HPPA. (diff)
downloadgentoo-2-253bb062ca5e2f9ada773310a31f669479b873e8.tar.gz
gentoo-2-253bb062ca5e2f9ada773310a31f669479b873e8.tar.bz2
gentoo-2-253bb062ca5e2f9ada773310a31f669479b873e8.zip
Fix loglevel option (-v), thanks to Bert Van Leeuwen, #141205.
(Portage version: 2.1.1_pre3-r3)
-rw-r--r--net-misc/dhcpcd/ChangeLog8
-rw-r--r--net-misc/dhcpcd/dhcpcd-2.0.8-r1.ebuild51
-rw-r--r--net-misc/dhcpcd/files/dhcpcd-2.0.8-loglevel.patch12
-rw-r--r--net-misc/dhcpcd/files/digest-dhcpcd-2.0.8-r13
4 files changed, 73 insertions, 1 deletions
diff --git a/net-misc/dhcpcd/ChangeLog b/net-misc/dhcpcd/ChangeLog
index 3afa27f7f709..d26061c0b2cc 100644
--- a/net-misc/dhcpcd/ChangeLog
+++ b/net-misc/dhcpcd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-misc/dhcpcd
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v 1.100 2006/07/12 14:06:26 uberlord Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v 1.101 2006/07/21 09:59:52 uberlord Exp $
+
+*dhcpcd-2.0.8-r1 (21 Jul 2006)
+
+ 21 Jul 2006; Roy Marples <uberlord@gentoo.org>
+ +files/dhcpcd-2.0.8-loglevel.patch, +dhcpcd-2.0.8-r1.ebuild:
+ Fix loglevel option (-v), thanks to Bert Van Leeuwen, #141205.
*dhcpcd-2.0.8 (12 Jul 2006)
diff --git a/net-misc/dhcpcd/dhcpcd-2.0.8-r1.ebuild b/net-misc/dhcpcd/dhcpcd-2.0.8-r1.ebuild
new file mode 100644
index 000000000000..65531494202e
--- /dev/null
+++ b/net-misc/dhcpcd/dhcpcd-2.0.8-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/dhcpcd-2.0.8-r1.ebuild,v 1.1 2006/07/21 09:59:52 uberlord Exp $
+
+inherit flag-o-matic eutils
+
+DESCRIPTION="A DHCP client only"
+HOMEPAGE="http://developer.berlios.de/projects/dhcpcd/"
+SRC_URI="http://download.berlios.de/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="build debug static"
+
+DEPEND=""
+PROVIDE="virtual/dhcpc"
+
+pkg_setup() {
+ if use debug ; then
+ ewarn "WARNING: dhcpcd will provide good debugging output with the"
+ ewarn "debug USE flag enabled but will not actually configure the"
+ ewarn "interface or setup /etc/resolv.conf"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Redefine the location of ntp.drift
+ sed -i 's:/etc/ntp\.drift:/var/lib/ntp/ntp.drift:' src/dhcpconfig.c
+
+ epatch "${FILESDIR}/${P}-loglevel.patch"
+}
+
+src_compile() {
+ use static && append-flags -static
+ econf $(use_enable debug) || die
+ emake || die
+}
+
+src_install() {
+ into /
+ dosbin src/dhcpcd || die
+
+ if ! use build ; then
+ dodoc AUTHORS ChangeLog NEWS README
+ doman src/dhcpcd.8
+ fi
+}
diff --git a/net-misc/dhcpcd/files/dhcpcd-2.0.8-loglevel.patch b/net-misc/dhcpcd/files/dhcpcd-2.0.8-loglevel.patch
new file mode 100644
index 000000000000..ad6b8f8c2b89
--- /dev/null
+++ b/net-misc/dhcpcd/files/dhcpcd-2.0.8-loglevel.patch
@@ -0,0 +1,12 @@
+Index: src/logger.c
+===================================================================
+--- src/logger.c (revision 69)
++++ src/logger.c (working copy)
+@@ -29,7 +29,8 @@
+ [LOG_WARNING] = "LOG_WARNING",
+ [LOG_NOTICE] = "LOG_NOTICE",
+ [LOG_INFO] = "LOG_INFO",
+- [LOG_DEBUG] = "LOG_DEBUG"
++ [LOG_DEBUG] = "LOG_DEBUG",
++ [LOG_DEBUG+1] = NULL
+ };
diff --git a/net-misc/dhcpcd/files/digest-dhcpcd-2.0.8-r1 b/net-misc/dhcpcd/files/digest-dhcpcd-2.0.8-r1
new file mode 100644
index 000000000000..2177e02191bf
--- /dev/null
+++ b/net-misc/dhcpcd/files/digest-dhcpcd-2.0.8-r1
@@ -0,0 +1,3 @@
+MD5 ec91c33b6d9cb46a42f9564e573fd249 dhcpcd-2.0.8.tar.bz2 125090
+RMD160 719d65e257bea28db58a0ee6a4c200da88e616d2 dhcpcd-2.0.8.tar.bz2 125090
+SHA256 bf7b09f26be60485d888f88f63688d16feeb022cd7954cfc05a912e273757db1 dhcpcd-2.0.8.tar.bz2 125090