Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115806 - rpc.rstatd-4.0.1.ebuild
Summary: rpc.rstatd-4.0.1.ebuild
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: Other Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2005-12-16 13:56 UTC by Bryce Harrington
Modified: 2017-07-21 09:13 UTC (History)
1 user (show)

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


Attachments
rstatd-4.0.1.ebuild (rstatd-4.0.1.ebuild,636 bytes, text/plain)
2006-08-02 08:34 UTC, Mamoru KOMACHI (RETIRED)
Details
rstatd.initd (rstatd.initd,561 bytes, text/plain)
2006-08-02 08:35 UTC, Mamoru KOMACHI (RETIRED)
Details
rstatd-4.0.1-r1.ebuild (rstatd-4.0.1.ebuild,1.35 KB, text/plain)
2008-04-11 11:51 UTC, Martin Mokrejš
Details
rstatd (rstatd,625 bytes, text/plain)
2008-04-11 11:52 UTC, Martin Mokrejš
Details
xinetd.rstatd (xinetd.rstatd,342 bytes, text/plain)
2008-04-11 11:53 UTC, Martin Mokrejš
Details
rstat_initialize_fromlen.patch (rstat_initialize_fromlen.patch,348 bytes, patch)
2008-04-11 11:59 UTC, Martin Mokrejš
Details | Diff
rpc.rstatd-netstats.patch (rpc.rstatd-netstats.patch,851 bytes, patch)
2008-04-11 12:01 UTC, Martin Mokrejš
Details | Diff
rstatd-4.0.1-r2.ebuild (rstatd-4.0.1.ebuild,1.49 KB, text/plain)
2008-04-11 12:43 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bryce Harrington 2005-12-16 13:56:50 UTC
The network tests in LTP require the presence of 'rpc.rstatd' but I've been unable to locate it via `emerge --search rpc.rstatd` nor via googling against site:gentoo.org.  I suspect it should be part of netkit-base, or else part of xinetd, but I've installed both of those packages and neither includes it.  Could you point me in the right direction?

Thanks,
Bryce
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-12-16 14:16:28 UTC
net-fs/nfs-utils has rpc.statd, if that's not what you want, then provide some real information about which package should distribute this.
Comment 2 Bryce Harrington 2005-12-16 14:55:42 UTC
I don't think rpc.statd and rpc.rstatd are equivalent.  rpc.statd is a daemon used by the NFS locking service.  rpc.rstatd is a program to remotely monitor kernel statistics such as load, interrupts, etc.  LTP tests for rpc.rstatd (note the 'r'), to measure compliance with the SunRPC standard.  Gentoo currently fails against the Linux Test Project's network test case 'rup01' due to this lack.

The specific test is here:

http://cvs.sourceforge.net/viewcvs.py/ltp/ltp/testcases/network/rpc/rup/rup01?rev=1.2&view=auto

The test fails as follows:

<<<test_start>>>
tag=rup stime=1134770895
cmdline="export TCbin=$LTPROOT/testcases/network/rpc/rup; rup01"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
Checking for rstatd on cl009
Attempting to start rstatd on cl009
bash: line 1: /usr/sbin/rpc.rstatd: No such file or directory
rstatd started on cl009
Test rup with defaults....please be patient
rup
Test rusers with options set...please be patient
rup cl009
rup: cl009: RPC: Program not registered

rup01: doing /usr/src/ltp-full-20050405/testcases/bin/rup01.
bash: line 1: kill: (11199) - No such process
rstatd daemon stopped on cl009
Test Failed: rup cl009 - failed


The definitive source of the rstatd program appears to be the following sourceforge page:

http://rstatd.sourceforge.net/
http://sourceforge.net/projects/rstatd

The effect of implementing this fix will be to make gentoo more LTP-compliant with the RPC standards.

