Wireshark Pet Package

October 2, 2008 at 1:57 am (Uncategorized)

Hi all,

I’m back with Wireshark 1.0.3. thanks to Wireshark team for makeing wireshark compilation easy. Also thanks for make a tool like wireshark. So here are my steps,

1. Download wireshark from here
2. ./configure –prefix=”/usr”
3. make install DESTDIR=”`pwd`-i686″
4. script/prepare-dir2pet wireshark-1.0.3-i686
5. dir2pet wireshark-1.0.3-i686
6. Thats all

Download Link : http://www.freeshells.ch/~mohan34u/wireshark-1.0.3-i686.pet


Permalink Leave a Comment

nmap-4.76 with zenmap pet package

September 21, 2008 at 4:34 pm (pet_packages)

hi all,

this time I compiled the nmap-4.76 with zenmap without any problem. I already compiled all the dependencies for 4.68 version. you can find the details from my previous post

So here are the steps,
Download all the dependencies packages(please see my previous post)

1. download nmap-4.76 from here http://nmap.org/dist/nmap-4.76.tar.bz2
2. ./configure –prefix=”/usr”
3. make all
4. make install DESTDIR=”`pwd`-i686″
5. prepare-dir2pet nmap-4.76-i686

Thats all.

hi michl, I did nmap-4.76, check out this package.

Download Link:

Permalink Leave a Comment

wmnd pet package

September 21, 2008 at 3:34 pm (pet_packages)

Hi all,

I’m back with a small package that will help us to monitor the bandwidth speed of our system. There are lot of utilities to do this, but I find this helpful, because I’m using default jwm, and I don’t want GKrellm or Conky to cover my desktop for this simple solution. So here are the steps,

1. download ‘wmnd’ from here http://www.thregr.org/~wavexx/software/wmnd/releases/wmnd-0.4.13.tar.gz
2. ./configure –prefix=”/usr”
3. make all
4. make install DESTDIR=”`pwd`-i686″
5. prepare-dir2pet wmnd-0.4.13-i686

Thats all.

Download link: http://www.murga-linux.com/puppy/viewtopic.php?p=233656#233656

Permalink Leave a Comment

hydra pet package

September 6, 2008 at 7:43 pm (pet_packages)

Hi all,

This week I compiled hydra. Upto now, there is no purpose for me to compile hydra, but it may help someone(positively and negatively). So here are my steps.

1. download source from http://freeworld.thc.org/thc-hydra/
2. ./configure

Here I stuck, its not GNU’s configure file, it something different, it also asked me to install libssh-0.11 from http://0xbadc0de.be. Also it says, it disabled Postgres module, because I need ‘libpq’. And one more SAP/R3 module also disabled, because no saprfc.h, it suggest me to get it from http://www.sap.com/solutions/netweaver/linux/eval/index.asp. I hust downloaded openssh-0.11, I can’t able to get other modules to enable. sorry for this. Next time, I will compile hydra perfectly.

3. download libssh-0.11 from http://0xbadc0de.be.
3. ./configure
4. make all
5. make install
6. now ./configure form hydra source directory.
7. make all
8. make install

Thats all, I have two commands for hydra, one is ‘hydra’ and the other one is ‘xhydra’.

Download link: http://www.murga-linux.com/puppy/viewtopic.php?p=230248#230248

Permalink Leave a Comment

whois pet package

August 24, 2008 at 3:23 pm (pet_packages)

Hi all,

This time I compiled ‘whois’. No more speaking, lets get into the steps,

1. Download source tarball from ‘http://ftp.debian.org/debian/pool/main/w/whois/whois_4.7.27.tar.gz’.
2. Untar it.
3. Now the real fact. I didn’t see any ‘configure’ script. Ooh yes! people sometimes give some digging work to me.
4. prefix=/usr/local to prefix=/usr
5. make all
6. ./whois http://www.google.com
# ./whois http://www.google.com
getaddrinfo(whois.crsnic.net): Bad value for ai_flags

