Summary: Automatically disable system default route on a specific date Name: system-autodeath Version: 0.2 Release: 1%{?dist} License: GPLv2+ Group: System Environment/Base Source: http://skvidal.fedorapeople.org/%{name}/%{name}-%{version}.tar.gz #Source1: system-autodeath.conf URL: http://skvidal.fedorapeople.org/%{name}/ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildArchitectures: noarch Requires: /etc/cron.daily Requires: vixie-cron, util-linux-ng, bc, iproute %description system-autodeath is a cron job that runs daily, checking the current time versus a configured death date for the machine. Within one week of this date the system will emit log notices to syslog.alert notifying that the system will remove its default network route on a specific date. On the date the system will have its default route deleted. It will continue to do this every day until someone does something about it. %prep %setup -q %build %install rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install # install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/system-autodeath.conf %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %doc README COPYING %{_sysconfdir}/cron.daily/system-autodeath.sh %config %{_sysconfdir}/sysconfig/system-autodeath.conf %{_mandir}/man8/system-autodeath.* %changelog * Mon Nov 3 2008 Seth Vidal - update description - add conf file as alternative source * Thu Oct 30 2008 Seth Vidal - more fedora-ization - frelling changelog version numbers can sod off :) * Thu Oct 30 2008 Seth Vidal - fedoraize spec file - bump to 2 * Thu Sep 18 2008 Seth Vidal - First spec file for system-autodeath