From owner-freebsd-ports Thu Apr 22 5: 6:57 1999 Delivered-To: freebsd-ports@freebsd.org Received: from mail.promo.de (mail.Promo.DE [194.45.188.65]) by hub.freebsd.org (Postfix) with ESMTP id 3F4AA159CD; Thu, 22 Apr 1999 05:05:42 -0700 (PDT) (envelope-from stefan.bethke@hanse.de) Received: from d225.promo.de (d225.Promo.DE [194.45.188.225]) by mail.promo.de (8.8.8/8.8.8) with ESMTP id OAA14620; Thu, 22 Apr 1999 14:03:11 +0200 (CEST) Date: Thu, 22 Apr 1999 14:02:59 +0200 From: Stefan Bethke To: Satoshi - Ports Wraith - Asami Cc: freebsd-ports@FreeBSD.ORG Subject: Re: Does an interactive install count as IS_INTERACTIVE? Message-ID: <683368.3133778579@d225.promo.de> In-Reply-To: <199904221036.DAA98968@silvia.hip.berkeley.edu> Originator-Info: login-id=stefan; server=mail X-Mailer: Mulberry (MacOS) [1.4.2, s/n U-301178] MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Satoshi - Ports Wraith - Asami wrote: > * Now, does this pkg/INSTALL script (called at POST-INSTALL) count as > * IS_INTERACTIVE? bsd.port.mk says "during a build", which suggest to = me > * that this is for build only, not for install. > > No, I meant "any time during a package build". ;) > > * If install also counts, do I need to set IS_INTERACTIVE, or just = /not/ > call * pkg/INSTALL on a BATCH build (which would result in a complete > package, but * the local installation would require manual action)? > > Well, if you just set it to IS_INTERACTIVE, you're pretty much > guaranteeing that the package will never show up on any CD. :> > > Since you have the necessary stuff in INSTALL, how about something > like > > .if !defined(PACKAGE_BUILDING) > IS_INTERACTIVE=3D yes > post-install: > @PKG_PREFIX=3D${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL > .endif This is exactly what I meant by the above. Thanks, Stefan -- M=FChlendamm 12 | Voice +49-40-256848, +49-177-3504009 D-22089 Hamburg | e-mail: stefan.bethke@hanse.de Germany | stb@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message