Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Apr 2014 21:15:52 -0700
From:      Chris Kelley <mail@thechriskelley.com>
To:        "edflecko ." <edflecko@gmail.com>
Cc:        "freebsd-questions@freebsd.org List" <freebsd-questions@freebsd.org>
Subject:   Re: How to build and install Apache from source inside ezjail?
Message-ID:  <D88872FD-2EC8-4D5F-B86A-63318D07067D@thechriskelley.com>
In-Reply-To: <CAFS4T6ZRFC=ODt9zcHTfJz4%2ByGH%2BPYmfoL2jGKAmuHLDYp149Q@mail.gmail.com>
References:  <CAFS4T6bvZji2xd2VEs77bXRACRqU3h-oiZUbt17QY%2BD9EXjXkQ@mail.gmail.com> <53509563.30304@tysdomain.com> <CAFS4T6ZRFC=ODt9zcHTfJz4%2ByGH%2BPYmfoL2jGKAmuHLDYp149Q@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_BB303856-1976-4B35-B095-526551BDC4CD
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

Hi,

On Apr 17, 2014, at 8:15 PM, edflecko . <edflecko@gmail.com> wrote:

> configure, build and install it from
> source; not from a port.
I understand you=92re trying to install from source; installing a port =
*is* installing from source, just that the leg-work of finding =
dependencies and fixing build errors is done for you.

> 1.) What the best way to install Apache from source within a jail =
created
> with ezjail and
Direct answer: by using the ports tree from your jail console.

As Tyler mentioned:
>> ezjail-admin install -P
to install ports tree into jail, then ezjail-admin console <yourjail> =
will get you a shell in the jail where you can proceed to download and =
compile within the jail via cd /usr/ports/www/apache<version> && make =
install clean

Alternatively, you can (usually, depending on configure) install the =
=93raw", non port source to the jail from the host system by running =
something like ./configure --prefix=3D/path/to/jail/usr/local, however =
this may not work as expected if install creates users/does other stuff =
on the host rather than within the jail.

> 2.) In what directory should it be installed within the jail so it's
> secured by the jail?
Anywhere inside the jail filesystem, again probably =
/path/to/your/jail/usr/local

If you really want the latest version, an unstable/nightly build, or =
something else not available from the ports tree, then download the =
source from the vendor, put it in /usr/ports/distfiles (or in the case =
of ezjail, wherever it stores distfiles which I believe by default is =
/var/ports/distfiles in the jail filesystem), and hack together a =
Makefile that will recognize the version/location/etc of the distfile =
you downloaded so you can take the hard work of installing it properly =
and not reinvent the wheel.


Cheers,
Chris=

--Apple-Mail=_BB303856-1976-4B35-B095-526551BDC4CD
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIMwTCCBjQw
ggQcoAMCAQICASAwDQYJKoZIhvcNAQEFBQAwfTELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0YXJ0
Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNpZ25pbmcxKTAn
BgNVBAMTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA3MTAyNDIxMDI1NVoX
DTE3MTAyNDIxMDI1NVowgYwxCzAJBgNVBAYTAklMMRYwFAYDVQQKEw1TdGFydENvbSBMdGQuMSsw
KQYDVQQLEyJTZWN1cmUgRGlnaXRhbCBDZXJ0aWZpY2F0ZSBTaWduaW5nMTgwNgYDVQQDEy9TdGFy
dENvbSBDbGFzcyAyIFByaW1hcnkgSW50ZXJtZWRpYXRlIENsaWVudCBDQTCCASIwDQYJKoZIhvcN
AQEBBQADggEPADCCAQoCggEBAMsohUWcASz7GfKrpTOMKqANy9BV7V0igWdGxA8IU77L3aTxErQ+
fcxtDYZ36Z6GH0YFn7fq5RADteP0AYzrCA+EQTfi8q1+kA3m0nwtwXG94M5sIqsvs7lRP1aycBke
/s5g9hJHryZ2acScnzczjBCAo7X1v5G3yw8MDP2m2RCye0KfgZ4nODerZJVzhAlOD9YejvAXZqHk
sw56HzElVIoYSZ3q4+RJuPXXfIoyby+Y2m1E+YzX5iCZXBx05gk6M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9w0BCRACCzGBlqCBkzCBjDELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0YXJ0Q29tIEx0ZC4xKzAp
BgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNpZ25pbmcxODA2BgNVBAMTL1N0YXJ0
Q29tIENsYXNzIDIgUHJpbWFyeSBJbnRlcm1lZGlhdGUgQ2xpZW50IENBAgI/wzANBgkqhkiG9w0B
AQEFAASCAQCMmvQh2VBt96dtsg83d8tU4EeE4H/52cY6ui448Rsnm/ji+LxFhiaXYdHiN2y7OJyM
3v7wWQgkJkhIWT3Ht+CuhdEGStiNZk751pQJ7S45s/DzaWBUkvWaJoThkMiXnRrq+SAsK5vzOg2L
PE+O49UNUzJYJURk+SK0VKeYGsulHPbrCGxFQG9PlS2TXEK10eBkIgqJxHe4jHXBUzlyqHO2NLr5
SlWQwz625GD0jZXmhgzEVehWdQna/Plnv+R14i5bBQ5H/UzM0h69bI1dj+5CxgNH5ITey5d+3brL
7GTMbEyJ812mCEt/LmZbBrsurkWOO25SA6cfQ4ZQ1aiN7YL8AAAAAAAA

--Apple-Mail=_BB303856-1976-4B35-B095-526551BDC4CD--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D88872FD-2EC8-4D5F-B86A-63318D07067D>