Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Apr 1999 03:36:39 -0700 (PDT)
From:      asami@FreeBSD.org (Satoshi - Ports Wraith - Asami)
To:        stefan.bethke@hanse.de
Cc:        freebsd-ports@FreeBSD.org
Subject:   Re: Does an interactive install count as IS_INTERACTIVE?
Message-ID:  <199904221036.DAA98968@silvia.hip.berkeley.edu>
In-Reply-To: <213410.3133734372@monster.transit-a.hanse.de> (message from Stefan Bethke on Thu, 22 Apr 1999 01:46:12 %2B0200)
References:   <213410.3133734372@monster.transit-a.hanse.de>

next in thread | previous in thread | raw e-mail | index | archive | help
 * From: Stefan Bethke <stefan.bethke@hanse.de>

 * 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904221036.DAA98968>