Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60776 - nistnet-2.4.1.ebuild (New Package)
Summary: nistnet-2.4.1.ebuild (New Package)
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Daniel Black (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2004-08-18 07:26 UTC by Michael Sweeney
Modified: 2006-10-08 08:28 UTC (History)
4 users (show)

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


Attachments
Ebuild file for nistnet-2.0.12 (nistnet-2.0.12.ebuild,779 bytes, text/plain)
2004-08-18 07:35 UTC, Michael Sweeney
Details
Patch for getting it to work on Gentoo (nistnet-2.0.12-gentoo.diff,7.33 KB, patch)
2004-08-18 07:36 UTC, Michael Sweeney
Details | Diff
e-build file for nistnet 2.4.1 (nistnet-2.4.1.ebuild,817 bytes, text/plain)
2004-09-20 04:27 UTC, Stephen Earl
Details
Makefile patches for e-build (nistnet-2.4.1-gentoo.diff,2.46 KB, patch)
2004-09-20 04:28 UTC, Stephen Earl
Details | Diff
e-build file for nistnet 2.4.1 (nistnet-2.4.1.ebuild,851 bytes, text/plain)
2004-09-20 04:40 UTC, Stephen Earl
Details
nistnet-2.4.1.ebuild (input fixed) (nistnet-2.4.1.ebuild,1.33 KB, text/plain)
2005-04-13 16:05 UTC, Michael Zanetta
Details
nistnet-2.4.1-gentoo.diff (nistnet-2.4.1-gentoo.diff,3.60 KB, patch)
2005-04-13 16:07 UTC, Michael Zanetta
Details | Diff
nistnet-2.4.1.ebuild (input fixed) (nistnet-2.4.1.ebuild,1.46 KB, text/plain)
2005-04-13 17:00 UTC, Michael Zanetta
Details
nistnet-2.4.1-gentoo.diff (nistnet-2.4.1-gentoo.diff,3.80 KB, patch)
2005-04-13 17:03 UTC, Michael Zanetta
Details | Diff
nistnet-2.4.1.ebuild (input fixed) (nistnet-2.4.1.ebuild,1.64 KB, text/plain)
2005-04-14 12:08 UTC, Michael Zanetta
Details
nistnet-2.4.1-gentoo.diff (nistnet-2.4.1-gentoo.diff,4.15 KB, patch)
2005-04-14 12:10 UTC, Michael Zanetta
Details | Diff
nistnet-2.4.1.ebuild (URL fixed) (nistnet-2.4.1.ebuild,1.70 KB, text/plain)
2005-07-11 06:47 UTC, Stephen Earl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Sweeney 2004-08-18 07:26:14 UTC
Hi!

Please find attached nistnet-2.0.12.ebuild and a patch so that it will 
compile on Gentoo

NIST Net is a network emulation package. NIST Net allows a single Linux PC set up as a router to emulate a wide variety of network conditions. The NIST Net network emulator is a general-purpose tool for emulating performance dynamics in IP networks. The tool is designed to allow controlled, reproducible experiments with network performance sensitive/adaptive applications and control protocols in a simple laboratory setting. The tool allows an inexpensive PC-based router to emulate numerous complex performance scenarios, including: tunable packet delay distributions, congestion and background loss, bandwidth limitation, and packet reordering / duplication.

I suggest putting it into net-misc/nistnet

Stephen Earl.
Comment 1 Michael Sweeney 2004-08-18 07:35:08 UTC
Created attachment 37659 [details]
Ebuild file for nistnet-2.0.12
Comment 2 Michael Sweeney 2004-08-18 07:36:46 UTC
Created attachment 37660 [details, diff]
Patch for getting it to work on Gentoo
Comment 3 Daniel Black (RETIRED) gentoo-dev 2004-08-31 03:41:23 UTC
sounds interesting - will look at it next week
Comment 4 Daniel Black (RETIRED) gentoo-dev 2004-09-06 23:48:54 UTC
Ok - there are a few QA things that need to be changed with this ebuild/patch to get it into gentoo.

Have a look through http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml

http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=3

Aa few notes:
There is a nistnet.2.0.12a.tar.gz  on the server that is much more recent. I haven't looked what happened in this version change but its worth a look.
SRC_URI - should be either a http:// or a ftp:// reference.
Depend on virtual/x11 rather than xfree so that x11 users can use this too
Is vim realy a depend? is it required at runtime or compile time or both. By no setting the RDEPEND the runtime is the same as the compile time (DEPEND).
Use "epatch" to apply patches.
Gentoo doesn't use /usr/local/* - replace with just /usr
Your patch does a lot of adding ${D}. Replace this with DESTDIR so that upstream will be more likely to accept this. You have used a DESTDIR=${D} in your install correctly.
Don't create stuff in /dev - udev and devfs manage the dev filesystem so its better not to clobber over them. What kernel module does it use? In theory modern kernel modules list the /dev entries that they need.
Make sure when this program compiles it uses what your CFLAGS are and not -m486 -malign-loops=2 -malign-jumps=2 -malign-functions,.... (unless you explictly set them).

Ok I know there is a lot here - if you get stuck drop bug #gentoo-bugs and myself or someone else will give you a hand. Please resubmit your patch and ebuild to fix these problems.
Comment 5 Michael Sweeney 2004-09-07 00:53:39 UTC
Thanks for all your comments.  This is my first e-build so I knew it wouldn't be perfect first time.  Vim is a dependancy at compile time due to the use of the 'ex' command in nistnet\configure.  I should be able to fix things now.
Comment 6 Daniel Black (RETIRED) gentoo-dev 2004-09-16 05:55:46 UTC
need a hand?
Comment 7 Stephen Earl 2004-09-16 07:09:05 UTC
I am currently trying to make an e-build for the new version 2.4.1, which is being maintained by Tom Molina at http://www.cablespeed.com/~tmolina/index.html. However, I've come up with similar problems as the last one.  I fixed some of them but I'm still having a few problems.  The configure file and makefiles have a lot of hard coded directories and it's difficult to make the e-build comply with the Gentoo standards.  It would be helpful if you could have a look.  I think I'll give up on version 2.0.12 for now and try to get 2.4.1 working first.
Comment 8 Daniel Black (RETIRED) gentoo-dev 2004-09-17 00:25:53 UTC
Yep go for the version bump. I see what you mean about a mess. Just attach what you have and I'll give it some makefile lovin. I may even just transform what they have to autoconfig - though if you want to give that a go please be my guest.
Comment 9 Stephen Earl 2004-09-20 04:27:32 UTC
Created attachment 40003 [details]
e-build file for nistnet 2.4.1

Works, but probably needs modifying.
Comment 10 Stephen Earl 2004-09-20 04:28:25 UTC
Created attachment 40004 [details, diff]
Makefile patches for e-build
Comment 11 Stephen Earl 2004-09-20 04:31:11 UTC
I have submitted my e-build for nistnet version 2.4.1.  It's cleaner than my previous attempt but I reckon it still needs some modifications.  Could you check over it for me?
Comment 12 Stephen Earl 2004-09-20 04:40:06 UTC
Created attachment 40005 [details]
e-build file for nistnet 2.4.1

Changed patch to epatch.
Comment 13 Daniel Black (RETIRED) gentoo-dev 2004-10-28 07:08:04 UTC
Stephen,

Your patch is good and the ebuild is fine.

Things I was addressed before commital are:
remove interactivity - asking for input during compile.
ex is just used as a find and replace on files. sed does the same thing except it is part of the basesystem and small.

I haven't forgotten about this - just been preoccupied.
Comment 14 Daniel Black (RETIRED) gentoo-dev 2005-01-13 05:20:18 UTC
I'm still going to be looking into this as part of the netmon herd.
Comment 15 Michael Zanetta 2005-04-13 16:05:10 UTC
Created attachment 56213 [details]
nistnet-2.4.1.ebuild (input fixed)

Hi all,

I modified the ebuild file so it checks for Xaw3d or neXtaw needed for the gui.

I'v also modified some stuff to allow emerging without user actions.

Modified patch follows...

This should wotk but the "ex" stuff needs to be fixed. I'll look at it when I
have some time.
Comment 16 Michael Zanetta 2005-04-13 16:07:30 UTC
Created attachment 56214 [details, diff]
nistnet-2.4.1-gentoo.diff

Patch "patched" to remove user validation and there is an auto-detection if the
ECN has been compiled inside the kernel.

The check is done against the .config file inside the `uname -r` dir in usr/src
Comment 17 Michael Zanetta 2005-04-13 17:00:42 UTC
Created attachment 56215 [details]
nistnet-2.4.1.ebuild (input fixed)

Fixed typo and stuff.
Now works fine and without vim
Comment 18 Michael Zanetta 2005-04-13 17:03:07 UTC
Created attachment 56216 [details, diff]
nistnet-2.4.1-gentoo.diff

Remove the ex'ing on the Imakefile.

Still needs some fix for finding the ECN in a 2.6 kernel config file.
If somebody can provide something?
Comment 19 Michael Zanetta 2005-04-14 12:08:52 UTC
Created attachment 56285 [details]
nistnet-2.4.1.ebuild (input fixed)

Well, forgot one ex more.
ECN and COS are now both uses flags.

Maybe only needs a modules-update and depmod -a at the end...
Comment 20 Michael Zanetta 2005-04-14 12:10:33 UTC
Created attachment 56286 [details, diff]
nistnet-2.4.1-gentoo.diff

Definitely remove the ex from it. I can now compile fine without vim.
Comment 21 Michael Zanetta 2005-06-29 11:56:47 UTC
Hi Daniel,

The URL of the site has changed and so needs to be the ebuild.

http://cablespeed.com/~tmolina/
http://cablespeed.com/~tmolina/nistnet.2.4.1.tar.gz

Cheers,

Michael
Comment 23 Stephen Earl 2005-07-11 06:48:34 UTC
I've fixed the URLs in the e-build file now. Surely it's finally ready to be
commited, right?
Comment 24 Markus Ullmann (RETIRED) gentoo-dev 2006-06-08 17:04:56 UTC
hmm file doesn't download here, do you have a working url? ;)
Comment 25 Ferdinando Formica 2006-08-04 03:00:36 UTC
(In reply to comment #24)
> hmm file doesn't download here, do you have a working url? ;)

Same here; I can't seem to find the tarball anywhere in the internet. Would the ebuild work with 2.0.12 too? I guess not.

Bye
Comment 26 Markus Ullmann (RETIRED) gentoo-dev 2006-10-08 08:28:47 UTC
Hrm, no tarball available, reopen please if one is available