Gentoo Archives: gentoo-user-br

From: "Marcus Fazzi (Anunakin)" <anunakin@×××××.com>
To: gentoo-user-br@l.g.o
Subject: Re: [gentoo-user-br] Maldito websync - Existe alternativa viável ?
Date: Mon, 17 Apr 2006 23:00:12
Message-Id: f95b8f060604171600x64bfc1eayd62cc67dc47699cf@mail.gmail.com
In Reply to: Re: [gentoo-user-br] Maldito websync - Existe alternativa viável ? by Daniel da Veiga
1 rapaz, o tempo do emerge-webrsync e do emerge --sync é praticamente o
2 mesmo... como o Veiga falou, tens de setar as variáveis de proxy no
3 ambiente, assim:
4
5 no arquivo /etc/profile , inclua as seguintes linhas:
6
7 export https_proxy="http://nome:senha@servidorproxy:porta"
8 export http_proxy="http://nome:senha@servidorproxy:porta"
9 export ftp_proxy="http://nome:senha@servidorproxy:porta"
10 export no_proxy="localhost,outrosservidoresDaIntranetSeparadosporvirgula"
11
12
13 Assim, funcionam o wget, emerge, emerge_webrsync, e muitos outros... se seu
14 proxy for ISA (vixe!) use o ntlmaps (tem no portage)
15
16
17
18 On 4/17/06, Daniel da Veiga <danieldaveiga@×××××.com> wrote:
19 >
20 > On 4/17/06, Alexandre Marcolino <alexandre.marcolino@×××××××.br> wrote:
21 > > Ola a todos,
22 > >
23 > > Cansado de tantas horas de espera para rodar o comando emerge-webrsync
24 > > decidi perguntar a lista o que um pobre mortal sem rsync pode fazer para
25 > > ter seu portage atualizado.
26 > >
27 > > Veja, um script que faça o download e aplique já pode ser uma saída, mas
28 > > eu nem sei por onde começar.
29 > >
30 > > Links, dicas e truques mais que bem vindos.
31 >
32 > Heh, tive o mesmo problema, você pode manualmente atualizar a árvore
33 > do portage, assim:
34 >
35 > wget <ultimo snapshot>
36 > tar -xvjf portage-<data>.tar.bz2 -C /usr
37 > emerge --regen
38 > emerge --metadata
39 >
40 > Mas eu prefiro o script desse cara "mikenerone" postado nos fóruns:
41 >
42 > http://forums.gentoo.org/viewtopic-t-325007.html
43 >
44 > -----------------------------------------------------------
45 > #!/bin/bash
46 > # shotsync-0.1.2
47 > # Ripped almost line for line from the sync_local() function of
48 > emerge-webrsync.
49 > # It's purpose is to provide an easy way to sync your Gentoo portage
50 > tree to a snapshot file.
51 > # Usage example: "shotsync /path/to/portage-20050507.tar.bz2"
52 > (relative path is fine, too)
53 > # There is no warranty of any kind associated with the use of this
54 > script.
55 > # Trivially created by Mike Nerone
56 >
57 > SNAPSHOT="$1"
58 > PORTDIR="$(/usr/lib/portage/bin/portageq portdir)"
59 > PORTDIR="${PORTDIR%%/}"
60 > TMPDIR="$(/usr/lib/portage/bin/portageq envvar PORTAGE_TMPDIR)"
61 > TMPDIR="${TMPDIR%%/}/shotsync"
62 >
63 > if [ -e "$TMPDIR" ]; then
64 > echo Cleaning out shotsync\'s tmpdir...
65 > rm -rf "$TMPDIR"
66 > fi
67 > mkdir -p "$TMPDIR"
68 >
69 > echo Extracting snapshot file "$SNAPSHOT"...
70 > if ! tar -C "$TMPDIR" -jxf "$SNAPSHOT"; then
71 > echo "Tar failed to extract the image. Please review the output."
72 > echo "Executed command: tar -C \"$TMPDIR\" -jxf \"$SNAPSHOT\""
73 > exit 1
74 > fi
75 >
76 > # Uncomment the next line if you'd like the snapshot file you provided
77 > # to be deleted automatically after it is extracted.
78 > #rm -f "$SNAPSHOT"
79 >
80 > # Make sure user and group file ownership is root
81 > chown -R 0:0 portage
82 >
83 > echo Syncing local portage tree to extracted snapshot...
84 > rsync -av --progress --stats --delete --delete-after \
85 > --exclude='/distfiles' --exclude='/packages' \
86 > --exclude='/local' "$TMPDIR/portage/" "$PORTDIR"
87 > echo "Cleaning up..."
88 > rm -rf "$TMPDIR"
89 > echo "Updating portage cache..."
90 > emerge metadata
91 > -----------------------------------------------------------
92 >
93 > Depois aprendi a setar corretamente as variáveis de ambiente para
94 > proxy e não precisei mais me incomodar, o emerge-webrsync começou a
95 > funcionar como deveria.
96 >
97 > --
98 > Daniel da Veiga
99 > Computer Operator - RS - Brazil
100 > -----BEGIN GEEK CODE BLOCK-----
101 > Version: 3.1
102 > GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
103 > PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
104 > ------END GEEK CODE BLOCK------
105 >
106 > --
107 > gentoo-user-br@g.o mailing list
108 >
109 >
110
111
112 --
113 Marcus Fazzi
114 Administrador de Sistemas Linux
115 Desenvolvedor PHP
116 http://www.vivaphp.net

Replies

Subject Author
Re: [gentoo-user-br] Maldito websync - Existe alternativaviável ? Alexandre Marcolino <alexandre.marcolino@×××××××.br>