Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jul 2014 09:35:25 -0400
From:      Allan Jude <allanjude@freebsd.org>
To:        freebsd-doc@freebsd.org
Subject:   Re: HOWTO articles for migrating from Linux to FreeBSD, especially for pkg?
Message-ID:  <53C9229D.8090406@freebsd.org>
In-Reply-To: <53C83EB4.2060202@infracaninophile.co.uk>
References:  <CAG=rPVcyqq2072%2BgF_X91BocxykJB6%2BU0cMhaNexxfVFpVqUbA@mail.gmail.com> <CAJ-Vmo=p6-7KCL8C09O4dPq04pitW5wDbtsDAyz-u4Qtr7rpRA@mail.gmail.com> <CAGZBXN8-Gq1=w8SBHCw26ZX4a29KHBx%2B4FV9XGK1HJiCOGuJ9A@mail.gmail.com> <CAJ-Vmo=8uAXqmX8D%2BoP%2B63dHWVKN6cn8wBH0HNsVmUciNRF1BA@mail.gmail.com> <53C82EC4.8060304@gmail.com> <CAPS9%2BSuswkJNuwhT=o%2B7sBQpbaN0-jhnRK5drugqZw54%2BqzgzA@mail.gmail.com> <53C83EB4.2060202@infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--98GmvM4PqAJQ2RLdjHID2jgTbQp8rnoOx
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 2014-07-17 17:23, Matthew Seaman wrote:
> On 17/07/2014 21:21, Andreas Nilsson wrote:
>>>>> No. Please NEVER do that! The user must be able to edit the files a=
nd
>>>>>>>> start the service by himself.
>>>>>>
>>>>>> Cool, so what's the single line command needed to type in to start=
 a
>>>>>> given package service?
>>>>
>>>> Aren't sysrc(8) and service(8) for this kind of stuff?
>>>>
>> They sure are.
>>
>> Well, pkg install $service ; sysrc ${service}_enable=3D"YES" would do.=

>> Although some services have different names than the packge, which is =
sort
>> of annoying.
>>
>> I wouldn't mind though if pkg via dialog or some such mechanism asked =
if
>> wanted it enabled. Or via pkg-message told me howto enable it.
>=20
> I quite like the idea of having eg, an apache-config package, which whe=
n
> installed sets up httpd.conf in a way that allows adding
> phpMyAdmin-config or other similar application config packages on top.
> And enables everything in rc.conf, if not firing up apache on install[*=
].
>=20
> *But* this should be separate from packages that install the software s=
o
> if you want to write your own configuration you don't have to go throug=
h
> and unpick the pre-canned setup.
>=20
> Sometimes you just need to sling something on a box and have it working=

> ASAP.
>=20
> 	Cheers,
>=20
> 	Matthew
>=20
> [*] Well, actually it go for nginx + php-fpm + webapp rather than
> apache, but the principle is the same.
>=20

The apache package created /usr/local/etc/apache22/Includes/

But I think the default httpd.conf has the line that includes it
commented out.

We could obviously do the same for nginx, create an includes directory et=
c.

Then we'd have to teach the package infrastructure to understand which
web server you are using, and each port would need a template for each
web server. And again, we'd not want it on by default, so we'd install
phpmyadmin.conf.sample, and the user would have to copy it to
phpmyadmin.conf to enable it. As long as we give them the cp command in
the pkg-message, this seems fairly easy for a beginner to do.

--=20
Allan Jude


--98GmvM4PqAJQ2RLdjHID2jgTbQp8rnoOx
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJTySKeAAoJEJrBFpNRJZKfb6YQAKh5AL6j4SeTaps0QMQsXUOM
HFbvCSu6oDemFzWAE7k27M9tcOoLEwkK/Z13fbr/LZNelqFw8/lHy1elkXuNOfZ6
AKNks8+sJ1lL1kaHmdoflP+UHEsQgePXRe1FeqENkCDYaiInJxzkJapfFSHffZJO
0s3SOL/Rd16QTBUcRsXjC9NiQMo3Bu/S4O06R8JyRj5yanNYcND767MjF/ND/Sd3
JvhPOc6D4PE0FCoXrQfo9ARCWF542DfPs1JvOshw/Z+S1prKfyORBlqlGMq8LssW
iXjLp7hvXvP+XgV8VU+LGqSEi6q9fMlK+gbsIuGCdEv0x4H6+YucyrKCJUHdU4lM
4A1TzQ+m0ar1KlbgZRuPNsnLdT16fA/G5pCcwwyFMwClQ1c3Fm7acWl1m+2EG9fD
4dgwx8rswGMoUqMPYs8wMGovyQFtItuja6G9/U0qGmzSavSSZvehYns7deAHacbK
eTiV9RBwt6AHVonjUQwX+1KKioNSn1VqcGB9FIEk02yJyUxiPnIdTWT7wJ/1lJgU
amBCdZ8ViWCAfmzYlL1HWV2m0imErcnWqVipGcZGEmLgZx+nvu5bNgv1eScSh0Cc
DWDh5eYGuK6TQkZBCl6BQxQg+y4qHZjZbBwJonocNHdOgaIqAUVfy+9OKznuZ/6v
LGI9A7ollGUa13ppMx24
=6qGN
-----END PGP SIGNATURE-----

--98GmvM4PqAJQ2RLdjHID2jgTbQp8rnoOx--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53C9229D.8090406>