From owner-freebsd-ports Tue Sep 25 12:30:11 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A231437B7B6 for ; Tue, 25 Sep 2001 12:30:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f8PJU1P98962; Tue, 25 Sep 2001 12:30:01 -0700 (PDT) (envelope-from gnats) Date: Tue, 25 Sep 2001 12:30:01 -0700 (PDT) Message-Id: <200109251930.f8PJU1P98962@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: "Scot W. Hetzel" Subject: Re: ports/28521: inconsistency: daemontools and serialmail Reply-To: "Scot W. Hetzel" Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR ports/28521; it has been noted by GNATS. From: "Scot W. Hetzel" To: "Tom Hukins" , Cc: Subject: Re: ports/28521: inconsistency: daemontools and serialmail Date: Tue, 25 Sep 2001 14:28:46 -0500 From: "Tom Hukins" > From: Tom Hukins > To: Peter Pentchev > Cc: FreeBSD-gnats-submit@freebsd.org > Subject: Re: ports/28521: inconsistency: daemontools and serialmail > Date: Tue, 25 Sep 2001 14:42:43 +0100 > > On Tue, Sep 25, 2001 at 06:10:01AM -0700, Peter Pentchev wrote: > > > > I believe that something like the following should work: > > > > RUN_DEPENDS= setlock:${PORTSDIR}/sysutils/daemontools > > > > If any version of daemontools is already installed, the setlock > > binary will be present and no action will be taken. > > Unfortunately, daemontools53 doesn't install setlock (I must have > explained this badly), so this won't work. :-( > The answer was partially correct, use: .if exists(${PREFIX}/bin/setlock) RUN_DEPENDS= setlock:${PORTSDIR}/sysutils/daemontools NO_SETLOCK= "@comment " WITHOUT_SETLOCK= yes .else NO_SETLOCK="" .endif PLIST_SUB= NO_SETLOCK=${NO_SETLOCK} then in pkg-plist: %%NO_SETLOCK%%bin/setlock you will also need to modify the port to not install setlock when WITHOUT_SETLOCK is defined. Scot To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message