Active Topics

 


Reply
Thread Tools
Posts: 12 | Thanked: 3 times | Joined on Jun 2007
#1
Is there any way to install the man command to the n800?
I can't found any package.
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#2
There is no package currently available. But it would be possible to make one and install it. But the 'groff' package and a few others would also be needed. Then there is, IIRC, some mechanism/script in OS2007 that automatically removes manpages installed with packages (but I could be wrong in this). In any case, most packages packed for OS2007 come without manpages. I strip the manpages away from the packages I maintain, for example.

Still, it would be perfectly possible to make a 'man' program package, if it's needed for a particular purpose - e.g. you already have a set of particular manpages you would want to use and install (in e.g. /usr/local/share/man) on the N800.

An alternative for a small, quick man system would be to require that manpages are pre-translated (this happens automatically when you read manpages on the desktop - the formatted page ends up in /var/cache/man/cat*/* on a desktop Debian system if set up that way -). Then the 'man' command would be a simple script. I used to have one laying around somewhere (years ago..)
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 
free's Avatar
Posts: 739 | Thanked: 159 times | Joined on Sep 2007 @ Germany - Munich
#3
I've packaged it.
It runs in scratchbox.

Unfortunatly I have a problem with my Wireless on the n800 so I can't check and secondly groff is 1.7Mega and my webserver repository won't accept more that 1M
So be patient, it will arrive as soon as I've checked it works and uploaded
It about 3Megs without any manpage.

And yes, this has to be tweaked probably for the device with respect to the directories..
 
R-R's Avatar
Posts: 739 | Thanked: 242 times | Joined on Sep 2007 @ Montreal
#4
Originally Posted by TA-t3 View Post
IIRC, some mechanism/script in OS2007 that automatically removes manpages installed with packages (but I could be wrong in this).
It's the "docpurge" package.
 

The Following 2 Users Say Thank You to R-R For This Useful Post:
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#5
Yep, that's the one! Thanks for reminding me
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 
free's Avatar
Posts: 739 | Thanked: 159 times | Joined on Sep 2007 @ Germany - Munich
#6
Good to know this docpurge.
So I wonder what happens if we install manpage-dev, which I'm interested in for using with gcc on the device, when I have no internet access and only the nokia. Manpages of other packages I don't really care.

I wanted to try localepurge (it's a perl script if I remember) to gain a few megs or so. It removes all locales you don't need.
 
free's Avatar
Posts: 739 | Thanked: 159 times | Joined on Sep 2007 @ Germany - Munich
#7
I don't manage with "nearly default" configure options.
man-db depends on groff, help2man,groff-base,info (texinfo),bsdmainutils
help2man depends on perl
bsdmainutils depends on debianutils
debianutils is in conflict with busybox

So, if I go on, I probably do have the manpages. But only the manpage, not any other command

Maybe that the options could be tweaked to change these dependencies. So it's not as easy as in scratchbox (which doesn't rely on busybox)
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#8
Yeah, I could see where that would end when I looked at man-db myself, so that's why I started talking about preprocessed manpages (the cat- versions) and a simple man script
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 
free's Avatar
Posts: 739 | Thanked: 159 times | Joined on Sep 2007 @ Germany - Munich
#9
Ok why not for a script..
But I'm not sure how to mimic man for all manpages. Some are from different formats I guess. Most of them look nice with the following but some don't..

wget http://debfarm.free.fr/images/groff_...1-13_armel.deb
wget http://debfarm.free.fr/images/groff-...1-13_armel.deb
dpkg -i groff*

then let's say you got a compressed manpage from your linux box (usually in /usr/share/man)
scp linux_user@linux_machine:/usr/share/man/man2/kill.2.gz .
and then
zcat kill.2.gz | nroff -man | less -r

Works as expected with bold formatting and stuff


Let's call it rman (rudimentary man)
Humm well it's a start

edit:
My packages are not yet signed, I'll create a clean repository later. Meanwhile please check the md5 using md5sum:
81d940594f75c8444e16dce1579ad87c groff_1.18.1.1-13_armel.deb
147bc6c0cbf2aff98262db86be2711c0 groff-base_1.18.1.1-13_armel.deb
Attached Images
 

Last edited by free; 2007-11-17 at 22:47.
 
free's Avatar
Posts: 739 | Thanked: 159 times | Joined on Sep 2007 @ Germany - Munich
#10
/home/user/man # cat /usr/sbin/docpurge
#! /bin/sh

# Copyright (C) 2006 Nokia Corporation.
#
# Contact: Marius Vollmer <marius.vollmer@nokia.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# version 2 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
# 02110-1301 USA

# Real hackers don't read docs.
#
rm -rf /usr/share/doc/* /usr/share/man/* /usr/share/info/*
echo "Purged by docpurge" >/usr/share/doc/README
echo "Purged by docpurge" >/usr/share/man/README
echo "Purged by docpurge" >/usr/share/info/README
 
Reply


 
Forum Jump


All times are GMT. The time now is 17:45.