Gentoo Archives: gentoo-user-br

From: Alexandre Marcolino <alexandre.marcolino@×××××××.br>
To: gentoo-user-br@l.g.o
Subject: Re: [gentoo-user-br] Maldito websync - Existe alternativaviável ?
Date: Tue, 18 Apr 2006 11:47:24
Message-Id: 1145360920.14244.29.camel@brajmlinux.brasil.latam.cea
In Reply to: Re: [gentoo-user-br] Maldito websync - Existe alternativa viável ? by "Marcus Fazzi (Anunakin)"
1 Pois é, fiz tudo isso mas esse troço é lento uma vida inteira. Precisei
2 atualizar meu portage para pegar a última versão do firefox. Já fazia
3 tempo que não atualizava, justamente porque demora bastante e nem sempre
4 posso ficar esperando para ver se deu certo.
5
6 O Script que passaram no email anterior parece beleza. O isa proxy lixo
7 server advanced que tem aqui corta downloads de vez em quando, pois faz
8 uma limpeza de cache a cada XGB de disco e mata TUDO que esta sendo
9 downloadado. Por isso tenho que pagiar o websync.
10
11 Mas com o script já posso adaptá-lo para esta triste realidade.
12
13
14 Valeu!
15
16
17 MARCOLINUX
18 Em Seg, 2006-04-17 às 20:00 -0300, Marcus Fazzi (Anunakin) escreveu:
19 > rapaz, o tempo do emerge-webrsync e do emerge --sync é praticamente o
20 > mesmo... como o Veiga falou, tens de setar as variáveis de proxy no
21 > ambiente, assim:
22 >
23 > no arquivo /etc/profile , inclua as seguintes linhas:
24 >
25 > export https_proxy="http://nome:senha@servidorproxy:porta"
26 > export http_proxy="http://nome:senha@servidorproxy:porta"
27 > export ftp_proxy="http://nome:senha@servidorproxy:porta"
28 > export
29 > no_proxy="localhost,outrosservidoresDaIntranetSeparadosporvirgula"
30 >
31 >
32 > Assim, funcionam o wget, emerge, emerge_webrsync, e muitos outros...
33 > se seu proxy for ISA (vixe!) use o ntlmaps (tem no portage)
34 >
35 >
36 >
37 > On 4/17/06, Daniel da Veiga <danieldaveiga@×××××.com> wrote:
38 > On 4/17/06, Alexandre Marcolino
39 > <alexandre.marcolino@×××××××.br> wrote:
40 > > Ola a todos,
41 > >
42 > > Cansado de tantas horas de espera para rodar o comando
43 > emerge-webrsync
44 > > decidi perguntar a lista o que um pobre mortal sem rsync
45 > pode fazer para
46 > > ter seu portage atualizado.
47 > >
48 > > Veja, um script que faça o download e aplique já pode ser
49 > uma saída, mas
50 > > eu nem sei por onde começar.
51 > >
52 > > Links, dicas e truques mais que bem vindos.
53 >
54 > Heh, tive o mesmo problema, você pode manualmente atualizar a
55 > árvore
56 > do portage, assim:
57 >
58 > wget <ultimo snapshot>
59 > tar -xvjf portage-<data>.tar.bz2 -C /usr
60 > emerge --regen
61 > emerge --metadata
62 >
63 > Mas eu prefiro o script desse cara "mikenerone" postado nos
64 > fóruns:
65 >
66 > http://forums.gentoo.org/viewtopic-t-325007.html
67 >
68 > -----------------------------------------------------------
69 > #!/bin/bash
70 > # shotsync-0.1.2
71 > # Ripped almost line for line from the sync_local() function
72 > of
73 > emerge-webrsync.
74 > # It's purpose is to provide an easy way to sync your Gentoo
75 > portage
76 > tree to a snapshot file.
77 > # Usage example:
78 > "shotsync /path/to/portage-20050507.tar.bz2"
79 > (relative path is fine, too)
80 > # There is no warranty of any kind associated with the use
81 > of this script.
82 > # Trivially created by Mike Nerone
83 >
84 > SNAPSHOT="$1"
85 > PORTDIR="$(/usr/lib/portage/bin/portageq portdir)"
86 > PORTDIR="${PORTDIR%%/}"
87 > TMPDIR="$(/usr/lib/portage/bin/portageq envvar
88 > PORTAGE_TMPDIR)"
89 > TMPDIR="${TMPDIR%%/}/shotsync"
90 >
91 > if [ -e "$TMPDIR" ]; then
92 > echo Cleaning out shotsync\'s tmpdir...
93 > rm -rf "$TMPDIR"
94 > fi
95 > mkdir -p "$TMPDIR"
96 >
97 > echo Extracting snapshot file "$SNAPSHOT"...
98 > if ! tar -C "$TMPDIR" -jxf "$SNAPSHOT"; then
99 > echo "Tar failed to extract the image. Please review the
100 > output."
101 > echo "Executed command: tar -C \"$TMPDIR\" -jxf \"$SNAPSHOT
102 > \""
103 > exit 1
104 > fi
105 >
106 > # Uncomment the next line if you'd like the snapshot file you
107 > provided
108 > # to be deleted automatically after it is extracted.
109 > #rm -f "$SNAPSHOT"
110 >
111 > # Make sure user and group file ownership is root
112 > chown -R 0:0 portage
113 >
114 > echo Syncing local portage tree to extracted snapshot...
115 > rsync -av --progress --stats --delete --delete-after \
116 > --exclude='/distfiles' --exclude='/packages' \
117 > --exclude='/local' "$TMPDIR/portage/" "$PORTDIR"
118 > echo "Cleaning up..."
119 > rm -rf "$TMPDIR"
120 > echo "Updating portage cache..."
121 > emerge metadata
122 > -----------------------------------------------------------
123 >
124 > Depois aprendi a setar corretamente as variáveis de ambiente
125 > para
126 > proxy e não precisei mais me incomodar, o emerge-webrsync
127 > começou a
128 > funcionar como deveria.
129 >
130 > --
131 > Daniel da Veiga
132 > Computer Operator - RS - Brazil
133 > -----BEGIN GEEK CODE BLOCK-----
134 > Version: 3.1
135 > GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w
136 > O M- V-
137 > PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
138 > ------END GEEK CODE BLOCK------
139 >
140 > --
141 > gentoo-user-br@g.o mailing list
142 >
143 >
144 >
145 >
146 > --
147 > Marcus Fazzi
148 > Administrador de Sistemas Linux
149 > Desenvolvedor PHP
150 > http://www.vivaphp.net
151
152
153 Esta mensagem é confidencial e pode estar amparada por normas legais. Se você recebeu esta mensagem por engano, por favor nos avise respondendo ao e-mail e posteriormente o apague de seu sistema; você não deve copiar ou divulgar o conteúdo desta mensagem. Todas as mensagens enviadas a esta empresa, ou dela recebidas, podem ser monitoradas para assegurar a concordância com políticas internas e proteger nosso negócio.
154
155 Antes de imprimir pense em seu compromisso com o Meio Ambiente.
156
157 This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake please let us know by reply and then delete it from your system; you should not copy the message or disclose its contents to anyone. All messages sent to and from this company may be monitored to ensure compliance with internal policies and to protect our business.
158
159 Before printing, think about the Environment.
160
161 --
162 gentoo-user-br@g.o mailing list