Re: port install to jail root from host system

From: Marc Ramirez (marc.ramirez_at_bluecirclesoft.com)
Date: 10/01/03

  • Next message: Louis LeBlanc: "Re: Why do you prefer FreeBSD???? Maybe Windows is more comfortable than FBSD?"
    Date: Wed, 1 Oct 2003 10:56:48 -0400
    To: Aragon Gouveia <aragon@phat.za.net>
    
    

    On Wed, Oct 01, 2003 at 02:48:29PM +0200, Aragon Gouveia wrote:
    > Hi,
    >
    > I've compiled a port as normal (apache13 in this case). I'd like to run
    > 'make install' now and tell it to install the package to the base of the
    > root filesystem of a jail from the jail's host. Possibly also to skip
    > registering it in the host's package database.
    >
    > Does anyone know an easy way to do this with the ports system?
    >
    > I realise apache is dependant on various libraries that may not be in the
    > jail, but these dependancies I will resolve manually.

    Just off the top of my head, certainly not guaranteed to be the
    optimal solution, never tested, etc...

    # assuming /jailfs is the root of your jail:
    # install in /jailfs/bin, /jailfs/data, etc...

    cd /usr/ports/www/apache13
    make PREFIX=/jailfs install

    # now in your jail, you'll have /bin/apachectl, but it'll be looking
    # for /jailfs/sbin/httpd, so create a symlink

    ln -s / /jailfs/jailfs

    -- 
    Marc Ramirez
    Blue Circle Software Corporation
    513-688-1070 (main)
    513-382-1270 (direct)
    http://www.bluecirclesoft.com
    http://www.mrami.com (personal)
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: Louis LeBlanc: "Re: Why do you prefer FreeBSD???? Maybe Windows is more comfortable than FBSD?"

    Relevant Pages

    • port install to jail root from host system
      ... I've compiled a port as normal (apache13 in this case). ... 'make install' now and tell it to install the package to the base of the ... registering it in the host's package database. ...
      (freebsd-questions)
    • Re: port install to jail root from host system
      ... > 'make install' now and tell it to install the package to the base of the ... > registering it in the host's package database. ... Jail Directory and build the Port directly in the Jail. ...
      (freebsd-questions)
    • Re: port install to jail root from host system
      ... ssh into the jail and run the make install from inside of the jail ... On Wed, 1 Oct 2003, Aragon Gouveia wrote: ... > I've compiled a port as normal. ... > 'make install' now and tell it to install the package to the base of the ...
      (freebsd-questions)
    • Re: Linux computability
      ... but when I try to install the java/jdk14 ... port inside the jail, I get the message that I need to mount ...
      (freebsd-questions)
    • Is FreeBSD ready for desktop (Mozilla Flash)
      ... monitor,, somehow the install fails to detect ... "Macromedia Flash plugin is not available for FreeBSD. ... I quote again "Install the www/linuxpluginwrapper port. ... servers, ...
      (comp.unix.bsd.freebsd.misc)