From owner-freebsd-libh Wed Nov 20 17: 7:17 2002 Delivered-To: freebsd-libh@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4E7537B401 for ; Wed, 20 Nov 2002 17:07:15 -0800 (PST) Received: from aeimail.aei.ca (aeimail.aei.ca [206.123.6.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D4CF43E91 for ; Wed, 20 Nov 2002 17:07:15 -0800 (PST) (envelope-from anarcat@anarcat.ath.cx) Received: from shall.anarcat.ath.cx (kibuhmv25dkwk2l9@dsl-129-56.aei.ca [66.36.129.56]) by aeimail.aei.ca (8.11.6/8.10.1) with ESMTP id gAL173w05909 for ; Wed, 20 Nov 2002 20:07:04 -0500 (EST) Received: from lenny.anarcat.ath.cx (lenny.anarcat.ath.cx [192.168.0.4]) by shall.anarcat.ath.cx (Postfix) with SMTP id A16E0DD for ; Wed, 20 Nov 2002 20:07:01 -0500 (EST) Received: by lenny.anarcat.ath.cx (sSMTP sendmail emulation); Wed, 20 Nov 2002 20:07:01 -0500 Date: Wed, 20 Nov 2002 20:07:01 -0500 From: The Anarcat To: libh@freebsd.org Subject: install(1) proposal Message-ID: <20021121010701.GA2166@lenny.anarcat.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In examining how pkg_create(1) works, I noticed that there is a -O flag that only does the registration of the package in the database, without actually creating a package. This annoying feature would best belong to pkg_install, in my opinion, but that just me. The point is, wherever it is, it needs to be implemented. Now, I think that since libh packages are really advanced, we could make it a lot nicer. My idea is to make pkg_create -O simply register the package name, version and most metadata *except* the plist. I think the plist should be updated via a modified install(1) command. The way I picture it, install could have an optional flag (-k?) that would register an installed file in the package system. No more messy plists. Just force your ports to use a custom install command and you're done. The install command would compute all the necessary information about the installed file. Is this completely insane? Of course, compatibility bits could be retained, for those poor/masochist maintainers that still want to generate plists by hand. A. -- Imagination is more important than knowledge - Albert Einstein To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message