From owner-freebsd-ports@FreeBSD.ORG Mon May 24 16:27:08 2010 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 278D3106566B for ; Mon, 24 May 2010 16:27:08 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id E351D8FC0A for ; Mon, 24 May 2010 16:27:07 +0000 (UTC) Received: by pvh11 with SMTP id 11so562422pvh.13 for ; Mon, 24 May 2010 09:27:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=hCqJjN7HoRuB4gcn8aTH0LTQ0wHgYsYyu2EARcQ2j3c=; b=bgC1tfFuR5LB2q4uY3sEa3Wb5U0YEgXgjGonr1r7EBRxmUxnruim01fIUFgedjaCsZ jSK0PyeOy852P9xcMcuK0U21C/ePZvPhlcgrvff8OJU5XpSxO64kHZgwQSO4ohiHmIQB At8GreBAJYpcQwcOk5q/ocKq70CHD0jKwuIr0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=fbo2xKC386U7CxJiGXPkjYsH4Pkjgkd8c0PCb73tYYE4FjLgo+isg0iI6NzmOcPilA EEvHNyBiOOMxXEmazfHf5DZstWX0rFmKJ0rarSvKfGKYUC4856aFAsxb2DG80uzDT1lF qfzLZyRa9b4SaHg5Xa3z0LUlitkMSe4GFfxgc= Received: by 10.114.54.1 with SMTP id c1mr5082390waa.61.1274718427331; Mon, 24 May 2010 09:27:07 -0700 (PDT) Received: from [192.168.0.203] (deviant.freebsdgirl.com [173.8.183.73]) by mx.google.com with ESMTPS id f11sm39602768wai.23.2010.05.24.09.27.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 24 May 2010 09:27:06 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii From: Garrett Cooper In-Reply-To: Date: Mon, 24 May 2010 09:27:04 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <25792BFD-D9A7-4DD7-9054-FC6CCDEF8F38@gmail.com> References: <4BF7C6EE.3010001@dataix.net> <20100522134212.3d5447a8@gumby.homeunix.com> <4BF7FB7D.1010501@dataix.net> <20100522235425.1ab2c504@gumby.homeunix.com> <86aarr8q0m.fsf@gmail.com> <4BF8A565.7040309@dataix.net> <4BF8C4F8.9090103@infracaninophile.co.uk> To: Alexander Churanov X-Mailer: Apple Mail (2.1078) Cc: freebsd-ports@freebsd.org, Ade Lovett Subject: Re: Users and groups kept after a port deinstallation 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: Mon, 24 May 2010 16:27:08 -0000 On May 24, 2010, at 9:22 AM, Alexander Churanov wrote: > 2010/5/23 jhell : >> That shouldn't actually be to hard. If a utility like the three main = upgrade >> tools that are being used the most right now would export a variable = for say >> "UPGRADING=3Dyes" then the uninstall script could check against that = to decide >> whether or not the port is being removed or upgraded and make the = proper >> decision while alerting the admin to whats going on. >=20 > Folks, >=20 > May be is' better to add another make target, called "update", which > would invoke "deinstall", followed by "reinstall"? This would > encapsulate the mechanism inside port.mk. I'm going to have toe disagree with you on this. Using = pkg_install with the appropriate install/deinstall scripts would better = solve the installation and deletion scenarios properly (especially = because adding code like this to port.mk would be haphazard in cases = where you need to specify a specific DESTDIR, PREFIX, etc). Thanks, -Garrett=