]> git.pld-linux.org Git - packages/cancd.git/commitdiff
- new (based on bundled spec)
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 6 Jan 2006 19:59:17 +0000 (19:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cancd.spec -> 1.1

cancd.spec [new file with mode: 0644]

diff --git a/cancd.spec b/cancd.spec
new file mode 100644 (file)
index 0000000..17e0809
--- /dev/null
@@ -0,0 +1,55 @@
+Summary:       The CA NetConsole Daemon
+Name:          cancd
+Version:       0.1.0
+Release:       0.1
+License:       GPL
+Group:         Applications/File
+Source0:       http://oss.oracle.com/projects/cancd/dist/files/source/%{name}-%{version}.tar.gz
+# Source0-md5: 3eb4a75cfa4d1a860ea547fdc76c6d4d
+Patch0:                %{name}-make.patch
+URL:           http://oss.oracle.com/projects/cancd/
+BuildRequires: rpmbuild(macros) >= 1.228
+Requires(post,preun):  /sbin/chkconfig
+Requires:      /sbin/chkconfig
+Requires:      rc-scripts
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is the CA NetConsole Daemon, a daemon to receive output from the
+Linux netconsole driver.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__make} \
+       CC="%{__cc}" \
+       OPTFLAGS="%{rpmcflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+> $RPM_BUILD_ROOT/etc/sysconfig/cancd
+
+%clean
+rm -rf "$RPM_BUILD_ROOT"
+
+%post
+/sbin/chkconfig --add cancd
+%service cancd restart
+
+%preun
+if [ "$1" = "0" ]; then
+       %service cancd stop
+       /sbin/chkconfig --del cancd
+fi
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/cancd
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/cancd
+%attr(754,root,root) %config /etc/rc.d/init.d/cancd
This page took 0.052714 seconds and 4 git commands to generate.