Hi, I've made a little Memory Leak Traker and I'd like to package it for debian. Here is a description of files: libmdb.so.0.1 --> The library that redefine malloc, free, ..... gdb_pilot --> A binary used by the library.
I try to make the package using Debian New Maintainers' Guide, for dh_make I say that my package is a single binary, and I think now that was not the right choise. If some one can help me, I can send the current file of the stade of the current packaging. --------------------------------------------------------------------------------------------- Here is my control: Source: mdb Section: devel Priority: optional Maintainer: Julien ALLALI <[EMAIL PROTECTED]> Build-Depends: debhelper (>> 3.0.0), c-compiler, binutils Standards-Version: 3.5.2 Package: mdb Architecture: any Depends: ${shlibs:Depends}, gdb Description: Tracking Memory Leak, Allocation Trouble library The library replace the default malloc, free, calloc and realloc function. It record all allocation and backtrace all memory leak at the end of the program. It prints backtrace also if you try to write out of your memory. --------------------------------------------------------------------------------------------- In the postinst I put a "/sbin/ldconfig" in configure In the postrm I put a "/sbin/ldconfig" in remove. --------------------------------------------------------------------------------------------- And here is my Makefile: DESTDIR= BINDIR=$(DESTDIR)/usr/bin LIBDIR=$(DESTDIR)/usr/lib DOCDIR=$(DESTDIR)/usr/share/doc/mdb MANDIR=$(DESTDIR)/usr/share/man all : libmdb.so.0.1 gdb_pilot deb : dpkg-buildpackage -rfakeroot debclean: fakeroot debian/rules clean install: install -d $(BINDIR) $(LIBDIR) $(DOCDIR) $(MANDIR)/man3 $(MANDIR)/man1 install libmdb.so.0.1 $(LIBDIR) ln -s $(LIBDIR)/libmdb.so.0.1 $(LIBDIR)/libmdb.so.0 ln -s $(LIBDIR)/libmdb.so.0 $(LIBDIR)/libmdb.so install gdb_pilot $(BINDIR) install -m 644 mdb.3 $(MANDIR)/man3 install -m 644 gdb_pilot.1 $(MANDIR)/man1 bin : libmdb.so.0.1 gdb_pilot libmdb.so.0.1: lib/malloc.o ld -shared -soname libmdb.so.0.1 -o libmdb.so.0.1 -ldl lib/malloc.o lib/malloc.o: lib/malloc.c $(CC) -fPIC -c lib/malloc.c -o lib/malloc.o gdb_pilot: gdb_pilot_src/gdb_pilot.c $(CC) gdb_pilot_src/gdb_pilot.c -o gdb_pilot clean: rm -f lib/malloc.o libmdb.so.0.1 gdb_pilot --------------------------------------------------------------------------------------------- Thanks, Julien ALLALI.