Bug 469189 - Review Request: system-autodeath - Automatically disable system default route on a specific date.
Summary: Review Request: system-autodeath - Automatically disable system default rout...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Lauridsen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-10-30 14:35 UTC by seth vidal
Modified: 2013-07-29 01:57 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-20 20:43:07 UTC
Type: ---
Embargoed:
tim.lauridsen: fedora-review+
kevin: fedora-cvs+


Attachments (Terms of Use)

Description seth vidal 2008-10-30 14:35:51 UTC
Spec URL: http://skvidal.fedorapeople.org/system-autodeath/system-autodeath.spec
SRPM URL: http://skvidal.fedorapeople.org/system-autodeath/system-autodeath-0.2-0.src.rpm
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 with autodie on a specific date. On the date the system
will have its default route deleted. It will continue to do this
everyday until someone does something about it.

Comment 1 Tim Lauridsen 2008-10-30 15:34:43 UTC
i will review this one

Comment 2 Tim Lauridsen 2008-10-30 15:49:44 UTC
Preliminary stuff:

rpmlint system-autodeath-0.2-0.src.rpm 
system-autodeath.src: W: no-%build-section
system-autodeath.src: W: summary-ended-with-dot Automatically disable system default route on a specific date.
system-autodeath.src: W: no-version-in-last-changelog
system-autodeath.src: W: strange-permission system-autodeath.spec 0600
1 packages and 0 specfiles checked; 0 errors, 4 warnings.

* Add an empty %build section
* remove ending '.' in summary
* all changlog entries need to be in same format (with / without version)

Comment 3 seth vidal 2008-10-30 16:04:54 UTC
Uploaded a new spec, same location.
Uploaded a new srpm.

Not putting the frelling changelog versions on so that one can go hang itself :)

Comment 4 Tim Lauridsen 2008-10-31 12:35:38 UTC
# rpmlint Download/system-autodeath-0.2-1.src.rpm 
system-autodeath.src: W: no-version-in-last-changelog
system-autodeath.src: W: strange-permission system-autodeath.spec 0600
1 packages and 0 specfiles checked; 0 errors, 2 warnings.

These should be OK.

# rpmlint ~/rpmbuild/RPMS/noarch/system-autodeath-0.2-1.noarch.rpm 
system-autodeath.noarch: W: non-conffile-in-etc /etc/sysconfig/system-autodeath.conf
system-autodeath.noarch: W: no-version-in-last-changelog

/etc/sysconfig/system-autodeath.conf should be a config file in the %files section

(. not checked, * = ok, X = not OK)

MUST:
* Package is matching naming guidelines.
* spec file in named %{name}.spec 
* it is legal for Fedora to distribute this
* license field matches the actual license.
* license is open source-compatible have the right good license shortname : GPLv2+
* License file must be in %doc (it it exists)
* Spec file is written in American English
* Spec file is legible.
* Sources match upstream.
  MD5SUM:
	ea889c8a377cac44361576f6112f2868  /home/tim/rpmbuild/SOURCES/system-autodeath-0.2.tar.gz
	ea889c8a377cac44361576f6112f2868  /home/tim/Download/system-autodeath-0.2.tar.gz


