3 # - move header file to -devel
6 Summary: DHCP D-BUS daemon (dhcdbd) controls dhclient sessions with D-BUS, stores and presents DHCP options
7 Summary(pl): Demon DHCP D-BUS (dhcdbd) - sterowanie sesjami dhclient przy u¿yciu D-BUS, przechowywanie opcji DHCP
12 Group: Networking/Daemons
13 Source0: http://people.redhat.com/~jvdias/dhcdbd/%{name}-%{version}.tar.gz
14 # Source0-md5: 8534560a93e3f62694fffc04819829d8
16 URL: http://people.redhat.com/~jvdias/dhcdbd/
17 BuildRequires: dbus-devel >= 0.33
18 Requires: dbus >= 0.33
19 Requires: dhcp-client >= 3.0.2
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define _sbindir /sbin
26 DHCP D-BUS daemon (dhcdbd) controls dhclient sessions with D-BUS,
27 stores and presents DHCP options.
30 Demon DHCP D-BUS (dhcdbd) steruje sesjami dhclient przy u¿yciu D-BUS,
31 a tak¿e przechowuje i przedstawia opcje DHCP.
39 CFLAGS="%{rpmcflags}" \
40 LDFLAGS="%{rpmldflags}"
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
47 DESTDIR=$RPM_BUILD_ROOT
49 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dhcdbd
52 rm -rf $RPM_BUILD_ROOT
55 /sbin/chkconfig --add dhcdbd
56 if [ -f /var/lock/subsys/dhcdbd ]; then
57 /etc/rc.d/init.d/dhcdbd restart 1>&2
59 echo "Run \"/etc/rc.d/init.d/dhcdbd start\" to start DHCP D-BUS daemon."
60 echo "You will probably also need \"/etc/rc.d/init.d/messagebus restart\""
61 echo "to reload the *.service database."
65 if [ "$1" = "0" ]; then
66 if [ -f /var/lock/subsys/dhcdbd ]; then
67 /etc/rc.d/init.d/dhcdbd stop 1>&2
69 [ ! -x /sbin/chkconfig ] || /sbin/chkconfig --del dhcdbd
73 %defattr(644,root,root,755)
74 %doc README LICENSE dhcp_options.h dhcdbd.h dbus_service.h
75 %attr(755,root,root) %{_sbindir}/dhcdbd
76 %attr(754,root,root) /etc/rc.d/init.d/dhcdbd
77 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/dhcdbd.conf
78 %{_datadir}/dbus-1/services/dhcdbd.service