blob: 917842f732f2cca941f693e88988bb59228c4902 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/man2html/man2html-1.5l.ebuild,v 1.4 2003/12/15 19:59:12 stuart Exp $
inherit eutils webapp-apache
webapp-detect || NO_HTTPD=1
DESCRIPTION="Convert manual pages to HTML"
HOMEPAGE="http://freshmeat.net/projects/man/"
SRC_URI="mirror://kernel/linux/utils/man/man-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha arm hppa mips sparc x86"
DEPEND="app-misc/glimpse
sys-apps/gawk
sys-apps/man"
S=${WORKDIR}/man-${PV}
pkg_setup() {
webapp-pkg_setup "${NO_HTTPD}"
einfo "Installing into ${ROOT}${HTTPD_ROOT}"
}
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/mansearch-gentoo.patch
epatch ${FILESDIR}/manwhatis-gentoo.patch
}
src_compile() {
:
}
src_install() {
webapp-mkdirs
cd man2html
exeinto ${HTTPD_CGIBIN}/man
doexe scripts/cgi-bin/man/*
insinto ${HTTPD_CGIBIN/bin/aux}/man
doins scripts/cgi-aux/man/*
insinto /var/man2html
newins glimpse_filters .glimpse_filters
fperms 1777 /var/man2html
exeinto /etc/cron.daily
doexe ${FILESDIR}/man2html.cron
}
pkg_postinst() {
einfo Run
einfo "\tebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config"
einfo to complete installation.
}
pkg_config() {
einfo Running makewhatis
/usr/sbin/makewhatis
eend $?
einfo Running glimpseindex
/usr/bin/glimpseindex -z -H /var/man2html `man -w | tr : ' '`
eend $?
chmod 644 /var/man2html/.glimpse*
einfo Manual pages are available at http://localhost/cgi-bin/man/man2html
}
|