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

into

/* 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:

Python-2.5.2-i686.pet
cairo-1.6.4-i686.pet
libffi-3.0.6-i686.pet
nmap-4.68-i686.pet
pixman-0.11.6-i686.pet
pycairo-1.4.12-i686.pet
pygobject-2.12.3-i686.pet
pygtk-2.10.6-i686.pet
pysqlite-2.4.1-i686.pet
sqlite-3.6.0-i686.pet

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

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

Permalink 2 Comments