From owner-freebsd-ports@FreeBSD.ORG Sat Jun 30 05:59:09 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 58C4C16A468 for ; Sat, 30 Jun 2007 05:59:09 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.244]) by mx1.freebsd.org (Postfix) with ESMTP id 1407213C48A for ; Sat, 30 Jun 2007 05:59:08 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so261350anc for ; Fri, 29 Jun 2007 22:59:08 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=s4L67/6D8VBp7sIHsuNEdeSFu4q4oXo7ivfVeX4ZE/5dHfnqlOqndZ1S25u3AJsMge3NYBPPMg3GhWJYm80F/0xPqTV1chpmlaXfWgQj0wh/xp4cx/wI0mF+F/7IuKJli6JLwajTQPG/roNBqokDF1XH9+2B28O9CMesDr5uy9o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BF+Gw7zfviP369Hvuj0ZNjsKbNH10g7rL5HabIWP36B9bCM557JqmQli5ze16L8pCDUovyexi8+A+9tWKsIKBOHF8QmiEEYH1Dr2tw5mWO/RhiaNHxpqUUrNzZvjRM6l2swYlN09e9iJ8CpZKyPtRVpfWxfqJpE0oBZfc9Ad/QA= Received: by 10.100.173.19 with SMTP id v19mr2595637ane.1183183148542; Fri, 29 Jun 2007 22:59:08 -0700 (PDT) Received: by 10.100.141.14 with HTTP; Fri, 29 Jun 2007 22:59:08 -0700 (PDT) Message-ID: <790a9fff0706292259g25d5ea1ck2b39de0acc385716@mail.gmail.com> Date: Sat, 30 Jun 2007 00:59:08 -0500 From: "Scot Hetzel" To: "Kostik Belousov" In-Reply-To: <20070630040509.GD2268@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070617.011324.406004472.imp@bsdimp.com> <4674E05F.4060705@gmx.de> <20070617072945.GE1325@k7.mavetju> <20070617.013640.-131645657.imp@bsdimp.com> <20070618003329.GF1325@k7.mavetju> <20070625222609.GD1558@k7.mavetju> <20070630004536.GE1558@k7.mavetju> <20070630040509.GD2268@deviant.kiev.zoral.com.ua> Cc: ports@freebsd.org, Edwin Groothuis Subject: Re: How to get a list of all kernel modules 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: Sat, 30 Jun 2007 05:59:09 -0000 On 6/29/07, Kostik Belousov wrote: > It would be very convenient to have unified location for ports kernel > modules. May be, even hier(7) compliant ? > > For instance, some random set of ports installed kernel modules to: > > sysutils/devcpu: /boot/modules/cpu.ko > net/ng_car: /boot/kernel/ng_car.ko > (this means that ng_car.ko module will be trashed on next kernel update) > audio/oss: /usr/local/lib/oss/modules > I would propose that kernel module ports should install their KLD(s)into /boot/modules, as that would allow the kernel module to be loaded without specifing a path to the module: kldload instead of: kldload /path/to/module/.ko And allow the KLD to be loaded from /boot/loader.conf. Another option would be to allow only specific types of modules to be placed into /boot/modules (network, filesystem, ...) and then have the remaining modules installed into PREFIX/libexec/kernel_modules (audio, ...). A rc script for the module would then be used to load/unload the module. Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.