From owner-freebsd-ports@FreeBSD.ORG Mon Jun 7 00:16:30 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 4047C106568E for ; Mon, 7 Jun 2010 00:16:30 +0000 (UTC) (envelope-from stephen@missouri.edu) Received: from mxtip01-umsystem-out.um.umsystem.edu (mxtip01-umsystem-out.um.umsystem.edu [209.106.229.49]) by mx1.freebsd.org (Postfix) with ESMTP id 023218FC1A for ; Mon, 7 Jun 2010 00:16:29 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAB/XC0zRauUp/2dsb2JhbACeQHG0YIhfhRcEg0o Received: from um-nsmtpout1.um.umsystem.edu ([209.106.229.41]) by mxtip01-missouri-out.um.umsystem.edu with ESMTP; 06 Jun 2010 19:16:29 -0500 Received: from um-nsmtpout1.um.umsystem.edu ([209.106.229.35]) by um-nsmtpout1.um.umsystem.edu with Microsoft SMTPSVC(6.0.3790.4675); Sun, 6 Jun 2010 19:16:28 -0500 Received: from laptop3.gateway.2wire.net ([128.206.110.35]) by um-nsmtpout1.um.umsystem.edu with Microsoft SMTPSVC(6.0.3790.4675); Sun, 6 Jun 2010 19:16:28 -0500 Message-ID: <4C0C3A5B.8010707@missouri.edu> Date: Sun, 06 Jun 2010 19:16:27 -0500 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.9) Gecko/20100521 Firefox MIME-Version: 1.0 To: Thomas Rasmussen References: <4C0C34FC.4030603@gibfest.dk> In-Reply-To: <4C0C34FC.4030603@gibfest.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 07 Jun 2010 00:16:28.0801 (UTC) FILETIME=[ACA7CF10:01CB05D6] Cc: "freebsd-ports@freebsd.org" Subject: Re: Manually registering dependencies for ports 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: Mon, 07 Jun 2010 00:16:30 -0000 Thomas Rasmussen wrote: > Hello, > > I've been wondering about something: When I write a script or webapp that > needs some port to run, like a perl module, I install the needed port and > life is good (tm). A year later when I've completely forgotten about the > script I go do some spring-cleaning of the ports on the server, and I see > some perl module that doesn't have any dependencies, and delete it. Fast > forward a few days when I discover the script doesn't work anymore, cue > face-palm, remove bullet from foot, etc. > > Is there some way I can register a dependency to prevent this ? Like > adding a flag to an installed port to say "something outside of the ports > system depends on this" along with a user specified comment string. When you install a script - let's call it xxx - that depends upon port yyy, you could do something like echo xxx >> /var/db/pkg/yyy/+REQUIRED_BY I think this would work.