1 Summary: The CA NetConsole Daemon
6 Group: Applications/File
7 Source0: http://oss.oracle.com/projects/cancd/dist/files/source/%{name}-%{version}.tar.gz
8 # Source0-md5: 3eb4a75cfa4d1a860ea547fdc76c6d4d
9 Patch0: %{name}-make.patch
10 URL: http://oss.oracle.com/projects/cancd/
11 BuildRequires: rpmbuild(macros) >= 1.228
12 Requires(post,preun): /sbin/chkconfig
13 Requires: /sbin/chkconfig
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 This is the CA NetConsole Daemon, a daemon to receive output from the
19 Linux netconsole driver.
28 OPTFLAGS="%{rpmcflags}"
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
34 DESTDIR=$RPM_BUILD_ROOT
36 > $RPM_BUILD_ROOT/etc/sysconfig/cancd
39 rm -rf "$RPM_BUILD_ROOT"
42 /sbin/chkconfig --add cancd
43 %service cancd restart
46 if [ "$1" = "0" ]; then
48 /sbin/chkconfig --del cancd
52 %defattr(644,root,root,755)
53 %attr(755,root,root) %{_sbindir}/cancd
54 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/cancd
55 %attr(754,root,root) %config /etc/rc.d/init.d/cancd