From owner-freebsd-ports Thu Jun 11 04:21:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA23756 for freebsd-ports-outgoing; Thu, 11 Jun 1998 04:21:01 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from nexus.astro.psu.edu (nexus.astro.psu.edu [128.118.147.20]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id EAA23736; Thu, 11 Jun 1998 04:20:51 -0700 (PDT) (envelope-from mph@astro.psu.edu) Received: from mstar.astro.psu.edu by nexus.astro.psu.edu (4.1/Nexus-1.3) id AA07642; Thu, 11 Jun 98 07:20:52 EDT Received: by mstar.astro.psu.edu (SMI-8.6/Client-1.3) id HAA21397; Thu, 11 Jun 1998 07:20:49 -0400 Message-Id: <19980611072049.A21246@mstar.astro.psu.edu> Date: Thu, 11 Jun 1998 07:20:49 -0400 From: Matthew Hunt To: Satoshi Asami Cc: ports@FreeBSD.ORG, ve@sci.fi Subject: Re: Fetchmail and Python References: <19980610230553.A3922@flarn.dyn.ml.org> <199806110554.WAA01836@silvia.HIP.Berkeley.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <199806110554.WAA01836@silvia.HIP.Berkeley.EDU>; from Satoshi Asami on Wed, Jun 10, 1998 at 10:54:52PM -0700 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, Jun 10, 1998 at 10:54:52PM -0700, Satoshi Asami wrote: > What does the configurator say? If it's too terse, maybe you can make > it emit something like "no python found, please install python and tk > and tcl and...". It starts with the incantation: "#!/usr/bin/python" (Actually, that's the fetchmailconf from the previous version of fetchmail. Looks like esr managed to overcome the Linuxian stupidity of putting python in /usr/bin; it now reads "#!/usr/local/bin/python".) So if Python is absent, we get a message along the lines of: flarn:~$ fetchmailconf bash: /usr/local/bin/fetchmailconf: No such file or directory What about installing fetchmailconf into $PREFIX/libexec/fetchmailconf.bin and making $PREFIX/bin/fetchmailconf a script along the lines of: #!/bin/sh PREFIX=@PREFIX@ # sed me! if [ -x $PREFIX/bin/python ]; then exec $PREFIX/bin/python $PREFIX/libexec/fetchmailconf.bin else echo This program needs Python to run. Python is in the Ports echo Collection, in /usr/ports/lang/python. fi -- Matthew Hunt * Stay close to the Vorlon. http://www.pobox.com/~mph/pgp.key for PGP public key 0x67203349. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message