STAGE: explain man pages
Anton Shterenlikht
mexas at bris.ac.uk
Wed Oct 9 20:21:03 UTC 2013
>From pschmehl_lists at tx.rr.com Wed Oct 9 21:14:48 2013
>--On October 9, 2013 8:44:55 PM +0100 Anton Shterenlikht <mexas at bris.ac.uk>
>wrote:
>
>> I'm getting:
>>
>># make stage
>> ===> Staging for urlview-0.9_7
>> ===> Generating temporary packing list
>> /bin/sh ./mkinstalldirs
>> /usr/ports/textproc/urlview/work/stage/usr/local/bin install -s -o
>> root -g wheel -m 555 urlview
>> /usr/ports/textproc/urlview/work/stage/usr/local/bin/urlview install -o
>> root -g wheel -m 444 urlview.man /usr/local/man/man1/urlview.1 install
>> -o root -g wheel -m 444
>> /usr/ports/textproc/urlview/work/urlview-0.9/sample.urlview
>> /usr/ports/textproc/urlview/work/stage/usr/local/etc/urlview.conf.sample
>> ====> Compressing man pages
>>#
>>
>> Note that the man page is not installed on stage.
>>
>> The Makefile has:
>>
>> PLIST_FILES= bin/urlview \
>> etc/urlview.conf.sample \
>> urlview.1
>>
>> The last file is the man page.
>>
>> What am I doing wrong?
>>
>
>You don't need to install or uninstall man pages. They're done
>automatically.
>
>In the Makefile, use MANx= name of man pages
>e.g MAN1= urlview.1
>
>Remove the manpage from the pkg-plist file.
No, doesn't work:
# make stage
===> Staging for urlview-0.9_7
===> Generating temporary packing list
/bin/sh ./mkinstalldirs /usr/ports/textproc/urlview/work/stage/usr/local/bin
install -s -o root -g wheel -m 555 urlview /usr/ports/textproc/urlview/work/stage/usr/local/bin/urlview
install -o root -g wheel -m 444 urlview.man /usr/local/man/man1/urlview.1
install -o root -g wheel -m 444 /usr/ports/textproc/urlview/work/urlview-0.9/sample.urlview /usr/ports/textproc/urlview/work/stage/usr/local/etc/urlview.conf.sample
====> Compressing man pages
#
To be clear, here's the complete Makefile (very simple):
# cat Makefile
# Created by: Josh Gilliam <josh at quick.net>
# $FreeBSD: head/textproc/urlview/Makefile 327773 2013-09-20 23:17:30Z bapt $
PORTNAME= urlview
PORTVERSION= 0.9
PORTREVISION= 7
CATEGORIES= textproc www
MASTER_SITES= ftp://ftp.mutt.org/mutt/contrib/ \
ftp://ftp.cs.tu-berlin.de/pub/net/mail/mutt/contrib/ \
ftp://ftp.fu-berlin.de/pub/unix/mail/mutt/contrib/ \
ftp://ftp.gbnet.net/pub/mutt-international/contrib/ \
ftp://ftp.gwdg.de/pub/unix/mail/mutt/international/contrib/ \
http://seis.bris.ac.uk/~mexas/
MAINTAINER= mexas at bris.ac.uk
COMMENT= URL extractor/launcher
GNU_CONFIGURE= yes
PLIST_FILES= bin/urlview \
etc/urlview.conf.sample
MAN1= urlview.1
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lpcreposix -lpcre
post-patch:
@${REINPLACE_CMD} -e 's,/etc,${STAGEDIR}${PREFIX}&,' \
-e 's/url_handler.sh/firefox/' \
${WRKSRC}/*
post-install:
${INSTALL_DATA} ${WRKSRC}/sample.urlview \
${STAGEDIR}${PREFIX}/etc/urlview.conf.sample
.include <bsd.port.mk>
#
Anton
More information about the freebsd-ports
mailing list