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
[-- Attachment #1 --]
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 youre 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 raw", non port source to the jail from the host system by running something like ./configure --prefix=/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
[-- Attachment #2 --]
0 *H
010 + 0 *H
040 0
*H
0}10 UIL10U
StartCom Ltd.1+0)U"Secure Digital Certificate Signing1)0'U StartCom Certification Authority0
071024210255Z
171024210255Z010 UIL10U
StartCom Ltd.1+0)U"Secure Digital Certificate Signing1806U/StartCom Class 2 Primary Intermediate Client CA0"0
*H
0
(E,3*
U]"gFSݤ>}m
w鞆FA7~
|-ql"/Q?Vp`G&viĜ73{B'87ds Nfz1%TII|2o/mD \t :08VGqǴ3Rp}JTzF;&X}rD Q6 00U00U0UUo1ʹk1㬻0U#0N@[i04hCA0f+Z0X0'+0http://ocsp.startssl.com/ca0-+0!http://www.startssl.com/sfsca.crt0[UT0R0'%#!http://www.startssl.com/sfsca.crl0'%#!http://crl.startssl.com/sfsca.crl0U y0w0u+70f0.+"http://www.startssl.com/policy.pdf04+(http://www.startssl.com/intermediate.pdf0
*H
:'
ӴiiL\};JBG
Ƚ1FagR~9P1 Rvg}ȜsWr<];sY/Msߟq'ɽNpʧ`&pPz/ў-Eׁ1KeET5ꥊ@v錈{8@t e=ރt92Ow[%[kd+YO!_uyGYqE\pCbM~
@3xnM+RH?o'V=INjWbᑶYOuZk*9Jz)wjNnZqwZV=t+΄BMkd"ܧfVSąmzLu8¾ņVcoiQ^7|#Bl@/D;+@8 ~brA+}TLVŜ2J (Hn}Rt] fiZ
U ]+nŚܓqEF$^fsȕP)*6\q)900m?0
*H
010 UIL10U
StartCom Ltd.1+0)U"Secure Digital Certificate Signing1806U/StartCom Class 2 Primary Intermediate Client CA0
131204205901Z
151206173231Z010U
3Oc1TaBbV6My4oST10 UUS10U
California10USan Luis Obispo10UChristopher Kelley1&0$ *H
mail@thechriskelley.com0"0
*H
0
rj-YԉȔ䖆šS~>59oJP=Yiq&efP.;rzd϶EK^9-Z1M+ԝY(bC2adP Ƽ!TuDDFQGD/kMS#yGTu ]z*vOMg-{`=$J+Mow[O>Ք9&Dž
s>mnbc\qnrf #G 00 U0 0U0U%0++0UKq& ,y0U#0Uo1ʹk1㬻0"U0mail@thechriskelley.com0LU C0?0;+70*0.+"http://www.startssl.com/policy.pdf0+00' StartCom Certification Authority0This certificate was issued according to the Class 2 Validation requirements of the StartCom CA policy, reliance only for the intended purpose in compliance of the relying party obligations.06U/0-0+)'%http://crl.startssl.com/crtu2-crl.crl0+009+0-http://ocsp.startssl.com/sub/class2/client/ca0B+06http://aia.startssl.com/certs/sub.class2.client.ca.crt0#U0http://www.startssl.com/0
*H
9_ yZqFу!b5,tCڟSkI$%Ms%UIQ|
,5
<ap=!6`9. ҚNOGA1{5#=Kfbbϖfrǔ+n_Xz
ܪsds'Ā~'o :{@Y[?.swA!9WI"^ Ugqx Ŗ+?7fYx=f<|µf1l0h0010 UIL10U
StartCom Ltd.1+0)U"Secure Digital Certificate Signing1806U/StartCom Class 2 Primary Intermediate Client CA?0 + 0 *H
1 *H
0 *H
1
140418041553Z0# *H
1R)m͈ zTJ"0 +710010 UIL10U
StartCom Ltd.1+0)U"Secure Digital Certificate Signing1806U/StartCom Class 2 Primary Intermediate Client CA?0*H
1010 UIL10U
StartCom Ltd.1+0)U"Secure Digital Certificate Signing1806U/StartCom Class 2 Primary Intermediate Client CA?0
*H
!Pmm7wTG:.8'E&a7l8Y$&HHY=ǷஅJ؍fN֔ .9i`T&ȗ ,+:
<O
S2X%Dd"T˥lE@oO-\Bd"
wuS9rs4JU>`UVu gu.[GLl]BG˗~ݺdlL]K.f[.E;nRCPը
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D88872FD-2EC8-4D5F-B86A-63318D07067D>
