Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 333753 - app-emacs/nagios-mode-0.3 (New package)
Summary: app-emacs/nagios-mode-0.3 (New package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://michael.orlitzky.com/code/nagi...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2010-08-21 06:34 UTC by Michael Orlitzky
Modified: 2011-07-17 17:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild (nagios-mode-0.3.ebuild,431 bytes, text/plain)
2010-08-21 06:34 UTC, Michael Orlitzky
Details
nagios-mode site file (50nagios-mode-gentoo.el,190 bytes, text/plain)
2010-08-21 06:35 UTC, Michael Orlitzky
Details
nagios-mode test suite (test_suite.cfg,5.06 KB, text/plain)
2010-09-12 18:46 UTC, Michael Orlitzky
Details
Updated ebuild (nagios-mode-0.3.ebuild,429 bytes, text/plain)
2011-07-09 22:47 UTC, Michael Orlitzky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Orlitzky gentoo-dev 2010-08-21 06:34:01 UTC
As the author, I hereby promise not to do anything that would make this difficult to maintain.
Comment 1 Michael Orlitzky gentoo-dev 2010-08-21 06:34:53 UTC
Created attachment 243815 [details]
Ebuild
Comment 2 Michael Orlitzky gentoo-dev 2010-08-21 06:35:20 UTC
Created attachment 243817 [details]
nagios-mode site file
Comment 3 Ulrich Müller gentoo-dev 2010-09-12 18:38:01 UTC
Thank you for this contribution. Committed to Emacs overlay: <https://overlays.gentoo.org/proj/emacs/changeset/1515>

Could you also provide us with a short test plan for the package? See here for examples: <https://overlays.gentoo.org/proj/emacs/wiki/test%20plans>
Comment 4 Michael Orlitzky gentoo-dev 2010-09-12 18:46:40 UTC
Created attachment 247008 [details]
nagios-mode test suite

Sure. I actually keep a test suite (test_suite.cfg) in the git repo at,

  http://michael.orlitzky.com/git/?p=nagios-mode.git;a=tree

but I don't distribute it with the tarball (should I?). The typical instructions apply -- open the file, enable nagios-mode, and check that each of the tests in the file does what it says it should.
Comment 5 Ulrich Müller gentoo-dev 2010-09-12 18:59:44 UTC
(In reply to comment #4)
> Sure. I actually keep a test suite (test_suite.cfg) in the git repo at,
> 
>   http://michael.orlitzky.com/git/?p=nagios-mode.git;a=tree

Thanks again. I'll attach this as a file to our "test plans" page.

> but I don't distribute it with the tarball (should I?).

That cannot harm. The ebuild could install it in /usr/share/doc/ then.

Comment 6 Michael Orlitzky gentoo-dev 2010-09-12 19:05:53 UTC
(In reply to comment #5)
> 
> That cannot harm. The ebuild could install it in /usr/share/doc/ then.
> 

Ok, updated:

  http://michael.orlitzky.com/code/releases/nagios-mode-0.3.tar.gz
Comment 7 Michael Orlitzky gentoo-dev 2011-07-09 22:47:59 UTC
Created attachment 279547 [details]
Updated ebuild

* Bumped to EAPI=4.
* Added test_suite.cfg to DOCS.
* Removed the SITEFILE declaration.
Comment 8 Ulrich Müller gentoo-dev 2011-07-10 10:14:07 UTC
(In reply to comment #7)
> * Removed the SITEFILE declaration.

Why?
Comment 9 Michael Orlitzky gentoo-dev 2011-07-10 12:34:09 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > * Removed the SITEFILE declaration.
> 
> Why?

Something must have changed; I'm rebuilding one of our nagios boxes and hit this yesterday:

  * Installing site initialisation file for GNU Emacs ...
  cp: cannot stat `/home/mjo/src/overlays/mjo-overlay/app-emacs/nagios-mode/files
  /50nagios-mode-gentoo.el': No such file or directory

The eclass docs say it's optional, so I tried removing the SITEFILE declaration and that fixed the error.
Comment 10 Ulrich Müller gentoo-dev 2011-07-13 20:54:42 UTC
Bumped to -r1 in Emacs overlay, with your changes. I've kept the SITEFILE though.

It's about time to move this package to the Portage tree. Probably I won't add .cfg to auto-mode-alist though, since this is a very generic file suffix that might be used also for other than nagios files.
Comment 11 Michael Orlitzky gentoo-dev 2011-07-13 22:27:08 UTC
(In reply to comment #10)
> Bumped to -r1 in Emacs overlay, with your changes. I've kept the SITEFILE
> though.

Ugh, of course. I don't think I knew what I was doing when I wrote the initial ebuild =)

I copied the SITEFILE definition but didn't realize what it did; when I went to test the ebuild again recently, I forgot to add the sitefile to my overlay before testing.
 

> It's about time to move this package to the Portage tree. Probably I won't add
> .cfg to auto-mode-alist though, since this is a very generic file suffix that
> might be used also for other than nagios files.

Thanks, I agree with the *.cfg decision. I can proxy maintain if it would make your life easier.
Comment 12 Ulrich Müller gentoo-dev 2011-07-17 17:55:59 UTC
Committed to Portage tree. Thanks again.

(In reply to comment #11)
> I can proxy maintain if it would make your life easier.

Thanks for the offer. It looks like the package will be easy to maintain (it even can be installed with eclass default functions). So I think that proxy maintenance won't be needed.