Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 May 2000 21:02:48 +0100
From:      Mark Ovens <mark@ukug.uk.freebsd.org>
To:        James Housley <jim@thehousleys.net>
Cc:        ports@FreeBSD.ORG
Subject:   Re: Help needed with port Makefile
Message-ID:  <20000522210248.C2835@parish>
In-Reply-To: <39292993.19441F4D@thehousleys.net>; from jim@thehousleys.net on Mon, May 22, 2000 at 08:35:31AM -0400
References:  <20000521234529.C236@parish> <39292993.19441F4D@thehousleys.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <bsd.port.mk>
> > 
> > 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




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