summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <uberlord@gentoo.org>2005-07-28 11:40:09 +0000
committerRoy Marples <uberlord@gentoo.org>2005-07-28 11:40:09 +0000
commit813d5e59ed55f6cc280871c546972d64eb1b7152 (patch)
tree3c2d2fcdfed86af0f3012544e9ae3754a012e5dd /net-misc/dhcpcd
parentmask kde 3.4.2 ebuilds - a WIP (diff)
downloadgentoo-2-813d5e59ed55f6cc280871c546972d64eb1b7152.tar.gz
gentoo-2-813d5e59ed55f6cc280871c546972d64eb1b7152.tar.bz2
gentoo-2-813d5e59ed55f6cc280871c546972d64eb1b7152.zip
New upstream version.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'net-misc/dhcpcd')
-rw-r--r--net-misc/dhcpcd/ChangeLog8
-rw-r--r--net-misc/dhcpcd/Manifest24
-rw-r--r--net-misc/dhcpcd/dhcpcd-2.0.0.ebuild46
-rw-r--r--net-misc/dhcpcd/files/dhcpcd-2.0.0-gcc2.patch84
-rw-r--r--net-misc/dhcpcd/files/digest-dhcpcd-2.0.01
5 files changed, 146 insertions, 17 deletions
diff --git a/net-misc/dhcpcd/ChangeLog b/net-misc/dhcpcd/ChangeLog
index 0e8d8269ca2c..fb29fd8d2a1a 100644
--- a/net-misc/dhcpcd/ChangeLog
+++ b/net-misc/dhcpcd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-misc/dhcpcd
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v 1.53 2005/07/24 10:53:28 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/ChangeLog,v 1.54 2005/07/28 11:40:09 uberlord Exp $
+
+*dhcpcd-2.0.0 (28 Jul 2005)
+
+ 28 Jul 2005; Roy Marples <uberlord@gentoo.org>
+ +files/dhcpcd-2.0.0-gcc2.patch, +dhcpcd-2.0.0.ebuild:
+ New upstream version.
24 Jul 2005; Martin Schlemmer <azarah@gentoo.org>
+files/dhcpcd-1.3.22_p4-gcc2.patch, dhcpcd-1.3.22_p4-r12.ebuild:
diff --git a/net-misc/dhcpcd/Manifest b/net-misc/dhcpcd/Manifest
index 037467dd4277..79772556798c 100644
--- a/net-misc/dhcpcd/Manifest
+++ b/net-misc/dhcpcd/Manifest
@@ -1,25 +1,17 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
MD5 6fbbdb8a3dfb1d323229fdd21cbbcb23 dhcpcd-1.3.22_p4-r5.ebuild 1944
+MD5 18f2cf7b5bdae2f48702c0a8f37228f6 dhcpcd-2.0.0.ebuild 937
MD5 fdd16eb07a7e7971f0340ac3c9a81269 dhcpcd-1.3.22_p4-r12.ebuild 2908
-MD5 b1103dd25a7cfdc577b6722ddcd0e7da dhcpcd-1.3.22_p4-r11.ebuild 2031
MD5 14b8ca8226759c7441671b35489ee9d1 ChangeLog 8985
MD5 6fe58567b648100d4ff11902921b6889 metadata.xml 165
-MD5 daaf0c8fa44a481c8943f585ff870714 files/digest-dhcpcd-1.3.22_p4-r5 224
+MD5 b1103dd25a7cfdc577b6722ddcd0e7da dhcpcd-1.3.22_p4-r11.ebuild 2031
MD5 daaf0c8fa44a481c8943f585ff870714 files/digest-dhcpcd-1.3.22_p4-r11 224
-MD5 be85439617940623ae04f72797bbf3e4 files/dhcpcd-1.3.22_p4-gentoo-config.patch 11908
-MD5 daaf0c8fa44a481c8943f585ff870714 files/digest-dhcpcd-1.3.22_p4-r12 224
+MD5 daaf0c8fa44a481c8943f585ff870714 files/digest-dhcpcd-1.3.22_p4-r5 224
+MD5 99fde5f8cec79a35c728c798f6352e4f files/dhcpcd-1.3.22_p4-gcc2.patch 2929
MD5 e0bb9c921a368634a1e4f77c975c4726 files/dhcpcd-1.3.22_p4-security.patch 340
-MD5 ad580fb02fc1fa72a24fb3c952491bce files/dhcpcd-1.3.22_p4-routemetric.patch 4652
+MD5 fe6d79bf7b6253ca5a55ce4692064518 files/digest-dhcpcd-2.0.0 65
MD5 34b2bd2c58141701c8ba5279c6669e0c files/dhcpcd-1.3.22_p4-optionFQDN.patch 17381
MD5 f62309143521db696e2229fd34a43fed files/dhcpcd-1.3.22_p4-man.patch 243
-MD5 99fde5f8cec79a35c728c798f6352e4f files/dhcpcd-1.3.22_p4-gcc2.patch 2929
+MD5 be85439617940623ae04f72797bbf3e4 files/dhcpcd-1.3.22_p4-gentoo-config.patch 11908
MD5 e5580d4472c718a772f6e1c700757968 files/dhcpcd-1.3.22_p4-no-iface-down.diff 2606
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.1 (GNU/Linux)
-
-iD8DBQFC43PZ1ZcsMnZjRyIRAllhAJwIuLP9WoAzGqlxwRaS2QkgUPFo3QCfTZjZ
-6/TiJ7tAlLGRBHu5GNt1oHc=
-=jcpE
------END PGP SIGNATURE-----
+MD5 daaf0c8fa44a481c8943f585ff870714 files/digest-dhcpcd-1.3.22_p4-r12 224
+MD5 ad580fb02fc1fa72a24fb3c952491bce files/dhcpcd-1.3.22_p4-routemetric.patch 4652
diff --git a/net-misc/dhcpcd/dhcpcd-2.0.0.ebuild b/net-misc/dhcpcd/dhcpcd-2.0.0.ebuild
new file mode 100644
index 000000000000..917e22372563
--- /dev/null
+++ b/net-misc/dhcpcd/dhcpcd-2.0.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd/dhcpcd-2.0.0.ebuild,v 1.1 2005/07/28 11:40:09 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="~amd64 ~x86"
+IUSE="build debug static"
+
+DEPEND=""
+PROVIDE="virtual/dhcpc"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Fix compiling on gcc2
+ epatch "${FILESDIR}/${P}-gcc2.patch"
+
+ # Redefine the location of ntp.drift
+ sed -i 's:/etc/ntp\.drift:/var/lib/ntp/ntp.drift:' src/dhcpconfig.c
+}
+
+src_compile() {
+ local myconf="$( use_enable debug )"
+ use static && append-flags -static
+
+ econf ${myconf} || 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.0-gcc2.patch b/net-misc/dhcpcd/files/dhcpcd-2.0.0-gcc2.patch
new file mode 100644
index 000000000000..5b0744127e0c
--- /dev/null
+++ b/net-misc/dhcpcd/files/dhcpcd-2.0.0-gcc2.patch
@@ -0,0 +1,84 @@
+--- src/dhcpconfig.c 2005-07-24 12:51:33 +0200
++++ src/dhcpconfig.c 2005-07-24 12:53:34 +0200
+@@ -382,8 +382,8 @@
+ f=fopen(resolv_file, "w");
+ if ( f )
+ {
+- fprintf(f, "# Generated by dhcpcd for interface %s\n", IfName);
+ int i;
++ fprintf(f, "# Generated by dhcpcd for interface %s\n", IfName);
+ if ( DhcpOptions.len[dnsSearchPath] )
+ fprintf(f,"search %s\n",(char *)DhcpOptions.val[dnsSearchPath]);
+
+@@ -413,9 +413,9 @@
+ f=fopen(nis_file, "w");
+ if ( f )
+ {
+- fprintf(f, "# Generated by dhcpcd for interface %s\n", IfName);
+ int i;
+ char *prefix=NULL;
++ fprintf(f, "# Generated by dhcpcd for interface %s\n", IfName);
+ if ( DhcpOptions.len[nisDomainName] ) {
+ if ( DhcpOptions.len[nisServers] ) {
+ prefix=(char *)malloc(DhcpOptions.len[nisDomainName] + 15);
+@@ -447,8 +447,10 @@
+ f=fopen(ntp_file, "w");
+ if ( f )
+ {
+- fprintf(f, "# Generated by dhcpcd for interface %s\n", IfName);
+ int net, mask;
++ int i;
++ char addr[4*3+3*1+1];
++ fprintf(f, "# Generated by dhcpcd for interface %s\n", IfName);
+ memcpy(&mask,DhcpOptions.val[subnetMask],4);
+ net = DhcpIface.ciaddr & mask;
+
+@@ -456,17 +458,15 @@
+ fprintf(f,"restrict default noquery notrust nomodify\n");
+ fprintf(f,"restrict 127.0.0.1\n");
+
+- int i;
+- char addr[4*3+3*1+1];
+- for (i=0;i<DhcpOptions.len[ntpServers];i+=4)
+- {
+- snprintf(addr,sizeof(addr),"%u.%u.%u.%u",
+- ((unsigned char *)DhcpOptions.val[ntpServers])[i],
+- ((unsigned char *)DhcpOptions.val[ntpServers])[i+1],
+- ((unsigned char *)DhcpOptions.val[ntpServers])[i+2],
+- ((unsigned char *)DhcpOptions.val[ntpServers])[i+3]);
+- fprintf(f,"restrict %s nomodify notrap noquery\nserver %s\n",addr,addr);
+- }
++ for (i=0;i<DhcpOptions.len[ntpServers];i+=4)
++ {
++ snprintf(addr,sizeof(addr),"%u.%u.%u.%u",
++ ((unsigned char *)DhcpOptions.val[ntpServers])[i],
++ ((unsigned char *)DhcpOptions.val[ntpServers])[i+1],
++ ((unsigned char *)DhcpOptions.val[ntpServers])[i+2],
++ ((unsigned char *)DhcpOptions.val[ntpServers])[i+3]);
++ fprintf(f,"restrict %s nomodify notrap noquery\nserver %s\n",addr,addr);
++ }
+
+ fprintf(f, "driftfile /var/lib/ntp/ntp.drift\n");
+ fprintf(f, "logfile /var/log/ntp.log\n");
+--- src/dhcpcd.c 2005-07-24 12:53:57 +0200
++++ src/dhcpcd.c 2005-07-24 12:55:42 +0200
+@@ -146,6 +146,8 @@
+ if ( argc[i][0]=='-' )
+ prgs: switch ( argc[i][s] )
+ {
++ char *tmp;
++ long m;
+ case 0:
+ i++;
+ s=1;
+@@ -158,9 +160,8 @@
+ if ( argc[i][s+1] ) goto usage;
+ i++;
+ if ( ! argc[i] ) goto usage;
+- char *tmp;
+ errno = 0;
+- long m=strtol(argc[i], &tmp, 0);
++ m=strtol(argc[i], &tmp, 0);
+ if (argc[i][0] == '\0' || *tmp != '\0' ) goto usage;
+ if ((errno == ERANGE &&
+ (m == LONG_MAX || m == LONG_MIN )) ||
diff --git a/net-misc/dhcpcd/files/digest-dhcpcd-2.0.0 b/net-misc/dhcpcd/files/digest-dhcpcd-2.0.0
new file mode 100644
index 000000000000..3857d6282ed1
--- /dev/null
+++ b/net-misc/dhcpcd/files/digest-dhcpcd-2.0.0
@@ -0,0 +1 @@
+MD5 b84d34a44b6667ea012e0aad4f9d71bd dhcpcd-2.0.0.tar.bz2 122497