3 # alpha-pld-linux-gcc -Wall -O2 -mieee -DVERSION="\"0.1.0\"" -c -o cancd.o cancd.c
4 # cancd.c: In function `setup_signals':
5 # cancd.c:95: error: structure has no member named `sa_restorer'
6 # make: *** [cancd.o] Error 1
7 Summary: The CA NetConsole Daemon
8 Summary(pl.UTF-8): Demon CA NetConsole
13 Group: Applications/File
14 Source0: http://oss.oracle.com/projects/cancd/dist/files/source/%{name}-%{version}.tar.gz
15 # Source0-md5: 3eb4a75cfa4d1a860ea547fdc76c6d4d
17 Source2: %{name}.sysconfig
18 Patch0: %{name}-make.patch
19 Patch1: %{name}-nullterminate.patch
20 URL: http://oss.oracle.com/projects/cancd/
21 BuildRequires: rpmbuild(macros) >= 1.228
22 Requires(post,preun): /sbin/chkconfig
23 Requires(postun): /usr/sbin/groupdel
24 Requires(postun): /usr/sbin/userdel
25 Requires(pre): /bin/id
26 Requires(pre): /usr/bin/getgid
27 Requires(pre): /usr/sbin/groupadd
28 Requires(pre): /usr/sbin/useradd
29 Requires: /sbin/chkconfig
30 Requires: rc-scripts >= 0.4.0.17
31 Provides: group(cancd)
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 This is the CA NetConsole Daemon, a daemon to receive output from the
38 Linux netconsole driver.
40 %description -l pl.UTF-8
41 To jest demon CA NetConsole - demon odbierający wyjście z linuksowego
42 sterownika netconsole (konsoli sieciowej).
52 OPTFLAGS="%{rpmcflags}"
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig},/var/log/cancd}
58 DESTDIR=$RPM_BUILD_ROOT
60 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/cancd
61 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/cancd
64 rm -rf "$RPM_BUILD_ROOT"
67 %groupadd -g 162 cancd
68 %useradd -u 162 -c "CA NetConsole Daemon" -g cancd cancd
71 /sbin/chkconfig --add cancd
72 %service cancd restart
75 if [ "$1" = "0" ]; then
77 /sbin/chkconfig --del cancd
81 if [ "$1" = "0" ]; then
87 %defattr(644,root,root,755)
88 %attr(755,root,root) %{_sbindir}/cancd
89 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/cancd
90 %attr(754,root,root) /etc/rc.d/init.d/cancd
91 %attr(770,root,cancd) %dir /var/log/cancd