From owner-freebsd-ports Mon May 22 17:10:53 2000 Delivered-To: freebsd-ports@freebsd.org Received: from rhenium.btinternet.com (rhenium.btinternet.com [194.73.73.93]) by hub.freebsd.org (Postfix) with ESMTP id 0532237B943 for ; Mon, 22 May 2000 17:10:47 -0700 (PDT) (envelope-from mark@ukug.uk.freebsd.org) Received: from [62.7.102.59] (helo=parish.my.domain) by protactinium with esmtp (Exim 2.05 #1) id 12tyQD-000790-00; Mon, 22 May 2000 21:03:30 +0100 Received: (from mark@localhost) by parish.my.domain (8.9.3/8.9.3) id VAA04112; Mon, 22 May 2000 21:02:49 +0100 (BST) (envelope-from mark) Date: Mon, 22 May 2000 21:02:48 +0100 From: Mark Ovens To: James Housley Cc: ports@FreeBSD.ORG Subject: Re: Help needed with port Makefile Message-ID: <20000522210248.C2835@parish> References: <20000521234529.C236@parish> <39292993.19441F4D@thehousleys.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <39292993.19441F4D@thehousleys.net>; from jim@thehousleys.net on Mon, May 22, 2000 at 08:35:31AM -0400 Organization: Total lack of Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, May 22, 2000 at 08:35:31AM -0400, James Housley wrote: > Mark Ovens wrote: > > > > I'm trying to make a Makefile for a port and am having problems > > installing the manpage. > > > > The port is only a sh(1) script but the porters handbook (which I've > > spent a good deal of time reading) seems to be all based around built > > from source ports where there is a Makefile in ${WRKSRC}. Since I > > don't have that everything needs to be in the top level Makefile. > > > > Looking at other ports I've arrived at: > > > > PORTNAME= foobar > > PORTVERSION= 1.0 > > CATEGORIES= sysutils > > MASTER_SITES= ftp://ftp.ukug.uk.freebsd.org/pub/mark/foobar/ > > > > MAINTAINER= mark@ukug.uk.freebsd.org > > > > MAN1= foobar.1 > > MANCOMPRESSED= yes > > NO_BUILD= yes > > > > do-install: > > ${INSTALL_SCRIPT} ${WRKSRC}/foobar ${PREFIX}/bin/foobar > > ${INSTALL_MAN} ${WRKSRC}/foobar.man ${PREFIX}/man/man1/${MAN1} > > > > .include > > > > The script itself installs OK and so does the manpage, except that I > > can't work out how to compress it. > > > > Unfortunately I can't find another port that only installs that also > > has a manpage. Any pointers would be much appreciated. > > > > Thanks. > > > > BTW, please Cc: me as I'm not current;y subscribed to -ports. > > > Look into NO_WRKSUBDIR, in /usr/ports/Mk/port.bsd.mk > Thanks. Of course, you may as well unpack into ${WRKDIR} if there's no building to be done. My main problem turned out to be my mis-understanding of MANCOMPRESSED. > Jim > -- > Nothing is fool proof, because fools are too ingenious. -- ...and on the eighth day God created UNIX ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message