From owner-freebsd-ports@FreeBSD.ORG Tue Aug 7 18:10:04 2007 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 258B316A421 for ; Tue, 7 Aug 2007 18:10:04 +0000 (UTC) (envelope-from rakheshster@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.227]) by mx1.freebsd.org (Postfix) with ESMTP id C95BF13C48A for ; Tue, 7 Aug 2007 18:10:03 +0000 (UTC) (envelope-from rakheshster@gmail.com) Received: by wr-out-0506.google.com with SMTP id 67so692760wri for ; Tue, 07 Aug 2007 11:10:00 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:date:x-x-sender:to:cc:subject:in-reply-to:message-id:references:mime-version:content-type:from:sender; b=nf7cDXpv/eB2B+YngoQH3jvJ1PkbhKo0wJMgLFaBKkz0sxKOV+PXWruE0mvyjfvVRYWUkIJhL5V7KsjFQOMFHtVDCLIvkfpEjG7sauVCyNxCYf21Z13IsoGrm0pVcF8v0nSnL7GXOTwu8p202CbMr2eSERjDCauKKsae1bKh3sg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:x-x-sender:to:cc:subject:in-reply-to:message-id:references:mime-version:content-type:from:sender; b=igRQ/956YnOghU8Y4hlj5zwuEeVVryziGh6rqz+EU2MbRdLvgL4AKzVAn2PbsdzvSz46jv5PUZCjGbF66VgNUF8E7A3sbZF4p5mp+BcwQB5Xbz1ZG+NWyLZ8XEuwdRgQjyKY8X6/59GpZyv2bPx3p7EYBFS++Eza8mlJRtuKKF0= Received: by 10.90.119.15 with SMTP id r15mr6381318agc.1186510200731; Tue, 07 Aug 2007 11:10:00 -0700 (PDT) Received: from smtp.home.rakhesh.com ( [82.178.137.21]) by mx.google.com with ESMTPS id v26sm8975851ele.2007.08.07.11.09.57 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 07 Aug 2007 11:09:59 -0700 (PDT) Received: from obelix.home.rakhesh.com (obelix.home.rakhesh.com [192.168.17.13]) by smtp.home.rakhesh.com (Postfix) with ESMTP id 087BD11420; Tue, 7 Aug 2007 22:09:24 +0400 (GST) Date: Tue, 7 Aug 2007 22:09:05 +0400 (GST) X-X-Sender: rakhesh@obelix.home.rakhesh.com To: Scot Hetzel In-Reply-To: <20070807214414.I88034@obelix.home.rakhesh.com> Message-ID: <20070807220701.E88034@obelix.home.rakhesh.com> References: <20070807160649.Y22638@obelix.home.rakhesh.com> <790a9fff0708070656j77bc1f82l6c267df10e65cdfc@mail.gmail.com> <20070807214414.I88034@obelix.home.rakhesh.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed From: Rakhesh Sasidharan Sender: Rakhesh Sasidharan Cc: freebsd-ports@freebsd.org Subject: Re: Building Pine with PASSFILE option 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: Tue, 07 Aug 2007 18:10:04 -0000 Ignore this one please ... I figured a way out! In Makefile ----------- pre-fetch: .if !defined(BATCH) && !defined(PACKAGE_BUILDING) && !defined(WITH_PASSFILE) ${SH} pkg-install .endif .if !defined(BATCH) && !defined(PACKAGE_BUILDING) && defined(WITH_PASSFILE) ${SH} pkg-install WITH_PASSFILE .endif And now I can test if $1 is WITH_MAKEFILE in pkg-install and show the dialog accordingly! That was fun! :) Regards, Rakhesh Rakhesh Sasidharan wrote: > >> You would then need to add a warning when this option is enabled, as >> according to >> doc/tech-notes.txt this option is dangerous: >> >> PASSFILE >> _WARNING!_ Turning this on is very dangerous and should >> probably not be done, except on single user systems! For >> : > > I'm stuck here! > > I went through the Pine Makefile coz I recollect it giving me a warning about > Pine not recommended by the FreeBSD Security Officer. And I also went through > the Porter's Handbook (very briefly). From these two I learnt about the > "pkg-install" file and so I tried putting in something there to popup as a > warning after the first warning. > > /usr/bin/dialog --msgbox "_WARNING!_ Turning the PASSFILE option on is very > dangerous and should probably not be done, except on single user systems!" 7 > 70 > > But thing is -- how do I make this warning appear *only* if the PASSFILE > option is chosen? From what I can see, the "WITH_PASSFILE" variable is not > visible to the "pkg-install" file and so I can't use that to wrap the dialog > around an if ... fi block. Any ideas? > > Thanks, > Rakhesh > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >