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.
Created attachment 37659 [details] Ebuild file for nistnet-2.0.12
Created attachment 37660 [details, diff] Patch for getting it to work on Gentoo
sounds interesting - will look at it next week
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.
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.
need a hand?
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.
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.
Created attachment 40003 [details] e-build file for nistnet 2.4.1 Works, but probably needs modifying.
Created attachment 40004 [details, diff] Makefile patches for e-build
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?
Created attachment 40005 [details] e-build file for nistnet 2.4.1 Changed patch to epatch.
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.
I'm still going to be looking into this as part of the netmon herd.
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.
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
Created attachment 56215 [details] nistnet-2.4.1.ebuild (input fixed) Fixed typo and stuff. Now works fine and without vim
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?
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...
Created attachment 56286 [details, diff] nistnet-2.4.1-gentoo.diff Definitely remove the ex from it. I can now compile fine without vim.
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
Created attachment 63143 [details] nistnet-2.4.1.ebuild (URL fixed) Changed the URL and source URL from http://www.cablespeed.com/~tmolina/ and http://www.cablespeed.com/~tmolina/nistnet.2.4.1.tar.gz to http://cablespeed.com/~tmolina/ and http://cablespeed.com/~tmolina/nistnet.2.4.1.tar.gz
I've fixed the URLs in the e-build file now. Surely it's finally ready to be commited, right?
hmm file doesn't download here, do you have a working url? ;)
(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
Hrm, no tarball available, reopen please if one is available