2005-03-06

Paketto Keiretsu on OS X

Installing Paketto Keiretsu on OS X is a hassle. To be honest, installing Paketto Keiretsu on any operating system is a hassle.

Let's be honest. PK's author Dan Kaminsky may be brilliant when it comes to network programming, but he's not big on packaging. Poor bastard. Dan, more people would use your tools if you made an effort to let them do so.

My advice in a nutshell: try version 1.10 and save 2.00pre3 for a rainy day when you have nothing better to do than hack on somebody else's source code. Here's how to turn v.1.10 into a real network toolkit.

$ cd paketto-1.10
$ tar xzf libnet-1.0.2a-pk1.tar.gz
$ cd Libnet-1.0.2a
$ ./configure --host="powerpc-apple-darwin7.8.0"

$ vi ./include/libnet.h
Add a '\' character to the end of lines 87 and 88.

$ make
$ cd ..
$ ./configure

$ vi ./src/paketto.h
Add a '\' character to the end of lines 20, 21, and 22.

$ vi ./src/scanrand.c
Change the data type from "uint16_t" to "unsigned int" on line 27.

$ make

That should do it.

No comments: