View previous topic :: View next topic |
Author |
Message |
cub n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 07 Dec 2004 Posts: 4
|
Posted: Tue Dec 07, 2004 11:51 am Post subject: Emerge and SSL certs |
|
|
Hello, all!
I newbie in Gentoo and want to know how I can use emerge/qpkg and its friends with full power. So I have some questions.
How I can regenerate ssl certificate after installing some port (cyrus, apache etc) using standart tools like emegre?
And where have I to define variables used by /usr/portage/eclass/ssl-cert.eclass - in /etc/make.conf?
Thx. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Tue Dec 07, 2004 11:58 am Post subject: Re: Emerge and SSL certs |
|
|
cub wrote: | Hello, all!
I newbie in Gentoo |
Noted.
cub wrote: | and want to know how I can use emerge/qpkg and its friends with full power. |
Read the relevant docs on the Gentoo site:
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=1
cub wrote: | So I have some questions.
How I can regenerate ssl certificate after installing some port (cyrus, apache etc) using standart tools like emegre? |
Regenerate what certificate ? For apache ?
The protage tools themselves do not use or need certificates, so I'm not sure what you mean here.
To generate apache SSL certificates read the OpenSSL documentation included with the installation.
cub wrote: | And where have I to define variables used by /usr/portage/eclass/ssl-cert.eclass - in /etc/make.conf? |
I have no idea what you mean.
Since you are - as you say - new to Gentoo, I don't think you need to start fiddling with ebuilds and eclasses just yet.
Read the Handbook, install Gentoo (if you haven't already) and then move on to the advanced documentation. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cub n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 07 Dec 2004 Posts: 4
|
Posted: Tue Dec 07, 2004 12:27 pm Post subject: |
|
|
As I say, I'm newbie in Gentoo. But not in other *nix'es
So sorry, but your link not help me.
I can give example what I meant:
# USE="ssl" emerge cyrus-imapd
In such case, cyrus portage generate self-signed ssl certificates and place theirs in /etc/ssl/cyrus . I do some investigations and see than man file (as I think) is /usr/portage/eclass/ssl-cert.eclass. But I don't known Phyton and can't fully understand all dependecies in code.
Can anybody give me some explanation - how I can use emerge and others to regenerate ssl-cert's without full reinstalling cyrus portage (for ex.)? And where I shuld define SSL_* varts used by portage classes? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Tue Dec 07, 2004 12:30 pm Post subject: |
|
|
And again I correct you: you neither want nor need to concern yourself with eclasses or Python.
The SSL certificate programs are included with OpenSSL, as always.
Read the docs provided.
An eclass is not a "man"- whichever you mean by that vague statement.
If you want the ebuild to generate new SSL keys for you then read, learn and edit that. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cub n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 07 Dec 2004 Posts: 4
|
Posted: Tue Dec 07, 2004 2:16 pm Post subject: |
|
|
I'm sorry, in prev. message "main" should be instead of "man".
My english is very bad... and I can't explain everything I want... Ok, I'll try to explain on an example.
In FreeBSD ports I can make something like the following:
cd /usr/ports/www/apache13-ssl
make install clean
... use apache...
... and when I want to re-generate certificates I can do....
cd /usr/ports/www/apache13-ssl
make certificate
Can I do same things in Gentoo - for ex. with cyrus-imapd? And in what way?
This is what I've done:
USE="ssl" emerge cyrus
and got installed cyrus, and portage system generates for me ssl-certificates. But when I want to re-generate their - what command should I use?
For now (as quick and dirty hack) I copied cyrus ebuild file into a file with other name, deleted unneded lines for it (all except about ssl) and tryed to install "new" ebuild. At last with some troubles - I've got whatl I wanted. But this way is very ugly, and I think that emerge can already have some functionality to do this. And my first question was exactly about this, but in more wide form. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Tue Dec 07, 2004 2:34 pm Post subject: |
|
|
Like I said: portage doesn't do this - not exactly.
Any post-installation information is in the ebuild file, which is executed by the ebuild program.
You can read this file, since it is a script for portage, and determine how the SSL certificates are created.
If you want a simple way to remerge stuff, do this:
Then edit make.conf and add ccache to the FEATURES.
This will enable the system-wide compiler cache, meaning if you remerge a package in which absolutely nothing has changed it will not be recompiled - everything will come out of the cache.
But I think there is an option (to emerge or to ebuild) that lets you reconfigure your package, similar to debian's --reconfigure option for dpkg. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|