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 package


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 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 for dingo(puppylinux 4.0).

Package Name:

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 shared library. Thanks to ‘jcoder24’ for giving me valuable suggession in my previous libpcap compilation. I did some tweeks in libpcap’s file.

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

all: libpcap.a $(OBJ)
@rm -f $@
gcc -shared -WI,-soname, -o $(OBJ)

$(INSTALL_DATA) $(DESTDIR)$(libdir)/
ldconfig $(DESTDIR)$(libdir)

rm -f $(DESTDIR)$(libdir)/
ldconfig $(DESTDIR)$(libdir)

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

1. Untar source tarball.
2. Edit 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 in ldconfig automatically, I created script.

6. cat >
ln -s /usr/lib/ /usr/lib/
ln -s /usr/lib/ /usr/lib/
7. chmod 755

to unload from ldconfig while uninstalling, I created

8. cat >
rm /usr/lib/
rm /usr/lib/

I moved both and 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