Re: packaging a self compiled program in a .deb file

From: Micha Feigin (michf_at_post.tau.ac.il)
Date: 11/20/03

  • Next message: Micha Feigin: "mutt - changing maildir in responce to script output"
    Date: Fri, 21 Nov 2003 00:09:25 +0200
    To: debian-user <debian-user@lists.debian.org>
    
    

    On Thu, Nov 20, 2003 at 06:44:38PM +0200, Micha Feigin wrote:
    > I want to package a program I compiled in a .deb to enable uninstalling
    > it cleanly later.
    > It seems that alien can convert slackware tgz packages to debs (I tried
    > the other way around and it doesn't seem like there is any extra data
    > except for the program) and I thought that this could be used to do
    > that (I am just looking for unistall ability and to know whats
    > installed, nothing else).
    > To create this I need to install into some local directory instead of
    > root so that I can create the tar file.
    > Any idea how to do that (maybe chroot could do that but then I loose
    > access to the local executables).
    >
    >

    Thank you for the answears, I will check them out to look for a better
    method since being able to build a proper debian package can be usefull
    (actually did some dirty hacks to achive that before but it was for
    changing official ones).
    Just in case this will be usefull to someone, I found out a method that
    worked for the program I was compiling (bidi emacs).
    running
    make install prefix=<subdir>
    installed the program into <subdir> while maintaining the directory tree
    and the compiled in absolute locations.
    I then changed into subder did a tar -xzf <package>.tgz . and alien <package>.tgz
    which produced a .deb package.
    I know its not the correct way, but when there are no dependencies its a
    quick and dirty way to achive what I wanted.

    > --
    > To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
    > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    >

    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Micha Feigin: "mutt - changing maildir in responce to script output"

    Relevant Pages

    • Re: [opensuse] question about compiling an app and installing
      ... I would do the standard config make install procedure on all three ... Use the checkinstall program that will help you to build package for certain ... Same distro has release versions, updates, and it can happen that application ... If you know what to tweak, it can work, but simply compiling on one machine ...
      (SuSE)
    • Re: Lost all my recipes
      ... Core and Redhat derived distributions. ... Both RPM and .deb are available on SourceForge. ... about a minute to download and install, ... by SPM I meant Synaptic Package Manager. ...
      (rec.food.cooking)
    • Re: Openoffice 1.1 + native java
      ... scripted/automated system for downloading *source code*, then compiling it ... That will install packages or the ports *system*, ... > I used to run mine every night via cron, and I could never get a package ...
      (freebsd-questions)
    • Re: whereis Mozilla 1.4 .deb (Update)
      ... > downloaded the deb file and haven't an idea how to install it. ... > still like to know how to do it as a package on the system. ... package to download. ...
      (Debian-User)
    • Re: Three newbie questions!
      ... > installed that and then started to install KDE. ... KDE is of maximal difficulty in compiling. ... then ask your distros package ... management system is and why you need one! ...
      (comp.os.linux.setup)