summaryrefslogtreecommitdiffstats
path: root/base/dhcpcd
diff options
context:
space:
mode:
Diffstat (limited to 'base/dhcpcd')
-rw-r--r--base/dhcpcd/.footprint29
-rw-r--r--base/dhcpcd/.md5sum2
-rwxr-xr-xbase/dhcpcd/Pkgfile33
-rw-r--r--base/dhcpcd/dhcpcd12
-rw-r--r--base/dhcpcd/dhcpcd.patch11
5 files changed, 87 insertions, 0 deletions
diff --git a/base/dhcpcd/.footprint b/base/dhcpcd/.footprint
new file mode 100644
index 000000000..84f8dc34b
--- /dev/null
+++ b/base/dhcpcd/.footprint
@@ -0,0 +1,29 @@
+drwxr-xr-x root/root etc/
+-rw-r--r-- root/root etc/dhcpcd.conf
+drwxr-xr-x root/root etc/sysconfig/
+drwxr-xr-x root/root etc/sysconfig/network-devices/
+drwxr-xr-x root/root etc/sysconfig/network-devices/ifconfig.eth0/
+-rw-r--r-- root/root etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd
+drwxr-xr-x root/root etc/sysconfig/network-devices/services/
+-rwxr-xr-- root/root etc/sysconfig/network-devices/services/dhcpcd
+drwxr-xr-x root/root sbin/
+-rwxr-xr-x root/root sbin/dhcpcd
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/lib/dhcpcd/
+drwxr-xr-x root/root usr/lib/dhcpcd/dhcpcd-hooks/
+-rw-r--r-- root/root usr/lib/dhcpcd/dhcpcd-hooks/01-test
+-rw-r--r-- root/root usr/lib/dhcpcd/dhcpcd-hooks/10-mtu
+-rw-r--r-- root/root usr/lib/dhcpcd/dhcpcd-hooks/20-resolv.conf
+-rw-r--r-- root/root usr/lib/dhcpcd/dhcpcd-hooks/29-lookup-hostname
+-rw-r--r-- root/root usr/lib/dhcpcd/dhcpcd-hooks/30-hostname
+-rwxr-xr-x root/root usr/lib/dhcpcd/dhcpcd-run-hooks
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man5/
+-r--r--r-- root/root usr/man/man5/dhcpcd.conf.5.gz
+drwxr-xr-x root/root usr/man/man8/
+-r--r--r-- root/root usr/man/man8/dhcpcd-run-hooks.8.gz
+-r--r--r-- root/root usr/man/man8/dhcpcd.8.gz
+drwxr-xr-x root/root var/
+drwxr-xr-x root/root var/lib/
+drwxr-xr-x root/root var/lib/dhcpcd/
diff --git a/base/dhcpcd/.md5sum b/base/dhcpcd/.md5sum
new file mode 100644
index 000000000..e1f2c7cbe
--- /dev/null
+++ b/base/dhcpcd/.md5sum
@@ -0,0 +1,2 @@
+e47afe62907b4b36997fa2634b22a541 dhcpcd
+600716ddbfa2525a7ef7ae0968a8158a dhcpcd-5.0.6.tar.bz2
diff --git a/base/dhcpcd/Pkgfile b/base/dhcpcd/Pkgfile
new file mode 100755
index 000000000..aa7182c6d
--- /dev/null
+++ b/base/dhcpcd/Pkgfile
@@ -0,0 +1,33 @@
+# Description: Client dhcp pour obtenir une adresse dynamiquement
+# URL: http://roy.marples.name/projects/dhcpcd
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: more
+
+name=dhcpcd
+version=5.0.6
+release=1
+source=( http://roy.marples.name/downloads/$name/$name-$version.tar.bz2\
+ dhcpcd \
+ )
+
+build() {
+ source /etc/blfs-bootscripts
+ wget http://www.linuxfromscratch.org/blfs/downloads/svn/${scripts}-${scriptsversion}.tar.bz2
+ tar xvf $scripts-$scriptsversion.tar.bz2
+ cd $name-$version
+ export PREFIX=/usr
+ sed -i 's/${PREFIX}\/etc/\/etc/' Makefile
+ sed -i 's/\/db/\/lib\/dhcpcd/' Makefile
+ sed -i 's/\/libexec/\/lib\/dhcpcd/' Makefile
+ sed -i 's/\/libexec/\/lib\/dhcpcd/' dhcpcd-hooks/Makefile
+ sed -i 's/${PREFIX}\/sbin/\/sbin/' Makefile
+
+ make
+ make DESTDIR=$PKG install
+ mkdir -p $PKG/etc/sysconfig/network-devices/ifconfig.eth0
+ mv ../dhcpcd $PKG/etc/sysconfig/network-devices/ifconfig.eth0/
+ cd ../$scripts-$scriptsversion
+ make DESTDIR=$PKG install-service-dhcpcd
+ cd ../..
+}
diff --git a/base/dhcpcd/dhcpcd b/base/dhcpcd/dhcpcd
new file mode 100644
index 000000000..59c99e172
--- /dev/null
+++ b/base/dhcpcd/dhcpcd
@@ -0,0 +1,12 @@
+ONBOOT="yes"
+SERVICE="dhcpcd"
+DHCP_START=""
+DHCP_STOP="-k "
+
+# Set PRINTIP="yes" to have the script print
+# the DHCP assigned IP address
+PRINTIP="no"
+
+# Set PRINTALL="yes" to print the DHCP assigned values for
+# IP, SM, DG, and 1st NS. This requires PRINTIP="yes".
+PRINTALL="no"
diff --git a/base/dhcpcd/dhcpcd.patch b/base/dhcpcd/dhcpcd.patch
new file mode 100644
index 000000000..754319b6d
--- /dev/null
+++ b/base/dhcpcd/dhcpcd.patch
@@ -0,0 +1,11 @@
+--- pkg/etc/sysconfig/network-devices/services/dhcpcd~ 2009-02-26 16:46:40.000000000 +0000
++++ pkg/etc/sysconfig/network-devices/services/dhcpcd 2009-02-26 16:46:12.000000000 +0000
+@@ -31,7 +31,7 @@
+ exit 2
+ fi
+ fi
+- /sbin/dhcpcd $1 $DHCP_START
++ /sbin/dhcpcd $1 $DHCP_START &
+ # Save the return value
+ RET="$?"
+ # Print the assigned settings if requested