Thanks,
Bryce
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-12-16 14:59:44 UTC
(In reply to comment #2)
> http://rstatd.sourceforge.net/
> http://sourceforge.net/projects/rstatd

Not in portage, sorry... If you care enough, submit an ebuild. 
Comment 4 Bryce Harrington 2005-12-16 15:16:27 UTC
Nah, I'll just mark gentoo as failed on this.
Comment 5 Mamoru KOMACHI (RETIRED) gentoo-dev 2006-08-02 08:34:51 UTC
Created attachment 93264 [details]
rstatd-4.0.1.ebuild

I've just created an ebuild for rpc.rstatd.
Comment 6 Mamoru KOMACHI (RETIRED) gentoo-dev 2006-08-02 08:35:55 UTC
Created attachment 93265 [details]
rstatd.initd

/etc/init.d/rstatd
Comment 7 Mamoru KOMACHI (RETIRED) gentoo-dev 2006-08-02 08:39:03 UTC
Although I created it I'm afraid I don't want to maintain this ebuild
as I'm not network system expert. (I just made it for my lab maintainance)
Feel free to take this ebuild. Thanks in advance.
Comment 8 Martin Mokrejš 2008-04-11 11:50:01 UTC
The statistics could be collected through any of the following:
1. http://jperfmeter.sourceforge.net/
2. textmeter from http://sourceforge.net/project/showfiles.php?group_id=27012
3. $ /usr/dt/bin/sdtperfmeter othermachine
4. $ gnome-perfmeter othermachine
5. $ rup (provided in this rstatd-4.0.1 package)
Comment 9 Martin Mokrejš 2008-04-11 11:51:15 UTC
Created attachment 149388 [details]
rstatd-4.0.1-r1.ebuild

Include also the patch available at sourceforge site.
Comment 10 Martin Mokrejš 2008-04-11 11:52:29 UTC
Created attachment 149390 [details]
rstatd

files/rstatd to be installed as /etc/init.d/rstatd
Comment 11 Martin Mokrejš 2008-04-11 11:53:43 UTC
Created attachment 149392 [details]
xinetd.rstatd

Sample /etc/xinetd.d/rstatd file NOT being installed by the ebuild. The ebuild installs /etc/init.d/rstatd as a general solution.
Comment 12 Martin Mokrejš 2008-04-11 11:59:34 UTC
Created attachment 149393 [details, diff]
rstat_initialize_fromlen.patch

Patch for bug #1546060 at http://sourceforge.net/tracker/index.php?func=detail&aid=1546060&group_id=27012&atid=388924
Comment 13 Martin Mokrejš 2008-04-11 12:01:00 UTC
Created attachment 149394 [details, diff]
rpc.rstatd-netstats.patch

Fix for bug #1529174 from http://sourceforge.net/tracker/index.php?func=detail&aid=1616546&group_id=27012&atid=388926
Comment 14 Martin Mokrejš 2008-04-11 12:43:09 UTC
Created attachment 149396 [details]
rstatd-4.0.1-r2.ebuild

Two patches from sourceforge apply to this version (4.0.1), 2 other patches are against much older version (3.x) only -- one of them fixed(es) some int overflows in the code and the other added some extra disk and VM stats to the output. Somebody should audit the code first before pushing this into portage tree.

http://www.google.com/search?hl=en&q=bugtraq+rstatd&btnG=Google+Search
Comment 15 Martin Mokrejš 2008-05-26 10:34:54 UTC
Joerg Ahrens had a look whether those 2 patches are really applied to this source tree at sourceforge in 4.0.1 and indeed, they are.
Comment 16 Marek Szuba archtester gentoo-dev 2017-02-28 13:50:00 UTC
It seems 4.0.1 (which, for the record, was released in December 2005) is the last version released by upstream. Not a good sign for software which exposes potentially sensitive information over networks... Just to be in the clear, though - is there still any interest in adding this to the tree? If not, the bug will be closed as WONTFIX in 30 days.