* summary and description fine
* correct buildroot
X %{?dist} is used
* license text included in package and marked with %doc
* package meets FHS (http://www.pathname.com/fhs/)
* changelog format fine 
* Packager/Vendor/Distribution/Copyright tags not used
* Summary tag does not end in a period
* Package compiles and build into RPM's on : i386 etc.
* no Exclude Arch 
* BuildRequires for all build requerements (- the ones on the Exception list)
* no locales
* no shared libs 
* Package own all created directories.
* No duplicate files in %files 
* Every %files section includes a %defattr(...) line
* Package has a %clean with a rm -rf %{buildroot} or $RPM_BUILD_ROOT
* consistently use of macros
* Package contains code or or permissable content.
* No large documentation
* files in %doc dont affect runtime.
* no header files
* no static libs
* package has no pkgconfig (.pc) files 
* no -devel subpackage 
* no ..la libtool archives
* not a gui application 
* package don't own files and dirs owned by other packages.
* %install starts with an rm -rf %{buildroot} 
* rpm package filenames is in valid UTF-8.
* no Rpath 
* no config files
* no %makeinstall used
* no Requires(pre,post)

Problems.
  %{?dist} is missing from release tag.
  /etc/sysconfig/system-autodeath.conf should be a config file in the %files section

Comment 5 Matthew Miller 2008-11-03 16:26:37 UTC
Tim's package review comments look correct to me. I have a few concerns which basically amount to documentation and features.

Documentation: The descriptive paragraph duplicated in the spec file, README, and man page has a typo: "notifying that the system with autodie on a specific date" should be "will autodie". (Although I'd actually like to see the word "autodie" replaced with "remove itself from the network" -- no need to go out of our way to scare people.) Also, "everyday" should be "every day".

There should also be a descriptive comment (maybe the same paragraph yet again?) in system-autodeath.conf explaining what's okay there. And, it'd be nice if there were some off values like "disabled" that could be used.

I'm also a little concerned about the default date 2009-12-01 in the current config file. I think it should either be more conservative by default or based on the Fedora release the package is built for. At the current rate, Fedora 10 is likely to be maintained for a month or two beyond Dec 2009. So, something like: Fedora 8: 2009-02-25; Fedora 9: 2009-08-25; Fedora 10: 2010-02-25; etc. This would require a little vigilance from the package maintainer as schedules change, but would make the package useful out of the box.

Alternately, one crazy idea would be to make the default be based on the file date of /etc/fedora-release (at package build time) + 18 months. I know you'll hate that but throwing it out there. :)

Failing that, the default should be something like "package build time + 4 years". The last thing we want is this thing going off by accident on a supported system.

Comment 6 seth vidal 2008-11-03 16:57:28 UTC
Fixed the typos and changed 'autodie' phrase. New description is:

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.

With regard to the timing:

1. I'll make it a separate source in the config so it is easy to change
2. this pkg will not be installed by default so it's not a risk to anyone
3. basing the date on other values is a bad plan - since we've had to replace fedora-release in the last 2 releases (f8 and f9) and we're not changing the EOL for them b/c of the fedora-release rebuild.
4. I'll bump it to 2010-01-15.

Comment 7 Tim Lauridsen 2009-01-06 10:08:13 UTC
Hi Seth, any comments for this ones.

Problems.
  %{?dist} is missing from release tag.
  /etc/sysconfig/system-autodeath.conf should be a config file in the %files
section

Comment 8 seth vidal 2009-01-06 14:31:25 UTC
OKay fixed both and updated the spec file in the original location.

Comment 9 Tim Lauridsen 2009-01-07 08:45:44 UTC
I must be blind :), cant see any changes at
http://skvidal.fedorapeople.org/system-autodeath/system-autodeath.spec

Comment 10 seth vidal 2009-01-07 12:23:24 UTC
You can't see the %{?dist} and %config?

Comment 11 Tim Lauridsen 2009-01-07 13:59:19 UTC
No.

<snip>
Name: system-autodeath
Version: 0.2
Release: 1
</snip>

<snip>
%files
%defattr(-, root, root)
%doc README COPYING
%{_sysconfdir}/cron.daily/system-autodeath.sh
%{_sysconfdir}/sysconfig/system-autodeath.conf
%{_mandir}/man8/system-autodeath.*

%changelog
</snip>

Comment 12 seth vidal 2009-01-07 14:06:48 UTC
okay, I think something is very wrong here. I can definitely see it.

Can you download the file using wget and tell me if you see it there?

Maybe some sort of weird browser caching? Either that or you're behind a very laggy transparent proxy.

Comment 13 Tim Lauridsen 2009-01-07 14:11:42 UTC
Look good now :)

APPROVED

Comment 14 Kevin Fenzi 2009-01-13 21:24:34 UTC
Can you add a cvs template here?
http://fedoraproject.org/wiki/PackageMaintainers/CVSAdminProcedure

Comment 15 seth vidal 2009-01-13 21:50:56 UTC
New Package CVS Request
=======================
Package Name:  system-autodeath
Short Description: Automatically disable system default route on a specific date
Owners: skvidal
Branches: F10
InitialCC:

Comment 16 Kevin Fenzi 2009-01-13 21:55:08 UTC
cvs done.

Comment 17 Peter Lemenkov 2010-11-20 20:43:07 UTC
This was imported and built long ago - let's finally close this ticket.


Note You need to log in before you can comment on or make changes to this bug.