From owner-freebsd-ports@FreeBSD.ORG Sun May 23 16:24:54 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 D19BA106566C; Sun, 23 May 2010 16:24:54 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-gx0-f226.google.com (mail-gx0-f226.google.com [209.85.217.226]) by mx1.freebsd.org (Postfix) with ESMTP id 673358FC1E; Sun, 23 May 2010 16:24:54 +0000 (UTC) Received: by gxk26 with SMTP id 26so1393875gxk.13 for ; Sun, 23 May 2010 09:24:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:cc :subject:in-reply-to:message-id:references:user-agent :x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; bh=NZ/PU5cV7Pyo3v5k/1s9aAljj9qXLxPm8ASjVbmJuns=; b=beMyAPJtoWXgS42xgQs9zaB/De/vgEUcgwWFGueqz6KmVhfS808r+p344KmFRD865h w/F99cL+wI9NZE4FJFZNlYkX7r8xKkBPkkQm/S5iwpOkT80W9rbDR56ZXyu/uKWUVeTk +ekYDaSrykc9y/MrDRvhNLkjKsZahnX81/gI4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; b=rE7ApBSwsuYyK5Ea4UqXTMZ+nfA4T/KNNCqjm85kns8QChtlb4hJHpWtMKgamYm2DN GLyl+0uriCU9VFDxa/K4SlK2H9JXblFnMfKDV0tCYjQ6VY0RdHQE6Ue+rLMlofcZEbO3 bbi8zTcz+uNk/uZ0vVjUJ3DDqtwdf8NR+t/Eg= Received: by 10.91.156.8 with SMTP id i8mr2091436ago.187.1274631893544; Sun, 23 May 2010 09:24:53 -0700 (PDT) Received: from centel.dataix.local (adsl-99-19-40-41.dsl.klmzmi.sbcglobal.net [99.19.40.41]) by mx.google.com with ESMTPS id 21sm2360387ywh.6.2010.05.23.09.24.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 23 May 2010 09:24:53 -0700 (PDT) Sender: "J. Hellenthal" Date: Sun, 23 May 2010 12:24:30 -0400 From: jhell To: Matthew Seaman In-Reply-To: <4BF8C4F8.9090103@infracaninophile.co.uk> Message-ID: References: <20100522005313.26dcfbdb@gumby.homeunix.com> <4BF787E2.9010907@dataix.net> <20100522120815.063975ae@gumby.homeunix.com> <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> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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: Sun, 23 May 2010 16:24:55 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, 23 May 2010 02:02, Matthew Seaman wrote: In Message-Id: <4BF8C4F8.9090103@infracaninophile.co.uk> > On 23/05/2010 04:47:49, jhell wrote: >> But if a port can install a user there is no reason that it can not >> uninstall a user via pw(8) that is available from bsd.commands.mk after >> checking a recorded md5(1) sum that it could create upon installation >> for the output of pw usershow/groupshow UID/GID. > > The trick would be to teach the ports how to tell if a port was being > deleted for good, when trashing the user would be appropriate, or if the > port was being deleted as part of the process of upgrading it, when > you'ld want to keep the user. > 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=yes" 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. Regards, - -- jhell -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iQEcBAEBAgAGBQJL+VbIAAoJEJBXh4mJ2FR+6d0H/RzxsitENOuEiG1j9l6cucod taGMfoitDYEFe7umLAyx/qfcLVkxRoVKNcStXGdQYFmhgbs0U3LgRfeCroKHcgaG GQkojvJvHMq0bGPXkGyM5Uqk2duN59dJbWyRqlfAxAt1b9SDl6LkHzfi4Bb0CoZ6 6/+izQ5Nl0nDDGGwzou2uCqhJ20YTm9N+XD5pdvDPPdC208wCc+1IPRNlZbx1stM B4viIveIBNJei1ooNqH3qwzO/fdOpJhd09eZNncOGLKPguHNNmqa/UH0ftXIBykU 3edE+gP+bvnf0kYeFBofYJDrG7H6grAyRUoObcD42sROLoD9Wk/RTO/MXZ8ekjA= =6JuP -----END PGP SIGNATURE-----