From owner-freebsd-ports Thu Apr 22 3:39:42 1999 Delivered-To: freebsd-ports@freebsd.org Received: from stampede.cs.berkeley.edu (stampede.CS.Berkeley.EDU [128.32.45.124]) by hub.freebsd.org (Postfix) with ESMTP id 7884D15998 for ; Thu, 22 Apr 1999 03:39:13 -0700 (PDT) (envelope-from asami@cs.berkeley.edu) Received: from silvia.hip.berkeley.edu (sji-ca3-251.ix.netcom.com [209.109.233.251]) by stampede.cs.berkeley.edu (8.8.7/8.7.3) with ESMTP id DAA01485; Thu, 22 Apr 1999 03:37:20 -0700 (PDT) Received: (from asami@localhost) by silvia.hip.berkeley.edu (8.9.2/8.6.9) id DAA98968; Thu, 22 Apr 1999 03:36:39 -0700 (PDT) Date: Thu, 22 Apr 1999 03:36:39 -0700 (PDT) Message-Id: <199904221036.DAA98968@silvia.hip.berkeley.edu> X-Authentication-Warning: silvia.hip.berkeley.edu: asami set sender to asami@cs.berkeley.edu using -f To: stefan.bethke@hanse.de Cc: freebsd-ports@FreeBSD.org In-reply-to: <213410.3133734372@monster.transit-a.hanse.de> (message from Stefan Bethke on Thu, 22 Apr 1999 01:46:12 +0200) Subject: Re: Does an interactive install count as IS_INTERACTIVE? From: asami@FreeBSD.org (Satoshi - Ports Wraith - Asami) References: <213410.3133734372@monster.transit-a.hanse.de> Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * From: Stefan Bethke * I've just made a port for SETIA@home, and added an install script to * automatically register with or log in to SETI@home. * * 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= yes post-install: @PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL .endif so that it will just go ahead and build the package if it's done here and will call ${PKGDIR}/INSTALL if a user does it. -PW To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message