dhcpcd: update to 3.0.6
This commit is contained in:
parent
a4dd85ab9e
commit
ad36877e45
@ -1,5 +1,3 @@
|
||||
drwxr-xr-x root/root etc/
|
||||
drwxr-xr-x root/root etc/dhcpc/
|
||||
drwxr-xr-x root/root sbin/
|
||||
-rwxr-xr-x root/root sbin/dhcpcd
|
||||
drwxr-xr-x root/root usr/
|
||||
|
@ -1,2 +1 @@
|
||||
29459aa3d9eac62b2df14b9ecb0d9eb8 dhcpcd-1.3.22-pl4.patch
|
||||
dd627a121e43835bead3ffef5b1a72fd dhcpcd-1.3.22-pl4.tar.gz
|
||||
a71476407efd56cf13df5adf224e1d7f dhcpcd-3.0.6.tar.bz2
|
||||
|
@ -1,17 +1,15 @@
|
||||
# Description: An RFC2131-, RFC2132-, and RFC1541-compliant DHCP client daemon
|
||||
# URL: http://www.phystech.com/download/dhcpcd.html
|
||||
# Description: An RFC2131-compliant DHCP client daemon
|
||||
# URL: http://dhcpcd.berlios.de/
|
||||
# Maintainer: Per Lidén, core-ports at crux dot nu
|
||||
|
||||
name=dhcpcd
|
||||
version=1.3.22-pl4
|
||||
release=2
|
||||
source=(ftp://ftp.phystech.com/pub/$name-$version.tar.gz \
|
||||
$name-$version.patch)
|
||||
version=3.0.6
|
||||
release=1
|
||||
source=(http://download.berlios.de/dhcpcd/$name-$version.tar.bz2)
|
||||
|
||||
build () {
|
||||
cd $name-$version
|
||||
patch -p1 < ../$name-$version.patch
|
||||
./configure --prefix=/
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
install -D -m 755 dhcpcd $PKG/sbin/dhcpcd
|
||||
install -D -m 644 dhcpcd.8 $PKG/usr/man/man8/dhcpcd.8
|
||||
}
|
||||
|
@ -1,53 +0,0 @@
|
||||
diff -ru dhcpcd-1.3.22-pl4/dhcpcd.c dhcpcd-1.3.22-pl4-new/dhcpcd.c
|
||||
--- dhcpcd-1.3.22-pl4/dhcpcd.c 2003-01-01 02:26:32.000000000 +0100
|
||||
+++ dhcpcd-1.3.22-pl4-new/dhcpcd.c 2003-01-12 22:06:34.000000000 +0100
|
||||
@@ -88,7 +88,7 @@
|
||||
{
|
||||
int o;
|
||||
char pidfile[64];
|
||||
- snprintf(pidfile,sizeof(pidfile),PID_FILE_PATH,ConfigDir,IfNameExt);
|
||||
+ snprintf(pidfile,sizeof(pidfile),PID_FILE_PATH,PID_DIR,IfNameExt);
|
||||
o=open(pidfile,O_RDONLY);
|
||||
if ( o == -1 ) return;
|
||||
close(o);
|
||||
diff -ru dhcpcd-1.3.22-pl4/pathnames.h dhcpcd-1.3.22-pl4-new/pathnames.h
|
||||
--- dhcpcd-1.3.22-pl4/pathnames.h 2002-09-29 17:55:31.000000000 +0200
|
||||
+++ dhcpcd-1.3.22-pl4-new/pathnames.h 2003-01-12 22:05:40.000000000 +0100
|
||||
@@ -37,6 +37,7 @@
|
||||
#define NIS_CONF "/etc/config/yp.conf"
|
||||
#define NTP_CONF "/etc/config/ntp.conf"
|
||||
#else
|
||||
+#define PID_DIR "/var/run"
|
||||
#define CONFIG_DIR "/etc/dhcpc"
|
||||
#define RESOLV_CONF "/etc/resolv.conf"
|
||||
#define NIS_CONF "/etc/yp.conf"
|
||||
diff -ru dhcpcd-1.3.22-pl4/signals.c dhcpcd-1.3.22-pl4-new/signals.c
|
||||
--- dhcpcd-1.3.22-pl4/signals.c 2002-01-20 23:51:46.000000000 +0100
|
||||
+++ dhcpcd-1.3.22-pl4-new/signals.c 2003-01-12 22:07:10.000000000 +0100
|
||||
@@ -44,7 +44,7 @@
|
||||
FILE *fp;
|
||||
pid_t pid;
|
||||
char pidfile[64];
|
||||
- snprintf(pidfile,sizeof(pidfile),PID_FILE_PATH,ConfigDir,IfNameExt);
|
||||
+ snprintf(pidfile,sizeof(pidfile),PID_FILE_PATH,PID_DIR,IfNameExt);
|
||||
fp=fopen(pidfile,"r");
|
||||
if ( fp == NULL ) goto ntrn;
|
||||
fscanf(fp,"%u",&pid);
|
||||
@@ -63,7 +63,7 @@
|
||||
{
|
||||
FILE *fp;
|
||||
char pidfile[64];
|
||||
- snprintf(pidfile,sizeof(pidfile),PID_FILE_PATH,ConfigDir,IfNameExt);
|
||||
+ snprintf(pidfile,sizeof(pidfile),PID_FILE_PATH,PID_DIR,IfNameExt);
|
||||
fp=fopen(pidfile,"w");
|
||||
if ( fp == NULL )
|
||||
{
|
||||
@@ -77,7 +77,7 @@
|
||||
void deletePidFile()
|
||||
{
|
||||
char pidfile[64];
|
||||
- snprintf(pidfile,sizeof(pidfile),PID_FILE_PATH,ConfigDir,IfNameExt);
|
||||
+ snprintf(pidfile,sizeof(pidfile),PID_FILE_PATH,PID_DIR,IfNameExt);
|
||||
unlink(pidfile);
|
||||
}
|
||||
/*****************************************************************************/
|
Loading…
Reference in New Issue
Block a user