Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66980 - smokeping-1.31.ebuild (New Package)
Summary: smokeping-1.31.ebuild (New Package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://people.ee.ethz.ch/~oetiker/web...
Whiteboard:
Keywords: EBUILD
Depends on: 77551
Blocks:
  Show dependency tree
 
Reported: 2004-10-10 07:26 UTC by Kenneth Sebesta
Modified: 2006-08-09 11:10 UTC (History)
13 users (show)

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


Attachments
ebuild for smokeping-1.31 (smokeping-1.31.ebuild,1.52 KB, text/plain)
2004-10-10 07:29 UTC, Kenneth Sebesta
Details
Gentoo-specific config files (smokeping-1.31.gentoo.tar.gz,3.41 KB, application/x-gzip)
2004-10-10 07:30 UTC, Kenneth Sebesta
Details
Initial ChangeLog (ChangeLog,273 bytes, text/plain)
2004-10-10 07:33 UTC, Kenneth Sebesta
Details
Smokeping cgi script modified for gentoo (smokeping.cgi.gentoo,395 bytes, text/plain)
2004-10-10 15:03 UTC, Kenneth Sebesta
Details
Smokeping config file modified for gentoo (smokeping.config.gentoo,3.00 KB, text/plain)
2004-10-10 15:04 UTC, Kenneth Sebesta
Details
smokeping perl script modified for gentoo (smokeping.gentoo,3.83 KB, text/plain)
2004-10-10 15:04 UTC, Kenneth Sebesta
Details
smokeping 1.34 patch, made w/o knowledge of bug 66980 (smokeping-ebuild.patch,10.43 KB, patch)
2005-01-02 16:51 UTC, Lee Thompson
Details | Diff
smokeping version v1.34 and v1.36 into /usr/portage/net-analyzer (smokeping_1.36.patch,15.45 KB, patch)
2005-01-11 19:17 UTC, Lee Thompson
Details | Diff
smokeping v1.34, v1.36, and v1.38 into /usr/portage/net-analyzer (smokeping-1_38.patch,20.23 KB, patch)
2005-02-06 14:22 UTC, Lee Thompson
Details | Diff
ebuild using Apache Package Refresh guidelines (smokeping-1.38-r1.ebuild,4.49 KB, text/plain)
2005-03-06 21:06 UTC, Lee Thompson
Details
ebuild using Apache Package Refresh guidelines (smokeping-1.38-r1.ebuild,4.19 KB, text/plain)
2005-03-06 21:10 UTC, Lee Thompson
Details
smokeping 2.0.5 ebuild (smokeping-2.0.5.tgz,4.47 KB, application/x-compressed-tar)
2005-12-19 19:31 UTC, Lee Thompson
Details
smokeping 2.0.5 ebuild with edits (smokeping-2.0.5.ebuild,3.62 KB, text/plain)
2006-01-13 10:30 UTC, Lee Thompson
Details
v2.0.7 of smokeping plus bug fixed perl-core/libnet (smokeping-2.0.7.ebuild.tgz,4.11 KB, application/x-compressed-tar)
2006-02-17 15:24 UTC, Steve Clement
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Sebesta 2004-10-10 07:26:38 UTC
This is an ebuild for Tobi Oetiker's smokeping rrd tool. Smokeping measures latency, latency distribution, and packet loss in a network, presenting the results in graphs embedded in a web page. 

I feel that it goes best in net-analyzer/smokeping.

I have also attached a small file, smokeping-1.31.gentoo.tar.gz, which contains configuration files specific to gentoo. Effectively, it's just a few patches, but since I don't know how to create patches I made it like this.
Comment 1 Kenneth Sebesta 2004-10-10 07:29:07 UTC
Created attachment 41457 [details]
ebuild for smokeping-1.31
Comment 2 Kenneth Sebesta 2004-10-10 07:30:39 UTC
Created attachment 41458 [details]
Gentoo-specific config files

Files that must be changed from the distribution versions in order for
smokeping to run right out of the box.
Comment 3 Kenneth Sebesta 2004-10-10 07:33:22 UTC
Created attachment 41459 [details]
Initial ChangeLog
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2004-10-10 13:18:21 UTC
please do not attach tarballs.  Please attach the contents of the tarball as plaintext files.
Comment 5 Kenneth Sebesta 2004-10-10 15:03:49 UTC
Created attachment 41486 [details]
Smokeping cgi script modified for gentoo
Comment 6 Kenneth Sebesta 2004-10-10 15:04:16 UTC
Created attachment 41487 [details]
Smokeping config file modified for gentoo
Comment 7 Kenneth Sebesta 2004-10-10 15:04:43 UTC
Created attachment 41488 [details]
smokeping perl script modified for gentoo
Comment 8 Kenneth Sebesta 2004-10-10 15:07:13 UTC
No prob, les voila. In any case, the tarball was just there because I was hoping to get it into a mirror since my server isn't reliable. (If you've got the time, I'm curios why tarballs aren't accepted.)
Comment 9 Lance Albertson (RETIRED) gentoo-dev 2004-10-10 17:00:59 UTC
Its much easier to modify/read/manage from a bug monitoring point of view. If you have to change just one file, you don't have to repackage the tarball again, etc etc. Just many reasons. Thanks for the ebuild tho! I'm busies than I can be right now, so I can't unfortunately look at it right now. Just be patient tho, we'll eventually get to it :)