Then I asked for ‘whois’ in puppy’s IRC. within 10 minutes, big_bass created ‘whois’ pet package and gave this link http://www.puppylinux.ca/tpp/big_bass/whois-4.7.26.pet. I installed big_boss’s whois pet package. But when I run ‘whois http://www.google.com’ the following error happend.

# whois http://www.google.com
getaddrinfo(whois.crsnic.net): Bad value for ai_flags

I reported this to him, but other members in IRC reported that its working fine in puppy 3.01. So its upto me to create ‘whois’ for dingo. 2 Hours of googling landed me in this link http://lists.ibiblio.org/pipermail/sm-commit/2006-August/005535.html. Here the creator of ‘whois’ suggested to remove #define _GNU_SOURCE. So I changed the lines

/* for AI_IDN */
#define _GNU_SOURCE


/* for AI_IDN
#define _GNU_SOURCE */

7. make all
8. make install BASEDIR=”`pwd`-i686″
9. cd ..
10. scripts/prepare-dir2pet whois-4.7.27-i686/
11. dir2pet whois-4.7.27-i686
12. Thats all.

Have a wonderful day!!

Download the package here

Permalink Leave a Comment

nmap 4.68 with zenmap pet package

August 4, 2008 at 10:01 pm (pet_packages)

Finally I compiled nmap with zenmap. This is how I did,

nmap 4.68 with zenmap dependencies

nmap 4.68 with zenmap dependencies

Problems Faced:

While opening zenmap, I encountered “Sqlite3 module not found” error. From by findings, This problem occurs when using Python 2.5.1 and Sqlite 3.6. To resolve the issue, I compiled Python 2.5.2.

With nmap 4.68 single pet package, ‘nmap’ command line program will run. But you need to download necessary dependency packages to run zenmap. If you encounter any problems, download all the dependency packages I created for nmap 4.68 and install it, then try zenmap.

Lesson Learnt:

Thanks to ‘Geeko’ to teach me how to Build packages with ‘DESTDIR‘. Before I saw your post, I use –prefix=”`pwd`-i686/usr” with ‘./configure’. But I faced lot of problems while installing the builded files in seperate directory. Variables in ‘/usr/lib/pkgconfig/<pkg>.pc’ files are stored in a manner that all of them pointing towards the temporary subdirectory which is created for pet package.

So, here is the steps I used to compile sources and install builded files in a subdirectory.

1. Untar the source tarball.
2. cd to extracted directory.
3. ./configure –prefix=”/usr”
4. make
5. make install DESTDIR=”`pwd`-i686″. This will create <package-name-with-version-i686> directory.
6. cd ..
6. prepare-dir2pet <package-name-with-version-i686>. ‘prepare-dir2pet’ is a small script I created to generate file names in <package-name-with-version-i686> directory with full path.
7. dir2pet <package-name-with-version-i686>.
8. Thats all.

I also noticed. When I install a pet-package for the first time, all the files moved into their corresponding main directories correctly. Then I uninstalled, again I reinstalled that same pet-package, But this time, the files are not moved correctly. But after uninstall, I rebooted the machine and then I installed that same package, now the files generated correctly. Is this a bug in unionfs? Where do I need to report?

nmap 4.68 with dependency packages:


Download Link: http://freeshells.ch/~mohan34u

I think I also successfully created PyGTK pet package. I hope this will help someone.

Permalink 2 Comments

lshw pet package

July 27, 2008 at 4:39 am (pet_packages)

Its like a fun when I face problem when building packages. But, `lshw` source didn’t gave that fun. anyway Its a nice command to have it in puppy.

Just a small change I made to lshw’s Makefile. I don’t want `make install` to install `lshw` into my /usr/bin directory. so here is the change.


Then everything went fine and I got lshw-B.02.13-i686.pet package

package: lshw-B.02.13-i686.pet

Permalink Leave a Comment

tcpdump pet package

July 26, 2008 at 5:10 pm (pet_packages)

Hi there

