]> git.pld-linux.org Git - packages/dhcpcd.git/blobdiff - dhcpcd.spec
- up to 5.1.0
[packages/dhcpcd.git] / dhcpcd.spec
index 4d9f4b400e8a710822efc1f2594d93c4e152d684..915b8a43d145c4f2c3c3809739d205d5e15d2205 100644 (file)
@@ -6,15 +6,13 @@ Summary(pl.UTF-8):    Klient (daemon) DHCP
 Summary(pt_BR.UTF-8):  Servidor DHCPC
 Summary(tr.UTF-8):     DHCPC sunucu süreçi (daemon)
 Name:          dhcpcd
-Version:       3.1.8
-Release:       3
-License:       GPL v2
+Version:       5.1.0
+Release:       1
+License:       BSD
 Group:         Networking/Daemons
-#Source0Download: http://developer.berlios.de/project/filelist.php?group_id=4229
-Source0:       http://download.berlios.de/dhcpcd/%{name}-%{version}.tar.bz2
-# Source0-md5: 6332c695e28100acbb84730e7ff7f6e9
-Patch0:                %{name}-ntp-path.patch
-URL:           http://developer.berlios.de/projects/dhcpcd/
+Source0:       http://roy.marples.name/downloads/dhcpcd/%{name}-%{version}.tar.bz2
+# Source0-md5: beb430d11f982881ce3d824643467490
+URL:           http://roy.marples.name/dhcpcd
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _sbindir        /sbin
@@ -87,15 +85,17 @@ kira zamanını (lease time) yenilemeye çalışır.
 
 %prep
 %setup -q
-%patch0 -p1
 
 %build
+%configure
 %{__make} \
        CC="%{__cc}" \
        CFLAGS="%{rpmcflags}" \
        LDFLAGS="%{rpmcflags} %{rpmldflags}" \
-       mandir=%{_mandir} \
-       sbindir=%{_sbindir}
+       mandir="%{_mandir}" \
+       SBINDIR="%{_sbindir}" \
+       LIBEXECDIR="%{_libdir}/%{name}" \
+       DBDIR="/var/lib/dhcpcd"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -103,19 +103,24 @@ install -d $RPM_BUILD_ROOT{%{_sysconfdir},/var/lib/dhcpcd}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT \
-       mandir=%{_mandir} \
-       sbindir=%{_sbindir}
+       mandir="%{_mandir}" \
+       SBINDIR="%{_sbindir}" \
+       LIBEXECDIR="%{_libdir}/%{name}" \
+       DBDIR="/var/lib/dhcpcd"
 
-# do not put executable bit here when installing
-cp -a dhcpcd.sh $RPM_BUILD_ROOT%{_sysconfdir}/dhcpcd.sh
+touch $RPM_BUILD_ROOT%{_sysconfdir}/dhcpcd.{enter-hook,exit-hook}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog
-%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dhcpcd.sh
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf
+%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*-hook
 %attr(755,root,root) %{_sbindir}/dhcpcd
+%dir %{_libdir}/%{name}
+%dir %{_libdir}/%{name}/dhcpcd-hooks
+%attr(755,root,root) %{_libdir}/%{name}/dhcpcd-hooks/*
+%attr(755,root,root) %{_libdir}/%{name}/dhcpcd-run-hooks
 %dir %{_var}/lib/dhcpcd
-%{_mandir}/man8/dhcpcd.8*
+%{_mandir}/man[58]/dhcpcd*.[58]*
This page took 0.036973 seconds and 4 git commands to generate.