Cheers!
Comment 10 Lance Albertson (RETIRED) gentoo-dev 2004-10-10 17:01:46 UTC
Comment on attachment 41458 [details]
Gentoo-specific config files

No need for the tarball
Comment 11 Kenneth Sebesta 2004-10-25 04:59:42 UTC
Hate to bug you, but will this be put into portage soon?
Comment 12 Lee Thompson 2005-01-02 16:51:50 UTC
Created attachment 47420 [details, diff]
smokeping 1.34 patch, made w/o knowledge of bug 66980

I've been hacking on this ebuild off and on for about a year.  Pretty much the
same idea.
Comment 13 Lee Thompson 2005-01-11 19:17:21 UTC
Created attachment 48266 [details, diff]
smokeping version v1.34 and v1.36 into /usr/portage/net-analyzer

New version of smokeping.

NOTE!!!
I implemented alot of GLEP 11 in the two ebuilds in this patch.  I think you'll
find it quite easy to test out.
Comment 14 Lee Thompson 2005-01-11 19:31:21 UTC
Here is how to experiment/test with this ebuild.

1)  Download the patch http://bugs.gentoo.org/attachment.cgi?id=48266&action=view into /usr/portage/net-analyzer.  (check for more recent if I find bugs)

2)  patch -p1 <smokeping_1.36.patch

3)  emerge smokeping

4)  config smokeping by editing /etc/smokeping

5)  /etc/init.d/smokeping start

6)  browse to http://localhost/cgi-perl/smokeping.cgi

7)  /etc/init.d/smokeping stop

8)  emerge --unmerge smokeping

9)  emerge sync - that will clean out the patch from your /usr/portage

please post feedback.
Comment 15 Shawn Kovalchick 2005-02-01 11:31:24 UTC
I'm trying out the ebuild mentioned above.  Smokeping will run for a couple minutes, then die with no error logged.  Is this expected? Do I need to run it via a cron job or is it supposed to continue running as a daemon?
Comment 16 Shawn Kovalchick 2005-02-03 15:22:10 UTC
I've isolated the problem with smokeping dying.  It hapens when smokeping attempts to send a notification email.  The error I'm getting in the log is this:

Can't call method "mail" on an undefined value at /usr/lib/perl5/vendor_perl/5.8.5/Smokeping.pm line 144.

In sub sendmail ($$$)
        my $smtp = Net::SMTP->new($cfg->{General}{mailhost});
        $smtp->mail($from);  <---- dies here because $smtp is not defined.

