SPECS: cancd.spec (NEW) - new (based on bundled spec)

glen glen at pld-linux.org
Fri Jan 6 20:59:22 CET 2006


Author: glen                         Date: Fri Jan  6 19:59:22 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new (based on bundled spec)

---- Files affected:
SPECS:
   cancd.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/cancd.spec
diff -u /dev/null SPECS/cancd.spec:1.1
--- /dev/null	Fri Jan  6 20:59:22 2006
+++ SPECS/cancd.spec	Fri Jan  6 20:59:17 2006
@@ -0,0 +1,66 @@
+# $Revision$, $Date$
+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
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/01/06 19:59:17  glen
+- new (based on bundled spec)
+
================================================================


More information about the pld-cvs-commit mailing list