This time I compiled tcpdump-3.8.1. For this, I used libpcap-0.8.1-i686.pet which I already compiled. Its a straight away job. Steps are given below,

1. untar source tarball.
2. ./configure –prefix=”`pwd`-i686/usr”
3. make all
4. make install

The above steps will create tcpdump-3.8.1-i686 directory. If some errors showing ‘pcap_debug’, I have the details in my previous post. I hope it can clarify. Then, I came out of tcpdump-3.8.1 directory and executed the below.

5. prepare-dir2pet tcpdump-3.8.1-i686
6. dir2pet tcpdump-3.8.1-i686

Thats it. I have tcpdump-3.8.1-i686.pet for dingo(puppylinux 4.0).

Package Name: tcpdump-3.8.1-i686.pet

Permalink Leave a Comment

libpcap pet package with shared library

July 25, 2008 at 8:56 pm (pet_packages)

Hi all,

Last feburary I learned how to create pet package. Its simple and easy to create pet package in puppy so that a dump also can create package. So, I decided to create tcpdump for puppy 4.00.

while compiling tcpdump, ‘make all’ fails with ‘pcap’ library not found error. Then I decided to compile libpcap. This time I also created libpcap.so.0.8.1 shared library. Thanks to ‘jcoder24’ for giving me valuable suggession in my previous libpcap compilation. I did some tweeks in libpcap’s Makefile.in file.

CLEANFILES = $(OBJ) libpcap.a libpcap.so.0.8.1 $(GENSRC) $(GENHDR) lex.yy.c

all: libpcap.a libpcap.so.0.8.1

libpcap.so.0.8.1: $(OBJ)
@rm -f $@
gcc -shared -WI,-soname,libpcap.so.0 -o libpcap.so.0.8.1 $(OBJ)

$(INSTALL_DATA) libpcap.so.0.8.1 $(DESTDIR)$(libdir)/libpcap.so.0.8.1
ldconfig $(DESTDIR)$(libdir)

rm -f $(DESTDIR)$(libdir)/libpcap.so.0.8.1
ldconfig $(DESTDIR)$(libdir)

So, here are the steps I followed to successfully compile libpcap with shared library.

1. Untar source tarball.
2. Edit Makefile.in as I mentioned above.
3. ./configure –prefix=”`pwd`-i686/usr” –enable–yydebug
4. make all
5. make install

To prevent ‘pcap_debug’ symbol not found error I used –enable-yydebug option with ./configure. This option is used to enable yydebug feature. I don’t know what it is doing. Perhaps guru’s can help me to understand. –prefix=”`pwd`-i686/usr” will create another directory tree as libpcap-0.8.1-i686/usr and ‘make all’ and ‘make install’ will install files in libpcap-0.8.1-i686/usr directory.

To load libpcap.so.0.8.1 in ldconfig automatically, I created pinstall.sh script.

6. cat > pinstall.sh
ln -s /usr/lib/libpcap.so.0.8.1 /usr/lib/libpcap.so.0
ln -s /usr/lib/libpcap.so /usr/lib/libpcap.so
7. chmod 755 pinstall.sh

to unload libpcap.so.0.8.1 from ldconfig while uninstalling, I created puninstall.sh.

8. cat > puninstall.sh
rm /usr/lib/libpcap.so.0
rm /usr/lib/libpcap.so

I moved both pinstall.sh and puninstall.sh into libpcap-0.8.1-i686. I didn’t use ‘new2dir’, It’s not working properly while using –prefix option with ./configure. So I used the same –prefix option to create libpcap-0.8.1-i686 directory and wrote one small script ‘prepare-dir2pet’ to generate libpcap-0.8.1-i686.files file. we need to give package directory name(libpcap-0.8.1-i686) as first argument without trailing ‘/’ to this script.

9. cat prepare-dir2pet
find “${1}” | sed -e”s/${1}\/*//g” | grep -v ‘^$’ | tee “${1}”.files

10. dir2pet libpcap-0.8.1-i686

I hope libpcap folks will provide shared library in their future release.


Permalink Leave a Comment