Two more things:
1. There is a new version out, 1.37
2. Should the configuration files be put in a subdirectory of /etc/, like /etc/smokeping/
Comment 17 Lee Thompson 2005-02-06 12:44:57 UTC
Looks like I missed a dependency on "dev-perl/libnet" in my ebuild.  I'll try to post new patch file with that in there and the even newer v1.38 real soon.  As for question #2, I'd have to defer to a gentoo developer to review the layout.
Comment 18 Lee Thompson 2005-02-06 14:22:34 UTC
Created attachment 50564 [details, diff]
smokeping v1.34, v1.36, and v1.38 into /usr/portage/net-analyzer
Comment 19 Lee Thompson 2005-02-06 14:31:57 UTC
Updated testing instructions.

1)  cd /usr/portage/net-analyzer
    wget http://bugs.gentoo.org/attachment.cgi?id=50564&action=view
    mv attatchment* smokeping_1.38.patch

2)  patch -p1 <smokeping_1.38.patch

3)  emerge smokeping

4)  configure smokeping by editing /etc/smokeping

5)  /etc/init.d/smokeping start

6)  browse to http://localhost/cgi-perl/smokeping.cgi after restarting apache

7)  /etc/init.d/smokeping stop

8)  emerge --unmerge smokeping

9)  emerge sync - that will clean out the patch from your /usr/portage

please post feedback (thanks Shawn!).

Comment 20 Adrian 2005-02-19 03:16:02 UTC
 * Also edit /etc/conf.d/apache2 and add -D PERL to APACHE2_OPTS
chmod: invalid mode string: `smokeping:smokeping'

i guess that should be chown
Comment 21 Lee Thompson 2005-02-25 10:36:34 UTC
Yes, chown.
Comment 22 Lee Thompson 2005-03-06 21:06:52 UTC
Created attachment 52823 [details]
ebuild using Apache Package Refresh guidelines

During the March 5th gentoo bugday, I was informed about the Apache Package
Refresh effort. 
http://dev.gentoo.org/~vericgar/doc/apache-package-refresh.html

This ebuild would be used in addition to the 1.34, 1.36, and 1.38 ebuilds which
are GLEP11-ish and contained in the prior patch file.  This depends on mod_perl
2.0.0_r4.
Comment 23 Lee Thompson 2005-03-06 21:10:37 UTC
Created attachment 52824 [details]
ebuild using Apache Package Refresh guidelines

fix type-o
Comment 24 Lee Thompson 2005-03-06 21:12:29 UTC
The Apache Package Refresh version of the ebuild depends on bug 77551
Comment 25 Adrian 2005-09-30 15:25:07 UTC
any ebuilds for v2.x yet?
Comment 26 Lee Thompson 2005-12-19 19:31:34 UTC
Created attachment 75167 [details]
smokeping 2.0.5 ebuild

Ebuild for latest version of smokeping, v2.0.5.

Numerous little fixes.

Added dump/restore functions to the init.d script, very handy.
Comment 27 Lee Thompson 2005-12-19 19:55:51 UTC
Please remove the dependency on bug 77551.  Now that the mod_perl v2.0.1 ebuild is checked into cvs, you can get smokeping running.  You will need to put mod_perl into /etc/portage/package.keywords however.
Comment 28 lzap 2006-01-12 07:33:40 UTC
# ebuild smokeping-2.0.5.ebuild install
>>> md5 files   ;-) smokeping-2.0.5.ebuild
>>> md5 files   ;-) files/smokeping
>>> md5 files   ;-) files/config.dist
>>> md5 files   ;-) files/78_smokeping.conf
>>> md5 files   ;-) files/digest-smokeping-2.0.5
>>> md5 src_uri ;-) smokeping-2.0.5.tar.gz
>>> Checking smokeping-2.0.5.tar.gz's mtime...
>>> WORKDIR is up-to-date, keeping...
>>> It appears that smokeping is already compiled; skipping.
>>> (clean to force compilation)
>>> It appears that smokeping has already been tested; skipping.

>>> Install smokeping-2.0.5 into /var/tmp/portage/smokeping-2.0.5/image/ category net-analyzer
chown: `smokeping:smokeping': invalid user  <<<<<<<<<<<<<<<<<<<<<<< HERE !!!!
man:
prepallstrip:
strip: i686-pc-linux-gnu-strip --strip-unneeded
strip: i686-pc-linux-gnu-strip --strip-unneeded
>>> Completed installing smokeping-2.0.5 into /var/tmp/portage/smokeping-2.0.5/image/
Comment 29 lzap 2006-01-12 07:58:41 UTC
>>> Merging net-analyzer/smokeping-2.0.5 to /
 * Adding group 'smokeping' to your system ...
 *  - Groupid: next available
 * Adding user 'smokeping' to your system ...
 *  - Userid: 105
 * Do not specify /bin/false yourself, use -1
