Author: tommat Date: Thu Jul 27 11:09:47 2006 GMT Module: SPECS Tag: HEAD ---- Log message: - version 0.7 - added init script and sysconf file
---- Files affected: SPECS: dhcp-helper.spec (1.2 -> 1.3) ---- Diffs: ================================================================ Index: SPECS/dhcp-helper.spec diff -u SPECS/dhcp-helper.spec:1.2 SPECS/dhcp-helper.spec:1.3 --- SPECS/dhcp-helper.spec:1.2 Mon Dec 20 13:46:30 2004 +++ SPECS/dhcp-helper.spec Thu Jul 27 13:09:42 2006 @@ -2,13 +2,18 @@ Summary: simple, straightforward DHCP relay agent Summary(pl): prosty, nieskomplikowany DHCP relay Name: dhcp-helper -Version: 0.2 +Version: 0.7 Release: 1 License: GPL Group: Networking/Daemons Source0: http://thekelleys.org.uk/dhcp-helper/%{name}-%{version}.tar.gz -# Source0-md5: 2ad69a3388b0750c66cc9da212397a90 +# Source0-md5: 840636145f4b15b92cdca4ad1d6810e9 +Source1: %{name}.init +Source2: %{name}.sysconfig URL: http://thekelleys.org.uk/dhcp-helper/ +BuildRequires: rpmbuild(macros) >= 1.268 +Requires(post,preun): /sbin/chkconfig +Requires: rc-scripts >= 0.2.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -28,19 +33,34 @@ %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_sysconfdir}/{rc.d/init.d,sysconfig} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT \ BINDIR="%{_sbindir}" \ MANDIR="%{_mandir}" +install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name} +install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name} + %clean rm -rf $RPM_BUILD_ROOT +%post +/sbin/chkconfig --add dhcp-helper +%service dhcp-helper restart "dhcp-helper daemon" + +%preun +if [ "$1" = "0" ];then + %service dhcp-helper stop + /sbin/chkconfig --del dhcp-helper +fi + %files %defattr(644,root,root,755) %doc README +%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/dhcp-helper +%attr(754,root,root) /etc/rc.d/init.d/dhcp-helper %attr(755,root,root) %{_sbindir}/* %{_mandir}/man*/* @@ -50,6 +70,10 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.3 2006/07/27 11:09:42 tommat +- version 0.7 +- added init script and sysconf file + Revision 1.2 2004/12/20 12:46:30 zagrodzki - updated md5, added URL ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/dhcp-helper.spec?r1=1.2&r2=1.3&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
