X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from smtp171.iad.emailsrvr.com (smtp171.iad.emailsrvr.com [207.97.245.171]) by lists.alpinelinux.org (Postfix) with ESMTP id 2A9FF1EBFF9 for ; Fri, 14 Jan 2011 11:10:50 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp47.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id 849BC3A8196; Fri, 14 Jan 2011 06:10:50 -0500 (EST) X-Virus-Scanned: OK Received: from dynamic1.wm-web.iad.mlsrvr.com (dynamic1.wm-web.iad1a.rsapps.net [192.168.2.150]) by smtp47.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id 65B2F3A82D5; Fri, 14 Jan 2011 06:10:38 -0500 (EST) Received: from darkregion.net (localhost [127.0.0.1]) by dynamic1.wm-web.iad.mlsrvr.com (Postfix) with ESMTP id 575BFC98070; Fri, 14 Jan 2011 06:10:38 -0500 (EST) Received: by apps.rackspace.com (Authenticated sender: mcs@darkregion.net, from: mcs@darkregion.net) with HTTP; Fri, 14 Jan 2011 05:10:38 -0600 (CST) Date: Fri, 14 Jan 2011 05:10:38 -0600 (CST) Subject: Re: [alpine-devel] the setup-alpine and setup-disk scripts From: "Matt Smith" To: "Natanael Copa" Cc: "William Pitcock" , alpine-devel@lists.alpinelinux.org X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain;charset=UTF-8 Content-Transfer-Encoding: quoted-printable Importance: Normal X-Priority: 3 (Normal) X-Type: plain In-Reply-To: <20110113225933.3def039f@alpinelinux.org> References: <20110113170513.3c34bd8b@ncopa-desktop.nor.wtbts.net> <20110113125610.14cf1b47@petrie.gateway.2wire.net> <20110113225933.3def039f@alpinelinux.org> Message-ID: <1295003438.354727337@192.168.4.58> X-Mailer: webmail8 On Thursday, January 13, 2011 4:59pm,=0A"Natanael Copa" said:=0A> On Thu, 13 Jan 2011 12:56:10 -0600=0A> William Pitcock wrote:=0A> =0A> ...=0A> =0A>> > So, I'm thinking, app= end setup-apkrepos to setup-alpine so user=0A>> > gets a http repo. User sh= ould only need to press enter to get a=0A>> > sane default. We maybe dont e= ven need to ask user but can just set=0A>> > it. I was thinking maybe havin= g the mirror list in a package? Or we=0A>> > download frrom net? With a pac= kage we dont need have the network=0A>> > running when we configure the htt= p repo.=0A>>=0A>> Having a mirror list in a package would be good, however,= we would=0A>> either want to have it prompt for a mirror *out* of the pack= age list=0A>> or rework repository selection in APK.=0A>>=0A>> I think the = way ArchLinux/Pacman handle this is subpar. =C2=A0I think=0A>> prompting is= better.=0A> =0A> I didn't really understand what you said. You mean we hav= e the=0A> mirror list in a package, and then you get the list presented and= user=0A> picks one of them? Then we keep that list up-to-date with normal = apk=0A> updates.=0A> =0A> I'm thinking apkbuild could be something like:=0A= > =0A> pkgname=3D"alpine-mirrors"=0A> pkgver=3D"$_date"=0A> source=3D"http:= //www.alpinelinux.org/alpine/MIRRORS.txt"=0A> ...=0A> package() {=0A> =09in= stall -D "$srcdir"/MIRRORS.txt \=0A> =09=09"$pkgdir"/usr/share/alpine-mirro= rs/MIRRORS.txt=0A> }=0A> =0A> ...=0A=0AI think that's an excellent idea.=0A= =0AWith the work I've done to setup-apkrepos and these new ideas you've all= =0Acome up with, I sat down and came up with some notes on how to improve o= n=0Athis:=0A=0A- make `setup-apkrepos` use MIRRORS.txt from APK=0A- Ask use= r if they want to..=0A =C2=A01. Automatically pick random mirror (Default)= =0A =C2=A02. Automatically pick mirror based on speed (must be connected)= =0A =C2=A03. Manually pick mirror from list=0A =C2=A0 =C2=A0 - List mirrors= , their locations, and maybe even their provider/sponsor=0A =C2=A04. Manual= ly enter a URL or local path=0A- Finally, ask the user if they want to run = 'apk update', warning that=0A =C2=A0they must be connected in order to use = Internet repositories.=0A =C2=A0(Default to 'Yes'?)=0A=0ARegarding mirror l= ocations, I'm thinking we should make MIRRORS.txt more=0Aof a flat-file dat= abase with a single-character delimiter - perhaps the=0Apipe character (|).= =0A=0AIt could look something like this:=0A=0Ahttp://distrib-coffee.ipsl.ju= ssieu.fr/pub/linux/alpine/alpine/|Paris, FR=0Ahttp://nl.alpinelinux.org/alp= ine/|Schiphol-Rijk, NL=0Ahttp://dl-4.alpinelinux.org/alpine/|California, US= =0Ahttp://dl-3.alpinelinux.org/alpine/|Colorado, US=0Ahttp://dl-2.alpinelin= ux.org/alpine/|New York, US=0A=0AWhat do you think?=0A=0AMatt --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---