Comment 30 Marcelo Goes (RETIRED) gentoo-dev 2006-01-12 11:07:43 UTC
A few pointers, regarding smokeping-2.0.5:

- Unpacking tarballs is quite a pain.
http://dev.gentoo.org/~ciaranm/docs/mw-faq/attachments.txt
- The header is generally three lines long. We have longdescription in metadata.xml and ChangeLog for additional information.
http://dev.gentoo.org/~ciaranm/docs/mw-faq/header.txt
- You should use pkg_setup() where you used pkg_preinst(). pkg_preinst() is ran after src_install(). man 5 ebuild for details.
- There is no need to declare src_unpack().
http://dev.gentoo.org/~ciaranm/docs/mw-faq/redundant.txt
- -1 is used instead of /bin/false to maintain compatibility with OSs like Gentoo/FBSD
Comment 31 Lee Thompson 2006-01-13 10:30:09 UTC
Created attachment 77014 [details]
smokeping 2.0.5 ebuild with edits

Apologies about the tarball.

Here are the edits.  Looks like the einfo call in portage 2.1 skips leading blanks which hoses the ascii art...
Comment 32 Lee Thompson 2006-01-13 10:31:46 UTC
Comment on attachment 77014 [details]
smokeping 2.0.5 ebuild with edits

change mime type
Comment 33 Donnie Berkholz (RETIRED) gentoo-dev 2006-02-03 11:02:14 UTC
(In reply to comment #16)
> 2. Should the configuration files be put in a subdirectory of /etc/, like
> /etc/smokeping/

Generally we defer to upstream defaults for whether it's directly in /etc. If there is effectively no default and there are multiple config files, use a subdirectory. If it's just /etc/smokeping.conf, e.g., put it straight in /etc.


On other notes, I'm a bit curious how those fowners and fperms calls work with webapp-config. I'd think stuff like webapp_serverowned should be involved somewhere. Also keywords should be set to ~arch for any tested architectures, so somebody doesn't accidentally add it to the tree straight in stable. =)
Comment 34 Steve Clement 2006-02-17 15:24:27 UTC
Created attachment 80042 [details]
v2.0.7 of smokeping plus bug fixed perl-core/libnet

Updated and tested smokeping-2.0.7 also fixed libnet it moved..
Comment 35 Pierre-Olivier Bouchard 2006-05-01 19:44:49 UTC
Smokeping 2.0.8 is out.
Comment 36 Ian Hastie 2006-08-06 06:42:41 UTC
(In reply to comment #35)
> Smokeping 2.0.8 is out.
> 

2.0.9 is out now.

smokeping-2.0.9.tar.gz        14-Jul-2006 13:19  385K
Comment 37 Luca Longinotti (RETIRED) gentoo-dev 2006-08-09 11:10:20 UTC
net-analyzer/smokeping-2.0.9 is in CVS now, please sync in an hour or two to get it, enjoy!
Best regards, CHTEKK.