1 Summary: The CA NetConsole Daemon
2 Summary(pl): Demon CA NetConsole
7 Group: Applications/File
8 Source0: http://oss.oracle.com/projects/cancd/dist/files/source/%{name}-%{version}.tar.gz
9 # Source0-md5: 3eb4a75cfa4d1a860ea547fdc76c6d4d
11 Source2: %{name}.sysconfig
12 Patch0: %{name}-make.patch
13 URL: http://oss.oracle.com/projects/cancd/
14 BuildRequires: rpmbuild(macros) >= 1.228
15 Requires(post,preun): /sbin/chkconfig
16 Requires(postun): /usr/sbin/groupdel
17 Requires(postun): /usr/sbin/userdel
18 Requires(pre): /bin/id
19 Requires(pre): /usr/bin/getgid
20 Requires(pre): /usr/sbin/groupadd
21 Requires(pre): /usr/sbin/useradd
22 Requires: /sbin/chkconfig
23 Requires: rc-scripts >= 0.4.0.17
24 Provides: group(cancd)
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 This is the CA NetConsole Daemon, a daemon to receive output from the
30 Linux netconsole driver.
33 To jest demon CA NetConsole - demon odbieraj±cy wyj¶cie z linuksowego
34 sterownika netconsole (konsoli sieciowej).
43 OPTFLAGS="%{rpmcflags}"
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig},/var/log/cancd}
49 DESTDIR=$RPM_BUILD_ROOT
51 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/cancd
52 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/cancd
55 rm -rf "$RPM_BUILD_ROOT"
58 %groupadd -g 162 cancd
59 %useradd -u 162 -c "CA NetConsole Daemon" -g cancd cancd
62 /sbin/chkconfig --add cancd
63 %service cancd restart
66 if [ "$1" = "0" ]; then
68 /sbin/chkconfig --del cancd
72 if [ "$1" = "0" ]; then
78 %defattr(644,root,root,755)
79 %attr(755,root,root) %{_sbindir}/cancd
80 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/cancd
81 %attr(754,root,root) /etc/rc.d/init.d/cancd
82 %attr(770,root,cancd) %dir /var/log/cancd