1 Summary: Linux SysRq over network daemon
6 Group: Applications/Networking
7 Source0: http://julien.danjou.info/sysrqd/%{name}-%{version}.tar.xz
8 # Source0-md5: 0d7b17acc32679aba16d19f140e04f39
10 BuildRequires: tar >= 1:1.22
12 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 sysrqd is a small daemon intended to manage Linux SysRq over network.
16 Its philosophy is to be very responsive under heavy load and try to be
17 somehow reliable. Authentication is made by clear password.
28 rm -rf $RPM_BUILD_ROOT
30 DESTDIR=$RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
33 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/sysrqd
35 :> $RPM_BUILD_ROOT%{_sysconfdir}/sysrqd.secret
36 echo 0.0.0.0 > $RPM_BUILD_ROOT%{_sysconfdir}/sysrqd.bind
39 rm -rf $RPM_BUILD_ROOT
42 /sbin/chkconfig --add sysrqd
43 %service sysrqd restart "sysrqd daemon"
46 if [ "$1" = "0" ]; then
48 /sbin/chkconfig --del sysrqd
52 %defattr(644,root,root,755)
53 %doc AUTHORS ChangeLog INSTALL README
54 %attr(755,root,root) %{_sbindir}/sysrqd
55 %attr(754,root,root) /etc/rc.d/init.d/sysrqd
56 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sysrqd.*