Creating a new port -- issue with man page install

Brooks Davis brooks at freebsd.org
Thu Sep 6 09:54:50 PDT 2007


On Thu, Sep 06, 2007 at 11:29:09AM -0400, Chess Griffin wrote:
> Hello-
> 
> I am working a new port (for gPodder, a GTK2 python-based media
> aggregator) and so far everything seems to be working pretty well
> (after reading through the Porter's Handbook -- what a great piece of
> documentation).  Anyway, I cannot seem to figure out one thing.
> 
> The tarball has a man page located in /gpodder-0.9.5/doc/man/gpodder.1.
> 
> In my Makefile, I have this:
> 
> MANCOMPRESSED= no
> MAN1= ${PORTNAME}.1
> 
> PORTNAME is gpodder, BTW.  Anyway, when I create a package, it
> complains that it cannot find or install the man page and I am not
> sure how to fix this.  Some of the snipped output is this:
> 
> 
> ===>   Compressing manual pages for gpodder-0.9.5
> gzip: can't stat: /usr/local/man/man1/gpodder.1: No such file or directory
> ===>   Registering installation for gpodder-0.9.5
> ===>  Building package for gpodder-0.9.5
> Creating package /usr/ports/packages/All/gpodder-0.9.5.tbz
> <snip>
> Creating bzip'd tar ball in '/usr/ports/packages/All/gpodder-0.9.5.tbz'
> tar: man/man1/gpodder.1.gz: Cannot stat: No such file or directory
> tar: Error exit delayed from previous errors.
> pkg_create: make_dist: tar command failed with code 256
> *** Error code 1
> 
> Stop in /usr/ports/multimedia/gpodder.
> 
> 
> Any assistance is greatly appreciated.

The error messages seem to indicate that the problem the manpage isn't
being installed.  All the MAN# variables do is tell the ports system you
will be installing them.  You should do something like:

post-install:
	${INSTALL_MAN} ${WRKSRC}/doc/man/gpodder.1 ${MANPREFIX}/man/man1

-- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20070906/663b1052/attachment.pgp


More information about the freebsd-ports mailing list