From owner-freebsd-ports@FreeBSD.ORG Fri Jun 5 16:24:45 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3F08106567B for ; Fri, 5 Jun 2009 16:24:45 +0000 (UTC) (envelope-from eitanadlerlist@gmail.com) Received: from mail-qy0-f173.google.com (mail-qy0-f173.google.com [209.85.221.173]) by mx1.freebsd.org (Postfix) with ESMTP id 777DB8FC1D for ; Fri, 5 Jun 2009 16:24:45 +0000 (UTC) (envelope-from eitanadlerlist@gmail.com) Received: by qyk3 with SMTP id 3so2435598qyk.3 for ; Fri, 05 Jun 2009 09:24:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:openpgp:content-type:content-transfer-encoding; bh=kqhkAr2ESHNR3borEiig8r19wqGbmcaEI3iFaW5Wl3s=; b=W5rbpLbP81VOMSZ4PGal2AjaCipQJSooMKXqNWscgsu+XNH33Pd8/0kjx8xSOyO+6A V0l6jB8rw6cd6SGPB2mJwE2iGFAtXz6R5UD+AvRCrtgQtySq18p+Wvt4ebL9uYrpc8S1 IV+fwmOhqqo5ABlh+EgB/vCOhrllIfjv5nuNM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:openpgp:content-type :content-transfer-encoding; b=PGqmwHlH5ENdwAeLNT/ePW4+VnplM03P7Tzs6mh9tZdSabVfS2hiRX/8KaRyKw/oda Wc1ceICIaAJE1W978I6Sb6l/a0B5rHGjWcJZ+cgx+BG7QJdyKM7Y8h7972W357gIiMDG chhr1TuA4NNNuTPzq3keY/F6PEeUDtRJpMrrU= Received: by 10.224.67.130 with SMTP id r2mr3782998qai.284.1244219083619; Fri, 05 Jun 2009 09:24:43 -0700 (PDT) Received: from aargh.lan (ool-182fcc8b.dyn.optonline.net [24.47.204.139]) by mx.google.com with ESMTPS id 4sm18008qwe.17.2009.06.05.09.24.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 05 Jun 2009 09:24:43 -0700 (PDT) Message-ID: <4A2946F4.2010501@gmail.com> Date: Fri, 05 Jun 2009 12:25:24 -0400 From: Eitan Adler User-Agent: Mozilla (X11; U; FreeBSD i386; en-US; ) Gecko Thunderbird Mnenhy/0.7.6.666 MIME-Version: 1.0 To: vmagerya@gmail.com References: <4A28590D.101@gmail.com> In-Reply-To: X-Enigmail-Version: 0.95.7 OpenPGP: id=E9C2CCD1; url=pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: Automatically generate symlinks for virtual categories. X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2009 16:24:46 -0000 Vitaly Magerya wrote: > And here [1] is a new version that does the same thing, > but uses INDEX file instead of traversing the ports tree. > It's quite faster this way (assuming your INDEX is up to date, > maybe it's better to allow both algorithms?). I'll added your script to mine as a option. > > Disclaimer: I did not test it properly. > > The thing that looks strange to me is that the original script > appends main category to the name of port when symlinking. > I copied that behavior for safety, but are there really > naming conflicts in the ports tree? Yes. A lot of programs have category/name and language/name for localized versions. > > [1] http://tx97.net/pub/files/auto-symlink-virtual.sh > Current version: http://isis.poly.edu/~eitan/files/auto-symlink-virtual-2.sh I'll be making a port of this soon ;) -- Eitan Adler "Security is increased by designing for the way humans actually behave." -Jakob Nielsen