Re: Install port without man page
On Thursday 24 April 2008 18:35:16 Ashant Chalasani wrote: Also part of the output of [EMAIL PROTECTED] /usr/ports/net/isc-dhcp3-server]# make install clean MANPREFIX=/tmp/ PREFIX=/mnt/ is.. . install -c -m 444 dhcpd /mnt//sbin chmod 755 /mnt//sbin/dhcpd install -c dhcpd.man8 /mnt//man/man8/dhcpd.8 install -c dhcpd.conf.man5 /mnt//man/man5/dhcpd.conf.5 install -c dhcpd.leases.man5 /mnt//man/man5/dhcpd.leases.5 === Installing rc.d startup script(s) .. ps: [EMAIL PROTECTED] uname -a FreeBSD fbsd70.kwest.wapsol.de 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 On Thu, Apr 24, 2008 at 6:22 PM, Ashant Chalasani [EMAIL PROTECTED] wrote: I've experimented with the isc-dhcp3-server port all 3 options - NO_INSTALL_MANPAGES, NOPORTDOCS and MANPREFIX and in every case there were manpages installed in /mnt/man/ [EMAIL PROTECTED] /mnt/man]# find . -name *dhcp* ./man5/dhcp-options.5 ./man5/dhcp-eval.5 ./man5/dhcpd.conf.5 ./man5/dhcpd.leases.5 ./man8/dhcpd.8 However, with [EMAIL PROTECTED] /usr/ports/net/isc-dhcp3-server]# make install clean MANPREFIX=/tmp/ PREFIX=/mnt/ we got... === Compressing manual pages for isc-dhcp3-server-3.0.5_2 gzip: can't stat: /tmp//man/man1/omshell.1: No such file or directory gzip: can't stat: /tmp//man/man5/dhcpd.conf.5: No such file or directory gzip: can't stat: /tmp//man/man5/dhcpd.leases.5: No such file or directory gzip: can't stat: /tmp//man/man5/dhcp-eval.5: No such file or directory gzip: can't stat: /tmp//man/man5/dhcp-options.5: No such file or directory gzip: can't stat: /tmp//man/man8/dhcpd.8: No such file or directory That's because MANPREFIX relies on an mtree being present, meaning man/man[1-9] directories should be below it. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Install port without man page
I've experimented with the isc-dhcp3-server port all 3 options - NO_INSTALL_MANPAGES, NOPORTDOCS and MANPREFIX and in every case there were manpages installed in /mnt/man/ [EMAIL PROTECTED] /mnt/man]# find . -name *dhcp* ./man5/dhcp-options.5 ./man5/dhcp-eval.5 ./man5/dhcpd.conf.5 ./man5/dhcpd.leases.5 ./man8/dhcpd.8 However, with [EMAIL PROTECTED] /usr/ports/net/isc-dhcp3-server]# make install clean MANPREFIX=/tmp/ PREFIX=/mnt/ we got... === Compressing manual pages for isc-dhcp3-server-3.0.5_2 gzip: can't stat: /tmp//man/man1/omshell.1: No such file or directory gzip: can't stat: /tmp//man/man5/dhcpd.conf.5: No such file or directory gzip: can't stat: /tmp//man/man5/dhcpd.leases.5: No such file or directory gzip: can't stat: /tmp//man/man5/dhcp-eval.5: No such file or directory gzip: can't stat: /tmp//man/man5/dhcp-options.5: No such file or directory gzip: can't stat: /tmp//man/man8/dhcpd.8: No such file or directory Thanks for all the advice. Ashant On Thu, Apr 24, 2008 at 7:53 AM, Andrew Pantyukhin [EMAIL PROTECTED] wrote: On Tue, Apr 15, 2008 at 07:34:35PM +0200, Mel wrote: On Tuesday 15 April 2008 18:07:42 Ashant Chalasani wrote: Is there a way to install a port without the man-pages. I'm trying to install a dhcp server onto a Tinybsd image and end up buying myself a bunch of files in /man, as seen at http://code.google.com/p/tinybsdap/wiki/InstallingPorts (hope the linking is not minded). If the port controls installing the manpages, then you can set NO_INSTALL_MANPAGES in /etc/make.conf. NO_INSTALL_MANPAGES is traditionally just an imake-related hack, which is hardly respected, but rather used. At the moment there is no policy or knob to control manpage installation. However, many ports respect MANPREFIX/MANxPREFIX. -- Ashant Chalasani http://code.google.com/p/tinybsdap/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Install port without man page
Also part of the output of [EMAIL PROTECTED] /usr/ports/net/isc-dhcp3-server]# make install clean MANPREFIX=/tmp/ PREFIX=/mnt/ is.. . install -c -m 444 dhcpd /mnt//sbin chmod 755 /mnt//sbin/dhcpd install -c dhcpd.man8 /mnt//man/man8/dhcpd.8 install -c dhcpd.conf.man5 /mnt//man/man5/dhcpd.conf.5 install -c dhcpd.leases.man5 /mnt//man/man5/dhcpd.leases.5 === Installing rc.d startup script(s) .. ps: [EMAIL PROTECTED] uname -a FreeBSD fbsd70.kwest.wapsol.de 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 On Thu, Apr 24, 2008 at 6:22 PM, Ashant Chalasani [EMAIL PROTECTED] wrote: I've experimented with the isc-dhcp3-server port all 3 options - NO_INSTALL_MANPAGES, NOPORTDOCS and MANPREFIX and in every case there were manpages installed in /mnt/man/ [EMAIL PROTECTED] /mnt/man]# find . -name *dhcp* ./man5/dhcp-options.5 ./man5/dhcp-eval.5 ./man5/dhcpd.conf.5 ./man5/dhcpd.leases.5 ./man8/dhcpd.8 However, with [EMAIL PROTECTED] /usr/ports/net/isc-dhcp3-server]# make install clean MANPREFIX=/tmp/ PREFIX=/mnt/ we got... === Compressing manual pages for isc-dhcp3-server-3.0.5_2 gzip: can't stat: /tmp//man/man1/omshell.1: No such file or directory gzip: can't stat: /tmp//man/man5/dhcpd.conf.5: No such file or directory gzip: can't stat: /tmp//man/man5/dhcpd.leases.5: No such file or directory gzip: can't stat: /tmp//man/man5/dhcp-eval.5: No such file or directory gzip: can't stat: /tmp//man/man5/dhcp-options.5: No such file or directory gzip: can't stat: /tmp//man/man8/dhcpd.8: No such file or directory Thanks for all the advice. Ashant On Thu, Apr 24, 2008 at 7:53 AM, Andrew Pantyukhin [EMAIL PROTECTED] wrote: On Tue, Apr 15, 2008 at 07:34:35PM +0200, Mel wrote: On Tuesday 15 April 2008 18:07:42 Ashant Chalasani wrote: Is there a way to install a port without the man-pages. I'm trying to install a dhcp server onto a Tinybsd image and end up buying myself a bunch of files in /man, as seen at http://code.google.com/p/tinybsdap/wiki/InstallingPorts (hope the linking is not minded). If the port controls installing the manpages, then you can set NO_INSTALL_MANPAGES in /etc/make.conf. NO_INSTALL_MANPAGES is traditionally just an imake-related hack, which is hardly respected, but rather used. At the moment there is no policy or knob to control manpage installation. However, many ports respect MANPREFIX/MANxPREFIX. -- Ashant Chalasani http://code.google.com/p/tinybsdap/ -- Ashant Chalasani http://code.google.com/p/tinybsdap/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Install port without man page
On Tue, Apr 15, 2008 at 07:34:35PM +0200, Mel wrote: On Tuesday 15 April 2008 18:07:42 Ashant Chalasani wrote: Is there a way to install a port without the man-pages. I'm trying to install a dhcp server onto a Tinybsd image and end up buying myself a bunch of files in /man, as seen at http://code.google.com/p/tinybsdap/wiki/InstallingPorts (hope the linking is not minded). If the port controls installing the manpages, then you can set NO_INSTALL_MANPAGES in /etc/make.conf. NO_INSTALL_MANPAGES is traditionally just an imake-related hack, which is hardly respected, but rather used. At the moment there is no policy or knob to control manpage installation. However, many ports respect MANPREFIX/MANxPREFIX. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Install port without man page
At 18:07 15/04/2008, Ashant Chalasani wrote: Hello All, Is there a way to install a port without the man-pages. I'm trying to install a dhcp server onto a Tinybsd image and end up buying myself a bunch of files in /man, as seen at http://code.google.com/p/tinybsdap/wiki/InstallingPorts (hope the linking is not minded). Just a hack but you can create (as root) a ln from man directory to /dev/null and install. If you want preserve the man pages move them to other directory. When all is installed move again to original man or update the ln to the dir where you move them. Thanks HTH --- Que seas paranoico no significa que no te persigan. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Install port without man page
At 18:07 15/04/2008, Ashant Chalasani wrote: Hello All, Is there a way to install a port without the man-pages. I'm trying to install a dhcp server onto a Tinybsd image and end up buying myself a bunch of files in /man, as seen at http://code.google.com/p/tinybsdap/wiki/InstallingPorts (hope the linking is not minded). Just a hack but you can create (as root) a ln from man directory to /dev/null and install. If you want preserve the man pages move them to other directory. When all is installed move again to original man or update the ln to the dir where you move them. Thanks HTH ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Install port without man page
Ashant Chalasani wrote: Hello All, Is there a way to install a port without the man-pages. I'm trying to install a dhcp server onto a Tinybsd image and end up buying myself a bunch of files in /man, as seen at http://code.google.com/p/tinybsdap/wiki/InstallingPorts (hope the linking is not minded). Ports should honour the NOPORTDOCS make variable and not install any documentation (including man pages). You can add 'NOPORTDOCS=yes' to /etc/make.conf to have it apply generally, or you can apply it while installing an individual port by eg: # cd /usr/ports/some/port ; make -DNOPORTDOCS install or # portinstall -m NOPORTDOCS=yes some/port and half a dozen or more variations on those methods. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: Install port without man page
On Tuesday 15 April 2008 18:07:42 Ashant Chalasani wrote: Is there a way to install a port without the man-pages. I'm trying to install a dhcp server onto a Tinybsd image and end up buying myself a bunch of files in /man, as seen at http://code.google.com/p/tinybsdap/wiki/InstallingPorts (hope the linking is not minded). If the port controls installing the manpages, then you can set NO_INSTALL_MANPAGES in /etc/make.conf. If they're installed by the underlying software's install script, then you can't control that from the port. You can of course, nullfs mount the ${LOCALBASE}/man directory on the image build machine to a different location and then unmount it from under the image once all ports are installed. Linking to /dev/null as suggested will likely screw with install targets. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Install port without man page
On Tuesday 15 April 2008 19:32:03 Matthew Seaman wrote: Ashant Chalasani wrote: Hello All, Is there a way to install a port without the man-pages. I'm trying to install a dhcp server onto a Tinybsd image and end up buying myself a bunch of files in /man, as seen at http://code.google.com/p/tinybsdap/wiki/InstallingPorts (hope the linking is not minded). Ports should honour the NOPORTDOCS make variable and not install any documentation (including man pages). I don't see evidence of that in /usr/ports/Mk/bsd.port.mk: Meaning, I don't see any location where MAN# variables are merged with PORTDOCS or where NOPORTDOCS interacts with MAN#. As far as I can tell, if MAN# variables are set by the port, then they are compressed/uncompressed based on NOMANCOMPRESS. If imake is used to install manpages, then NO_INSTALL_MANPAGES is respected, because the port knows there's a fixed target to install manpages when using imake. Gmake/autotools ports include the man page install in the main install target in between 10 or 20 fake targets to support the autotools experience and making it next to impossible to seperate installstages. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Install port without man page
On Tuesday 15 April 2008 18:07:42 Ashant Chalasani wrote: Is there a way to install a port without the man-pages. I'm trying to install a dhcp server onto a Tinybsd image and end up buying myself a bunch of files in /man, as seen at http://code.google.com/p/tinybsdap/wiki/InstallingPorts (hope the linking is not minded). Read what you got in there: Instead of using FORCE_PKG_REGISTER which will alter the currently installed ports on the build system and change their prefix so they can't be uninstalled properly with pkg_delete, you can set PKG_DBDIR to a different directory. For example, all 'trash' that's part of the image build process, but not going to be in the image goes in /build. Image on /mnt, you'd do: mkdir -p /build/var/db/pkg mkdir /build/local # saves you some work create all 'man*' directories and should you decide more # directories should be excluded, then you can do so mtree -ude -f /etc/mtree/BSD.local.dist -p /build/local mkdir /mnt/man mount -t nullfs /build/local/man /mnt/man cd /usr/ports/shells/bash make PKG_DBDIR=/var/db/pkg PREFIX=/mnt install -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]