Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fragen zu etc-update
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
klemi
Guru
Guru


Joined: 26 May 2004
Posts: 494
Location: Erbach b. Ulm

PostPosted: Thu Feb 17, 2005 11:13 am    Post subject: Fragen zu etc-update Reply with quote

Folgende Files wollen bearbeitet werden. Ich bin mir nicht sicher, was ich hier machen soll.
Jemand eine Idee - Tipp?
Quote:
Showing differences between /etc/securetty and /etc/._cfg0000_securetty
--- /etc/securetty 2004-12-12 22:28:20.000000000 +0000
+++ /etc/._cfg0000_securetty 2005-02-13 14:36:22.000000000 +0000
@@ -27,4 +27,3 @@

tts/0
ttyS0
-tts/0
###########################################################################
Showing differences between /etc/conf.d/spamd and /etc/conf.d/._cfg0000_spamd
--- /etc/conf.d/spamd 2005-01-16 13:25:30.000000000 +0000
+++ /etc/conf.d/._cfg0000_spamd 2005-02-13 14:34:25.000000000 +0000
@@ -21,4 +21,4 @@
#
# for more help look in man spamd

-SPAMD_OPTS="-i -m 5 -c -H"
+SPAMD_OPTS="-m 5 -c -H"
#############################################################################
Showing differences between /etc/ssl/misc/CA.pl and /etc/ssl/misc/._cfg0000_CA.pl
--- /etc/ssl/misc/CA.pl 2004-12-12 13:06:22.000000000 +0000
+++ /etc/ssl/misc/._cfg0000_CA.pl 2005-02-13 13:00:03.000000000 +0000
@@ -82,9 +82,6 @@
mkdir "${CATOP}/crl", $DIRMODE ;
mkdir "${CATOP}/newcerts", $DIRMODE;
mkdir "${CATOP}/private", $DIRMODE;
- open OUT, ">${CATOP}/serial";
- print OUT "01\n";
- close OUT;
open OUT, ">${CATOP}/index.txt";
close OUT;
}
@@ -106,6 +103,10 @@
$RET=$?;
}
}
+ if (! -f "${CATOP}/serial" ) {
+ system ("$X509 -in ${CATOP}/$CACERT -noout "
+ . "-next_serial -out ${CATOP}/serial");
+ }
} elsif (/^-pkcs12$/) {
my $cname = $ARGV[1];
$cname = "My Certificate" unless defined $cname;
#######################################################################
Showing differences between /etc/ssl/misc/c_issuer and /etc/ssl/misc/._cfg0000_c_issuer
--- /etc/ssl/misc/c_issuer 2004-12-12 13:06:22.000000000 +0000
+++ /etc/ssl/misc/._cfg0000_c_issuer 2005-02-13 13:00:03.000000000 +0000
@@ -6,5 +6,5 @@
for i in $*
do
n=`openssl x509 -issuer -noout -in $i`
- echo "$i\t$n"
+ echo "$i $n"
done
#############################################################################
Showing differences between /etc/ssmtp/ssmtp.conf and /etc/ssmtp/._cfg0000_ssmtp.conf
--- /etc/ssmtp/ssmtp.conf 2004-12-12 22:57:42.000000000 +0000
+++ /etc/ssmtp/._cfg0000_ssmtp.conf 2005-02-13 14:34:44.000000000 +0000
@@ -3,6 +3,7 @@
#

# The person who gets all mail for userids < 1000
+# Make this empty to disable rewriting.
root=postmaster

# The place where the mail goes. The actual machine name is required
@@ -21,7 +22,12 @@
rewriteDomain=

# The full hostname
-hostname=_HOSTNAME_
+
+# Gentoo bug #47562
+# Commenting the following line will force ssmtp to figure
+# out the hostname itself.
+
+# hostname=_HOSTNAME_

# Set this to never rewrite the "From:" line (unless not given) and to
# use that address in the "from line" of the envelope.
################################################################################
Showing differences between /usr/kde/3.3/share/config/kdm/kdmrc and /usr/kde/3.3/share/config/kdm/._cfg0000_kdmrc
--- /usr/kde/3.3/share/config/kdm/kdmrc 2005-01-08 02:42:58.000000000 +0000
+++ /usr/kde/3.3/share/config/kdm/._cfg0000_kdmrc 2005-02-13 14:32:40.000000000 +0000
@@ -412,7 +412,7 @@
# Random seed for forging saved session types, etc. of unknown users.
# This value should be random but constant across the login domain.
# Default is 0
-ForgingSeed=529015742
+ForgingSeed=210767968
# Specify conversation plugins for the login dialog. Each plugin can be
# specified as a base name (which expands to $kde_modulesdir/kgreet_$base)
# or as a full pathname.


Danke!
_________________
Gentoo 2.6.16-r12; AMD Athlon 3GHz; NVidia GeForce 5700; Hauppauge nexus-s
Back to top
View user's profile Send private message
benjamin200
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1426
Location: DE Munich

PostPosted: Thu Feb 17, 2005 11:22 am    Post subject: Reply with quote

HOWTO etc-update richtig anwenden
http://de.gentoo-wiki.com/HOWTO_etc-update_richtig_anwenden

EDIT:
Sollte all deine Fragen beantworten :


Thx,
Benjamin
_________________
Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens
Back to top
View user's profile Send private message
klemi
Guru
Guru


Joined: 26 May 2004
Posts: 494
Location: Erbach b. Ulm

PostPosted: Thu Feb 17, 2005 11:29 am    Post subject: Reply with quote

Danke benjamin200. Das HOWTO kenn ich.
Aber ganz konkret kann es ja nicht werden. Ich weiß halt nicht was die gewünschen Änderungen in den Konfigurationsdateien bewirken - das ist mein Problem.
z.B.
Code:
 /etc/ssl/misc/CA.pl and /etc/ssl/misc/._cfg0000_CA.pl

Ich weiß nicht was die Änderung bewirken soll.

Schon gar nicht die Feinheit in
Code:
 /etc/ssl/misc/c_issuer and /etc/ssl/misc/._cfg0000_c_issuer


Wie man Änderunegn übernimmt oder wegwirft ist mir schon klar nach dem HOWTO!

Danke!
_________________
Gentoo 2.6.16-r12; AMD Athlon 3GHz; NVidia GeForce 5700; Hauppauge nexus-s
Back to top
View user's profile Send private message
primat
Guru
Guru


Joined: 12 Jan 2004
Posts: 437
Location: Berlin

PostPosted: Thu Feb 17, 2005 11:29 am    Post subject: Reply with quote

Ansonsten kann man sich auch dispatch-conf mal genauer anschauen. Find ich besser als etc-update!
Gruss
primat
Back to top
View user's profile Send private message
benjamin200
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1426
Location: DE Munich

PostPosted: Thu Feb 17, 2005 11:36 am    Post subject: Reply with quote

Quote:

Verfasst am: Do Feb 17, 2005 12:29 pm Titel:

--------------------------------------------------------------------------------

Danke benjamin200. Das HOWTO kenn ich.
Aber ganz konkret kann es ja nicht werden. Ich weiß halt nicht was die gewünschen Änderungen in den Konfigurationsdateien bewirken - das ist mein Problem.
z.B. Code:
/etc/ssl/misc/CA.pl and /etc/ssl/misc/._cfg0000_CA.pl

Ich weiß nicht was die Änderung bewirken soll.



das sagt dir etc-update nicht, sorry. Aber du kannst sehen was es ändern will und wie es aktuell aus siehst. Meistens werden neue Features, Pfadangaben implementiert / geändert. Infos kannst du auf der Homepage der Entwickler finden.


Gruß,
Benjamin
_________________
Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens
Back to top
View user's profile Send private message
c07
Veteran
Veteran


Joined: 25 Oct 2002
Posts: 1091

PostPosted: Thu Feb 17, 2005 12:06 pm    Post subject: Reply with quote

klemi wrote:
Ich weiß nicht was die Änderung bewirken soll.

Dann übernimm sie. Du musst nur aufpassen, dass deine eigenen Anpassungen nicht überschrieben werden, aber die solltest du ja kennen.

etc-update ist nicht ganz optimal. Eigentlich würd ich erwarten, dass Konfigurationsdateien, die seit der letzten Installation unverändert geblieben sind, automatisch überschrieben werden (zumindest optional).
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2656
Location: Heidelberg - Germany

PostPosted: Thu Feb 17, 2005 5:37 pm    Post subject: Überschreiben? Reply with quote

Mit Überschreiben habe ich mir schon das ganze System zuschossen, weil beim Wechsel von Xfree auf Xorg irgendwelche configs des XServer überschrieben wurden, so daß dieser nicht mehr hochkam. Das war ein Stress - übrigens ist mir das mehrfach passiert nur das ich mit heute immer backups von der Originalen erstelle, so daß ich es zurückrollen konnte. Seitdem überschreibe ich nur in fällen, wo ich genau weiß was los ist.
Back to top
View user's profile Send private message
primat
Guru
Guru


Joined: 12 Jan 2004
Posts: 437
Location: Berlin

PostPosted: Thu Feb 17, 2005 6:03 pm    Post subject: Reply with quote

Alle, die sich mit etc-update nicht zufrieden sind sollten sich wirklich mal dispatch-conf ansehen. Auszug aus der manpage:
Quote:
NAME
dispatch-conf - Sanely update configuration files after emerging new packages

SYNOPSIS
dispatch-conf

DESCRIPTION
dispatch-conf is designed to be run after merging new packages in order to see if there are updates to
the configuration files. If a new configuration file will overwrite an old one, dispatch-conf will
prompt the user for a decision about how to resolve the discrepancy. Advantages of dispatch-conf
include easy rollback (changes to config files are stored either using patches or rcs) and the ability
to automatically update config files that the user has never modified or that differ from the current
version only in CVS cruft or white space.

dispatch-conf will check all directories in the CONFIG_PROTECT variable. All config files found in
CONFIG_PROTECT_MASK will automatically be updated for you by dispatch-conf. See make.conf(5) for more
information.

Gruss
Back to top
View user's profile Send private message
c07
Veteran
Veteran


Joined: 25 Oct 2002
Posts: 1091

PostPosted: Thu Feb 17, 2005 7:26 pm    Post subject: Reply with quote

primat wrote:
Quote:
the ability to automatically update config files that the user has never modified

Wie macht es das? Soweit ich den Sachverhalt versteh, ist das außerhalb von Portage unmöglich (falls AUTOCLEAN an ist). Zum Zeitpunkt, wo die Konfiguration bearbeitet wird, sind ja schon alle Informationen über das alte Paket gelöscht, also kann auch nicht mehr rekonstruiert werden, ob die alte Datei mal verändert worden ist.
Back to top
View user's profile Send private message
primat
Guru
Guru


Joined: 12 Jan 2004
Posts: 437
Location: Berlin

PostPosted: Thu Feb 17, 2005 8:10 pm    Post subject: Reply with quote

Einfacher Trick:
Code:
qpkg -f /usr/sbin/dispatch-conf
sys-apps/portage *

dispatch-conf gehört zu portage!
Gruss
Back to top
View user's profile Send private message
klemi
Guru
Guru


Joined: 26 May 2004
Posts: 494
Location: Erbach b. Ulm

PostPosted: Thu Feb 17, 2005 8:13 pm    Post subject: Reply with quote

Danke für die Rückmeldungen.
Ich habe alle Vorschäge übernommen. Es scheint die richtige Wahl gewesen zu sein.

Gruß
_________________
Gentoo 2.6.16-r12; AMD Athlon 3GHz; NVidia GeForce 5700; Hauppauge nexus-s
Back to top
View user's profile Send private message
ChL@Gentoo
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jun 2004
Posts: 94
Location: Heidelberg (Germany)

PostPosted: Thu Feb 17, 2005 8:47 pm    Post subject: Reply with quote

Also wenn ich dispatch-conf aufrufe kommt folgende Fehlermeldung:
Code:
dispatch-conf: Config archive dir [/etc/config-archive] must exist; fatal

Was genau will er denn in diesem Verzeichnis erstellen? Und warum wird das nicht beim Emergen vom portage angelegt?
Back to top
View user's profile Send private message
c07
Veteran
Veteran


Joined: 25 Oct 2002
Posts: 1091

PostPosted: Thu Feb 17, 2005 8:54 pm    Post subject: Reply with quote

Jetzt hab ich mir dispatch-conf mal kurz angeschaut. Scheint einfach Kopien der alten Konfigs (eben in /etc/config-archive ) zu halten. Damit kann es unveränderte Dateien erkennen, wenn es mal einige Zeit regelmäßig und ausschließlich benutzt worden ist. Ist nicht unbedingt das Konzept, das ich für ideal halt.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum