public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alex Schuster <wonko@wonkology.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] A question regarding non-Portage software...
Date: Sun, 11 Mar 2007 17:05:12 +0100	[thread overview]
Message-ID: <200703111705.13436.wonko@wonkology.org> (raw)
In-Reply-To: <18e575130703102121k39f8c692ha1a8df068a2d55bb@mail.gmail.com>

Michael [Plouj] Ploujnikov writes:

> You most likely want to install that software in /usr/local as per
> Gentoo's filesystem layout [1]. The way you can do that with
> autotoolized software is like this:
>
> ./configure --prefix=/usr/local
> make
> make install
>
> I don't know what you mean by making Portage recognize the software
> installed this way. Do you want Portage to be able to uninstall and/or
> upgrade this software? If so, the simple answer is you it can't do
> that. You have to manage the software outside of Portage yourself.

Additionally, I like to have the stuff separated in sub-directories 
of /usr/local, and use stow or better xstow to create symlinks, so the 
software appears to be installed directly in /usr/local.

  emerge xstow
  mkdir /usr/local/stow
  ./configure --prefix=/usr/local/stow/foo-1.2.3 && make && make install
  cd /usr/local/stow
  xstow foo-1.2.3

To later uninstall, without the need to use "make uninstall":
  cd /usr/local/stow
  xstow -D foo-1.2.3
  \rm -r foo-1.2.3

Or to try out a newer version of foo, without deleting foo-1.2.3:
  ./configure --prefix=/usr/local/stow/foo-1.2.4 && make && make install
  cd /usr/local/stow
  xstow -D foo-1.2.3
  xstow foo-1.2.4
  
	Alex
-- 
gentoo-user@gentoo.org mailing list



  parent reply	other threads:[~2007-03-11 16:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-11  4:25 [gentoo-user] A question regarding non-Portage software Chris
2007-03-11  5:10 ` Bo Ørsted Andresen
2007-03-11  8:47   ` Neil Bothwick
2007-03-12  7:44     ` Nick Rout
2007-03-11  5:19 ` [gentoo-user] " »Q«
2007-03-12  9:47   ` Masood Ahmed
2007-03-11  5:21 ` [gentoo-user] " Michael [Plouj] Ploujnikov
2007-03-11 14:01   ` [gentoo-user] " Steve Long
2007-03-11 19:17     ` Bo Ørsted Andresen
2007-03-11 16:05   ` Alex Schuster [this message]
2007-03-12 18:52     ` [gentoo-user] " Alan McKinnon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200703111705.13436.wonko@wonkology.org \
    --to=wonko@wonkology.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox