whois pet package
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 www.google.com
# ./whois 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 www.google.com’ the following error happend.
# whois 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