From owner-freebsd-ports@FreeBSD.ORG Sun Jan 28 15:35:32 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 7741B16A403 for ; Sun, 28 Jan 2007 15:35:32 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 1371313C441 for ; Sun, 28 Jan 2007 15:35:31 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so957882uge for ; Sun, 28 Jan 2007 07:35:31 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=SeSXGUSmHqrsBsSt5mMZvNo28YYBFLCWyfXCp6+RPVHPpfS/BtcWT4Z1EKPTGo8GFhJMq6JM/eanJ4wd2T3XJZLg4gpUbQ/GjH58wpiOgy79iL/upwMdlcDfKK+pUsxQvuvES388QsacZEig2IQTgJ9JW5ufr4Rq+m6L4qjN4rY= Received: by 10.78.185.7 with SMTP id i7mr3580058huf.1169998530649; Sun, 28 Jan 2007 07:35:30 -0800 (PST) Received: by 10.78.170.11 with HTTP; Sun, 28 Jan 2007 07:35:30 -0800 (PST) Message-ID: Date: Sun, 28 Jan 2007 18:35:30 +0300 From: "Andrew Pantyukhin" Sender: infofarmer@gmail.com To: "FreeBSD Ports" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 29ffeb08038a65e6 Cc: Subject: Non-daemon programs requiring 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: Sun, 28 Jan 2007 15:35:32 -0000 I'm porting a simple util requiring aio(4). My plan is to install a wrapper script which includes rc.subr(8) and uses its required_modules mechanism. If anyone has a better idea, please tell me. One thing I would like is the ability to unload the module if its not needed anymore right after the program finished. But I see a lot of problems will appear if we try a straightforward way to implement it. Also, the subject is one of those problems asking for a central implicit wrapper (in userland?) managing interactive things like: "loading modules..." "acroread is not installed, but you can try xpdf" "this program is already running and you can't run multiple instances of it at the same time" "this program is alpha version which can damage your system, continue? [y/n]" But that's another topic.