Author: glen                         Date: Fri Jan  6 20:50:48 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial

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

---- Diffs:

================================================================
Index: SPECS/netconsole.spec
diff -u /dev/null SPECS/netconsole.spec:1.1
--- /dev/null   Fri Jan  6 21:50:48 2006
+++ SPECS/netconsole.spec       Fri Jan  6 21:50:43 2006
@@ -0,0 +1,52 @@
+# $Revision$, $Date$
+Summary:       initscript to load netkonsole.ko
+Name:          netconsole
+Version:       0.2
+Release:       0.1
+License:       GPL
+Group:         Base
+Source0:       %{name}.init
+Source1:       %{name}.sysconfig
+Requires(post,preun):  /sbin/chkconfig
+Requires:      rc-scripts
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+initscript to load netconsole kernel module.
+
+%prep
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
+
+install %{SOURCE0} $RPM_BUILD_ROOT/etc/rc.d/init.d/netconsole
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/netconsole
+
+%clean
+rm -rf "$RPM_BUILD_ROOT"
+
+%post
+/sbin/chkconfig --add netconsole
+# nothing to restart - no rc-script stop
+
+%preun
+if [ "$1" = "0" ]; then
+       # nothing to stop - no rc-script stop
+       /sbin/chkconfig --del netconsole
+fi
+
+%files
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/netconsole
+%attr(754,root,root) %config /etc/rc.d/init.d/netconsole
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[EMAIL PROTECTED]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/01/06 20:50:43  glen
+- initial
+
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to