From owner-freebsd-ports@FreeBSD.ORG Thu Feb 1 22:54:27 2007 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9F41016A401 for ; Thu, 1 Feb 2007 22:54:27 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from com1.ht-systems.ru (com1.ht-systems.ru [83.97.104.204]) by mx1.freebsd.org (Postfix) with ESMTP id 5C6EF13C4B3 for ; Thu, 1 Feb 2007 22:54:27 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from [213.87.72.70] (helo=phonon.SpringDaemons.com) by com1.ht-systems.ru with esmtpa (Exim 4.62) (envelope-from ) id 1HCkgV-0001sW-1H; Fri, 02 Feb 2007 01:45:40 +0300 Received: from localhost (localhost [IPv6:::1]) by phonon.SpringDaemons.com (Postfix) with SMTP id 919AC11473; Fri, 2 Feb 2007 01:54:14 +0300 (MSK) Date: Fri, 2 Feb 2007 01:54:14 +0300 From: Stanislav Sedov To: Luigi Rizzo Message-Id: <20070202015414.1cd70d3d.stas@FreeBSD.org> In-Reply-To: <20070201110345.A83474@xorpc.icir.org> References: <20070201110345.A83474@xorpc.icir.org> Organization: The FreeBSD Project X-Mailer: carrier-pigeon X-Voice: +7 916 849 20 23 X-XMPP: ssedov@jabber.ru X-ICQ: 208105021 X-Yahoo: stanislav_sedov X-PGP-Fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 X-University: MEPhI Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Fri__2_Feb_2007_01_54_14_+0300_Jq.9.sukuG=Sx7PY" X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona 1.6.0 X-Mailman-Approved-At: Fri, 02 Feb 2007 03:29:03 +0000 Cc: ports@freebsd.org Subject: Re: proper way to do a recursive install ? 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: Thu, 01 Feb 2007 22:54:27 -0000 --Signature=_Fri__2_Feb_2007_01_54_14_+0300_Jq.9.sukuG=Sx7PY Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit On Thu, 1 Feb 2007 11:03:45 -0800 Luigi Rizzo mentioned: > > #--- this is pkg-plist 000 > @exec mkdir -p %D/share/linux-bsd-kmod > @exec echo "installing into %D/share/linux-bsd-kmod" > @unexec echo "uninstalling into %D/share/linux-bsd-kmod" > @unexec rm -rf %D/share/linux-bsd-kmod > That seems to me to be not particulary good. That way you'll delete files installed by user into ${PREFIX}/share/linux-bsd-kmod/ by hand. It's not good to deinstall files not installed but port, as the one of the major properties of ports system to not touch the target file system at all. There're also several reasons we prefer static pkg-plists over dynamics. For the first, we has a lot of tools that deals with pkg-plists so we can gather some information based on ports pkg-plists automatically. The second reason - you can't be certainly sure that the port will behave on the user's systems the same way as on your own. Having static plists this behaviour can be checked and ensured that all files was installed. -- Stanislav Sedov ST4096-RIPE --Signature=_Fri__2_Feb_2007_01_54_14_+0300_Jq.9.sukuG=Sx7PY Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFwm+WK/VZk+smlYERAhihAJ44075XtsoWtSzPgF0mG6kkwwEJigCghXpU 6KINxQ9b+KXdD0JiwnrALKM= =l7iz -----END PGP SIGNATURE----- --Signature=_Fri__2_Feb_2007_01_54_14_+0300_Jq.9.sukuG=Sx7PY--